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 class
ProductEventDetail.Builder
ProductEventDetail 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 int
CART_ID_FIELD_NUMBER
static int
LIST_ID_FIELD_NUMBER
static int
PAGE_CATEGORIES_FIELD_NUMBER
static int
PRODUCT_DETAILS_FIELD_NUMBER
static int
PURCHASE_TRANSACTION_FIELD_NUMBER
static int
SEARCH_QUERY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getCartId()
Optional.com.google.protobuf.ByteString
getCartIdBytes()
Optional.static ProductEventDetail
getDefaultInstance()
ProductEventDetail
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getListId()
Required for `add-to-list` and `remove-from-list` events.com.google.protobuf.ByteString
getListIdBytes()
Required for `add-to-list` and `remove-from-list` events.CatalogItem.CategoryHierarchy
getPageCategories(int index)
Required for `category-page-view` events.int
getPageCategoriesCount()
Required for `category-page-view` events.List<CatalogItem.CategoryHierarchy>
getPageCategoriesList()
Required for `category-page-view` events.CatalogItem.CategoryHierarchyOrBuilder
getPageCategoriesOrBuilder(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()
ProductDetail
getProductDetails(int index)
The main product details related to the event.int
getProductDetailsCount()
The main product details related to the event.List<ProductDetail>
getProductDetailsList()
The main product details related to the event.ProductDetailOrBuilder
getProductDetailsOrBuilder(int index)
The main product details related to the event.List<? extends ProductDetailOrBuilder>
getProductDetailsOrBuilderList()
The main product details related to the event.PurchaseTransaction
getPurchaseTransaction()
Optional.PurchaseTransactionOrBuilder
getPurchaseTransactionOrBuilder()
Optional.String
getSearchQuery()
Required for `search` events.com.google.protobuf.ByteString
getSearchQueryBytes()
Required for `search` events.int
getSerializedSize()
int
hashCode()
boolean
hasPurchaseTransaction()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static ProductEventDetail.Builder
newBuilder()
static ProductEventDetail.Builder
newBuilder(ProductEventDetail prototype)
ProductEventDetail.Builder
newBuilderForType()
protected ProductEventDetail.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ProductEventDetail
parseDelimitedFrom(InputStream input)
static ProductEventDetail
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProductEventDetail
parseFrom(byte[] data)
static ProductEventDetail
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProductEventDetail
parseFrom(com.google.protobuf.ByteString data)
static ProductEventDetail
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProductEventDetail
parseFrom(com.google.protobuf.CodedInputStream input)
static ProductEventDetail
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProductEventDetail
parseFrom(InputStream input)
static ProductEventDetail
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ProductEventDetail
parseFrom(ByteBuffer data)
static ProductEventDetail
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ProductEventDetail>
parser()
ProductEventDetail.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
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:
getSearchQuery
in 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:
getSearchQueryBytes
in 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:
getPageCategoriesList
in 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:
getPageCategoriesOrBuilderList
in 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:
getPageCategoriesCount
in 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:
getPageCategories
in 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:
getPageCategoriesOrBuilder
in 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:
getProductDetailsList
in 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:
getProductDetailsOrBuilderList
in 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:
getProductDetailsCount
in 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:
getProductDetails
in 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:
getProductDetailsOrBuilder
in 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:
getListId
in 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:
getListIdBytes
in 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:
getCartId
in 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:
getCartIdBytes
in 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:
hasPurchaseTransaction
in 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:
getPurchaseTransaction
in 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:
getPurchaseTransactionOrBuilder
in interfaceProductEventDetailOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ProductEventDetail.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ProductEventDetail getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-