Interface Intent.Message.SelectItemInfoOrBuilder (4.7.4)

public static interface Intent.Message.SelectItemInfoOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getKey()

public abstract 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
TypeDescription
String

The key.

getKeyBytes()

public abstract 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
TypeDescription
ByteString

The bytes for key.

getSynonyms(int index)

public abstract 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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The synonyms at the given index.

getSynonymsBytes(int index)

public abstract 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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the synonyms at the given index.

getSynonymsCount()

public abstract 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
TypeDescription
int

The count of synonyms.

getSynonymsList()

public abstract List<String> 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
TypeDescription
List<String>

A list containing the synonyms.