Class ProductEventDetail.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
- com.google.cloud.recommendationengine.v1beta1.ProductEventDetail.Builder
-
- All Implemented Interfaces:
ProductEventDetailOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ProductEventDetail
public static final class ProductEventDetail.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder> implements ProductEventDetailOrBuilder
ProductEventDetail captures user event information specific to retail products.
Protobuf typegoogle.cloud.recommendationengine.v1beta1.ProductEventDetail
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductEventDetail.Builder
addAllPageCategories(Iterable<? extends CatalogItem.CategoryHierarchy> values)
Required for `category-page-view` events.ProductEventDetail.Builder
addAllProductDetails(Iterable<? extends ProductDetail> values)
The main product details related to the event.ProductEventDetail.Builder
addPageCategories(int index, CatalogItem.CategoryHierarchy value)
Required for `category-page-view` events.ProductEventDetail.Builder
addPageCategories(int index, CatalogItem.CategoryHierarchy.Builder builderForValue)
Required for `category-page-view` events.ProductEventDetail.Builder
addPageCategories(CatalogItem.CategoryHierarchy value)
Required for `category-page-view` events.ProductEventDetail.Builder
addPageCategories(CatalogItem.CategoryHierarchy.Builder builderForValue)
Required for `category-page-view` events.CatalogItem.CategoryHierarchy.Builder
addPageCategoriesBuilder()
Required for `category-page-view` events.CatalogItem.CategoryHierarchy.Builder
addPageCategoriesBuilder(int index)
Required for `category-page-view` events.ProductEventDetail.Builder
addProductDetails(int index, ProductDetail value)
The main product details related to the event.ProductEventDetail.Builder
addProductDetails(int index, ProductDetail.Builder builderForValue)
The main product details related to the event.ProductEventDetail.Builder
addProductDetails(ProductDetail value)
The main product details related to the event.ProductEventDetail.Builder
addProductDetails(ProductDetail.Builder builderForValue)
The main product details related to the event.ProductDetail.Builder
addProductDetailsBuilder()
The main product details related to the event.ProductDetail.Builder
addProductDetailsBuilder(int index)
The main product details related to the event.ProductEventDetail.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ProductEventDetail
build()
ProductEventDetail
buildPartial()
ProductEventDetail.Builder
clear()
ProductEventDetail.Builder
clearCartId()
Optional.ProductEventDetail.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ProductEventDetail.Builder
clearListId()
Required for `add-to-list` and `remove-from-list` events.ProductEventDetail.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ProductEventDetail.Builder
clearPageCategories()
Required for `category-page-view` events.ProductEventDetail.Builder
clearProductDetails()
The main product details related to the event.ProductEventDetail.Builder
clearPurchaseTransaction()
Optional.ProductEventDetail.Builder
clearSearchQuery()
Required for `search` events.ProductEventDetail.Builder
clone()
String
getCartId()
Optional.com.google.protobuf.ByteString
getCartIdBytes()
Optional.ProductEventDetail
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.CatalogItem.CategoryHierarchy.Builder
getPageCategoriesBuilder(int index)
Required for `category-page-view` events.List<CatalogItem.CategoryHierarchy.Builder>
getPageCategoriesBuilderList()
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.ProductDetail
getProductDetails(int index)
The main product details related to the event.ProductDetail.Builder
getProductDetailsBuilder(int index)
The main product details related to the event.List<ProductDetail.Builder>
getProductDetailsBuilderList()
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.PurchaseTransaction.Builder
getPurchaseTransactionBuilder()
Optional.PurchaseTransactionOrBuilder
getPurchaseTransactionOrBuilder()
Optional.String
getSearchQuery()
Required for `search` events.com.google.protobuf.ByteString
getSearchQueryBytes()
Required for `search` events.boolean
hasPurchaseTransaction()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
ProductEventDetail.Builder
mergeFrom(ProductEventDetail other)
ProductEventDetail.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ProductEventDetail.Builder
mergeFrom(com.google.protobuf.Message other)
ProductEventDetail.Builder
mergePurchaseTransaction(PurchaseTransaction value)
Optional.ProductEventDetail.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ProductEventDetail.Builder
removePageCategories(int index)
Required for `category-page-view` events.ProductEventDetail.Builder
removeProductDetails(int index)
The main product details related to the event.ProductEventDetail.Builder
setCartId(String value)
Optional.ProductEventDetail.Builder
setCartIdBytes(com.google.protobuf.ByteString value)
Optional.ProductEventDetail.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ProductEventDetail.Builder
setListId(String value)
Required for `add-to-list` and `remove-from-list` events.ProductEventDetail.Builder
setListIdBytes(com.google.protobuf.ByteString value)
Required for `add-to-list` and `remove-from-list` events.ProductEventDetail.Builder
setPageCategories(int index, CatalogItem.CategoryHierarchy value)
Required for `category-page-view` events.ProductEventDetail.Builder
setPageCategories(int index, CatalogItem.CategoryHierarchy.Builder builderForValue)
Required for `category-page-view` events.ProductEventDetail.Builder
setProductDetails(int index, ProductDetail value)
The main product details related to the event.ProductEventDetail.Builder
setProductDetails(int index, ProductDetail.Builder builderForValue)
The main product details related to the event.ProductEventDetail.Builder
setPurchaseTransaction(PurchaseTransaction value)
Optional.ProductEventDetail.Builder
setPurchaseTransaction(PurchaseTransaction.Builder builderForValue)
Optional.ProductEventDetail.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ProductEventDetail.Builder
setSearchQuery(String value)
Required for `search` events.ProductEventDetail.Builder
setSearchQueryBytes(com.google.protobuf.ByteString value)
Required for `search` events.ProductEventDetail.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<ProductEventDetail.Builder>
-
clear
public ProductEventDetail.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
getDefaultInstanceForType
public ProductEventDetail getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ProductEventDetail build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ProductEventDetail buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ProductEventDetail.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
setField
public ProductEventDetail.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
clearField
public ProductEventDetail.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
clearOneof
public ProductEventDetail.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
setRepeatedField
public ProductEventDetail.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
addRepeatedField
public ProductEventDetail.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
mergeFrom
public ProductEventDetail.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ProductEventDetail.Builder>
-
mergeFrom
public ProductEventDetail.Builder mergeFrom(ProductEventDetail other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
mergeFrom
public ProductEventDetail.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ProductEventDetail.Builder>
- Throws:
IOException
-
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.
-
setSearchQuery
public ProductEventDetail.Builder setSearchQuery(String value)
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;
- Parameters:
value
- The searchQuery to set.- Returns:
- This builder for chaining.
-
clearSearchQuery
public ProductEventDetail.Builder clearSearchQuery()
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;
- Returns:
- This builder for chaining.
-
setSearchQueryBytes
public ProductEventDetail.Builder setSearchQueryBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for searchQuery to set.- Returns:
- This builder for chaining.
-
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
-
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
-
setPageCategories
public ProductEventDetail.Builder setPageCategories(int index, CatalogItem.CategoryHierarchy value)
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;
-
setPageCategories
public ProductEventDetail.Builder setPageCategories(int index, CatalogItem.CategoryHierarchy.Builder builderForValue)
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;
-
addPageCategories
public ProductEventDetail.Builder addPageCategories(CatalogItem.CategoryHierarchy value)
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;
-
addPageCategories
public ProductEventDetail.Builder addPageCategories(int index, CatalogItem.CategoryHierarchy value)
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;
-
addPageCategories
public ProductEventDetail.Builder addPageCategories(CatalogItem.CategoryHierarchy.Builder builderForValue)
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;
-
addPageCategories
public ProductEventDetail.Builder addPageCategories(int index, CatalogItem.CategoryHierarchy.Builder builderForValue)
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;
-
addAllPageCategories
public ProductEventDetail.Builder addAllPageCategories(Iterable<? extends CatalogItem.CategoryHierarchy> values)
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;
-
clearPageCategories
public ProductEventDetail.Builder clearPageCategories()
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;
-
removePageCategories
public ProductEventDetail.Builder removePageCategories(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;
-
getPageCategoriesBuilder
public CatalogItem.CategoryHierarchy.Builder getPageCategoriesBuilder(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;
-
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
-
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
-
addPageCategoriesBuilder
public CatalogItem.CategoryHierarchy.Builder addPageCategoriesBuilder()
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;
-
addPageCategoriesBuilder
public CatalogItem.CategoryHierarchy.Builder addPageCategoriesBuilder(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;
-
getPageCategoriesBuilderList
public List<CatalogItem.CategoryHierarchy.Builder> getPageCategoriesBuilderList()
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;
-
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
-
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
-
setProductDetails
public ProductEventDetail.Builder setProductDetails(int index, ProductDetail value)
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;
-
setProductDetails
public ProductEventDetail.Builder setProductDetails(int index, ProductDetail.Builder builderForValue)
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;
-
addProductDetails
public ProductEventDetail.Builder addProductDetails(ProductDetail value)
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;
-
addProductDetails
public ProductEventDetail.Builder addProductDetails(int index, ProductDetail value)
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;
-
addProductDetails
public ProductEventDetail.Builder addProductDetails(ProductDetail.Builder builderForValue)
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;
-
addProductDetails
public ProductEventDetail.Builder addProductDetails(int index, ProductDetail.Builder builderForValue)
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;
-
addAllProductDetails
public ProductEventDetail.Builder addAllProductDetails(Iterable<? extends ProductDetail> values)
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;
-
clearProductDetails
public ProductEventDetail.Builder clearProductDetails()
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;
-
removeProductDetails
public ProductEventDetail.Builder removeProductDetails(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;
-
getProductDetailsBuilder
public ProductDetail.Builder getProductDetailsBuilder(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;
-
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
-
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
-
addProductDetailsBuilder
public ProductDetail.Builder addProductDetailsBuilder()
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;
-
addProductDetailsBuilder
public ProductDetail.Builder addProductDetailsBuilder(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;
-
getProductDetailsBuilderList
public List<ProductDetail.Builder> getProductDetailsBuilderList()
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;
-
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.
-
setListId
public ProductEventDetail.Builder setListId(String value)
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;
- Parameters:
value
- The listId to set.- Returns:
- This builder for chaining.
-
clearListId
public ProductEventDetail.Builder clearListId()
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;
- Returns:
- This builder for chaining.
-
setListIdBytes
public ProductEventDetail.Builder setListIdBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for listId to set.- Returns:
- This builder for chaining.
-
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.
-
setCartId
public ProductEventDetail.Builder setCartId(String value)
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];
- Parameters:
value
- The cartId to set.- Returns:
- This builder for chaining.
-
clearCartId
public ProductEventDetail.Builder clearCartId()
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];
- Returns:
- This builder for chaining.
-
setCartIdBytes
public ProductEventDetail.Builder setCartIdBytes(com.google.protobuf.ByteString value)
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];
- Parameters:
value
- The bytes for cartId to set.- Returns:
- This builder for chaining.
-
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.
-
setPurchaseTransaction
public ProductEventDetail.Builder setPurchaseTransaction(PurchaseTransaction value)
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];
-
setPurchaseTransaction
public ProductEventDetail.Builder setPurchaseTransaction(PurchaseTransaction.Builder builderForValue)
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];
-
mergePurchaseTransaction
public ProductEventDetail.Builder mergePurchaseTransaction(PurchaseTransaction value)
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];
-
clearPurchaseTransaction
public ProductEventDetail.Builder clearPurchaseTransaction()
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];
-
getPurchaseTransactionBuilder
public PurchaseTransaction.Builder getPurchaseTransactionBuilder()
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];
-
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
-
setUnknownFields
public final ProductEventDetail.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
mergeUnknownFields
public final ProductEventDetail.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
-