public static final class Condition.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder> implements ConditionOrBuilder
Metadata that is used to define a condition that triggers an action. A valid condition must specify at least one of 'query_terms' or 'products_filter'. If multiple fields are specified, the condition is met if all the fields are satisfied e.g. if a set of query terms and product_filter are set, then only items matching the product_filter for requests with a query matching the query terms wil get boosted.Protobuf type
google.cloud.retail.v2alpha.Condition| Modifier and Type | Method and Description |
|---|---|
Condition.Builder |
addActiveTimeRange(Condition.TimeRange.Builder builderForValue)
Range of time(s) specifying when Condition is active.
|
Condition.Builder |
addActiveTimeRange(Condition.TimeRange value)
Range of time(s) specifying when Condition is active.
|
Condition.Builder |
addActiveTimeRange(int index,
Condition.TimeRange.Builder builderForValue)
Range of time(s) specifying when Condition is active.
|
Condition.Builder |
addActiveTimeRange(int index,
Condition.TimeRange value)
Range of time(s) specifying when Condition is active.
|
Condition.TimeRange.Builder |
addActiveTimeRangeBuilder()
Range of time(s) specifying when Condition is active.
|
Condition.TimeRange.Builder |
addActiveTimeRangeBuilder(int index)
Range of time(s) specifying when Condition is active.
|
Condition.Builder |
addAllActiveTimeRange(Iterable<? extends Condition.TimeRange> values)
Range of time(s) specifying when Condition is active.
|
Condition.Builder |
addAllQueryTerms(Iterable<? extends Condition.QueryTerm> values)
A list (up to 10 entries) of terms to match the query on.
|
Condition.Builder |
addQueryTerms(Condition.QueryTerm.Builder builderForValue)
A list (up to 10 entries) of terms to match the query on.
|
Condition.Builder |
addQueryTerms(Condition.QueryTerm value)
A list (up to 10 entries) of terms to match the query on.
|
Condition.Builder |
addQueryTerms(int index,
Condition.QueryTerm.Builder builderForValue)
A list (up to 10 entries) of terms to match the query on.
|
Condition.Builder |
addQueryTerms(int index,
Condition.QueryTerm value)
A list (up to 10 entries) of terms to match the query on.
|
Condition.QueryTerm.Builder |
addQueryTermsBuilder()
A list (up to 10 entries) of terms to match the query on.
|
Condition.QueryTerm.Builder |
addQueryTermsBuilder(int index)
A list (up to 10 entries) of terms to match the query on.
|
Condition.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Condition |
build() |
Condition |
buildPartial() |
Condition.Builder |
clear() |
Condition.Builder |
clearActiveTimeRange()
Range of time(s) specifying when Condition is active.
|
Condition.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Condition.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Condition.Builder |
clearQueryTerms()
A list (up to 10 entries) of terms to match the query on.
|
Condition.Builder |
clone() |
Condition.TimeRange |
getActiveTimeRange(int index)
Range of time(s) specifying when Condition is active.
|
Condition.TimeRange.Builder |
getActiveTimeRangeBuilder(int index)
Range of time(s) specifying when Condition is active.
|
List<Condition.TimeRange.Builder> |
getActiveTimeRangeBuilderList()
Range of time(s) specifying when Condition is active.
|
int |
getActiveTimeRangeCount()
Range of time(s) specifying when Condition is active.
|
List<Condition.TimeRange> |
getActiveTimeRangeList()
Range of time(s) specifying when Condition is active.
|
Condition.TimeRangeOrBuilder |
getActiveTimeRangeOrBuilder(int index)
Range of time(s) specifying when Condition is active.
|
List<? extends Condition.TimeRangeOrBuilder> |
getActiveTimeRangeOrBuilderList()
Range of time(s) specifying when Condition is active.
|
Condition |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Condition.QueryTerm |
getQueryTerms(int index)
A list (up to 10 entries) of terms to match the query on.
|
Condition.QueryTerm.Builder |
getQueryTermsBuilder(int index)
A list (up to 10 entries) of terms to match the query on.
|
List<Condition.QueryTerm.Builder> |
getQueryTermsBuilderList()
A list (up to 10 entries) of terms to match the query on.
|
int |
getQueryTermsCount()
A list (up to 10 entries) of terms to match the query on.
|
List<Condition.QueryTerm> |
getQueryTermsList()
A list (up to 10 entries) of terms to match the query on.
|
Condition.QueryTermOrBuilder |
getQueryTermsOrBuilder(int index)
A list (up to 10 entries) of terms to match the query on.
|
List<? extends Condition.QueryTermOrBuilder> |
getQueryTermsOrBuilderList()
A list (up to 10 entries) of terms to match the query on.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Condition.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Condition.Builder |
mergeFrom(Condition other) |
Condition.Builder |
mergeFrom(com.google.protobuf.Message other) |
Condition.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Condition.Builder |
removeActiveTimeRange(int index)
Range of time(s) specifying when Condition is active.
|
Condition.Builder |
removeQueryTerms(int index)
A list (up to 10 entries) of terms to match the query on.
|
Condition.Builder |
setActiveTimeRange(int index,
Condition.TimeRange.Builder builderForValue)
Range of time(s) specifying when Condition is active.
|
Condition.Builder |
setActiveTimeRange(int index,
Condition.TimeRange value)
Range of time(s) specifying when Condition is active.
|
Condition.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Condition.Builder |
setQueryTerms(int index,
Condition.QueryTerm.Builder builderForValue)
A list (up to 10 entries) of terms to match the query on.
|
Condition.Builder |
setQueryTerms(int index,
Condition.QueryTerm value)
A list (up to 10 entries) of terms to match the query on.
|
Condition.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Condition.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<Condition.Builder>public Condition.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.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<Condition.Builder>public Condition getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Condition build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Condition buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Condition.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>public Condition.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<Condition.Builder>public Condition.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>public Condition.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>public Condition.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<Condition.Builder>public Condition.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<Condition.Builder>public Condition.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Condition.Builder>public Condition.Builder mergeFrom(Condition other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>public Condition.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<Condition.Builder>IOExceptionpublic List<Condition.QueryTerm> getQueryTermsList()
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;getQueryTermsList in interface ConditionOrBuilderpublic int getQueryTermsCount()
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;getQueryTermsCount in interface ConditionOrBuilderpublic Condition.QueryTerm getQueryTerms(int index)
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;getQueryTerms in interface ConditionOrBuilderpublic Condition.Builder setQueryTerms(int index, Condition.QueryTerm value)
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;public Condition.Builder setQueryTerms(int index, Condition.QueryTerm.Builder builderForValue)
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;public Condition.Builder addQueryTerms(Condition.QueryTerm value)
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;public Condition.Builder addQueryTerms(int index, Condition.QueryTerm value)
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;public Condition.Builder addQueryTerms(Condition.QueryTerm.Builder builderForValue)
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;public Condition.Builder addQueryTerms(int index, Condition.QueryTerm.Builder builderForValue)
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;public Condition.Builder addAllQueryTerms(Iterable<? extends Condition.QueryTerm> values)
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;public Condition.Builder clearQueryTerms()
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;public Condition.Builder removeQueryTerms(int index)
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;public Condition.QueryTerm.Builder getQueryTermsBuilder(int index)
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;public Condition.QueryTermOrBuilder getQueryTermsOrBuilder(int index)
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;getQueryTermsOrBuilder in interface ConditionOrBuilderpublic List<? extends Condition.QueryTermOrBuilder> getQueryTermsOrBuilderList()
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;getQueryTermsOrBuilderList in interface ConditionOrBuilderpublic Condition.QueryTerm.Builder addQueryTermsBuilder()
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;public Condition.QueryTerm.Builder addQueryTermsBuilder(int index)
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;public List<Condition.QueryTerm.Builder> getQueryTermsBuilderList()
A list (up to 10 entries) of terms to match the query on. If not specified, match all queries. If many query terms are specified, the condition is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2alpha.Condition.QueryTerm query_terms = 1;public List<Condition.TimeRange> getActiveTimeRangeList()
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;getActiveTimeRangeList in interface ConditionOrBuilderpublic int getActiveTimeRangeCount()
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;getActiveTimeRangeCount in interface ConditionOrBuilderpublic Condition.TimeRange getActiveTimeRange(int index)
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;getActiveTimeRange in interface ConditionOrBuilderpublic Condition.Builder setActiveTimeRange(int index, Condition.TimeRange value)
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;public Condition.Builder setActiveTimeRange(int index, Condition.TimeRange.Builder builderForValue)
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;public Condition.Builder addActiveTimeRange(Condition.TimeRange value)
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;public Condition.Builder addActiveTimeRange(int index, Condition.TimeRange value)
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;public Condition.Builder addActiveTimeRange(Condition.TimeRange.Builder builderForValue)
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;public Condition.Builder addActiveTimeRange(int index, Condition.TimeRange.Builder builderForValue)
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;public Condition.Builder addAllActiveTimeRange(Iterable<? extends Condition.TimeRange> values)
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;public Condition.Builder clearActiveTimeRange()
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;public Condition.Builder removeActiveTimeRange(int index)
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;public Condition.TimeRange.Builder getActiveTimeRangeBuilder(int index)
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;public Condition.TimeRangeOrBuilder getActiveTimeRangeOrBuilder(int index)
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;getActiveTimeRangeOrBuilder in interface ConditionOrBuilderpublic List<? extends Condition.TimeRangeOrBuilder> getActiveTimeRangeOrBuilderList()
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;getActiveTimeRangeOrBuilderList in interface ConditionOrBuilderpublic Condition.TimeRange.Builder addActiveTimeRangeBuilder()
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;public Condition.TimeRange.Builder addActiveTimeRangeBuilder(int index)
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;public List<Condition.TimeRange.Builder> getActiveTimeRangeBuilderList()
Range of time(s) specifying when Condition is active. Condition true if any time range matches.
repeated .google.cloud.retail.v2alpha.Condition.TimeRange active_time_range = 3;public final Condition.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>public final Condition.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Condition.Builder>Copyright © 2024 Google LLC. All rights reserved.