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.BuilderaddAllPageCategories(Iterable<? extends CatalogItem.CategoryHierarchy> values)Required for `category-page-view` events.ProductEventDetail.BuilderaddAllProductDetails(Iterable<? extends ProductDetail> values)The main product details related to the event.ProductEventDetail.BuilderaddPageCategories(int index, CatalogItem.CategoryHierarchy value)Required for `category-page-view` events.ProductEventDetail.BuilderaddPageCategories(int index, CatalogItem.CategoryHierarchy.Builder builderForValue)Required for `category-page-view` events.ProductEventDetail.BuilderaddPageCategories(CatalogItem.CategoryHierarchy value)Required for `category-page-view` events.ProductEventDetail.BuilderaddPageCategories(CatalogItem.CategoryHierarchy.Builder builderForValue)Required for `category-page-view` events.CatalogItem.CategoryHierarchy.BuilderaddPageCategoriesBuilder()Required for `category-page-view` events.CatalogItem.CategoryHierarchy.BuilderaddPageCategoriesBuilder(int index)Required for `category-page-view` events.ProductEventDetail.BuilderaddProductDetails(int index, ProductDetail value)The main product details related to the event.ProductEventDetail.BuilderaddProductDetails(int index, ProductDetail.Builder builderForValue)The main product details related to the event.ProductEventDetail.BuilderaddProductDetails(ProductDetail value)The main product details related to the event.ProductEventDetail.BuilderaddProductDetails(ProductDetail.Builder builderForValue)The main product details related to the event.ProductDetail.BuilderaddProductDetailsBuilder()The main product details related to the event.ProductDetail.BuilderaddProductDetailsBuilder(int index)The main product details related to the event.ProductEventDetail.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ProductEventDetailbuild()ProductEventDetailbuildPartial()ProductEventDetail.Builderclear()ProductEventDetail.BuilderclearCartId()Optional.ProductEventDetail.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ProductEventDetail.BuilderclearListId()Required for `add-to-list` and `remove-from-list` events.ProductEventDetail.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ProductEventDetail.BuilderclearPageCategories()Required for `category-page-view` events.ProductEventDetail.BuilderclearProductDetails()The main product details related to the event.ProductEventDetail.BuilderclearPurchaseTransaction()Optional.ProductEventDetail.BuilderclearSearchQuery()Required for `search` events.ProductEventDetail.Builderclone()StringgetCartId()Optional.com.google.protobuf.ByteStringgetCartIdBytes()Optional.ProductEventDetailgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.CatalogItem.CategoryHierarchy.BuildergetPageCategoriesBuilder(int index)Required for `category-page-view` events.List<CatalogItem.CategoryHierarchy.Builder>getPageCategoriesBuilderList()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.ProductDetailgetProductDetails(int index)The main product details related to the event.ProductDetail.BuildergetProductDetailsBuilder(int index)The main product details related to the event.List<ProductDetail.Builder>getProductDetailsBuilderList()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.PurchaseTransaction.BuildergetPurchaseTransactionBuilder()Optional.PurchaseTransactionOrBuildergetPurchaseTransactionOrBuilder()Optional.StringgetSearchQuery()Required for `search` events.com.google.protobuf.ByteStringgetSearchQueryBytes()Required for `search` events.booleanhasPurchaseTransaction()Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ProductEventDetail.BuildermergeFrom(ProductEventDetail other)ProductEventDetail.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ProductEventDetail.BuildermergeFrom(com.google.protobuf.Message other)ProductEventDetail.BuildermergePurchaseTransaction(PurchaseTransaction value)Optional.ProductEventDetail.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ProductEventDetail.BuilderremovePageCategories(int index)Required for `category-page-view` events.ProductEventDetail.BuilderremoveProductDetails(int index)The main product details related to the event.ProductEventDetail.BuildersetCartId(String value)Optional.ProductEventDetail.BuildersetCartIdBytes(com.google.protobuf.ByteString value)Optional.ProductEventDetail.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ProductEventDetail.BuildersetListId(String value)Required for `add-to-list` and `remove-from-list` events.ProductEventDetail.BuildersetListIdBytes(com.google.protobuf.ByteString value)Required for `add-to-list` and `remove-from-list` events.ProductEventDetail.BuildersetPageCategories(int index, CatalogItem.CategoryHierarchy value)Required for `category-page-view` events.ProductEventDetail.BuildersetPageCategories(int index, CatalogItem.CategoryHierarchy.Builder builderForValue)Required for `category-page-view` events.ProductEventDetail.BuildersetProductDetails(int index, ProductDetail value)The main product details related to the event.ProductEventDetail.BuildersetProductDetails(int index, ProductDetail.Builder builderForValue)The main product details related to the event.ProductEventDetail.BuildersetPurchaseTransaction(PurchaseTransaction value)Optional.ProductEventDetail.BuildersetPurchaseTransaction(PurchaseTransaction.Builder builderForValue)Optional.ProductEventDetail.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ProductEventDetail.BuildersetSearchQuery(String value)Required for `search` events.ProductEventDetail.BuildersetSearchQueryBytes(com.google.protobuf.ByteString value)Required for `search` events.ProductEventDetail.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
clear
public ProductEventDetail.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
getDefaultInstanceForType
public ProductEventDetail getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ProductEventDetail build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ProductEventDetail buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ProductEventDetail.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
setField
public ProductEventDetail.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
clearField
public ProductEventDetail.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
clearOneof
public ProductEventDetail.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
setRepeatedField
public ProductEventDetail.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
addRepeatedField
public ProductEventDetail.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
mergeFrom
public ProductEventDetail.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProductEventDetail.Builder>
-
mergeFrom
public ProductEventDetail.Builder mergeFrom(ProductEventDetail other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
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.
-
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:
getPageCategoriesListin 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
-
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:
getPageCategoriesOrBuilderin 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
-
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:
getProductDetailsListin 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
-
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:
getProductDetailsOrBuilderin 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
-
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:
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.
-
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:
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.
-
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:
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.
-
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:
getPurchaseTransactionOrBuilderin interfaceProductEventDetailOrBuilder
-
setUnknownFields
public final ProductEventDetail.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
mergeUnknownFields
public final ProductEventDetail.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ProductEventDetail.Builder>
-
-