public final class MerchantCenterLink extends GeneratedMessageV3 implements MerchantCenterLinkOrBuilder
Represents a link between a Merchant Center account and a branch.
Once a link is established, products from the linked merchant center account
will be streamed to the linked branch.
Protobuf type google.cloud.retail.v2beta.MerchantCenterLink
Static Fields
BRANCH_ID_FIELD_NUMBER
public static final int BRANCH_ID_FIELD_NUMBER
Field Value
DESTINATIONS_FIELD_NUMBER
public static final int DESTINATIONS_FIELD_NUMBER
Field Value
FEEDS_FIELD_NUMBER
public static final int FEEDS_FIELD_NUMBER
Field Value
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
MERCHANT_CENTER_ACCOUNT_ID_FIELD_NUMBER
public static final int MERCHANT_CENTER_ACCOUNT_ID_FIELD_NUMBER
Field Value
REGION_CODE_FIELD_NUMBER
public static final int REGION_CODE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static MerchantCenterLink getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static MerchantCenterLink.Builder newBuilder()
Returns
newBuilder(MerchantCenterLink prototype)
public static MerchantCenterLink.Builder newBuilder(MerchantCenterLink prototype)
Parameter
Returns
public static MerchantCenterLink parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static MerchantCenterLink parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static MerchantCenterLink parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MerchantCenterLink parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static MerchantCenterLink parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MerchantCenterLink parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MerchantCenterLink parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static MerchantCenterLink parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MerchantCenterLink parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static MerchantCenterLink parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static MerchantCenterLink parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MerchantCenterLink parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<MerchantCenterLink> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getBranchId()
public String getBranchId()
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.
string branch_id = 2;
Returns
Type | Description |
String | The branchId.
|
getBranchIdBytes()
public ByteString getBranchIdBytes()
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.
string branch_id = 2;
Returns
getDefaultInstanceForType()
public MerchantCenterLink getDefaultInstanceForType()
Returns
getDestinations(int index)
public String getDestinations(int index)
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.
repeated string destinations = 3;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The destinations at the given index.
|
getDestinationsBytes(int index)
public ByteString getDestinationsBytes(int index)
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.
repeated string destinations = 3;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the destinations at the given index.
|
getDestinationsCount()
public int getDestinationsCount()
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.
repeated string destinations = 3;
Returns
Type | Description |
int | The count of destinations.
|
getDestinationsList()
public ProtocolStringList getDestinationsList()
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.
repeated string destinations = 3;
Returns
getFeeds(int index)
public MerchantCenterFeedFilter getFeeds(int index)
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.
repeated .google.cloud.retail.v2beta.MerchantCenterFeedFilter feeds = 6;
Parameter
Returns
getFeedsCount()
public int getFeedsCount()
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.
repeated .google.cloud.retail.v2beta.MerchantCenterFeedFilter feeds = 6;
Returns
getFeedsList()
public List<MerchantCenterFeedFilter> getFeedsList()
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.
repeated .google.cloud.retail.v2beta.MerchantCenterFeedFilter feeds = 6;
Returns
getFeedsOrBuilder(int index)
public MerchantCenterFeedFilterOrBuilder getFeedsOrBuilder(int index)
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.
repeated .google.cloud.retail.v2beta.MerchantCenterFeedFilter feeds = 6;
Parameter
Returns
getFeedsOrBuilderList()
public List<? extends MerchantCenterFeedFilterOrBuilder> getFeedsOrBuilderList()
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.
repeated .google.cloud.retail.v2beta.MerchantCenterFeedFilter feeds = 6;
Returns
Type | Description |
List<? extends com.google.cloud.retail.v2beta.MerchantCenterFeedFilterOrBuilder> | |
getLanguageCode()
public String getLanguageCode()
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
.
string language_code = 5;
Returns
Type | Description |
String | The languageCode.
|
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes()
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
.
string language_code = 5;
Returns
Type | Description |
ByteString | The bytes for languageCode.
|
getMerchantCenterAccountId()
public long getMerchantCenterAccountId()
Required. The linked Merchant center account
ID.
The account must be a standalone account or a sub-account of a MCA.
int64 merchant_center_account_id = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
long | The merchantCenterAccountId.
|
getParserForType()
public Parser<MerchantCenterLink> getParserForType()
Returns
Overrides
getRegionCode()
public String getRegionCode()
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
.
string region_code = 4;
Returns
Type | Description |
String | The regionCode.
|
getRegionCodeBytes()
public ByteString getRegionCodeBytes()
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
.
string region_code = 4;
Returns
Type | Description |
ByteString | The bytes for regionCode.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public MerchantCenterLink.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MerchantCenterLink.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public MerchantCenterLink.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions