Class MerchantCenterLinkingConfig.Builder (2.29.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.retail.v2alpha.MerchantCenterLink>
Returns
TypeDescription
MerchantCenterLinkingConfig.Builder
public MerchantCenterLinkingConfig.Builder addLinks(MerchantCenterLink value)

Links between Merchant Center accounts and branches.

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

Parameter
NameDescription
valueMerchantCenterLink
Returns
TypeDescription
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
NameDescription
builderForValueMerchantCenterLink.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMerchantCenterLink
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMerchantCenterLink.Builder
Returns
TypeDescription
MerchantCenterLinkingConfig.Builder

addLinksBuilder()

public MerchantCenterLink.Builder addLinksBuilder()

Links between Merchant Center accounts and branches.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MerchantCenterLink.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public MerchantCenterLinkingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
MerchantCenterLinkingConfig.Builder
Overrides

build()

public MerchantCenterLinkingConfig build()
Returns
TypeDescription
MerchantCenterLinkingConfig

buildPartial()

public MerchantCenterLinkingConfig buildPartial()
Returns
TypeDescription
MerchantCenterLinkingConfig

clear()

public MerchantCenterLinkingConfig.Builder clear()
Returns
TypeDescription
MerchantCenterLinkingConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public MerchantCenterLinkingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
MerchantCenterLinkingConfig.Builder
Overrides
public MerchantCenterLinkingConfig.Builder clearLinks()

Links between Merchant Center accounts and branches.

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

Returns
TypeDescription
MerchantCenterLinkingConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public MerchantCenterLinkingConfig.Builder clone()
Returns
TypeDescription
MerchantCenterLinkingConfig.Builder
Overrides

getDefaultInstanceForType()

public MerchantCenterLinkingConfig getDefaultInstanceForType()
Returns
TypeDescription
MerchantCenterLinkingConfig

getDescriptorForType()

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

Links between Merchant Center accounts and branches.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MerchantCenterLink.Builder

getLinksBuilderList()

public List<MerchantCenterLink.Builder> getLinksBuilderList()

Links between Merchant Center accounts and branches.

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

Returns
TypeDescription
List<Builder>

getLinksCount()

public int getLinksCount()

Links between Merchant Center accounts and branches.

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

Returns
TypeDescription
int
public List<MerchantCenterLink> getLinksList()

Links between Merchant Center accounts and branches.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MerchantCenterLinkOrBuilder

getLinksOrBuilderList()

public List<? extends MerchantCenterLinkOrBuilder> getLinksOrBuilderList()

Links between Merchant Center accounts and branches.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MerchantCenterLinkingConfig other)

public MerchantCenterLinkingConfig.Builder mergeFrom(MerchantCenterLinkingConfig other)
Parameter
NameDescription
otherMerchantCenterLinkingConfig
Returns
TypeDescription
MerchantCenterLinkingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public MerchantCenterLinkingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
MerchantCenterLinkingConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public MerchantCenterLinkingConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
MerchantCenterLinkingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MerchantCenterLinkingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MerchantCenterLinkingConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public MerchantCenterLinkingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueMerchantCenterLink
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMerchantCenterLink.Builder
Returns
TypeDescription
MerchantCenterLinkingConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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