Package com.google.cloud.retail.v2beta
Interface Rule.TwowaySynonymsActionOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Rule.TwowaySynonymsAction
,Rule.TwowaySynonymsAction.Builder
- Enclosing class:
- Rule
public static interface Rule.TwowaySynonymsActionOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getSynonyms(int index)
Defines a set of synonyms.com.google.protobuf.ByteString
getSynonymsBytes(int index)
Defines a set of synonyms.int
getSynonymsCount()
Defines a set of synonyms.List<String>
getSynonymsList()
Defines a set of synonyms.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getSynonymsList
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:
- A list containing the synonyms.
-
getSynonymsCount
int getSynonymsCount()
Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms.
repeated string synonyms = 1;
- Returns:
- The count of synonyms.
-
getSynonyms
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;
- Parameters:
index
- The index of the element to return.- Returns:
- The synonyms at the given index.
-
getSynonymsBytes
com.google.protobuf.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;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the synonyms at the given index.
-
-