Interface SynonymSetOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SynonymSet
,SynonymSet.Builder
public interface SynonymSetOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getContext()
This is a freeform field.com.google.protobuf.ByteString
getContextBytes()
This is a freeform field.String
getName()
The resource name of the SynonymSet This is mandatory for google.api.resource.com.google.protobuf.ByteString
getNameBytes()
The resource name of the SynonymSet This is mandatory for google.api.resource.SynonymSet.Synonym
getSynonyms(int index)
List of Synonyms for the context.int
getSynonymsCount()
List of Synonyms for the context.List<SynonymSet.Synonym>
getSynonymsList()
List of Synonyms for the context.SynonymSet.SynonymOrBuilder
getSynonymsOrBuilder(int index)
List of Synonyms for the context.List<? extends SynonymSet.SynonymOrBuilder>
getSynonymsOrBuilderList()
List of Synonyms for the context.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
string name = 1;
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
The resource name of the SynonymSet This is mandatory for google.api.resource. Format: projects/{project_number}/locations/{location}/synonymSets/{context}.
string name = 1;
- Returns:
- The bytes for name.
-
getContext
String getContext()
This is a freeform field. Example contexts can be "sales," "engineering," "real estate," "accounting," etc. The context can be supplied during search requests.
string context = 2;
- Returns:
- The context.
-
getContextBytes
com.google.protobuf.ByteString getContextBytes()
This is a freeform field. Example contexts can be "sales," "engineering," "real estate," "accounting," etc. The context can be supplied during search requests.
string context = 2;
- Returns:
- The bytes for context.
-
getSynonymsList
List<SynonymSet.Synonym> getSynonymsList()
List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
-
getSynonyms
SynonymSet.Synonym getSynonyms(int index)
List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
-
getSynonymsCount
int getSynonymsCount()
List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
-
getSynonymsOrBuilderList
List<? extends SynonymSet.SynonymOrBuilder> getSynonymsOrBuilderList()
List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
-
getSynonymsOrBuilder
SynonymSet.SynonymOrBuilder getSynonymsOrBuilder(int index)
List of Synonyms for the context.
repeated .google.cloud.contentwarehouse.v1.SynonymSet.Synonym synonyms = 3;
-
-