Struct google_api_proto::google::cloud::retail::v2alpha::LocalInventory
source · pub struct LocalInventory {
pub place_id: String,
pub price_info: Option<PriceInfo>,
pub attributes: BTreeMap<String, CustomAttribute>,
pub fulfillment_types: Vec<String>,
}
Expand description
The inventory information at a place (e.g. a store) identified by a place ID.
Fields§
§place_id: String
The place ID for the current set of inventory information.
price_info: Option<PriceInfo>
Product price and cost information.
Google Merchant Center property price.
attributes: BTreeMap<String, CustomAttribute>
Additional local inventory attributes, for example, store name, promotion tags, etc.
This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned:
- At most 30 attributes are allowed.
- The key must be a UTF-8 encoded string with a length limit of 32 characters.
- The key must match the pattern:
[a-zA-Z0-9][a-zA-Z0-9_]*
. For example, key0LikeThis or KEY_1_LIKE_THIS. - The attribute values must be of the same type (text or number).
- Only 1 value is allowed for each attribute.
- For text values, the length limit is 256 UTF-8 characters.
- The attribute does not support search. The
searchable
field should be unset or set to false. - The max summed total bytes of custom attribute keys and values per product is 5MiB.
fulfillment_types: Vec<String>
Input only. Supported fulfillment types. Valid fulfillment type values include commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI.
Supported values:
- “pickup-in-store”
- “ship-to-store”
- “same-day-delivery”
- “next-day-delivery”
- “custom-type-1”
- “custom-type-2”
- “custom-type-3”
- “custom-type-4”
- “custom-type-5”
If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned.
All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.
Trait Implementations§
source§impl Clone for LocalInventory
impl Clone for LocalInventory
source§fn clone(&self) -> LocalInventory
fn clone(&self) -> LocalInventory
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocalInventory
impl Debug for LocalInventory
source§impl Default for LocalInventory
impl Default for LocalInventory
source§impl Message for LocalInventory
impl Message for LocalInventory
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for LocalInventory
impl PartialEq for LocalInventory
source§fn eq(&self, other: &LocalInventory) -> bool
fn eq(&self, other: &LocalInventory) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LocalInventory
Auto Trait Implementations§
impl Freeze for LocalInventory
impl RefUnwindSafe for LocalInventory
impl Send for LocalInventory
impl Sync for LocalInventory
impl Unpin for LocalInventory
impl UnwindSafe for LocalInventory
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request