-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(generation): api def tag 'sdk-major-release-2020-rc01' gen commi…
…t '7cc0550'
- Loading branch information
Showing
1,641 changed files
with
71,872 additions
and
14,691 deletions.
There are no files selected for viewing
940 changes: 556 additions & 384 deletions
940
assistant/src/main/java/com/ibm/watson/assistant/v1/Assistant.java
Large diffs are not rendered by default.
Oops, something went wrong.
131 changes: 131 additions & 0 deletions
131
assistant/src/main/java/com/ibm/watson/assistant/v1/model/BulkClassifyOptions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
assistant/src/main/java/com/ibm/watson/assistant/v1/model/BulkClassifyOutput.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
assistant/src/main/java/com/ibm/watson/assistant/v1/model/BulkClassifyUtterance.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.