public static final class Rule.DoNotAssociateAction.Builder extends com.google.protobuf.GeneratedMessageV3.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| Modifier and Type | Method and Description |
|---|---|
Rule.DoNotAssociateAction.Builder |
addAllDoNotAssociateTerms(Iterable<String> values)
Cannot contain duplicates or the query term.
|
Rule.DoNotAssociateAction.Builder |
addAllQueryTerms(Iterable<String> values)
Terms from the search query.
|
Rule.DoNotAssociateAction.Builder |
addAllTerms(Iterable<String> values)
Will be [deprecated = true] post migration;
|
Rule.DoNotAssociateAction.Builder |
addDoNotAssociateTerms(String value)
Cannot contain duplicates or the query term.
|
Rule.DoNotAssociateAction.Builder |
addDoNotAssociateTermsBytes(com.google.protobuf.ByteString value)
Cannot contain duplicates or the query term.
|
Rule.DoNotAssociateAction.Builder |
addQueryTerms(String value)
Terms from the search query.
|
Rule.DoNotAssociateAction.Builder |
addQueryTermsBytes(com.google.protobuf.ByteString value)
Terms from the search query.
|
Rule.DoNotAssociateAction.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Rule.DoNotAssociateAction.Builder |
addTerms(String value)
Will be [deprecated = true] post migration;
|
Rule.DoNotAssociateAction.Builder |
addTermsBytes(com.google.protobuf.ByteString value)
Will be [deprecated = true] post migration;
|
Rule.DoNotAssociateAction |
build() |
Rule.DoNotAssociateAction |
buildPartial() |
Rule.DoNotAssociateAction.Builder |
clear() |
Rule.DoNotAssociateAction.Builder |
clearDoNotAssociateTerms()
Cannot contain duplicates or the query term.
|
Rule.DoNotAssociateAction.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Rule.DoNotAssociateAction.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Rule.DoNotAssociateAction.Builder |
clearQueryTerms()
Terms from the search query.
|
Rule.DoNotAssociateAction.Builder |
clearTerms()
Will be [deprecated = true] post migration;
|
Rule.DoNotAssociateAction.Builder |
clone() |
Rule.DoNotAssociateAction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDoNotAssociateTerms(int index)
Cannot contain duplicates or the query term.
|
com.google.protobuf.ByteString |
getDoNotAssociateTermsBytes(int index)
Cannot contain duplicates or the query term.
|
int |
getDoNotAssociateTermsCount()
Cannot contain duplicates or the query term.
|
com.google.protobuf.ProtocolStringList |
getDoNotAssociateTermsList()
Cannot contain duplicates or the query term.
|
String |
getQueryTerms(int index)
Terms from the search query.
|
com.google.protobuf.ByteString |
getQueryTermsBytes(int index)
Terms from the search query.
|
int |
getQueryTermsCount()
Terms from the search query.
|
com.google.protobuf.ProtocolStringList |
getQueryTermsList()
Terms from the search query.
|
String |
getTerms(int index)
Will be [deprecated = true] post migration;
|
com.google.protobuf.ByteString |
getTermsBytes(int index)
Will be [deprecated = true] post migration;
|
int |
getTermsCount()
Will be [deprecated = true] post migration;
|
com.google.protobuf.ProtocolStringList |
getTermsList()
Will be [deprecated = true] post migration;
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Rule.DoNotAssociateAction.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Rule.DoNotAssociateAction.Builder |
mergeFrom(com.google.protobuf.Message other) |
Rule.DoNotAssociateAction.Builder |
mergeFrom(Rule.DoNotAssociateAction other) |
Rule.DoNotAssociateAction.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Rule.DoNotAssociateAction.Builder |
setDoNotAssociateTerms(int index,
String value)
Cannot contain duplicates or the query term.
|
Rule.DoNotAssociateAction.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Rule.DoNotAssociateAction.Builder |
setQueryTerms(int index,
String value)
Terms from the search query.
|
Rule.DoNotAssociateAction.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Rule.DoNotAssociateAction.Builder |
setTerms(int index,
String value)
Will be [deprecated = true] post migration;
|
Rule.DoNotAssociateAction.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>public Rule.DoNotAssociateAction.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>public Rule.DoNotAssociateAction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Rule.DoNotAssociateAction build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Rule.DoNotAssociateAction buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Rule.DoNotAssociateAction.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>public Rule.DoNotAssociateAction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>public Rule.DoNotAssociateAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>public Rule.DoNotAssociateAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>public Rule.DoNotAssociateAction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>public Rule.DoNotAssociateAction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>public Rule.DoNotAssociateAction.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Rule.DoNotAssociateAction.Builder>public Rule.DoNotAssociateAction.Builder mergeFrom(Rule.DoNotAssociateAction other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>public Rule.DoNotAssociateAction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Rule.DoNotAssociateAction.Builder>IOExceptionpublic 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;getQueryTermsList in interface Rule.DoNotAssociateActionOrBuilderpublic 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;getQueryTermsCount in interface Rule.DoNotAssociateActionOrBuilderpublic String getQueryTerms(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;getQueryTerms in interface Rule.DoNotAssociateActionOrBuilderindex - The index of the element to return.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;getQueryTermsBytes in interface Rule.DoNotAssociateActionOrBuilderindex - The index of the value to return.public Rule.DoNotAssociateAction.Builder setQueryTerms(int index, String value)
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;index - The index to set the value at.value - The queryTerms to set.public Rule.DoNotAssociateAction.Builder addQueryTerms(String value)
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;value - The queryTerms to add.public Rule.DoNotAssociateAction.Builder addAllQueryTerms(Iterable<String> values)
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;values - The queryTerms to add.public Rule.DoNotAssociateAction.Builder 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;public Rule.DoNotAssociateAction.Builder addQueryTermsBytes(com.google.protobuf.ByteString value)
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;value - The bytes of the queryTerms to add.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;getDoNotAssociateTermsList in interface Rule.DoNotAssociateActionOrBuilderpublic int getDoNotAssociateTermsCount()
Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;getDoNotAssociateTermsCount in interface Rule.DoNotAssociateActionOrBuilderpublic String getDoNotAssociateTerms(int index)
Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;getDoNotAssociateTerms in interface Rule.DoNotAssociateActionOrBuilderindex - The index of the element to return.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;getDoNotAssociateTermsBytes in interface Rule.DoNotAssociateActionOrBuilderindex - The index of the value to return.public Rule.DoNotAssociateAction.Builder setDoNotAssociateTerms(int index, String value)
Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;index - The index to set the value at.value - The doNotAssociateTerms to set.public Rule.DoNotAssociateAction.Builder addDoNotAssociateTerms(String value)
Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;value - The doNotAssociateTerms to add.public Rule.DoNotAssociateAction.Builder addAllDoNotAssociateTerms(Iterable<String> values)
Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;values - The doNotAssociateTerms to add.public Rule.DoNotAssociateAction.Builder clearDoNotAssociateTerms()
Cannot contain duplicates or the query term. Can specify up to 100 terms.
repeated string do_not_associate_terms = 3;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;value - The bytes of the doNotAssociateTerms to add.public com.google.protobuf.ProtocolStringList getTermsList()
Will be [deprecated = true] post migration;
repeated string terms = 1;getTermsList in interface Rule.DoNotAssociateActionOrBuilderpublic int getTermsCount()
Will be [deprecated = true] post migration;
repeated string terms = 1;getTermsCount in interface Rule.DoNotAssociateActionOrBuilderpublic String getTerms(int index)
Will be [deprecated = true] post migration;
repeated string terms = 1;getTerms in interface Rule.DoNotAssociateActionOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getTermsBytes(int index)
Will be [deprecated = true] post migration;
repeated string terms = 1;getTermsBytes in interface Rule.DoNotAssociateActionOrBuilderindex - The index of the value to return.public Rule.DoNotAssociateAction.Builder setTerms(int index, String value)
Will be [deprecated = true] post migration;
repeated string terms = 1;index - The index to set the value at.value - The terms to set.public Rule.DoNotAssociateAction.Builder addTerms(String value)
Will be [deprecated = true] post migration;
repeated string terms = 1;value - The terms to add.public Rule.DoNotAssociateAction.Builder addAllTerms(Iterable<String> values)
Will be [deprecated = true] post migration;
repeated string terms = 1;values - The terms to add.public Rule.DoNotAssociateAction.Builder clearTerms()
Will be [deprecated = true] post migration;
repeated string terms = 1;public Rule.DoNotAssociateAction.Builder addTermsBytes(com.google.protobuf.ByteString value)
Will be [deprecated = true] post migration;
repeated string terms = 1;value - The bytes of the terms to add.public final Rule.DoNotAssociateAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>public final Rule.DoNotAssociateAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>Copyright © 2024 Google LLC. All rights reserved.