Skip to content

Commit

Permalink
feat(generation): api def tag 'sdk-major-release-2020-rc01' gen commi…
Browse files Browse the repository at this point in the history
…t '7cc0550'
  • Loading branch information
kevinkowa committed Nov 6, 2020
1 parent e7716c6 commit 3bec20d
Show file tree
Hide file tree
Showing 1,641 changed files with 71,872 additions and 14,691 deletions.
940 changes: 556 additions & 384 deletions assistant/src/main/java/com/ibm/watson/assistant/v1/Assistant.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
/*
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.watson.assistant.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;
import java.util.ArrayList;
import java.util.List;

/** The bulkClassify options. */
public class BulkClassifyOptions extends GenericModel {

protected String workspaceId;
protected List<BulkClassifyUtterance> input;

/** Builder. */
public static class Builder {
private String workspaceId;
private List<BulkClassifyUtterance> input;

private Builder(BulkClassifyOptions bulkClassifyOptions) {
this.workspaceId = bulkClassifyOptions.workspaceId;
this.input = bulkClassifyOptions.input;
}

/** Instantiates a new builder. */
public Builder() {}

/**
* Instantiates a new builder with required properties.
*
* @param workspaceId the workspaceId
*/
public Builder(String workspaceId) {
this.workspaceId = workspaceId;
}

/**
* Builds a BulkClassifyOptions.
*
* @return the new BulkClassifyOptions instance
*/
public BulkClassifyOptions build() {
return new BulkClassifyOptions(this);
}

/**
* Adds an input to input.
*
* @param input the new input
* @return the BulkClassifyOptions builder
*/
public Builder addInput(BulkClassifyUtterance input) {
com.ibm.cloud.sdk.core.util.Validator.notNull(input, "input cannot be null");
if (this.input == null) {
this.input = new ArrayList<BulkClassifyUtterance>();
}
this.input.add(input);
return this;
}

/**
* Set the workspaceId.
*
* @param workspaceId the workspaceId
* @return the BulkClassifyOptions builder
*/
public Builder workspaceId(String workspaceId) {
this.workspaceId = workspaceId;
return this;
}

/**
* Set the input. Existing input will be replaced.
*
* @param input the input
* @return the BulkClassifyOptions builder
*/
public Builder input(List<BulkClassifyUtterance> input) {
this.input = input;
return this;
}
}

protected BulkClassifyOptions(Builder builder) {
com.ibm.cloud.sdk.core.util.Validator.notEmpty(
builder.workspaceId, "workspaceId cannot be empty");
workspaceId = builder.workspaceId;
input = builder.input;
}

/**
* New builder.
*
* @return a BulkClassifyOptions builder
*/
public Builder newBuilder() {
return new Builder(this);
}

/**
* Gets the workspaceId.
*
* <p>Unique identifier of the workspace.
*
* @return the workspaceId
*/
public String workspaceId() {
return workspaceId;
}

/**
* Gets the input.
*
* <p>An array of input utterances to classify.
*
* @return the input
*/
public List<BulkClassifyUtterance> input() {
return input;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/*
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.watson.assistant.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;
import java.util.List;

/** BulkClassifyOutput. */
public class BulkClassifyOutput extends GenericModel {

protected BulkClassifyUtterance input;
protected List<RuntimeEntity> entities;
protected List<RuntimeIntent> intents;

/**
* Gets the input.
*
* <p>The user input utterance to classify.
*
* @return the input
*/
public BulkClassifyUtterance getInput() {
return input;
}

/**
* Gets the entities.
*
* <p>An array of entities identified in the utterance.
*
* @return the entities
*/
public List<RuntimeEntity> getEntities() {
return entities;
}

/**
* Gets the intents.
*
* <p>An array of intents recognized in the utterance.
*
* @return the intents
*/
public List<RuntimeIntent> getIntents() {
return intents;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2019, 2020.
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand All @@ -12,13 +12,23 @@
*/
package com.ibm.watson.assistant.v1.model;

import com.google.gson.reflect.TypeToken;
import com.ibm.cloud.sdk.core.service.model.DynamicModel;
import com.ibm.cloud.sdk.core.service.model.GenericModel;
import java.util.List;

/** For internal use only. */
public class SystemResponse extends DynamicModel<Object> {
/** BulkClassifyResponse. */
public class BulkClassifyResponse extends GenericModel {

public SystemResponse() {
super(new TypeToken<Object>() {});
protected List<BulkClassifyOutput> output;

/**
* Gets the output.
*
* <p>An array of objects that contain classification information for the submitted input
* utterances.
*
* @return the output
*/
public List<BulkClassifyOutput> getOutput() {
return output;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/*
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package com.ibm.watson.assistant.v1.model;

import com.ibm.cloud.sdk.core.service.model.GenericModel;

/** The user input utterance to classify. */
public class BulkClassifyUtterance extends GenericModel {

protected String text;

/** Builder. */
public static class Builder {
private String text;

private Builder(BulkClassifyUtterance bulkClassifyUtterance) {
this.text = bulkClassifyUtterance.text;
}

/** Instantiates a new builder. */
public Builder() {}

/**
* Instantiates a new builder with required properties.
*
* @param text the text
*/
public Builder(String text) {
this.text = text;
}

/**
* Builds a BulkClassifyUtterance.
*
* @return the new BulkClassifyUtterance instance
*/
public BulkClassifyUtterance build() {
return new BulkClassifyUtterance(this);
}

/**
* Set the text.
*
* @param text the text
* @return the BulkClassifyUtterance builder
*/
public Builder text(String text) {
this.text = text;
return this;
}
}

protected BulkClassifyUtterance(Builder builder) {
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.text, "text cannot be null");
text = builder.text;
}

/**
* New builder.
*
* @return a BulkClassifyUtterance builder
*/
public Builder newBuilder() {
return new Builder(this);
}

/**
* Gets the text.
*
* <p>The text of the input utterance.
*
* @return the text
*/
public String text() {
return text;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* (C) Copyright IBM Corp. 2018, 2020.
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -47,7 +47,7 @@ public Builder(String group) {
/**
* Builds a CaptureGroup.
*
* @return the captureGroup
* @return the new CaptureGroup instance
*/
public CaptureGroup build() {
return new CaptureGroup(this);
Expand Down
Loading

0 comments on commit 3bec20d

Please sign in to comment.