Class MerchantCenterLinkingConfig.Builder (2.53.0)

public static final class MerchantCenterLinkingConfig.Builder extends GeneratedMessageV3.Builder<MerchantCenterLinkingConfig.Builder> implements MerchantCenterLinkingConfigOrBuilder

Configures Merchant Center linking. Links contained in the config will be used to sync data from a Merchant Center account to a Cloud Retail branch.

Protobuf type google.cloud.retail.v2alpha.MerchantCenterLinkingConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

public MerchantCenterLinkingConfig.Builder addAllLinks(Iterable<? extends MerchantCenterLink> values)

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.retail.v2alpha.MerchantCenterLink>
Returns
Type Description
MerchantCenterLinkingConfig.Builder
public MerchantCenterLinkingConfig.Builder addLinks(MerchantCenterLink value)

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Parameter
Name Description
value MerchantCenterLink
Returns
Type Description
MerchantCenterLinkingConfig.Builder
public MerchantCenterLinkingConfig.Builder addLinks(MerchantCenterLink.Builder builderForValue)

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Parameter
Name Description
builderForValue MerchantCenterLink.Builder
Returns
Type Description
MerchantCenterLinkingConfig.Builder
public MerchantCenterLinkingConfig.Builder addLinks(int index, MerchantCenterLink value)

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Parameters
Name Description
index int
value MerchantCenterLink
Returns
Type Description
MerchantCenterLinkingConfig.Builder
public MerchantCenterLinkingConfig.Builder addLinks(int index, MerchantCenterLink.Builder builderForValue)

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Parameters
Name Description
index int
builderForValue MerchantCenterLink.Builder
Returns
Type Description
MerchantCenterLinkingConfig.Builder

addLinksBuilder()

public MerchantCenterLink.Builder addLinksBuilder()

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Returns
Type Description
MerchantCenterLink.Builder

addLinksBuilder(int index)

public MerchantCenterLink.Builder addLinksBuilder(int index)

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Parameter
Name Description
index int
Returns
Type Description
MerchantCenterLink.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MerchantCenterLinkingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MerchantCenterLinkingConfig.Builder
Overrides

build()

public MerchantCenterLinkingConfig build()
Returns
Type Description
MerchantCenterLinkingConfig

buildPartial()

public MerchantCenterLinkingConfig buildPartial()
Returns
Type Description
MerchantCenterLinkingConfig

clear()

public MerchantCenterLinkingConfig.Builder clear()
Returns
Type Description
MerchantCenterLinkingConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MerchantCenterLinkingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
MerchantCenterLinkingConfig.Builder
Overrides
public MerchantCenterLinkingConfig.Builder clearLinks()

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Returns
Type Description
MerchantCenterLinkingConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public MerchantCenterLinkingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
MerchantCenterLinkingConfig.Builder
Overrides

clone()

public MerchantCenterLinkingConfig.Builder clone()
Returns
Type Description
MerchantCenterLinkingConfig.Builder
Overrides

getDefaultInstanceForType()

public MerchantCenterLinkingConfig getDefaultInstanceForType()
Returns
Type Description
MerchantCenterLinkingConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
public MerchantCenterLink getLinks(int index)

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Parameter
Name Description
index int
Returns
Type Description
MerchantCenterLink

getLinksBuilder(int index)

public MerchantCenterLink.Builder getLinksBuilder(int index)

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Parameter
Name Description
index int
Returns
Type Description
MerchantCenterLink.Builder

getLinksBuilderList()

public List<MerchantCenterLink.Builder> getLinksBuilderList()

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Returns
Type Description
List<Builder>

getLinksCount()

public int getLinksCount()

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Returns
Type Description
int
public List<MerchantCenterLink> getLinksList()

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Returns
Type Description
List<MerchantCenterLink>

getLinksOrBuilder(int index)

public MerchantCenterLinkOrBuilder getLinksOrBuilder(int index)

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Parameter
Name Description
index int
Returns
Type Description
MerchantCenterLinkOrBuilder

getLinksOrBuilderList()

public List<? extends MerchantCenterLinkOrBuilder> getLinksOrBuilderList()

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Returns
Type Description
List<? extends com.google.cloud.retail.v2alpha.MerchantCenterLinkOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MerchantCenterLinkingConfig other)

public MerchantCenterLinkingConfig.Builder mergeFrom(MerchantCenterLinkingConfig other)
Parameter
Name Description
other MerchantCenterLinkingConfig
Returns
Type Description
MerchantCenterLinkingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MerchantCenterLinkingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
MerchantCenterLinkingConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public MerchantCenterLinkingConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
MerchantCenterLinkingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MerchantCenterLinkingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MerchantCenterLinkingConfig.Builder
Overrides
public MerchantCenterLinkingConfig.Builder removeLinks(int index)

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Parameter
Name Description
index int
Returns
Type Description
MerchantCenterLinkingConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MerchantCenterLinkingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
MerchantCenterLinkingConfig.Builder
Overrides
public MerchantCenterLinkingConfig.Builder setLinks(int index, MerchantCenterLink value)

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Parameters
Name Description
index int
value MerchantCenterLink
Returns
Type Description
MerchantCenterLinkingConfig.Builder
public MerchantCenterLinkingConfig.Builder setLinks(int index, MerchantCenterLink.Builder builderForValue)

Links between Merchant Center accounts and branches.

repeated .google.cloud.retail.v2alpha.MerchantCenterLink links = 1;

Parameters
Name Description
index int
builderForValue MerchantCenterLink.Builder
Returns
Type Description
MerchantCenterLinkingConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public MerchantCenterLinkingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
MerchantCenterLinkingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final MerchantCenterLinkingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
MerchantCenterLinkingConfig.Builder
Overrides