Interface Rule.TwowaySynonymsActionOrBuilder (2.17.0)

public static interface Rule.TwowaySynonymsActionOrBuilder 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.

repeated string synonyms = 1;

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)

Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms.

repeated string synonyms = 1;

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

Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms.

repeated string synonyms = 1;

Returns
TypeDescription
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.

repeated string synonyms = 1;

Returns
TypeDescription
List<String>

A list containing the synonyms.