Interface Control.SynonymsActionOrBuilder (0.44.0)

public static interface Control.SynonymsActionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getSynonyms(int index)

public abstract String getSynonyms(int index)

Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.

repeated string synonyms = 1;

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)

Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.

repeated string synonyms = 1;

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()

Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.

repeated string synonyms = 1;

Returns
Type Description
int

The count of synonyms.

getSynonymsList()

public abstract List<String> getSynonymsList()

Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.

repeated string synonyms = 1;

Returns
Type Description
List<String>

A list containing the synonyms.