Struct google_api_proto::google::shopping::merchant::datasources::v1beta::PrimaryProductDataSource
source · pub struct PrimaryProductDataSource {
pub channel: i32,
pub feed_label: Option<String>,
pub content_language: Option<String>,
pub countries: Vec<String>,
}
Expand description
The primary data source for local and online products.
Fields§
§channel: i32
Required. Immutable. Specifies the type of data source channel.
feed_label: Option<String>
Optional. Immutable. The feed label that is specified on the data source level.
Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-).
See also migration to feed labels.
feedLabel
and contentLanguage
must be either both set or unset for data
sources with product content type.
They must be set for data sources with a file input.
If set, the data source will only accept products matching this combination. If unset, the data source will accept products without that restriction.
content_language: Option<String>
Optional. Immutable. The two-letter ISO 639-1 language of the items in the data source.
feedLabel
and contentLanguage
must be either both set or unset.
The fields can only be unset for data sources without file input.
If set, the data source will only accept products matching this combination. If unset, the data source will accept products without that restriction.
countries: Vec<String>
Optional. The countries where the items may be displayed. Represented as a CLDR territory code.
Implementations§
source§impl PrimaryProductDataSource
impl PrimaryProductDataSource
sourcepub fn channel(&self) -> Channel
pub fn channel(&self) -> Channel
Returns the enum value of channel
, or the default if the field is set to an invalid enum value.
sourcepub fn set_channel(&mut self, value: Channel)
pub fn set_channel(&mut self, value: Channel)
Sets channel
to the provided enum value.
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.
sourcepub fn content_language(&self) -> &str
pub fn content_language(&self) -> &str
Returns the value of content_language
, or the default value if content_language
is unset.
Trait Implementations§
source§impl Clone for PrimaryProductDataSource
impl Clone for PrimaryProductDataSource
source§fn clone(&self) -> PrimaryProductDataSource
fn clone(&self) -> PrimaryProductDataSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PrimaryProductDataSource
impl Debug for PrimaryProductDataSource
source§impl Default for PrimaryProductDataSource
impl Default for PrimaryProductDataSource
source§impl Message for PrimaryProductDataSource
impl Message for PrimaryProductDataSource
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 PrimaryProductDataSource
impl PartialEq for PrimaryProductDataSource
source§fn eq(&self, other: &PrimaryProductDataSource) -> bool
fn eq(&self, other: &PrimaryProductDataSource) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PrimaryProductDataSource
Auto Trait Implementations§
impl Freeze for PrimaryProductDataSource
impl RefUnwindSafe for PrimaryProductDataSource
impl Send for PrimaryProductDataSource
impl Sync for PrimaryProductDataSource
impl Unpin for PrimaryProductDataSource
impl UnwindSafe for PrimaryProductDataSource
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