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.GeneratedMessageV3.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.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.v2alpha.Rule.DoNotAssociateAction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(Rule.DoNotAssociateAction other)
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
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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
clear
public Rule.DoNotAssociateAction.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
getDefaultInstanceForType
public Rule.DoNotAssociateAction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Rule.DoNotAssociateAction build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Rule.DoNotAssociateAction buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Rule.DoNotAssociateAction.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
setField
public Rule.DoNotAssociateAction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
clearField
public Rule.DoNotAssociateAction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
clearOneof
public Rule.DoNotAssociateAction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
addRepeatedField
public Rule.DoNotAssociateAction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
mergeFrom
public Rule.DoNotAssociateAction.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Rule.DoNotAssociateAction.Builder>
-
mergeFrom
public Rule.DoNotAssociateAction.Builder mergeFrom(Rule.DoNotAssociateAction other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getQueryTermsList
in 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:
getQueryTermsCount
in 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:
getQueryTerms
in 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:
getQueryTermsBytes
in 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:
getDoNotAssociateTermsList
in 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:
getDoNotAssociateTermsCount
in 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:
getDoNotAssociateTerms
in 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:
getDoNotAssociateTermsBytes
in 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:
getTermsList
in interfaceRule.DoNotAssociateActionOrBuilder
- Returns:
- A list containing the terms.
-
getTermsCount
public int getTermsCount()
Will be [deprecated = true] post migration;
repeated string terms = 1;
- Specified by:
getTermsCount
in 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:
getTerms
in 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:
getTermsBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
mergeUnknownFields
public final Rule.DoNotAssociateAction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Rule.DoNotAssociateAction.Builder>
-
-