Class GbpAccount.Builder (1.11.0)

public static final class GbpAccount.Builder extends GeneratedMessage.Builder<GbpAccount.Builder> implements GbpAccountOrBuilder

Collection of information related to a Google Business Profile (GBP) account.

Protobuf type google.shopping.merchant.accounts.v1beta.GbpAccount

Implements

GbpAccountOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public GbpAccount build()
Returns
Type Description
GbpAccount

buildPartial()

public GbpAccount buildPartial()
Returns
Type Description
GbpAccount

clear()

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

clearGbpAccountId()

public GbpAccount.Builder clearGbpAccountId()

The id of the GBP account.

string gbp_account_id = 2;

Returns
Type Description
GbpAccount.Builder

This builder for chaining.

clearGbpAccountName()

public GbpAccount.Builder clearGbpAccountName()

The name of the Business Profile. For personal accounts: Email id of the owner. For Business accounts: Name of the Business Account.

string gbp_account_name = 5;

Returns
Type Description
GbpAccount.Builder

This builder for chaining.

clearListingCount()

public GbpAccount.Builder clearListingCount()

Number of listings under this account.

int64 listing_count = 6;

Returns
Type Description
GbpAccount.Builder

This builder for chaining.

clearName()

public GbpAccount.Builder clearName()

Identifier. The resource name of the GBP account. Format: accounts/{account}/gbpAccount/{gbp_account}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
GbpAccount.Builder

This builder for chaining.

clearType()

public GbpAccount.Builder clearType()

The type of the Business Profile.

.google.shopping.merchant.accounts.v1beta.GbpAccount.Type type = 3;

Returns
Type Description
GbpAccount.Builder

This builder for chaining.

getDefaultInstanceForType()

public GbpAccount getDefaultInstanceForType()
Returns
Type Description
GbpAccount

getDescriptorForType()

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

getGbpAccountId()

public String getGbpAccountId()

The id of the GBP account.

string gbp_account_id = 2;

Returns
Type Description
String

The gbpAccountId.

getGbpAccountIdBytes()

public ByteString getGbpAccountIdBytes()

The id of the GBP account.

string gbp_account_id = 2;

Returns
Type Description
ByteString

The bytes for gbpAccountId.

getGbpAccountName()

public String getGbpAccountName()

The name of the Business Profile. For personal accounts: Email id of the owner. For Business accounts: Name of the Business Account.

string gbp_account_name = 5;

Returns
Type Description
String

The gbpAccountName.

getGbpAccountNameBytes()

public ByteString getGbpAccountNameBytes()

The name of the Business Profile. For personal accounts: Email id of the owner. For Business accounts: Name of the Business Account.

string gbp_account_name = 5;

Returns
Type Description
ByteString

The bytes for gbpAccountName.

getListingCount()

public long getListingCount()

Number of listings under this account.

int64 listing_count = 6;

Returns
Type Description
long

The listingCount.

getName()

public String getName()

Identifier. The resource name of the GBP account. Format: accounts/{account}/gbpAccount/{gbp_account}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the GBP account. Format: accounts/{account}/gbpAccount/{gbp_account}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getType()

public GbpAccount.Type getType()

The type of the Business Profile.

.google.shopping.merchant.accounts.v1beta.GbpAccount.Type type = 3;

Returns
Type Description
GbpAccount.Type

The type.

getTypeValue()

public int getTypeValue()

The type of the Business Profile.

.google.shopping.merchant.accounts.v1beta.GbpAccount.Type type = 3;

Returns
Type Description
int

The enum numeric value on the wire for type.

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 GbpAccount.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GbpAccount.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(GbpAccount other)

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

setGbpAccountId(String value)

public GbpAccount.Builder setGbpAccountId(String value)

The id of the GBP account.

string gbp_account_id = 2;

Parameter
Name Description
value String

The gbpAccountId to set.

Returns
Type Description
GbpAccount.Builder

This builder for chaining.

setGbpAccountIdBytes(ByteString value)

public GbpAccount.Builder setGbpAccountIdBytes(ByteString value)

The id of the GBP account.

string gbp_account_id = 2;

Parameter
Name Description
value ByteString

The bytes for gbpAccountId to set.

Returns
Type Description
GbpAccount.Builder

This builder for chaining.

setGbpAccountName(String value)

public GbpAccount.Builder setGbpAccountName(String value)

The name of the Business Profile. For personal accounts: Email id of the owner. For Business accounts: Name of the Business Account.

string gbp_account_name = 5;

Parameter
Name Description
value String

The gbpAccountName to set.

Returns
Type Description
GbpAccount.Builder

This builder for chaining.

setGbpAccountNameBytes(ByteString value)

public GbpAccount.Builder setGbpAccountNameBytes(ByteString value)

The name of the Business Profile. For personal accounts: Email id of the owner. For Business accounts: Name of the Business Account.

string gbp_account_name = 5;

Parameter
Name Description
value ByteString

The bytes for gbpAccountName to set.

Returns
Type Description
GbpAccount.Builder

This builder for chaining.

setListingCount(long value)

public GbpAccount.Builder setListingCount(long value)

Number of listings under this account.

int64 listing_count = 6;

Parameter
Name Description
value long

The listingCount to set.

Returns
Type Description
GbpAccount.Builder

This builder for chaining.

setName(String value)

public GbpAccount.Builder setName(String value)

Identifier. The resource name of the GBP account. Format: accounts/{account}/gbpAccount/{gbp_account}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GbpAccount.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GbpAccount.Builder setNameBytes(ByteString value)

Identifier. The resource name of the GBP account. Format: accounts/{account}/gbpAccount/{gbp_account}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GbpAccount.Builder

This builder for chaining.

setType(GbpAccount.Type value)

public GbpAccount.Builder setType(GbpAccount.Type value)

The type of the Business Profile.

.google.shopping.merchant.accounts.v1beta.GbpAccount.Type type = 3;

Parameter
Name Description
value GbpAccount.Type

The type to set.

Returns
Type Description
GbpAccount.Builder

This builder for chaining.

setTypeValue(int value)

public GbpAccount.Builder setTypeValue(int value)

The type of the Business Profile.

.google.shopping.merchant.accounts.v1beta.GbpAccount.Type type = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for type to set.

Returns
Type Description
GbpAccount.Builder

This builder for chaining.