Interface ProductDetailOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
ProductDetail, ProductDetail.Builder

@Generated public interface ProductDetailOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Required.
    Required.
    com.google.protobuf.Int32Value
    Quantity of the product associated with the user event.
    com.google.protobuf.Int32ValueOrBuilder
    Quantity of the product associated with the user event.
    boolean
    Required.
    boolean
    Quantity of the product associated with the user event.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasProduct

      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];
      Returns:
      Whether the product field is set.
    • getProduct

      Product 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];
      Returns:
      The product.
    • getProductOrBuilder

      ProductOrBuilder 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];
    • hasQuantity

      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;
      Returns:
      Whether the quantity field is set.
    • getQuantity

      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;
      Returns:
      The quantity.
    • getQuantityOrBuilder

      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;