Class ProductEventDetail
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.recommendationengine.v1beta1.ProductEventDetail
-
- All Implemented Interfaces:
ProductEventDetailOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class ProductEventDetail extends com.google.protobuf.GeneratedMessageV3 implements ProductEventDetailOrBuilder
ProductEventDetail captures user event information specific to retail products.
Protobuf typegoogle.cloud.recommendationengine.v1beta1.ProductEventDetail- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProductEventDetail.BuilderProductEventDetail captures user event information specific to retail products.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCART_ID_FIELD_NUMBERstatic intLIST_ID_FIELD_NUMBERstatic intPAGE_CATEGORIES_FIELD_NUMBERstatic intPRODUCT_DETAILS_FIELD_NUMBERstatic intPURCHASE_TRANSACTION_FIELD_NUMBERstatic intSEARCH_QUERY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetCartId()Optional.com.google.protobuf.ByteStringgetCartIdBytes()Optional.static ProductEventDetailgetDefaultInstance()ProductEventDetailgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetListId()Required for `add-to-list` and `remove-from-list` events.com.google.protobuf.ByteStringgetListIdBytes()Required for `add-to-list` and `remove-from-list` events.CatalogItem.CategoryHierarchygetPageCategories(int index)Required for `category-page-view` events.intgetPageCategoriesCount()Required for `category-page-view` events.List<CatalogItem.CategoryHierarchy>getPageCategoriesList()Required for `category-page-view` events.CatalogItem.CategoryHierarchyOrBuildergetPageCategoriesOrBuilder(int index)Required for `category-page-view` events.List<? extends CatalogItem.CategoryHierarchyOrBuilder>getPageCategoriesOrBuilderList()Required for `category-page-view` events.com.google.protobuf.Parser<ProductEventDetail>getParserForType()ProductDetailgetProductDetails(int index)The main product details related to the event.intgetProductDetailsCount()The main product details related to the event.List<ProductDetail>getProductDetailsList()The main product details related to the event.ProductDetailOrBuildergetProductDetailsOrBuilder(int index)The main product details related to the event.List<? extends ProductDetailOrBuilder>getProductDetailsOrBuilderList()The main product details related to the event.PurchaseTransactiongetPurchaseTransaction()Optional.PurchaseTransactionOrBuildergetPurchaseTransactionOrBuilder()Optional.StringgetSearchQuery()Required for `search` events.com.google.protobuf.ByteStringgetSearchQueryBytes()Required for `search` events.intgetSerializedSize()inthashCode()booleanhasPurchaseTransaction()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ProductEventDetail.BuildernewBuilder()static ProductEventDetail.BuildernewBuilder(ProductEventDetail prototype)ProductEventDetail.BuildernewBuilderForType()protected ProductEventDetail.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ProductEventDetailparseDelimitedFrom(InputStream input)static ProductEventDetailparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProductEventDetailparseFrom(byte[] data)static ProductEventDetailparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProductEventDetailparseFrom(com.google.protobuf.ByteString data)static ProductEventDetailparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProductEventDetailparseFrom(com.google.protobuf.CodedInputStream input)static ProductEventDetailparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProductEventDetailparseFrom(InputStream input)static ProductEventDetailparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ProductEventDetailparseFrom(ByteBuffer data)static ProductEventDetailparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ProductEventDetail>parser()ProductEventDetail.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
SEARCH_QUERY_FIELD_NUMBER
public static final int SEARCH_QUERY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAGE_CATEGORIES_FIELD_NUMBER
public static final int PAGE_CATEGORIES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRODUCT_DETAILS_FIELD_NUMBER
public static final int PRODUCT_DETAILS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIST_ID_FIELD_NUMBER
public static final int LIST_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CART_ID_FIELD_NUMBER
public static final int CART_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PURCHASE_TRANSACTION_FIELD_NUMBER
public static final int PURCHASE_TRANSACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getSearchQuery
public String getSearchQuery()
Required for `search` events. Other event types should not set this field. The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
string search_query = 1;- Specified by:
getSearchQueryin interfaceProductEventDetailOrBuilder- Returns:
- The searchQuery.
-
getSearchQueryBytes
public com.google.protobuf.ByteString getSearchQueryBytes()
Required for `search` events. Other event types should not set this field. The user's search query as UTF-8 encoded text with a length limit of 5 KiB.
string search_query = 1;- Specified by:
getSearchQueryBytesin interfaceProductEventDetailOrBuilder- Returns:
- The bytes for searchQuery.
-
getPageCategoriesList
public List<CatalogItem.CategoryHierarchy> getPageCategoriesList()
Required for `category-page-view` events. Other event types should not set this field. The categories associated with a category page. Category pages include special pages such as sales or promotions. For instance, a special sale page may have the category hierarchy: categories : ["Sales", "2017 Black Friday Deals"].
repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2;- Specified by:
getPageCategoriesListin interfaceProductEventDetailOrBuilder
-
getPageCategoriesOrBuilderList
public List<? extends CatalogItem.CategoryHierarchyOrBuilder> getPageCategoriesOrBuilderList()
Required for `category-page-view` events. Other event types should not set this field. The categories associated with a category page. Category pages include special pages such as sales or promotions. For instance, a special sale page may have the category hierarchy: categories : ["Sales", "2017 Black Friday Deals"].
repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2;- Specified by:
getPageCategoriesOrBuilderListin interfaceProductEventDetailOrBuilder
-
getPageCategoriesCount
public int getPageCategoriesCount()
Required for `category-page-view` events. Other event types should not set this field. The categories associated with a category page. Category pages include special pages such as sales or promotions. For instance, a special sale page may have the category hierarchy: categories : ["Sales", "2017 Black Friday Deals"].
repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2;- Specified by:
getPageCategoriesCountin interfaceProductEventDetailOrBuilder
-
getPageCategories
public CatalogItem.CategoryHierarchy getPageCategories(int index)
Required for `category-page-view` events. Other event types should not set this field. The categories associated with a category page. Category pages include special pages such as sales or promotions. For instance, a special sale page may have the category hierarchy: categories : ["Sales", "2017 Black Friday Deals"].
repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2;- Specified by:
getPageCategoriesin interfaceProductEventDetailOrBuilder
-
getPageCategoriesOrBuilder
public CatalogItem.CategoryHierarchyOrBuilder getPageCategoriesOrBuilder(int index)
Required for `category-page-view` events. Other event types should not set this field. The categories associated with a category page. Category pages include special pages such as sales or promotions. For instance, a special sale page may have the category hierarchy: categories : ["Sales", "2017 Black Friday Deals"].
repeated .google.cloud.recommendationengine.v1beta1.CatalogItem.CategoryHierarchy page_categories = 2;- Specified by:
getPageCategoriesOrBuilderin interfaceProductEventDetailOrBuilder
-
getProductDetailsList
public List<ProductDetail> getProductDetailsList()
The main product details related to the event. This field is required for the following event types: * `add-to-cart` * `add-to-list` * `checkout-start` * `detail-page-view` * `purchase-complete` * `refund` * `remove-from-cart` * `remove-from-list` This field is optional for the following event types: * `page-visit` * `shopping-cart-page-view` - note that 'product_details' should be set for this unless the shopping cart is empty. This field is not allowed for the following event types: * `category-page-view` * `home-page-view` * `search`
repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3;- Specified by:
getProductDetailsListin interfaceProductEventDetailOrBuilder
-
getProductDetailsOrBuilderList
public List<? extends ProductDetailOrBuilder> getProductDetailsOrBuilderList()
The main product details related to the event. This field is required for the following event types: * `add-to-cart` * `add-to-list` * `checkout-start` * `detail-page-view` * `purchase-complete` * `refund` * `remove-from-cart` * `remove-from-list` This field is optional for the following event types: * `page-visit` * `shopping-cart-page-view` - note that 'product_details' should be set for this unless the shopping cart is empty. This field is not allowed for the following event types: * `category-page-view` * `home-page-view` * `search`
repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3;- Specified by:
getProductDetailsOrBuilderListin interfaceProductEventDetailOrBuilder
-
getProductDetailsCount
public int getProductDetailsCount()
The main product details related to the event. This field is required for the following event types: * `add-to-cart` * `add-to-list` * `checkout-start` * `detail-page-view` * `purchase-complete` * `refund` * `remove-from-cart` * `remove-from-list` This field is optional for the following event types: * `page-visit` * `shopping-cart-page-view` - note that 'product_details' should be set for this unless the shopping cart is empty. This field is not allowed for the following event types: * `category-page-view` * `home-page-view` * `search`
repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3;- Specified by:
getProductDetailsCountin interfaceProductEventDetailOrBuilder
-
getProductDetails
public ProductDetail getProductDetails(int index)
The main product details related to the event. This field is required for the following event types: * `add-to-cart` * `add-to-list` * `checkout-start` * `detail-page-view` * `purchase-complete` * `refund` * `remove-from-cart` * `remove-from-list` This field is optional for the following event types: * `page-visit` * `shopping-cart-page-view` - note that 'product_details' should be set for this unless the shopping cart is empty. This field is not allowed for the following event types: * `category-page-view` * `home-page-view` * `search`
repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3;- Specified by:
getProductDetailsin interfaceProductEventDetailOrBuilder
-
getProductDetailsOrBuilder
public ProductDetailOrBuilder getProductDetailsOrBuilder(int index)
The main product details related to the event. This field is required for the following event types: * `add-to-cart` * `add-to-list` * `checkout-start` * `detail-page-view` * `purchase-complete` * `refund` * `remove-from-cart` * `remove-from-list` This field is optional for the following event types: * `page-visit` * `shopping-cart-page-view` - note that 'product_details' should be set for this unless the shopping cart is empty. This field is not allowed for the following event types: * `category-page-view` * `home-page-view` * `search`
repeated .google.cloud.recommendationengine.v1beta1.ProductDetail product_details = 3;- Specified by:
getProductDetailsOrBuilderin interfaceProductEventDetailOrBuilder
-
getListId
public String getListId()
Required for `add-to-list` and `remove-from-list` events. The id or name of the list that the item is being added to or removed from. Other event types should not set this field.
string list_id = 4;- Specified by:
getListIdin interfaceProductEventDetailOrBuilder- Returns:
- The listId.
-
getListIdBytes
public com.google.protobuf.ByteString getListIdBytes()
Required for `add-to-list` and `remove-from-list` events. The id or name of the list that the item is being added to or removed from. Other event types should not set this field.
string list_id = 4;- Specified by:
getListIdBytesin interfaceProductEventDetailOrBuilder- Returns:
- The bytes for listId.
-
getCartId
public String getCartId()
Optional. The id or name of the associated shopping cart. This id is used to associate multiple items added or present in the cart before purchase. This can only be set for `add-to-cart`, `remove-from-cart`, `checkout-start`, `purchase-complete`, or `shopping-cart-page-view` events.
string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCartIdin interfaceProductEventDetailOrBuilder- Returns:
- The cartId.
-
getCartIdBytes
public com.google.protobuf.ByteString getCartIdBytes()
Optional. The id or name of the associated shopping cart. This id is used to associate multiple items added or present in the cart before purchase. This can only be set for `add-to-cart`, `remove-from-cart`, `checkout-start`, `purchase-complete`, or `shopping-cart-page-view` events.
string cart_id = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCartIdBytesin interfaceProductEventDetailOrBuilder- Returns:
- The bytes for cartId.
-
hasPurchaseTransaction
public boolean hasPurchaseTransaction()
Optional. A transaction represents the entire purchase transaction. Required for `purchase-complete` events. Optional for `checkout-start` events. Other event types should not set this field.
.google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasPurchaseTransactionin interfaceProductEventDetailOrBuilder- Returns:
- Whether the purchaseTransaction field is set.
-
getPurchaseTransaction
public PurchaseTransaction getPurchaseTransaction()
Optional. A transaction represents the entire purchase transaction. Required for `purchase-complete` events. Optional for `checkout-start` events. Other event types should not set this field.
.google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPurchaseTransactionin interfaceProductEventDetailOrBuilder- Returns:
- The purchaseTransaction.
-
getPurchaseTransactionOrBuilder
public PurchaseTransactionOrBuilder getPurchaseTransactionOrBuilder()
Optional. A transaction represents the entire purchase transaction. Required for `purchase-complete` events. Optional for `checkout-start` events. Other event types should not set this field.
.google.cloud.recommendationengine.v1beta1.PurchaseTransaction purchase_transaction = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPurchaseTransactionOrBuilderin interfaceProductEventDetailOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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 ProductEventDetail parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductEventDetail parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductEventDetail parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductEventDetail parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductEventDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductEventDetail parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ProductEventDetail parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ProductEventDetail parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ProductEventDetail parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ProductEventDetail parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ProductEventDetail parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ProductEventDetail parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ProductEventDetail.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ProductEventDetail.Builder newBuilder()
-
newBuilder
public static ProductEventDetail.Builder newBuilder(ProductEventDetail prototype)
-
toBuilder
public ProductEventDetail.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProductEventDetail.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ProductEventDetail getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ProductEventDetail> parser()
-
getParserForType
public com.google.protobuf.Parser<ProductEventDetail> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ProductEventDetail getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-