Package com.google.cloud.retail.v2alpha
Class ProductDetail.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ProductDetail.Builder>
com.google.cloud.retail.v2alpha.ProductDetail.Builder
- All Implemented Interfaces:
ProductDetailOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ProductDetail
public static final class ProductDetail.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ProductDetail.Builder>
implements ProductDetailOrBuilder
Detailed product information associated with a user event.Protobuf type
google.cloud.retail.v2alpha.ProductDetail-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Quantity of the product associated with the user event.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.Required.Required.com.google.protobuf.Int32ValueQuantity of the product associated with the user event.com.google.protobuf.Int32Value.BuilderQuantity of the product associated with the user event.com.google.protobuf.Int32ValueOrBuilderQuantity of the product associated with the user event.booleanRequired.booleanQuantity of the product associated with the user event.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ProductDetail other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeProduct(Product value) Required.mergeQuantity(com.google.protobuf.Int32Value value) Quantity of the product associated with the user event.setProduct(Product value) Required.setProduct(Product.Builder builderForValue) Required.setQuantity(com.google.protobuf.Int32Value value) Quantity of the product associated with the user event.setQuantity(com.google.protobuf.Int32Value.Builder builderForValue) Quantity of the product associated with the user event.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ProductDetail.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ProductDetail.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.GeneratedMessage.Builder<ProductDetail.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ProductDetail.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ProductDetail.Builder>
-
mergeFrom
public ProductDetail.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<ProductDetail.Builder>- Throws:
IOException
-
hasProduct
public boolean hasProduct()Required. [Product][google.cloud.retail.v2alpha.Product] information. Required field(s): * [Product.id][google.cloud.retail.v2alpha.Product.id] Optional override field(s): * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info] If any supported optional fields are provided, we will treat them as a full override when looking up product information from the catalog. Thus, it is important to ensure that the overriding fields are accurate and complete. All other product fields are ignored and instead populated via catalog lookup after event ingestion.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasProductin interfaceProductDetailOrBuilder- Returns:
- Whether the product field is set.
-
getProduct
Required. [Product][google.cloud.retail.v2alpha.Product] information. Required field(s): * [Product.id][google.cloud.retail.v2alpha.Product.id] Optional override field(s): * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info] If any supported optional fields are provided, we will treat them as a full override when looking up product information from the catalog. Thus, it is important to ensure that the overriding fields are accurate and complete. All other product fields are ignored and instead populated via catalog lookup after event ingestion.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProductin interfaceProductDetailOrBuilder- Returns:
- The product.
-
setProduct
Required. [Product][google.cloud.retail.v2alpha.Product] information. Required field(s): * [Product.id][google.cloud.retail.v2alpha.Product.id] Optional override field(s): * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info] If any supported optional fields are provided, we will treat them as a full override when looking up product information from the catalog. Thus, it is important to ensure that the overriding fields are accurate and complete. All other product fields are ignored and instead populated via catalog lookup after event ingestion.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; -
setProduct
Required. [Product][google.cloud.retail.v2alpha.Product] information. Required field(s): * [Product.id][google.cloud.retail.v2alpha.Product.id] Optional override field(s): * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info] If any supported optional fields are provided, we will treat them as a full override when looking up product information from the catalog. Thus, it is important to ensure that the overriding fields are accurate and complete. All other product fields are ignored and instead populated via catalog lookup after event ingestion.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; -
mergeProduct
Required. [Product][google.cloud.retail.v2alpha.Product] information. Required field(s): * [Product.id][google.cloud.retail.v2alpha.Product.id] Optional override field(s): * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info] If any supported optional fields are provided, we will treat them as a full override when looking up product information from the catalog. Thus, it is important to ensure that the overriding fields are accurate and complete. All other product fields are ignored and instead populated via catalog lookup after event ingestion.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearProduct
Required. [Product][google.cloud.retail.v2alpha.Product] information. Required field(s): * [Product.id][google.cloud.retail.v2alpha.Product.id] Optional override field(s): * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info] If any supported optional fields are provided, we will treat them as a full override when looking up product information from the catalog. Thus, it is important to ensure that the overriding fields are accurate and complete. All other product fields are ignored and instead populated via catalog lookup after event ingestion.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; -
getProductBuilder
Required. [Product][google.cloud.retail.v2alpha.Product] information. Required field(s): * [Product.id][google.cloud.retail.v2alpha.Product.id] Optional override field(s): * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info] If any supported optional fields are provided, we will treat them as a full override when looking up product information from the catalog. Thus, it is important to ensure that the overriding fields are accurate and complete. All other product fields are ignored and instead populated via catalog lookup after event ingestion.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED]; -
getProductOrBuilder
Required. [Product][google.cloud.retail.v2alpha.Product] information. Required field(s): * [Product.id][google.cloud.retail.v2alpha.Product.id] Optional override field(s): * [Product.price_info][google.cloud.retail.v2alpha.Product.price_info] If any supported optional fields are provided, we will treat them as a full override when looking up product information from the catalog. Thus, it is important to ensure that the overriding fields are accurate and complete. All other product fields are ignored and instead populated via catalog lookup after event ingestion.
.google.cloud.retail.v2alpha.Product product = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getProductOrBuilderin interfaceProductDetailOrBuilder
-
hasQuantity
public boolean hasQuantity()Quantity of the product associated with the user event. For example, this field will be 2 if two products are added to the shopping cart for `purchase-complete` event. Required for `add-to-cart` and `purchase-complete` event types.
.google.protobuf.Int32Value quantity = 2;- Specified by:
hasQuantityin interfaceProductDetailOrBuilder- Returns:
- Whether the quantity field is set.
-
getQuantity
public com.google.protobuf.Int32Value getQuantity()Quantity of the product associated with the user event. For example, this field will be 2 if two products are added to the shopping cart for `purchase-complete` event. Required for `add-to-cart` and `purchase-complete` event types.
.google.protobuf.Int32Value quantity = 2;- Specified by:
getQuantityin interfaceProductDetailOrBuilder- Returns:
- The quantity.
-
setQuantity
Quantity of the product associated with the user event. For example, this field will be 2 if two products are added to the shopping cart for `purchase-complete` event. Required for `add-to-cart` and `purchase-complete` event types.
.google.protobuf.Int32Value quantity = 2; -
setQuantity
Quantity of the product associated with the user event. For example, this field will be 2 if two products are added to the shopping cart for `purchase-complete` event. Required for `add-to-cart` and `purchase-complete` event types.
.google.protobuf.Int32Value quantity = 2; -
mergeQuantity
Quantity of the product associated with the user event. For example, this field will be 2 if two products are added to the shopping cart for `purchase-complete` event. Required for `add-to-cart` and `purchase-complete` event types.
.google.protobuf.Int32Value quantity = 2; -
clearQuantity
Quantity of the product associated with the user event. For example, this field will be 2 if two products are added to the shopping cart for `purchase-complete` event. Required for `add-to-cart` and `purchase-complete` event types.
.google.protobuf.Int32Value quantity = 2; -
getQuantityBuilder
public com.google.protobuf.Int32Value.Builder getQuantityBuilder()Quantity of the product associated with the user event. For example, this field will be 2 if two products are added to the shopping cart for `purchase-complete` event. Required for `add-to-cart` and `purchase-complete` event types.
.google.protobuf.Int32Value quantity = 2; -
getQuantityOrBuilder
public com.google.protobuf.Int32ValueOrBuilder getQuantityOrBuilder()Quantity of the product associated with the user event. For example, this field will be 2 if two products are added to the shopping cart for `purchase-complete` event. Required for `add-to-cart` and `purchase-complete` event types.
.google.protobuf.Int32Value quantity = 2;- Specified by:
getQuantityOrBuilderin interfaceProductDetailOrBuilder
-