Class MerchantCenterLink (2.51.0)

public final class MerchantCenterLink extends GeneratedMessageV3 implements MerchantCenterLinkOrBuilder

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.

Protobuf type google.cloud.retail.v2alpha.MerchantCenterLink

Static Fields

public static final int BRANCH_ID_FIELD_NUMBER
Field Value
Type Description
int
public static final int DESTINATIONS_FIELD_NUMBER
Field Value
Type Description
int
public static final int FEEDS_FIELD_NUMBER
Field Value
Type Description
int
public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value
Type Description
int
public static final int MERCHANT_CENTER_ACCOUNT_ID_FIELD_NUMBER
Field Value
Type Description
int
public static final int REGION_CODE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

public static MerchantCenterLink getDefaultInstance()
Returns
Type Description
MerchantCenterLink
public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor
public static MerchantCenterLink.Builder newBuilder()
Returns
Type Description
MerchantCenterLink.Builder
public static MerchantCenterLink.Builder newBuilder(MerchantCenterLink prototype)
Parameter
Name Description
prototype MerchantCenterLink
Returns
Type Description
MerchantCenterLink.Builder
public static MerchantCenterLink parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MerchantCenterLink
Exceptions
Type Description
IOException
public static MerchantCenterLink parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MerchantCenterLink
Exceptions
Type Description
IOException
public static MerchantCenterLink parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
MerchantCenterLink
Exceptions
Type Description
InvalidProtocolBufferException
public static MerchantCenterLink parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MerchantCenterLink
Exceptions
Type Description
InvalidProtocolBufferException
public static MerchantCenterLink parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
MerchantCenterLink
Exceptions
Type Description
InvalidProtocolBufferException
public static MerchantCenterLink parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MerchantCenterLink
Exceptions
Type Description
InvalidProtocolBufferException
public static MerchantCenterLink parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
MerchantCenterLink
Exceptions
Type Description
IOException
public static MerchantCenterLink parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MerchantCenterLink
Exceptions
Type Description
IOException
public static MerchantCenterLink parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
MerchantCenterLink
Exceptions
Type Description
IOException
public static MerchantCenterLink parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MerchantCenterLink
Exceptions
Type Description
IOException
public static MerchantCenterLink parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
MerchantCenterLink
Exceptions
Type Description
InvalidProtocolBufferException
public static MerchantCenterLink parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MerchantCenterLink
Exceptions
Type Description
InvalidProtocolBufferException
public static Parser<MerchantCenterLink> parser()
Returns
Type Description
Parser<MerchantCenterLink>

Methods

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides
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.

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
Type Description
ByteString

The bytes for branchId.

public MerchantCenterLink getDefaultInstanceForType()
Returns
Type Description
MerchantCenterLink
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.

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.

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.

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
Type Description
ProtocolStringList

A list containing the destinations.

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.v2alpha.MerchantCenterFeedFilter feeds = 6;

Parameter
Name Description
index int
Returns
Type Description
MerchantCenterFeedFilter
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.v2alpha.MerchantCenterFeedFilter feeds = 6;

Returns
Type Description
int
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.v2alpha.MerchantCenterFeedFilter feeds = 6;

Returns
Type Description
List<MerchantCenterFeedFilter>
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.v2alpha.MerchantCenterFeedFilter feeds = 6;

Parameter
Name Description
index int
Returns
Type Description
MerchantCenterFeedFilterOrBuilder
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.v2alpha.MerchantCenterFeedFilter feeds = 6;

Returns
Type Description
List<? extends com.google.cloud.retail.v2alpha.MerchantCenterFeedFilterOrBuilder>
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.

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.

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.

public Parser<MerchantCenterLink> getParserForType()
Returns
Type Description
Parser<MerchantCenterLink>
Overrides
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.

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.

public int getSerializedSize()
Returns
Type Description
int
Overrides
public int hashCode()
Returns
Type Description
int
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
Type Description
boolean
Overrides
public MerchantCenterLink.Builder newBuilderForType()
Returns
Type Description
MerchantCenterLink.Builder
protected MerchantCenterLink.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
MerchantCenterLink.Builder
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides
public MerchantCenterLink.Builder toBuilder()
Returns
Type Description
MerchantCenterLink.Builder
public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException