public static final class Intent.Message.SelectItemInfo.Builder extends GeneratedMessage.Builder<Intent.Message.SelectItemInfo.Builder> implements Intent.Message.SelectItemInfoOrBuilderAdditional info about the select item for when it is triggered in a dialog.
Protobuf type google.cloud.dialogflow.v2.Intent.Message.SelectItemInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Intent.Message.SelectItemInfo.BuilderImplements
Intent.Message.SelectItemInfoOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllSynonyms(Iterable<String> values)
public Intent.Message.SelectItemInfo.Builder addAllSynonyms(Iterable<String> values)Optional. A list of synonyms that can also be used to trigger this item in dialog.
repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The synonyms to add. |
| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo.Builder |
This builder for chaining. |
addSynonyms(String value)
public Intent.Message.SelectItemInfo.Builder addSynonyms(String value)Optional. A list of synonyms that can also be used to trigger this item in dialog.
repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe synonyms to add. |
| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo.Builder |
This builder for chaining. |
addSynonymsBytes(ByteString value)
public Intent.Message.SelectItemInfo.Builder addSynonymsBytes(ByteString value)Optional. A list of synonyms that can also be used to trigger this item in dialog.
repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the synonyms to add. |
| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo.Builder |
This builder for chaining. |
build()
public Intent.Message.SelectItemInfo build()| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo |
|
buildPartial()
public Intent.Message.SelectItemInfo buildPartial()| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo |
|
clear()
public Intent.Message.SelectItemInfo.Builder clear()| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo.Builder |
|
clearKey()
public Intent.Message.SelectItemInfo.Builder clearKey()Required. A unique key that will be sent back to the agent if this response is given.
string key = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo.Builder |
This builder for chaining. |
clearSynonyms()
public Intent.Message.SelectItemInfo.Builder clearSynonyms()Optional. A list of synonyms that can also be used to trigger this item in dialog.
repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public Intent.Message.SelectItemInfo getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getKey()
public String getKey()Required. A unique key that will be sent back to the agent if this response is given.
string key = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The key. |
getKeyBytes()
public ByteString getKeyBytes()Required. A unique key that will be sent back to the agent if this response is given.
string key = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for key. |
getSynonyms(int index)
public String getSynonyms(int index)Optional. A list of synonyms that can also be used to trigger this item in dialog.
repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The synonyms at the given index. |
getSynonymsBytes(int index)
public ByteString getSynonymsBytes(int index)Optional. A list of synonyms that can also be used to trigger this item in dialog.
repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the synonyms at the given index. |
getSynonymsCount()
public int getSynonymsCount()Optional. A list of synonyms that can also be used to trigger this item in dialog.
repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of synonyms. |
getSynonymsList()
public ProtocolStringList getSynonymsList()Optional. A list of synonyms that can also be used to trigger this item in dialog.
repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the synonyms. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Intent.Message.SelectItemInfo other)
public Intent.Message.SelectItemInfo.Builder mergeFrom(Intent.Message.SelectItemInfo other)| Parameter | |
|---|---|
| Name | Description |
other |
Intent.Message.SelectItemInfo |
| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Intent.Message.SelectItemInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Intent.Message.SelectItemInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo.Builder |
|
setKey(String value)
public Intent.Message.SelectItemInfo.Builder setKey(String value)Required. A unique key that will be sent back to the agent if this response is given.
string key = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe key to set. |
| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo.Builder |
This builder for chaining. |
setKeyBytes(ByteString value)
public Intent.Message.SelectItemInfo.Builder setKeyBytes(ByteString value)Required. A unique key that will be sent back to the agent if this response is given.
string key = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for key to set. |
| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo.Builder |
This builder for chaining. |
setSynonyms(int index, String value)
public Intent.Message.SelectItemInfo.Builder setSynonyms(int index, String value)Optional. A list of synonyms that can also be used to trigger this item in dialog.
repeated string synonyms = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe synonyms to set. |
| Returns | |
|---|---|
| Type | Description |
Intent.Message.SelectItemInfo.Builder |
This builder for chaining. |