Interface ProductDetailOrBuilder (2.15.0)

public interface ProductDetailOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getProduct()

public abstract Product getProduct()

Required. Product information. Required field(s):

  • Product.id Optional override field(s):
  • 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.v2beta.Product product = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Product

The product.

getProductOrBuilder()

public abstract ProductOrBuilder getProductOrBuilder()

Required. Product information. Required field(s):

  • Product.id Optional override field(s):
  • 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.v2beta.Product product = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProductOrBuilder

getQuantity()

public abstract 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
TypeDescription
Int32Value

The quantity.

getQuantityOrBuilder()

public abstract 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;

Returns
TypeDescription
Int32ValueOrBuilder

hasProduct()

public abstract boolean hasProduct()

Required. Product information. Required field(s):

  • Product.id Optional override field(s):
  • 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.v2beta.Product product = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the product field is set.

hasQuantity()

public abstract 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
TypeDescription
boolean

Whether the quantity field is set.