Interface Intent.Message.SelectItemInfoOrBuilder (4.42.0)

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
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
List<String>

A list containing the synonyms.