Class CreateMerchantCenterAccountLinkRequest.Builder (2.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateMerchantCenterAccountLinkRequest build()
Returns
TypeDescription
CreateMerchantCenterAccountLinkRequest

buildPartial()

public CreateMerchantCenterAccountLinkRequest buildPartial()
Returns
TypeDescription
CreateMerchantCenterAccountLinkRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

public CreateMerchantCenterAccountLinkRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
CreateMerchantCenterAccountLinkRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateMerchantCenterAccountLinkRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateMerchantCenterAccountLinkRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateMerchantCenterAccountLinkRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateMerchantCenterAccountLinkRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the merchantCenterAccountLink field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateMerchantCenterAccountLinkRequest other)

public CreateMerchantCenterAccountLinkRequest.Builder mergeFrom(CreateMerchantCenterAccountLinkRequest other)
Parameter
NameDescription
otherCreateMerchantCenterAccountLinkRequest
Returns
TypeDescription
CreateMerchantCenterAccountLinkRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateMerchantCenterAccountLinkRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueMerchantCenterAccountLink
Returns
TypeDescription
CreateMerchantCenterAccountLinkRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateMerchantCenterAccountLinkRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateMerchantCenterAccountLinkRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateMerchantCenterAccountLinkRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueMerchantCenterAccountLink
Returns
TypeDescription
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
NameDescription
builderForValueMerchantCenterAccountLink.Builder
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateMerchantCenterAccountLinkRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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