Skip to content

Commit

Permalink
feat(generation): generated using api def sdk-2021-05-11 & gen 3.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkowa committed May 27, 2021
1 parent 3b1fbf1 commit 82ef647
Show file tree
Hide file tree
Showing 13 changed files with 80 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
package com.ibm.watson.assistant.v1.model;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

Expand Down Expand Up @@ -158,7 +157,6 @@ public Builder newBuilder() {
return new Builder(this);
}


/**
* Gets the responseType.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
package com.ibm.watson.assistant.v1.model;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

Expand Down Expand Up @@ -48,7 +47,8 @@ public static class Builder {
private List<ResponseGenericChannel> channels;

public Builder(
DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent dialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent) {
DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent
dialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent) {
this.responseType =
dialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent.responseType;
this.messageToHumanAgent =
Expand Down Expand Up @@ -186,7 +186,6 @@ public Builder newBuilder() {
return new Builder(this);
}


/**
* Gets the responseType.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
package com.ibm.watson.assistant.v1.model;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

Expand All @@ -38,7 +37,8 @@ public static class Builder {
private List<ResponseGenericChannel> channels;

public Builder(
DialogNodeOutputGenericDialogNodeOutputResponseTypeImage dialogNodeOutputGenericDialogNodeOutputResponseTypeImage) {
DialogNodeOutputGenericDialogNodeOutputResponseTypeImage
dialogNodeOutputGenericDialogNodeOutputResponseTypeImage) {
this.responseType = dialogNodeOutputGenericDialogNodeOutputResponseTypeImage.responseType;
this.source = dialogNodeOutputGenericDialogNodeOutputResponseTypeImage.source;
this.title = dialogNodeOutputGenericDialogNodeOutputResponseTypeImage.title;
Expand Down Expand Up @@ -160,7 +160,6 @@ public Builder newBuilder() {
return new Builder(this);
}


/**
* Gets the responseType.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
package com.ibm.watson.assistant.v1.model;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

Expand Down Expand Up @@ -48,7 +47,8 @@ public static class Builder {
private List<ResponseGenericChannel> channels;

public Builder(
DialogNodeOutputGenericDialogNodeOutputResponseTypeOption dialogNodeOutputGenericDialogNodeOutputResponseTypeOption) {
DialogNodeOutputGenericDialogNodeOutputResponseTypeOption
dialogNodeOutputGenericDialogNodeOutputResponseTypeOption) {
this.responseType = dialogNodeOutputGenericDialogNodeOutputResponseTypeOption.responseType;
this.title = dialogNodeOutputGenericDialogNodeOutputResponseTypeOption.title;
this.description = dialogNodeOutputGenericDialogNodeOutputResponseTypeOption.description;
Expand Down Expand Up @@ -202,7 +202,6 @@ public Builder newBuilder() {
return new Builder(this);
}


/**
* Gets the responseType.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
package com.ibm.watson.assistant.v1.model;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

Expand All @@ -36,7 +35,8 @@ public static class Builder {
private List<ResponseGenericChannel> channels;

public Builder(
DialogNodeOutputGenericDialogNodeOutputResponseTypePause dialogNodeOutputGenericDialogNodeOutputResponseTypePause) {
DialogNodeOutputGenericDialogNodeOutputResponseTypePause
dialogNodeOutputGenericDialogNodeOutputResponseTypePause) {
this.responseType = dialogNodeOutputGenericDialogNodeOutputResponseTypePause.responseType;
this.time = dialogNodeOutputGenericDialogNodeOutputResponseTypePause.time;
this.typing = dialogNodeOutputGenericDialogNodeOutputResponseTypePause.typing;
Expand Down Expand Up @@ -145,7 +145,6 @@ public Builder newBuilder() {
return new Builder(this);
}


/**
* Gets the responseType.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
package com.ibm.watson.assistant.v1.model;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

Expand Down Expand Up @@ -54,7 +53,8 @@ public static class Builder {
private List<ResponseGenericChannel> channels;

public Builder(
DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill dialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill) {
DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill
dialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill) {
this.responseType =
dialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill.responseType;
this.query = dialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill.query;
Expand Down Expand Up @@ -194,7 +194,6 @@ public Builder newBuilder() {
return new Builder(this);
}


/**
* Gets the responseType.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
package com.ibm.watson.assistant.v1.model;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

Expand All @@ -35,9 +34,10 @@ public interface SelectionPolicy {
private String responseType;

private List<DialogNodeOutputTextValuesElement> values;
@SerializedName("selection_policy")

@SerializedName("selection_policy")
private String selectionPolicy;

private String delimiter;
private List<ResponseGenericChannel> channels;

Expand All @@ -50,7 +50,8 @@ public static class Builder {
private List<ResponseGenericChannel> channels;

public Builder(
DialogNodeOutputGenericDialogNodeOutputResponseTypeText dialogNodeOutputGenericDialogNodeOutputResponseTypeText) {
DialogNodeOutputGenericDialogNodeOutputResponseTypeText
dialogNodeOutputGenericDialogNodeOutputResponseTypeText) {
this.responseType = dialogNodeOutputGenericDialogNodeOutputResponseTypeText.responseType;
this.values = dialogNodeOutputGenericDialogNodeOutputResponseTypeText.values;
this.selectionPolicy =
Expand Down Expand Up @@ -188,7 +189,6 @@ public Builder newBuilder() {
return new Builder(this);
}


/**
* Gets the responseType.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
package com.ibm.watson.assistant.v1.model;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
Expand All @@ -37,7 +36,8 @@ public static class Builder {
private List<ResponseGenericChannel> channels;

public Builder(
DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined dialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined) {
DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined
dialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined) {
this.responseType =
dialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined.responseType;
this.userDefined = dialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined.userDefined;
Expand Down Expand Up @@ -135,7 +135,6 @@ public Builder newBuilder() {
return new Builder(this);
}


/**
* Gets the responseType.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/** Analysis features and options. */
public class Features extends GenericModel {

protected CategoriesOptions categories;
protected ClassificationsOptions classifications;
protected ConceptsOptions concepts;
protected EmotionOptions emotion;
Expand All @@ -34,11 +33,11 @@ public class Features extends GenericModel {

protected SentimentOptions sentiment;
protected SummarizationOptions summarization;
protected CategoriesOptions categories;
protected SyntaxOptions syntax;

/** Builder. */
public static class Builder {
private CategoriesOptions categories;
private ClassificationsOptions classifications;
private ConceptsOptions concepts;
private EmotionOptions emotion;
Expand All @@ -49,10 +48,10 @@ public static class Builder {
private SemanticRolesOptions semanticRoles;
private SentimentOptions sentiment;
private SummarizationOptions summarization;
private CategoriesOptions categories;
private SyntaxOptions syntax;

private Builder(Features features) {
this.categories = features.categories;
this.classifications = features.classifications;
this.concepts = features.concepts;
this.emotion = features.emotion;
Expand All @@ -63,6 +62,7 @@ private Builder(Features features) {
this.semanticRoles = features.semanticRoles;
this.sentiment = features.sentiment;
this.summarization = features.summarization;
this.categories = features.categories;
this.syntax = features.syntax;
}

Expand All @@ -78,17 +78,6 @@ public Features build() {
return new Features(this);
}

/**
* Set the categories.
*
* @param categories the categories
* @return the Features builder
*/
public Builder categories(CategoriesOptions categories) {
this.categories = categories;
return this;
}

/**
* Set the classifications.
*
Expand Down Expand Up @@ -199,6 +188,17 @@ public Builder summarization(SummarizationOptions summarization) {
return this;
}

/**
* Set the categories.
*
* @param categories the categories
* @return the Features builder
*/
public Builder categories(CategoriesOptions categories) {
this.categories = categories;
return this;
}

/**
* Set the syntax.
*
Expand All @@ -212,7 +212,6 @@ public Builder syntax(SyntaxOptions syntax) {
}

protected Features(Builder builder) {
categories = builder.categories;
classifications = builder.classifications;
concepts = builder.concepts;
emotion = builder.emotion;
Expand All @@ -223,6 +222,7 @@ protected Features(Builder builder) {
semanticRoles = builder.semanticRoles;
sentiment = builder.sentiment;
summarization = builder.summarization;
categories = builder.categories;
syntax = builder.syntax;
}

Expand All @@ -235,20 +235,6 @@ public Builder newBuilder() {
return new Builder(this);
}

/**
* Gets the categories.
*
* <p>Returns a five-level taxonomy of the content. The top three categories are returned.
*
* <p>Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese,
* Spanish.
*
* @return the categories
*/
public CategoriesOptions categories() {
return categories;
}

/**
* Gets the classifications.
*
Expand Down Expand Up @@ -394,6 +380,20 @@ public SummarizationOptions summarization() {
return summarization;
}

/**
* Gets the categories.
*
* <p>Returns a five-level taxonomy of the content. The top three categories are returned.
*
* <p>Supported languages: Arabic, English, French, German, Italian, Japanese, Korean, Portuguese,
* Spanish.
*
* @return the categories
*/
public CategoriesOptions categories() {
return categories;
}

/**
* Gets the syntax.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
import com.ibm.watson.common.RetryRunner;
import com.ibm.watson.common.WatsonServiceTest;
import com.ibm.watson.natural_language_understanding.v1.model.*;
import com.ibm.watson.natural_language_understanding.v1.utils.TestUtilities;
import java.io.FileInputStream;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import com.ibm.watson.natural_language_understanding.v1.utils.TestUtilities;
import org.junit.Assume;
import org.junit.Before;
import org.junit.FixMethodOrder;
Expand Down
Loading

0 comments on commit 82ef647

Please sign in to comment.