Class CreateMerchantCenterAccountLinkRequest.Builder (2.49.0)

public static final class CreateMerchantCenterAccountLinkRequest.Builder extends GeneratedMessageV3.Builder<CreateMerchantCenterAccountLinkRequest.Builder> implements CreateMerchantCenterAccountLinkRequestOrBuilder

Request for MerchantCenterAccountLinkService.CreateMerchantCenterAccountLink method.

Protobuf type google.cloud.retail.v2alpha.CreateMerchantCenterAccountLinkRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateMerchantCenterAccountLinkRequest build()
Returns
Type Description
CreateMerchantCenterAccountLinkRequest

buildPartial()

public CreateMerchantCenterAccountLinkRequest buildPartial()
Returns
Type Description
CreateMerchantCenterAccountLinkRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateMerchantCenterAccountLinkRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateMerchantCenterAccountLinkRequest.Builder
Overrides
public CreateMerchantCenterAccountLinkRequest.Builder clearMerchantCenterAccountLink()

Required. The MerchantCenterAccountLink to create.

If the caller does not have permission to create the MerchantCenterAccountLink, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

.google.cloud.retail.v2alpha.MerchantCenterAccountLink merchant_center_account_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateMerchantCenterAccountLinkRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateMerchantCenterAccountLinkRequest.Builder clearParent()

Required. The branch resource where this MerchantCenterAccountLink will be created. Format: projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateMerchantCenterAccountLinkRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateMerchantCenterAccountLinkRequest getDefaultInstanceForType()
Returns
Type Description
CreateMerchantCenterAccountLinkRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides
public MerchantCenterAccountLink getMerchantCenterAccountLink()

Required. The MerchantCenterAccountLink to create.

If the caller does not have permission to create the MerchantCenterAccountLink, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

.google.cloud.retail.v2alpha.MerchantCenterAccountLink merchant_center_account_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MerchantCenterAccountLink

The merchantCenterAccountLink.

getMerchantCenterAccountLinkBuilder()

public MerchantCenterAccountLink.Builder getMerchantCenterAccountLinkBuilder()

Required. The MerchantCenterAccountLink to create.

If the caller does not have permission to create the MerchantCenterAccountLink, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

.google.cloud.retail.v2alpha.MerchantCenterAccountLink merchant_center_account_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MerchantCenterAccountLink.Builder

getMerchantCenterAccountLinkOrBuilder()

public MerchantCenterAccountLinkOrBuilder getMerchantCenterAccountLinkOrBuilder()

Required. The MerchantCenterAccountLink to create.

If the caller does not have permission to create the MerchantCenterAccountLink, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

.google.cloud.retail.v2alpha.MerchantCenterAccountLink merchant_center_account_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
MerchantCenterAccountLinkOrBuilder

getParent()

public String getParent()

Required. The branch resource where this MerchantCenterAccountLink will be created. Format: projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The branch resource where this MerchantCenterAccountLink will be created. Format: projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

public boolean hasMerchantCenterAccountLink()

Required. The MerchantCenterAccountLink to create.

If the caller does not have permission to create the MerchantCenterAccountLink, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

.google.cloud.retail.v2alpha.MerchantCenterAccountLink merchant_center_account_link = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the merchantCenterAccountLink field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateMerchantCenterAccountLinkRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateMerchantCenterAccountLinkRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateMerchantCenterAccountLinkRequest.Builder
Overrides
public CreateMerchantCenterAccountLinkRequest.Builder mergeMerchantCenterAccountLink(MerchantCenterAccountLink value)

Required. The MerchantCenterAccountLink to create.

If the caller does not have permission to create the MerchantCenterAccountLink, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

.google.cloud.retail.v2alpha.MerchantCenterAccountLink merchant_center_account_link = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MerchantCenterAccountLink
Returns
Type Description
CreateMerchantCenterAccountLinkRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateMerchantCenterAccountLinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateMerchantCenterAccountLinkRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateMerchantCenterAccountLinkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateMerchantCenterAccountLinkRequest.Builder
Overrides
public CreateMerchantCenterAccountLinkRequest.Builder setMerchantCenterAccountLink(MerchantCenterAccountLink value)

Required. The MerchantCenterAccountLink to create.

If the caller does not have permission to create the MerchantCenterAccountLink, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

.google.cloud.retail.v2alpha.MerchantCenterAccountLink merchant_center_account_link = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value MerchantCenterAccountLink
Returns
Type Description
CreateMerchantCenterAccountLinkRequest.Builder
public CreateMerchantCenterAccountLinkRequest.Builder setMerchantCenterAccountLink(MerchantCenterAccountLink.Builder builderForValue)

Required. The MerchantCenterAccountLink to create.

If the caller does not have permission to create the MerchantCenterAccountLink, regardless of whether or not it exists, a PERMISSION_DENIED error is returned.

.google.cloud.retail.v2alpha.MerchantCenterAccountLink merchant_center_account_link = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue MerchantCenterAccountLink.Builder
Returns
Type Description
CreateMerchantCenterAccountLinkRequest.Builder

setParent(String value)

public CreateMerchantCenterAccountLinkRequest.Builder setParent(String value)

Required. The branch resource where this MerchantCenterAccountLink will be created. Format: projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateMerchantCenterAccountLinkRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateMerchantCenterAccountLinkRequest.Builder setParentBytes(ByteString value)

Required. The branch resource where this MerchantCenterAccountLink will be created. Format: projects/{PROJECT_NUMBER}/locations/global/catalogs/{CATALOG_ID}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateMerchantCenterAccountLinkRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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