Package com.google.cloud.retail.v2beta
Class Rule.DoNotAssociateAction.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
- com.google.cloud.retail.v2beta.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.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 typegoogle.cloud.retail.v2beta.Rule.DoNotAssociateAction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.DoNotAssociateAction.BuilderaddAllDoNotAssociateTerms(Iterable<String> values)Cannot contain duplicates or the query term.Rule.DoNotAssociateAction.BuilderaddAllQueryTerms(Iterable<String> values)Terms from the search query.Rule.DoNotAssociateAction.BuilderaddAllTerms(Iterable<String> values)Will be [deprecated = true] post migration;Rule.DoNotAssociateAction.BuilderaddDoNotAssociateTerms(String value)Cannot contain duplicates or the query term.Rule.DoNotAssociateAction.BuilderaddDoNotAssociateTermsBytes(com.google.protobuf.ByteString value)Cannot contain duplicates or the query term.Rule.DoNotAssociateAction.BuilderaddQueryTerms(String value)Terms from the search query.Rule.DoNotAssociateAction.BuilderaddQueryTermsBytes(com.google.protobuf.ByteString value)Terms from the search query.Rule.DoNotAssociateAction.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Rule.DoNotAssociateAction.BuilderaddTerms(String value)Will be [deprecated = true] post migration;Rule.DoNotAssociateAction.BuilderaddTermsBytes(com.google.protobuf.ByteString value)Will be [deprecated = true] post migration;Rule.DoNotAssociateActionbuild()Rule.DoNotAssociateActionbuildPartial()Rule.DoNotAssociateAction.Builderclear()Rule.DoNotAssociateAction.BuilderclearDoNotAssociateTerms()Cannot contain duplicates or the query term.Rule.DoNotAssociateAction.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Rule.DoNotAssociateAction.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Rule.DoNotAssociateAction.BuilderclearQueryTerms()Terms from the search query.Rule.DoNotAssociateAction.BuilderclearTerms()Will be [deprecated = true] post migration;Rule.DoNotAssociateAction.Builderclone()Rule.DoNotAssociateActiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetDoNotAssociateTerms(int index)Cannot contain duplicates or the query term.com.google.protobuf.ByteStringgetDoNotAssociateTermsBytes(int index)Cannot contain duplicates or the query term.intgetDoNotAssociateTermsCount()Cannot contain duplicates or the query term.com.google.protobuf.ProtocolStringListgetDoNotAssociateTermsList()Cannot contain duplicates or the query term.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.com.google.protobuf.ProtocolStringListgetQueryTermsList()Terms from the search query.StringgetTerms(int index)Will be [deprecated = true] post migration;com.google.protobuf.ByteStringgetTermsBytes(int index)Will be [deprecated = true] post migration;intgetTermsCount()Will be [deprecated = true] post migration;com.google.protobuf.ProtocolStringListgetTermsList()Will be [deprecated = true] post migration;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Rule.DoNotAssociateAction.BuildermergeFrom(Rule.DoNotAssociateAction other)Rule.DoNotAssociateAction.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Rule.DoNotAssociateAction.BuildermergeFrom(com.google.protobuf.Message other)Rule.DoNotAssociateAction.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Rule.DoNotAssociateAction.BuildersetDoNotAssociateTerms(int index, String value)Cannot contain duplicates or the query term.Rule.DoNotAssociateAction.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Rule.DoNotAssociateAction.BuildersetQueryTerms(int index, String value)Terms from the search query.Rule.DoNotAssociateAction.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Rule.DoNotAssociateAction.BuildersetTerms(int index, String value)Will be [deprecated = true] post migration;Rule.DoNotAssociateAction.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
getDefaultInstanceForType
public Rule.DoNotAssociateAction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Rule.DoNotAssociateAction build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Rule.DoNotAssociateAction buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Rule.DoNotAssociateAction.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
setField
public Rule.DoNotAssociateAction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
clearField
public Rule.DoNotAssociateAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
clearOneof
public Rule.DoNotAssociateAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
setRepeatedField
public Rule.DoNotAssociateAction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
addRepeatedField
public Rule.DoNotAssociateAction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
mergeFrom
public Rule.DoNotAssociateAction.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Rule.DoNotAssociateAction.Builder>
-
mergeFrom
public Rule.DoNotAssociateAction.Builder mergeFrom(Rule.DoNotAssociateAction other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public 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;- 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
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;- Parameters:
index- The index to set the value at.value- The queryTerms to set.- Returns:
- This builder for chaining.
-
addQueryTerms
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;- Parameters:
value- The queryTerms to add.- Returns:
- This builder for chaining.
-
addAllQueryTerms
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;- Parameters:
values- The queryTerms to add.- Returns:
- This builder for chaining.
-
clearQueryTerms
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;- Returns:
- This builder for chaining.
-
addQueryTermsBytes
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;- 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
public String getDoNotAssociateTerms(int index)
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
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;- Parameters:
index- The index to set the value at.value- The doNotAssociateTerms to set.- Returns:
- This builder for chaining.
-
addDoNotAssociateTerms
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;- Parameters:
value- The doNotAssociateTerms to add.- Returns:
- This builder for chaining.
-
addAllDoNotAssociateTerms
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;- Parameters:
values- The doNotAssociateTerms to add.- Returns:
- This builder for chaining.
-
clearDoNotAssociateTerms
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;- 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
public String getTerms(int index)
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
public Rule.DoNotAssociateAction.Builder setTerms(int index, String value)
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
public Rule.DoNotAssociateAction.Builder addTerms(String value)
Will be [deprecated = true] post migration;
repeated string terms = 1;- Parameters:
value- The terms to add.- Returns:
- This builder for chaining.
-
addAllTerms
public Rule.DoNotAssociateAction.Builder addAllTerms(Iterable<String> values)
Will be [deprecated = true] post migration;
repeated string terms = 1;- Parameters:
values- The terms to add.- Returns:
- This builder for chaining.
-
clearTerms
public Rule.DoNotAssociateAction.Builder clearTerms()
Will be [deprecated = true] post migration;
repeated string terms = 1;- Returns:
- This builder for chaining.
-
addTermsBytes
public Rule.DoNotAssociateAction.Builder addTermsBytes(com.google.protobuf.ByteString value)
Will be [deprecated = true] post migration;
repeated string terms = 1;- Parameters:
value- The bytes of the terms to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Rule.DoNotAssociateAction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
mergeUnknownFields
public final Rule.DoNotAssociateAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
-