Package com.google.cloud.retail.v2
Interface Rule.OnewaySynonymsActionOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Rule.OnewaySynonymsAction,Rule.OnewaySynonymsAction.Builder
- Enclosing class:
- Rule
public static interface Rule.OnewaySynonymsActionOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetOnewayTerms(int index)Will be [deprecated = true] post migration;com.google.protobuf.ByteStringgetOnewayTermsBytes(int index)Will be [deprecated = true] post migration;intgetOnewayTermsCount()Will be [deprecated = true] post migration;List<String>getOnewayTermsList()Will be [deprecated = true] post migration;StringgetQueryTerms(int index)Terms from the search query.com.google.protobuf.ByteStringgetQueryTermsBytes(int index)Terms from the search query.intgetQueryTermsCount()Terms from the search query.List<String>getQueryTermsList()Terms from the search query.StringgetSynonyms(int index)Defines a set of synonyms.com.google.protobuf.ByteStringgetSynonymsBytes(int index)Defines a set of synonyms.intgetSynonymsCount()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
-
getQueryTermsList
List<String> getQueryTermsList()
Terms from the search query. Will treat synonyms as their synonyms. Not themselves synonyms of the synonyms. Can specify up to 100 terms.
repeated string query_terms = 3;- Returns:
- A list containing the queryTerms.
-
getQueryTermsCount
int getQueryTermsCount()
Terms from the search query. Will treat synonyms as their synonyms. Not themselves synonyms of the synonyms. Can specify up to 100 terms.
repeated string query_terms = 3;- Returns:
- The count of queryTerms.
-
getQueryTerms
String getQueryTerms(int index)
Terms from the search query. Will treat synonyms as their synonyms. Not themselves synonyms of the synonyms. Can specify up to 100 terms.
repeated string query_terms = 3;- Parameters:
index- The index of the element to return.- Returns:
- The queryTerms at the given index.
-
getQueryTermsBytes
com.google.protobuf.ByteString getQueryTermsBytes(int index)
Terms from the search query. Will treat synonyms as their synonyms. Not themselves synonyms of the synonyms. Can specify up to 100 terms.
repeated string query_terms = 3;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the queryTerms at the given index.
-
getSynonymsList
List<String> getSynonymsList()
Defines a set of synonyms. Cannot contain duplicates. Can specify up to 100 synonyms.
repeated string synonyms = 4;- Returns:
- A list containing the synonyms.
-
getSynonymsCount
int getSynonymsCount()
Defines a set of synonyms. Cannot contain duplicates. Can specify up to 100 synonyms.
repeated string synonyms = 4;- Returns:
- The count of synonyms.
-
getSynonyms
String getSynonyms(int index)
Defines a set of synonyms. Cannot contain duplicates. Can specify up to 100 synonyms.
repeated string synonyms = 4;- 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. Cannot contain duplicates. Can specify up to 100 synonyms.
repeated string synonyms = 4;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the synonyms at the given index.
-
getOnewayTermsList
List<String> getOnewayTermsList()
Will be [deprecated = true] post migration;
repeated string oneway_terms = 2;- Returns:
- A list containing the onewayTerms.
-
getOnewayTermsCount
int getOnewayTermsCount()
Will be [deprecated = true] post migration;
repeated string oneway_terms = 2;- Returns:
- The count of onewayTerms.
-
getOnewayTerms
String getOnewayTerms(int index)
Will be [deprecated = true] post migration;
repeated string oneway_terms = 2;- Parameters:
index- The index of the element to return.- Returns:
- The onewayTerms at the given index.
-
getOnewayTermsBytes
com.google.protobuf.ByteString getOnewayTermsBytes(int index)
Will be [deprecated = true] post migration;
repeated string oneway_terms = 2;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the onewayTerms at the given index.
-
-