Struct google_api_proto::google::shopping::css::v1::CssProductInput
source · pub struct CssProductInput {
pub name: String,
pub final_name: String,
pub raw_provided_id: String,
pub content_language: String,
pub feed_label: String,
pub freshness_time: Option<Timestamp>,
pub attributes: Option<Attributes>,
pub custom_attributes: Vec<CustomAttribute>,
}
Expand description
This resource represents input data you submit for a CSS Product, not the processed CSS Product that you see in CSS Center, in Shopping Ads, or across Google surfaces.
Fields§
§name: String
The name of the CSS Product input.
Format:
accounts/{account}/cssProductInputs/{css_product_input}
final_name: String
Output only. The name of the processed CSS Product.
Format:
accounts/{account}/cssProducts/{css_product}
“
raw_provided_id: String
Required. Your unique identifier for the CSS Product. This is the same for the CSS Product input and processed CSS Product. We only allow ids with alphanumerics, underscores and dashes. See the products feed specification for details.
content_language: String
Required. The two-letter ISO 639-1 language code for the CSS Product.
feed_label: String
Required. The feed label for the CSS Product. Feed Label is synonymous to “target country” and hence should always be a valid region code. For example: ‘DE’ for Germany, ‘FR’ for France.
freshness_time: Option<Timestamp>
Represents the existing version (freshness) of the CSS Product, which can be used to preserve the right order when multiple updates are done at the same time.
This field must not be set to the future time.
If set, the update is prevented if a newer version of the item already exists in our system (that is the last update time of the existing CSS products is later than the freshness time set in the update). If the update happens, the last update time is then set to this freshness time.
If not set, the update will not be prevented and the last update time will default to when this request was received by the CSS API.
If the operation is prevented, the aborted exception will be thrown.
attributes: Option<Attributes>
A list of CSS Product attributes.
custom_attributes: Vec<CustomAttribute>
A list of custom (CSS-provided) attributes. It can also be used for
submitting any attribute of the feed specification in its generic
form (for example:
{ "name": "size type", "value": "regular" }
).
This is useful for submitting attributes not explicitly exposed by the
API, such as additional attributes used for Buy on Google.
Trait Implementations§
source§impl Clone for CssProductInput
impl Clone for CssProductInput
source§fn clone(&self) -> CssProductInput
fn clone(&self) -> CssProductInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CssProductInput
impl Debug for CssProductInput
source§impl Default for CssProductInput
impl Default for CssProductInput
source§impl Message for CssProductInput
impl Message for CssProductInput
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 CssProductInput
impl PartialEq for CssProductInput
source§fn eq(&self, other: &CssProductInput) -> bool
fn eq(&self, other: &CssProductInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CssProductInput
Auto Trait Implementations§
impl Freeze for CssProductInput
impl RefUnwindSafe for CssProductInput
impl Send for CssProductInput
impl Sync for CssProductInput
impl Unpin for CssProductInput
impl UnwindSafe for CssProductInput
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