Class: Google::Cloud::Retail::V2::ProductDetail
- Inherits:
-
Object
- Object
- Google::Cloud::Retail::V2::ProductDetail
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/retail/v2/user_event.rb
Overview
Detailed product information associated with a user event.
Instance Attribute Summary collapse
-
#product ⇒ ::Google::Cloud::Retail::V2::Product
Required.
-
#quantity ⇒ ::Google::Protobuf::Int32Value
Quantity of the product associated with the user event.
Instance Attribute Details
#product ⇒ ::Google::Cloud::Retail::V2::Product
Returns Required. Product information.
Required field(s):
Optional override field(s):
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.
307 308 309 310 |
# File 'proto_docs/google/cloud/retail/v2/user_event.rb', line 307 class ProductDetail include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#quantity ⇒ ::Google::Protobuf::Int32Value
Returns 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.
307 308 309 310 |
# File 'proto_docs/google/cloud/retail/v2/user_event.rb', line 307 class ProductDetail include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |