NAME
Google::Cloud::Retail::V2alpha::MerchantCenterAccountLink - Compiled Protocol Buffers messages for google/cloud/retail/v2alpha/merchant_center_account_link.proto
SYNOPSIS
use Google::Cloud::Retail::V2alpha::MerchantCenterAccountLink;
my $msg = Google::Cloud::Retail::V2alpha::MerchantCenterAccountLink::MerchantCenterAccountLink->new({
name => $name,
id => $id,
merchant_center_account_id => $merchant_center_account_id,
branch_id => $branch_id,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Retail::V2alpha::MerchantCenterAccountLink::MerchantCenterAccountLink->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/retail/v2alpha/merchant_center_account_link.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Retail::V2alpha::MerchantCenterAccountLink::MerchantCenterAccountLink
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.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Immutable. Full resource name of the Merchant Center Account Link, such as `projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/merchant_center_account_link`.
$msg->id()/$msg->id($value)Type:
StringOutput 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`.
$msg->merchant_center_account_id()/$msg->merchant_center_account_id($value)Type:
Int64Required. The linked [Merchant center account id](https://developers.google.com/shopping-content/guides/accountstatuses). The account must be a standalone account or a sub-account of a MCA.
$msg->branch_id()/$msg->branch_id($value)Type:
StringRequired. 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.
$msg->feed_label()/$msg->feed_label($value)Type:
StringThe FeedLabel used to perform filtering. Note: this replaces [region_id](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.feed_label).
Example value: `US`. Example value: `FeedLabel1`.
$msg->language_code()/$msg->language_code($value)Type:
StringLanguage of the title/description and other string attributes. Use language tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). 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`.
$msg->feed_filters()/$msg->feed_filters($value)Type:
Message(Google::Cloud::Retail::V2alpha::MerchantCenterAccountLink::MerchantCenterAccountLink::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.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Retail::V2alpha::MerchantCenterAccountLink::State)Output only. Represents the state of the link.
$msg->project_id()/$msg->project_id($value)Type:
StringOutput only. Google Cloud project ID.
$msg->source()/$msg->source($value)Type:
StringOptional. An optional arbitrary string that could be used as a tag for tracking link source.
Enum: MerchantCenterAccountLink::State
STATE_UNSPECIFIED=>0PENDING=>1ACTIVE=>2FAILED=>3
Google::Cloud::Retail::V2alpha::MerchantCenterAccountLink::CreateMerchantCenterAccountLinkMetadata
Common metadata related to the progress of the operations.
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Operation create time.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Operation last update time. If the operation is done, this is also the finish time.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Retail::V2alpha::MerchantCenterAccountLink::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.