Struct google_api_proto::google::cloud::retail::v2alpha::MerchantCenterAccountLink
source · pub struct MerchantCenterAccountLink {
pub name: String,
pub id: String,
pub merchant_center_account_id: i64,
pub branch_id: String,
pub feed_label: String,
pub language_code: String,
pub feed_filters: Vec<MerchantCenterFeedFilter>,
pub state: i32,
pub project_id: String,
pub source: String,
}
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§
§name: String
Output only. Immutable. Full resource name of the Merchant Center Account
Link, such as
projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link
.
id: String
Output only. Immutable.
[MerchantCenterAccountLink][google.cloud.retail.v2alpha.MerchantCenterAccountLink]
identifier, which is the final component of
[name][google.cloud.retail.v2alpha.MerchantCenterAccountLink.name]. This
field is auto generated and follows the convention:
BranchId_MerchantCenterAccountId
.
projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1
.
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
Required. The branch ID (e.g. 0/1/2) within the 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.
feed_label: String
The FeedLabel used to perform filtering. Note: this replaces region_id.
Example value: US
.
Example value: FeedLabel1
.
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
.
feed_filters: 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.
state: i32
Output only. Represents the state of the link.
project_id: String
Output only. Google Cloud project ID.
source: String
Optional. An optional arbitrary string that could be used as a tag for tracking link source.
Implementations§
Trait Implementations§
source§impl Clone for MerchantCenterAccountLink
impl Clone for MerchantCenterAccountLink
source§fn clone(&self) -> MerchantCenterAccountLink
fn clone(&self) -> MerchantCenterAccountLink
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MerchantCenterAccountLink
impl Debug for MerchantCenterAccountLink
source§impl Default for MerchantCenterAccountLink
impl Default for MerchantCenterAccountLink
source§impl Message for MerchantCenterAccountLink
impl Message for MerchantCenterAccountLink
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 MerchantCenterAccountLink
impl PartialEq for MerchantCenterAccountLink
source§fn eq(&self, other: &MerchantCenterAccountLink) -> bool
fn eq(&self, other: &MerchantCenterAccountLink) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MerchantCenterAccountLink
Auto Trait Implementations§
impl Freeze for MerchantCenterAccountLink
impl RefUnwindSafe for MerchantCenterAccountLink
impl Send for MerchantCenterAccountLink
impl Sync for MerchantCenterAccountLink
impl Unpin for MerchantCenterAccountLink
impl UnwindSafe for MerchantCenterAccountLink
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