Struct gapi_grpc::google::cloud::recommendationengine::v1beta1::ProductDetail [−][src]
Detailed product information associated with a user event.
Fields
id: StringRequired. Catalog item ID. UTF-8 encoded string with a length limit of 128 characters.
currency_code: StringOptional. Currency code for price/costs. Use three-character ISO-4217 code. Required only if originalPrice or displayPrice is set.
original_price: f32Optional. Original price of the product. If provided, this will override the original price in Catalog for this product.
display_price: f32Optional. Display price of the product (e.g. discounted price). If provided, this will override the display price in Catalog for this product.
stock_state: i32Optional. Item stock state. If provided, this overrides the stock state in Catalog for items in this event.
quantity: i32Optional. 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 add-to-cart event. Required for add-to-cart, add-to-list,
remove-from-cart, checkout-start, purchase-complete, refund event
types.
available_quantity: i32Optional. Quantity of the products in stock when a user event happens.
Optional. If provided, this overrides the available quantity in Catalog for
this event. and can only be set if stock_status is set to IN_STOCK.
Note that if an item is out of stock, you must set the stock_state field
to be OUT_OF_STOCK. Leaving this field unspecified / as zero is not
sufficient to mark the item out of stock.
item_attributes: Option<FeatureMap>Optional. Extra features associated with a product in the user event.
Implementations
impl ProductDetail[src]
pub fn stock_state(&self) -> StockState[src]
Returns the enum value of stock_state, or the default if the field is set to an invalid enum value.
pub fn set_stock_state(&mut self, value: StockState)[src]
Sets stock_state to the provided enum value.
Trait Implementations
impl Clone for ProductDetail[src]
fn clone(&self) -> ProductDetail[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for ProductDetail[src]
impl Default for ProductDetail[src]
fn default() -> ProductDetail[src]
impl Message for ProductDetail[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut, [src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf, [src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize[src]
fn clear(&mut self)[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut, [src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut, [src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf, [src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf, [src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf, [src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf, [src]
B: Buf,
impl PartialEq<ProductDetail> for ProductDetail[src]
fn eq(&self, other: &ProductDetail) -> bool[src]
fn ne(&self, other: &ProductDetail) -> bool[src]
impl StructuralPartialEq for ProductDetail[src]
Auto Trait Implementations
impl RefUnwindSafe for ProductDetail
impl Send for ProductDetail
impl Sync for ProductDetail
impl Unpin for ProductDetail
impl UnwindSafe for ProductDetail
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> IntoRequest<T> for T[src]
pub fn into_request(self) -> Request<T>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,
impl<T> WithSubscriber for T[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,