Struct google_api_proto::google::cloud::retail::v2alpha::MerchantCenterLink
source · pub struct MerchantCenterLink {
pub merchant_center_account_id: i64,
pub branch_id: String,
pub destinations: Vec<String>,
pub region_code: String,
pub language_code: String,
pub feeds: Vec<MerchantCenterFeedFilter>,
}
Expand description
Represents a link between a Merchant Center account and a branch. After a link is established, products from the linked Merchant Center account are streamed to the linked branch.
Fields§
§merchant_center_account_id: i64
Required. The linked Merchant Center account ID. The account must be a standalone account or a sub-account of a MCA.
branch_id: String
The branch ID (e.g. 0/1/2) within this catalog that products from merchant_center_account_id are streamed to. When updating this field, an empty value will use the currently configured default branch. However, changing the default branch later on won’t change the linked branch here.
A single branch ID can only have one linked Merchant Center account ID.
destinations: Vec<String>
String representing the destination to import for, all if left empty. List of possible values is given in Included destination. List of allowed string values: “Shopping_ads”, “Buy_on_google_listings”, “Display_ads”, “Local_inventory _ads”, “Free_listings”, “Free_local_listings” NOTE: The string values are case sensitive.
region_code: String
Region code of offers to accept. 2-letter Uppercase ISO 3166-1 alpha-2
code. List of values can be found
here
under the region
tag. If left blank no region filtering will be
performed.
Example value: US
.
language_code: String
Language of the title/description and other string attributes. Use language tags defined by BCP 47. ISO 639-1.
This specifies the language of offers in Merchant Center that will be accepted. If empty no language filtering will be performed.
Example value: en
.
feeds: Vec<MerchantCenterFeedFilter>
Criteria for the Merchant Center feeds to be ingested via the link. All offers will be ingested if the list is empty. Otherwise the offers will be ingested from selected feeds.
Trait Implementations§
source§impl Clone for MerchantCenterLink
impl Clone for MerchantCenterLink
source§fn clone(&self) -> MerchantCenterLink
fn clone(&self) -> MerchantCenterLink
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MerchantCenterLink
impl Debug for MerchantCenterLink
source§impl Default for MerchantCenterLink
impl Default for MerchantCenterLink
source§impl Message for MerchantCenterLink
impl Message for MerchantCenterLink
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 MerchantCenterLink
impl PartialEq for MerchantCenterLink
source§fn eq(&self, other: &MerchantCenterLink) -> bool
fn eq(&self, other: &MerchantCenterLink) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MerchantCenterLink
Auto Trait Implementations§
impl Freeze for MerchantCenterLink
impl RefUnwindSafe for MerchantCenterLink
impl Send for MerchantCenterLink
impl Sync for MerchantCenterLink
impl Unpin for MerchantCenterLink
impl UnwindSafe for MerchantCenterLink
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