Package com.google.cloud.retail.v2alpha
Class Condition
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.retail.v2alpha.Condition
- All Implemented Interfaces:
ConditionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Condition
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMetadata that is used to define a condition that triggers an action.static final classQuery terms that we want to match on.static interfacestatic final classUsed for time-dependent conditions.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetActiveTimeRange(int index) 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 Conditionstatic final com.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.com.google.protobuf.Parser<Condition>getQueryTerms(int index) 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.intinthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Condition.Builderstatic Condition.BuildernewBuilder(Condition prototype) protected Condition.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ConditionparseDelimitedFrom(InputStream input) static ConditionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConditionparseFrom(byte[] data) static ConditionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConditionparseFrom(com.google.protobuf.ByteString data) static ConditionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConditionparseFrom(com.google.protobuf.CodedInputStream input) static ConditionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConditionparseFrom(InputStream input) static ConditionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ConditionparseFrom(ByteBuffer data) static ConditionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Condition>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
QUERY_TERMS_FIELD_NUMBER
public static final int QUERY_TERMS_FIELD_NUMBER- See Also:
-
ACTIVE_TIME_RANGE_FIELD_NUMBER
public static final int ACTIVE_TIME_RANGE_FIELD_NUMBER- See Also:
-
PAGE_CATEGORIES_FIELD_NUMBER
public static final int PAGE_CATEGORIES_FIELD_NUMBER- See Also:
-
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Condition parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Condition parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Condition parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Condition parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Condition parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Condition parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Condition parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Condition parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Condition parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Condition.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-