Struct google_api_proto::google::shopping::merchant::lfp::v1beta::LfpInventory
source · pub struct LfpInventory {Show 14 fields
pub name: String,
pub target_account: i64,
pub store_code: String,
pub offer_id: String,
pub region_code: String,
pub content_language: String,
pub gtin: Option<String>,
pub price: Option<Price>,
pub availability: String,
pub quantity: Option<i64>,
pub collection_time: Option<Timestamp>,
pub pickup_method: Option<String>,
pub pickup_sla: Option<String>,
pub feed_label: Option<String>,
}
Expand description
Local Inventory for the merchant.
Fields§
§name: String
Output only. Identifier. The name for the LfpInventory
resource.
Format:
accounts/{account}/lfpInventories/{target_merchant}~{store_code}~{offer}
target_account: i64
Required. The Merchant Center ID of the merchant to submit the inventory for.
store_code: String
Required. The identifier of the merchant’s store. Either the store code
inserted through InsertLfpStore
or the store code in the Business
Profile.
offer_id: String
Required. Immutable. A unique identifier for the product. If both inventories and sales are submitted for a merchant, this id should match for the same product.
Note: if the merchant sells the same product new and used, they should have different IDs.
region_code: String
Required. The CLDR territory code for the country where the product is sold.
content_language: String
Required. The two-letter ISO 639-1 language code for the item.
gtin: Option<String>
Optional. The Global Trade Item Number of the product.
price: Option<Price>
Optional. The current price of the product.
availability: String
Required. Availability of the product at this store. For accepted attribute values, see the local product inventory data specification
quantity: Option<i64>
Optional. Quantity of the product available at this store. Must be greater than or equal to zero.
collection_time: Option<Timestamp>
Optional. The time when the inventory is collected. If not set, it will be set to the time when the inventory is submitted.
pickup_method: Option<String>
Optional. Supported pickup method for this offer. Unless the value is “not
supported”, this field must be submitted together with pickupSla
. For
accepted attribute values, see the local product inventory data
specification.
pickup_sla: Option<String>
Optional. Expected date that an order will be ready for pickup relative to
the order date. Must be submitted together with pickupMethod
. For
accepted attribute values, see the local product inventory data
specification.
feed_label: Option<String>
Optional. The feed
label
for the product. If this is not set, it will default to regionCode
.
Implementations§
source§impl LfpInventory
impl LfpInventory
sourcepub fn quantity(&self) -> i64
pub fn quantity(&self) -> i64
Returns the value of quantity
, or the default value if quantity
is unset.
sourcepub fn pickup_method(&self) -> &str
pub fn pickup_method(&self) -> &str
Returns the value of pickup_method
, or the default value if pickup_method
is unset.
sourcepub fn pickup_sla(&self) -> &str
pub fn pickup_sla(&self) -> &str
Returns the value of pickup_sla
, or the default value if pickup_sla
is unset.
sourcepub fn feed_label(&self) -> &str
pub fn feed_label(&self) -> &str
Returns the value of feed_label
, or the default value if feed_label
is unset.
Trait Implementations§
source§impl Clone for LfpInventory
impl Clone for LfpInventory
source§fn clone(&self) -> LfpInventory
fn clone(&self) -> LfpInventory
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LfpInventory
impl Debug for LfpInventory
source§impl Default for LfpInventory
impl Default for LfpInventory
source§impl Message for LfpInventory
impl Message for LfpInventory
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 LfpInventory
impl PartialEq for LfpInventory
source§fn eq(&self, other: &LfpInventory) -> bool
fn eq(&self, other: &LfpInventory) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LfpInventory
Auto Trait Implementations§
impl Freeze for LfpInventory
impl RefUnwindSafe for LfpInventory
impl Send for LfpInventory
impl Sync for LfpInventory
impl Unpin for LfpInventory
impl UnwindSafe for LfpInventory
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