Package com.google.cloud.retail.v2alpha
Class Rule.DoNotAssociateAction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Rule.DoNotAssociateAction.Builder>
com.google.cloud.retail.v2alpha.Rule.DoNotAssociateAction.Builder
- All Implemented Interfaces:
Rule.DoNotAssociateActionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Rule.DoNotAssociateAction
public static final class Rule.DoNotAssociateAction.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Rule.DoNotAssociateAction.Builder>
implements Rule.DoNotAssociateActionOrBuilder
Prevents `query_term` from being associated with specified terms during search. Example: Don't associate "gShoe" and "cheap".Protobuf type
google.cloud.retail.v2alpha.Rule.DoNotAssociateAction-
Method Summary
Modifier and TypeMethodDescriptionaddAllDoNotAssociateTerms(Iterable<String> values) Cannot contain duplicates or the query term.addAllQueryTerms(Iterable<String> values) Terms from the search query.addAllTerms(Iterable<String> values) Will be [deprecated = true] post migration;addDoNotAssociateTerms(String value) Cannot contain duplicates or the query term.addDoNotAssociateTermsBytes(com.google.protobuf.ByteString value) Cannot contain duplicates or the query term.addQueryTerms(String value) Terms from the search query.addQueryTermsBytes(com.google.protobuf.ByteString value) Terms from the search query.Will be [deprecated = true] post migration;addTermsBytes(com.google.protobuf.ByteString value) Will be [deprecated = true] post migration;build()clear()Cannot contain duplicates or the query term.Terms from the search query.Will be [deprecated = true] post migration;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDoNotAssociateTerms(int index) Cannot contain duplicates or the query term.com.google.protobuf.ByteStringgetDoNotAssociateTermsBytes(int index) Cannot contain duplicates or the query term.intCannot contain duplicates or the query term.com.google.protobuf.ProtocolStringListCannot contain duplicates or the query term.getQueryTerms(int index) Terms from the search query.com.google.protobuf.ByteStringgetQueryTermsBytes(int index) Terms from the search query.intTerms from the search query.com.google.protobuf.ProtocolStringListTerms from the search query.getTerms(int index) Will be [deprecated = true] post migration;com.google.protobuf.ByteStringgetTermsBytes(int index) Will be [deprecated = true] post migration;intWill be [deprecated = true] post migration;com.google.protobuf.ProtocolStringListWill be [deprecated = true] post migration;protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDoNotAssociateTerms(int index, String value) Cannot contain duplicates or the query term.setQueryTerms(int index, String value) Terms from the search query.Will be [deprecated = true] post migration;Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Rule.DoNotAssociateAction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Rule.DoNotAssociateAction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Rule.DoNotAssociateAction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Rule.DoNotAssociateAction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Rule.DoNotAssociateAction.Builder>
-
mergeFrom
public Rule.DoNotAssociateAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Rule.DoNotAssociateAction.Builder>- Throws:
IOException
-
getQueryTermsList
public com.google.protobuf.ProtocolStringList getQueryTermsList()Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.
repeated string query_terms = 2;- Specified by:
getQueryTermsListin interfaceRule.DoNotAssociateActionOrBuilder- Returns:
- A list containing the queryTerms.
-
getQueryTermsCount
public int getQueryTermsCount()Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.
repeated string query_terms = 2;- Specified by:
getQueryTermsCountin interfaceRule.DoNotAssociateActionOrBuilder- Returns:
- The count of queryTerms.
-
getQueryTerms
Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.
repeated string query_terms = 2;- Specified by:
getQueryTermsin interfaceRule.DoNotAssociateActionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The queryTerms at the given index.
-
getQueryTermsBytes
public com.google.protobuf.ByteString getQueryTermsBytes(int index) Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.
repeated string query_terms = 2;- Specified by:
getQueryTermsBytesin interfaceRule.DoNotAssociateActionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the queryTerms at the given index.
-
setQueryTerms
Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.
repeated string query_terms = 2;- Parameters:
index- The index to set the value at.value- The queryTerms to set.- Returns:
- This builder for chaining.
-
addQueryTerms
Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.
repeated string query_terms = 2;- Parameters:
value- The queryTerms to add.- Returns:
- This builder for chaining.
-
addAllQueryTerms
Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.
repeated string query_terms = 2;- Parameters:
values- The queryTerms to add.- Returns:
- This builder for chaining.
-
clearQueryTerms
Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.
repeated string query_terms = 2;- Returns:
- This builder for chaining.
-
addQueryTermsBytes
Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.
repeated string query_terms = 2;- Parameters:
value- The bytes of the queryTerms to add.- Returns:
- This builder for chaining.
-
getDoNotAssociateTermsList
public com.google.protobuf.ProtocolStringList getDoNotAssociateTermsList()Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;- Specified by:
getDoNotAssociateTermsListin interfaceRule.DoNotAssociateActionOrBuilder- Returns:
- A list containing the doNotAssociateTerms.
-
getDoNotAssociateTermsCount
public int getDoNotAssociateTermsCount()Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;- Specified by:
getDoNotAssociateTermsCountin interfaceRule.DoNotAssociateActionOrBuilder- Returns:
- The count of doNotAssociateTerms.
-
getDoNotAssociateTerms
Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;- Specified by:
getDoNotAssociateTermsin interfaceRule.DoNotAssociateActionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The doNotAssociateTerms at the given index.
-
getDoNotAssociateTermsBytes
public com.google.protobuf.ByteString getDoNotAssociateTermsBytes(int index) Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;- Specified by:
getDoNotAssociateTermsBytesin interfaceRule.DoNotAssociateActionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the doNotAssociateTerms at the given index.
-
setDoNotAssociateTerms
Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;- Parameters:
index- The index to set the value at.value- The doNotAssociateTerms to set.- Returns:
- This builder for chaining.
-
addDoNotAssociateTerms
Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;- Parameters:
value- The doNotAssociateTerms to add.- Returns:
- This builder for chaining.
-
addAllDoNotAssociateTerms
Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;- Parameters:
values- The doNotAssociateTerms to add.- Returns:
- This builder for chaining.
-
clearDoNotAssociateTerms
Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;- Returns:
- This builder for chaining.
-
addDoNotAssociateTermsBytes
public Rule.DoNotAssociateAction.Builder addDoNotAssociateTermsBytes(com.google.protobuf.ByteString value) Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;- Parameters:
value- The bytes of the doNotAssociateTerms to add.- Returns:
- This builder for chaining.
-
getTermsList
public com.google.protobuf.ProtocolStringList getTermsList()Will be [deprecated = true] post migration;
repeated string terms = 1;- Specified by:
getTermsListin interfaceRule.DoNotAssociateActionOrBuilder- Returns:
- A list containing the terms.
-
getTermsCount
public int getTermsCount()Will be [deprecated = true] post migration;
repeated string terms = 1;- Specified by:
getTermsCountin interfaceRule.DoNotAssociateActionOrBuilder- Returns:
- The count of terms.
-
getTerms
Will be [deprecated = true] post migration;
repeated string terms = 1;- Specified by:
getTermsin interfaceRule.DoNotAssociateActionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The terms at the given index.
-
getTermsBytes
public com.google.protobuf.ByteString getTermsBytes(int index) Will be [deprecated = true] post migration;
repeated string terms = 1;- Specified by:
getTermsBytesin interfaceRule.DoNotAssociateActionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the terms at the given index.
-
setTerms
Will be [deprecated = true] post migration;
repeated string terms = 1;- Parameters:
index- The index to set the value at.value- The terms to set.- Returns:
- This builder for chaining.
-
addTerms
Will be [deprecated = true] post migration;
repeated string terms = 1;- Parameters:
value- The terms to add.- Returns:
- This builder for chaining.
-
addAllTerms
Will be [deprecated = true] post migration;
repeated string terms = 1;- Parameters:
values- The terms to add.- Returns:
- This builder for chaining.
-
clearTerms
Will be [deprecated = true] post migration;
repeated string terms = 1;- Returns:
- This builder for chaining.
-
addTermsBytes
Will be [deprecated = true] post migration;
repeated string terms = 1;- Parameters:
value- The bytes of the terms to add.- Returns:
- This builder for chaining.
-