Class LinkGbpAccountRequest.Builder (1.11.0)

public static final class LinkGbpAccountRequest.Builder extends GeneratedMessage.Builder<LinkGbpAccountRequest.Builder> implements LinkGbpAccountRequestOrBuilder

Request message for the LinkGbpAccount method.

Protobuf type google.shopping.merchant.accounts.v1.LinkGbpAccountRequest

Static Methods

getDescriptor()

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

Methods

build()

public LinkGbpAccountRequest build()
Returns
Type Description
LinkGbpAccountRequest

buildPartial()

public LinkGbpAccountRequest buildPartial()
Returns
Type Description
LinkGbpAccountRequest

clear()

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

clearGbpEmail()

public LinkGbpAccountRequest.Builder clearGbpEmail()

Required. The email address of the Business Profile account.

string gbp_email = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
LinkGbpAccountRequest.Builder

This builder for chaining.

clearParent()

public LinkGbpAccountRequest.Builder clearParent()

Required. The name of the parent resource to which the GBP account is linked. Format: accounts/{account}.

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

Returns
Type Description
LinkGbpAccountRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public LinkGbpAccountRequest getDefaultInstanceForType()
Returns
Type Description
LinkGbpAccountRequest

getDescriptorForType()

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

getGbpEmail()

public String getGbpEmail()

Required. The email address of the Business Profile account.

string gbp_email = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The gbpEmail.

getGbpEmailBytes()

public ByteString getGbpEmailBytes()

Required. The email address of the Business Profile account.

string gbp_email = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for gbpEmail.

getParent()

public String getParent()

Required. The name of the parent resource to which the GBP account is linked. Format: accounts/{account}.

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The name of the parent resource to which the GBP account is linked. Format: accounts/{account}.

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

Returns
Type Description
ByteString

The bytes for parent.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(LinkGbpAccountRequest other)

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

setGbpEmail(String value)

public LinkGbpAccountRequest.Builder setGbpEmail(String value)

Required. The email address of the Business Profile account.

string gbp_email = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The gbpEmail to set.

Returns
Type Description
LinkGbpAccountRequest.Builder

This builder for chaining.

setGbpEmailBytes(ByteString value)

public LinkGbpAccountRequest.Builder setGbpEmailBytes(ByteString value)

Required. The email address of the Business Profile account.

string gbp_email = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for gbpEmail to set.

Returns
Type Description
LinkGbpAccountRequest.Builder

This builder for chaining.

setParent(String value)

public LinkGbpAccountRequest.Builder setParent(String value)

Required. The name of the parent resource to which the GBP account is linked. Format: accounts/{account}.

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
LinkGbpAccountRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public LinkGbpAccountRequest.Builder setParentBytes(ByteString value)

Required. The name of the parent resource to which the GBP account is linked. Format: accounts/{account}.

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
LinkGbpAccountRequest.Builder

This builder for chaining.