Package com.google.cloud.retail.v2alpha
Class Condition.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Condition.Builder>
com.google.cloud.retail.v2alpha.Condition.Builder
- All Implemented Interfaces:
ConditionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Condition
public static final class Condition.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddActiveTimeRange(int index, Condition.TimeRange value) Range of time(s) specifying when Condition is active.addActiveTimeRange(int index, Condition.TimeRange.Builder builderForValue) Range of time(s) specifying when Condition is active.Range of time(s) specifying when Condition is active.addActiveTimeRange(Condition.TimeRange.Builder builderForValue) Range of time(s) specifying when Condition is active.Range of time(s) specifying when Condition is active.addActiveTimeRangeBuilder(int index) Range of time(s) specifying when Condition is active.addAllActiveTimeRange(Iterable<? extends Condition.TimeRange> values) Range of time(s) specifying when Condition is active.addAllPageCategories(Iterable<String> values) Used to support browse uses cases.addAllQueryTerms(Iterable<? extends Condition.QueryTerm> values) A list (up to 10 entries) of terms to match the query on.addPageCategories(String value) Used to support browse uses cases.addPageCategoriesBytes(com.google.protobuf.ByteString value) Used to support browse uses cases.addQueryTerms(int index, Condition.QueryTerm value) A list (up to 10 entries) of terms to match the query on.addQueryTerms(int index, Condition.QueryTerm.Builder builderForValue) A list (up to 10 entries) of terms to match the query on.addQueryTerms(Condition.QueryTerm value) A list (up to 10 entries) of terms to match the query on.addQueryTerms(Condition.QueryTerm.Builder builderForValue) A list (up to 10 entries) of terms to match the query on.A list (up to 10 entries) of terms to match the query on.addQueryTermsBuilder(int index) A list (up to 10 entries) of terms to match the query on.build()clear()Range of time(s) specifying when Condition is active.Used to support browse uses cases.A list (up to 10 entries) of terms to match the query on.getActiveTimeRange(int index) Range of time(s) specifying when Condition is active.getActiveTimeRangeBuilder(int index) Range of time(s) specifying when Condition is active.Range of time(s) specifying when Condition is active.intRange of time(s) specifying when Condition is active.Range of time(s) specifying when Condition is active.getActiveTimeRangeOrBuilder(int index) Range of time(s) specifying when Condition is active.List<? extends Condition.TimeRangeOrBuilder>Range of time(s) specifying when Condition is active.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetPageCategories(int index) Used to support browse uses cases.com.google.protobuf.ByteStringgetPageCategoriesBytes(int index) Used to support browse uses cases.intUsed to support browse uses cases.com.google.protobuf.ProtocolStringListUsed to support browse uses cases.getQueryTerms(int index) A list (up to 10 entries) of terms to match the query on.getQueryTermsBuilder(int index) A list (up to 10 entries) of terms to match the query on.A list (up to 10 entries) of terms to match the query on.intA list (up to 10 entries) of terms to match the query on.A list (up to 10 entries) of terms to match the query on.getQueryTermsOrBuilder(int index) A list (up to 10 entries) of terms to match the query on.List<? extends Condition.QueryTermOrBuilder>A list (up to 10 entries) of terms to match the query on.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeActiveTimeRange(int index) Range of time(s) specifying when Condition is active.removeQueryTerms(int index) A list (up to 10 entries) of terms to match the query on.setActiveTimeRange(int index, Condition.TimeRange value) Range of time(s) specifying when Condition is active.setActiveTimeRange(int index, Condition.TimeRange.Builder builderForValue) Range of time(s) specifying when Condition is active.setPageCategories(int index, String value) Used to support browse uses cases.setQueryTerms(int index, Condition.QueryTerm value) A list (up to 10 entries) of terms to match the query on.setQueryTerms(int index, Condition.QueryTerm.Builder builderForValue) A list (up to 10 entries) of terms to match the query on.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<Condition.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<Condition.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<Condition.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<Condition.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Condition.Builder>
-
mergeFrom
public Condition.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<Condition.Builder>- Throws:
IOException
-
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;- Specified by:
getQueryTermsListin interfaceConditionOrBuilder
-
getQueryTermsCount
public 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;- Specified by:
getQueryTermsCountin interfaceConditionOrBuilder
-
getQueryTerms
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;- Specified by:
getQueryTermsin interfaceConditionOrBuilder
-
setQueryTerms
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; -
setQueryTerms
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; -
addQueryTerms
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; -
addQueryTerms
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; -
addQueryTerms
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; -
addQueryTerms
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; -
addAllQueryTerms
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; -
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; -
removeQueryTerms
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; -
getQueryTermsBuilder
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
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;- Specified by:
getQueryTermsOrBuilderin interfaceConditionOrBuilder
-
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;- Specified by:
getQueryTermsOrBuilderListin interfaceConditionOrBuilder
-
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; -
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; -
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; -
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;- Specified by:
getActiveTimeRangeListin interfaceConditionOrBuilder
-
getActiveTimeRangeCount
public 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;- Specified by:
getActiveTimeRangeCountin interfaceConditionOrBuilder
-
getActiveTimeRange
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;- Specified by:
getActiveTimeRangein interfaceConditionOrBuilder
-
setActiveTimeRange
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; -
setActiveTimeRange
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; -
addActiveTimeRange
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; -
addActiveTimeRange
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; -
addActiveTimeRange
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; -
addActiveTimeRange
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; -
addAllActiveTimeRange
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; -
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; -
removeActiveTimeRange
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; -
getActiveTimeRangeBuilder
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
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;- Specified by:
getActiveTimeRangeOrBuilderin interfaceConditionOrBuilder
-
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;- Specified by:
getActiveTimeRangeOrBuilderListin interfaceConditionOrBuilder
-
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; -
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; -
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; -
getPageCategoriesList
public com.google.protobuf.ProtocolStringList getPageCategoriesList()Used to support browse uses cases. A list (up to 10 entries) of categories or departments. The format should be the same as [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
repeated string page_categories = 4;- Specified by:
getPageCategoriesListin interfaceConditionOrBuilder- Returns:
- A list containing the pageCategories.
-
getPageCategoriesCount
public int getPageCategoriesCount()Used to support browse uses cases. A list (up to 10 entries) of categories or departments. The format should be the same as [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
repeated string page_categories = 4;- Specified by:
getPageCategoriesCountin interfaceConditionOrBuilder- Returns:
- The count of pageCategories.
-
getPageCategories
Used to support browse uses cases. A list (up to 10 entries) of categories or departments. The format should be the same as [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
repeated string page_categories = 4;- Specified by:
getPageCategoriesin interfaceConditionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The pageCategories at the given index.
-
getPageCategoriesBytes
public com.google.protobuf.ByteString getPageCategoriesBytes(int index) Used to support browse uses cases. A list (up to 10 entries) of categories or departments. The format should be the same as [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
repeated string page_categories = 4;- Specified by:
getPageCategoriesBytesin interfaceConditionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the pageCategories at the given index.
-
setPageCategories
Used to support browse uses cases. A list (up to 10 entries) of categories or departments. The format should be the same as [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
repeated string page_categories = 4;- Parameters:
index- The index to set the value at.value- The pageCategories to set.- Returns:
- This builder for chaining.
-
addPageCategories
Used to support browse uses cases. A list (up to 10 entries) of categories or departments. The format should be the same as [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
repeated string page_categories = 4;- Parameters:
value- The pageCategories to add.- Returns:
- This builder for chaining.
-
addAllPageCategories
Used to support browse uses cases. A list (up to 10 entries) of categories or departments. The format should be the same as [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
repeated string page_categories = 4;- Parameters:
values- The pageCategories to add.- Returns:
- This builder for chaining.
-
clearPageCategories
Used to support browse uses cases. A list (up to 10 entries) of categories or departments. The format should be the same as [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
repeated string page_categories = 4;- Returns:
- This builder for chaining.
-
addPageCategoriesBytes
Used to support browse uses cases. A list (up to 10 entries) of categories or departments. The format should be the same as [UserEvent.page_categories][google.cloud.retail.v2alpha.UserEvent.page_categories];
repeated string page_categories = 4;- Parameters:
value- The bytes of the pageCategories to add.- Returns:
- This builder for chaining.
-