Class MerchantCenterAccountLink.Builder (2.22.0)

public static final class MerchantCenterAccountLink.Builder extends GeneratedMessageV3.Builder<MerchantCenterAccountLink.Builder> implements MerchantCenterAccountLinkOrBuilder

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.v2alpha.MerchantCenterAccountLink

Static Methods

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

public MerchantCenterAccountLink.Builder addAllFeedFilters(Iterable<? extends MerchantCenterAccountLink.MerchantCenterFeedFilter> values)

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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.retail.v2alpha.MerchantCenterAccountLink.MerchantCenterFeedFilter>
Returns
TypeDescription
MerchantCenterAccountLink.Builder
public MerchantCenterAccountLink.Builder addFeedFilters(MerchantCenterAccountLink.MerchantCenterFeedFilter value)

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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Parameter
NameDescription
valueMerchantCenterAccountLink.MerchantCenterFeedFilter
Returns
TypeDescription
MerchantCenterAccountLink.Builder
public MerchantCenterAccountLink.Builder addFeedFilters(MerchantCenterAccountLink.MerchantCenterFeedFilter.Builder builderForValue)

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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Parameter
NameDescription
builderForValueMerchantCenterAccountLink.MerchantCenterFeedFilter.Builder
Returns
TypeDescription
MerchantCenterAccountLink.Builder
public MerchantCenterAccountLink.Builder addFeedFilters(int index, MerchantCenterAccountLink.MerchantCenterFeedFilter value)

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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Parameters
NameDescription
indexint
valueMerchantCenterAccountLink.MerchantCenterFeedFilter
Returns
TypeDescription
MerchantCenterAccountLink.Builder
public MerchantCenterAccountLink.Builder addFeedFilters(int index, MerchantCenterAccountLink.MerchantCenterFeedFilter.Builder builderForValue)

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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Parameters
NameDescription
indexint
builderForValueMerchantCenterAccountLink.MerchantCenterFeedFilter.Builder
Returns
TypeDescription
MerchantCenterAccountLink.Builder
public MerchantCenterAccountLink.MerchantCenterFeedFilter.Builder addFeedFiltersBuilder()

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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Returns
TypeDescription
MerchantCenterAccountLink.MerchantCenterFeedFilter.Builder
public MerchantCenterAccountLink.MerchantCenterFeedFilter.Builder addFeedFiltersBuilder(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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
MerchantCenterAccountLink.MerchantCenterFeedFilter.Builder
public MerchantCenterAccountLink.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MerchantCenterAccountLink.Builder
Overrides
public MerchantCenterAccountLink build()
Returns
TypeDescription
MerchantCenterAccountLink
public MerchantCenterAccountLink buildPartial()
Returns
TypeDescription
MerchantCenterAccountLink
public MerchantCenterAccountLink.Builder clear()
Returns
TypeDescription
MerchantCenterAccountLink.Builder
Overrides
public MerchantCenterAccountLink.Builder clearBranchId()

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.

string branch_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder clearFeedFilters()

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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Returns
TypeDescription
MerchantCenterAccountLink.Builder
public MerchantCenterAccountLink.Builder clearFeedLabel()

The FeedLabel used to perform filtering. Note: this replaces region_id.

Example value: US. Example value: FeedLabel1.

string feed_label = 4;

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MerchantCenterAccountLink.Builder
Overrides
public MerchantCenterAccountLink.Builder clearId()

Output only. Immutable. MerchantCenterAccountLink identifier, which is the final component of name. This field is auto generated and follows the convention: BranchId_MerchantCenterAccountId. projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1.

string id = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.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;

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.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 = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder clearName()

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.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
MerchantCenterAccountLink.Builder
Overrides
public MerchantCenterAccountLink.Builder clearProjectId()

Output only. GCP project ID.

string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder clearState()

Output only. Represents the state of the link.

.google.cloud.retail.v2alpha.MerchantCenterAccountLink.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder clone()
Returns
TypeDescription
MerchantCenterAccountLink.Builder
Overrides
public String getBranchId()

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.

string branch_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The branchId.

public ByteString getBranchIdBytes()

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.

string branch_id = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for branchId.

public MerchantCenterAccountLink getDefaultInstanceForType()
Returns
TypeDescription
MerchantCenterAccountLink
public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides
public MerchantCenterAccountLink.MerchantCenterFeedFilter getFeedFilters(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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
MerchantCenterAccountLink.MerchantCenterFeedFilter
public MerchantCenterAccountLink.MerchantCenterFeedFilter.Builder getFeedFiltersBuilder(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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
MerchantCenterAccountLink.MerchantCenterFeedFilter.Builder
public List<MerchantCenterAccountLink.MerchantCenterFeedFilter.Builder> getFeedFiltersBuilderList()

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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Returns
TypeDescription
List<Builder>
public int getFeedFiltersCount()

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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Returns
TypeDescription
int
public List<MerchantCenterAccountLink.MerchantCenterFeedFilter> getFeedFiltersList()

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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Returns
TypeDescription
List<MerchantCenterFeedFilter>
public MerchantCenterAccountLink.MerchantCenterFeedFilterOrBuilder getFeedFiltersOrBuilder(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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
MerchantCenterAccountLink.MerchantCenterFeedFilterOrBuilder
public List<? extends MerchantCenterAccountLink.MerchantCenterFeedFilterOrBuilder> getFeedFiltersOrBuilderList()

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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Returns
TypeDescription
List<? extends com.google.cloud.retail.v2alpha.MerchantCenterAccountLink.MerchantCenterFeedFilterOrBuilder>
public String getFeedLabel()

The FeedLabel used to perform filtering. Note: this replaces region_id.

Example value: US. Example value: FeedLabel1.

string feed_label = 4;

Returns
TypeDescription
String

The feedLabel.

public ByteString getFeedLabelBytes()

The FeedLabel used to perform filtering. Note: this replaces region_id.

Example value: US. Example value: FeedLabel1.

string feed_label = 4;

Returns
TypeDescription
ByteString

The bytes for feedLabel.

public String getId()

Output only. Immutable. MerchantCenterAccountLink identifier, which is the final component of name. This field is auto generated and follows the convention: BranchId_MerchantCenterAccountId. projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1.

string id = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The id.

public ByteString getIdBytes()

Output only. Immutable. MerchantCenterAccountLink identifier, which is the final component of name. This field is auto generated and follows the convention: BranchId_MerchantCenterAccountId. projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1.

string id = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for id.

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
TypeDescription
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
TypeDescription
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 = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
long

The merchantCenterAccountId.

public String getName()

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.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

public ByteString getNameBytes()

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.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

public String getProjectId()

Output only. GCP project ID.

string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The projectId.

public ByteString getProjectIdBytes()

Output only. GCP project ID.

string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for projectId.

public MerchantCenterAccountLink.State getState()

Output only. Represents the state of the link.

.google.cloud.retail.v2alpha.MerchantCenterAccountLink.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MerchantCenterAccountLink.State

The state.

public int getStateValue()

Output only. Represents the state of the link.

.google.cloud.retail.v2alpha.MerchantCenterAccountLink.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides
public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides
public MerchantCenterAccountLink.Builder mergeFrom(MerchantCenterAccountLink other)
Parameter
NameDescription
otherMerchantCenterAccountLink
Returns
TypeDescription
MerchantCenterAccountLink.Builder
public MerchantCenterAccountLink.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MerchantCenterAccountLink.Builder
Overrides
Exceptions
TypeDescription
IOException
public MerchantCenterAccountLink.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MerchantCenterAccountLink.Builder
Overrides
public final MerchantCenterAccountLink.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MerchantCenterAccountLink.Builder
Overrides
public MerchantCenterAccountLink.Builder removeFeedFilters(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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
MerchantCenterAccountLink.Builder
public MerchantCenterAccountLink.Builder setBranchId(String value)

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.

string branch_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The branchId to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder setBranchIdBytes(ByteString value)

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.

string branch_id = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for branchId to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder setFeedFilters(int index, MerchantCenterAccountLink.MerchantCenterFeedFilter value)

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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Parameters
NameDescription
indexint
valueMerchantCenterAccountLink.MerchantCenterFeedFilter
Returns
TypeDescription
MerchantCenterAccountLink.Builder
public MerchantCenterAccountLink.Builder setFeedFilters(int index, MerchantCenterAccountLink.MerchantCenterFeedFilter.Builder builderForValue)

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.MerchantCenterAccountLink.MerchantCenterFeedFilter feed_filters = 6;

Parameters
NameDescription
indexint
builderForValueMerchantCenterAccountLink.MerchantCenterFeedFilter.Builder
Returns
TypeDescription
MerchantCenterAccountLink.Builder
public MerchantCenterAccountLink.Builder setFeedLabel(String value)

The FeedLabel used to perform filtering. Note: this replaces region_id.

Example value: US. Example value: FeedLabel1.

string feed_label = 4;

Parameter
NameDescription
valueString

The feedLabel to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder setFeedLabelBytes(ByteString value)

The FeedLabel used to perform filtering. Note: this replaces region_id.

Example value: US. Example value: FeedLabel1.

string feed_label = 4;

Parameter
NameDescription
valueByteString

The bytes for feedLabel to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MerchantCenterAccountLink.Builder
Overrides
public MerchantCenterAccountLink.Builder setId(String value)

Output only. Immutable. MerchantCenterAccountLink identifier, which is the final component of name. This field is auto generated and follows the convention: BranchId_MerchantCenterAccountId. projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1.

string id = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder setIdBytes(ByteString value)

Output only. Immutable. MerchantCenterAccountLink identifier, which is the final component of name. This field is auto generated and follows the convention: BranchId_MerchantCenterAccountId. projects/*/locations/global/catalogs/default_catalog/merchantCenterAccountLinks/id_1.

string id = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.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;

Parameter
NameDescription
valueString

The languageCode to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.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;

Parameter
NameDescription
valueByteString

The bytes for languageCode to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.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 = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuelong

The merchantCenterAccountId to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder setName(String value)

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.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder setNameBytes(ByteString value)

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.

string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder setProjectId(String value)

Output only. GCP project ID.

string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder setProjectIdBytes(ByteString value)

Output only. GCP project ID.

string project_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
MerchantCenterAccountLink.Builder
Overrides
public MerchantCenterAccountLink.Builder setState(MerchantCenterAccountLink.State value)

Output only. Represents the state of the link.

.google.cloud.retail.v2alpha.MerchantCenterAccountLink.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueMerchantCenterAccountLink.State

The state to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public MerchantCenterAccountLink.Builder setStateValue(int value)

Output only. Represents the state of the link.

.google.cloud.retail.v2alpha.MerchantCenterAccountLink.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
MerchantCenterAccountLink.Builder

This builder for chaining.

public final MerchantCenterAccountLink.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
MerchantCenterAccountLink.Builder
Overrides