- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.1
- 2.4.0
- 2.3.0
- 2.2.3
- 2.1.0
- 2.0.19
public static final class MerchantCenterLink.Builder extends GeneratedMessageV3.Builder<MerchantCenterLink.Builder> 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > MerchantCenterLink.BuilderImplements
MerchantCenterLinkOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllDestinations(Iterable<String> values)
public MerchantCenterLink.Builder addAllDestinations(Iterable<String> values)
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;
Name | Description |
values | Iterable<String> The destinations to add. |
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
addDestinations(String value)
public MerchantCenterLink.Builder addDestinations(String value)
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;
Name | Description |
value | String The destinations to add. |
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
addDestinationsBytes(ByteString value)
public MerchantCenterLink.Builder addDestinationsBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes of the destinations to add. |
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MerchantCenterLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
MerchantCenterLink.Builder |
build()
public MerchantCenterLink build()
Type | Description |
MerchantCenterLink |
buildPartial()
public MerchantCenterLink buildPartial()
Type | Description |
MerchantCenterLink |
clear()
public MerchantCenterLink.Builder clear()
Type | Description |
MerchantCenterLink.Builder |
clearBranchId()
public MerchantCenterLink.Builder clearBranchId()
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;
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
clearDestinations()
public MerchantCenterLink.Builder clearDestinations()
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;
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public MerchantCenterLink.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
MerchantCenterLink.Builder |
clearLanguageCode()
public MerchantCenterLink.Builder clearLanguageCode()
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;
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
clearMerchantCenterAccountId()
public MerchantCenterLink.Builder clearMerchantCenterAccountId()
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];
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public MerchantCenterLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
MerchantCenterLink.Builder |
clearRegionCode()
public MerchantCenterLink.Builder clearRegionCode()
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;
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
clone()
public MerchantCenterLink.Builder clone()
Type | Description |
MerchantCenterLink.Builder |
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;
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;
Type | Description |
ByteString | The bytes for branchId. |
getDefaultInstanceForType()
public MerchantCenterLink getDefaultInstanceForType()
Type | Description |
MerchantCenterLink |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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;
Name | Description |
index | int The index of the element to return. |
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;
Name | Description |
index | int The index of the value to return. |
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;
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;
Type | Description |
ProtocolStringList | A list containing the destinations. |
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;
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;
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];
Type | Description |
long | The merchantCenterAccountId. |
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;
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;
Type | Description |
ByteString | The bytes for regionCode. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(MerchantCenterLink other)
public MerchantCenterLink.Builder mergeFrom(MerchantCenterLink other)
Name | Description |
other | MerchantCenterLink |
Type | Description |
MerchantCenterLink.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public MerchantCenterLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MerchantCenterLink.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public MerchantCenterLink.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
MerchantCenterLink.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MerchantCenterLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
MerchantCenterLink.Builder |
setBranchId(String value)
public MerchantCenterLink.Builder setBranchId(String value)
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;
Name | Description |
value | String The branchId to set. |
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
setBranchIdBytes(ByteString value)
public MerchantCenterLink.Builder setBranchIdBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for branchId to set. |
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
setDestinations(int index, String value)
public MerchantCenterLink.Builder setDestinations(int index, String value)
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;
Name | Description |
index | int The index to set the value at. |
value | String The destinations to set. |
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public MerchantCenterLink.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
MerchantCenterLink.Builder |
setLanguageCode(String value)
public MerchantCenterLink.Builder setLanguageCode(String value)
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;
Name | Description |
value | String The languageCode to set. |
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
setLanguageCodeBytes(ByteString value)
public MerchantCenterLink.Builder setLanguageCodeBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for languageCode to set. |
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
setMerchantCenterAccountId(long value)
public MerchantCenterLink.Builder setMerchantCenterAccountId(long value)
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];
Name | Description |
value | long The merchantCenterAccountId to set. |
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
setRegionCode(String value)
public MerchantCenterLink.Builder setRegionCode(String value)
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;
Name | Description |
value | String The regionCode to set. |
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
setRegionCodeBytes(ByteString value)
public MerchantCenterLink.Builder setRegionCodeBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for regionCode to set. |
Type | Description |
MerchantCenterLink.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MerchantCenterLink.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
MerchantCenterLink.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final MerchantCenterLink.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
MerchantCenterLink.Builder |