public static final class GbpAccount.Builder extends GeneratedMessageV3.Builder<GbpAccount.Builder> implements GbpAccountOrBuilderCollection of information related to a Google Business Profile (GBP) account.
Protobuf type google.shopping.merchant.accounts.v1.GbpAccount
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GbpAccount.BuilderImplements
GbpAccountOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GbpAccount.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GbpAccount.Builder |
|
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 |
|
clearField(Descriptors.FieldDescriptor field)
public GbpAccount.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
GbpAccount.Builder |
|
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. |
clearOneof(Descriptors.OneofDescriptor oneof)
public GbpAccount.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
GbpAccount.Builder |
|
clearType()
public GbpAccount.Builder clearType()The type of the Business Profile.
.google.shopping.merchant.accounts.v1.GbpAccount.Type type = 3;
| Returns | |
|---|---|
| Type | Description |
GbpAccount.Builder |
This builder for chaining. |
clone()
public GbpAccount.Builder clone()| Returns | |
|---|---|
| Type | Description |
GbpAccount.Builder |
|
getDefaultInstanceForType()
public GbpAccount getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GbpAccount |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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.v1.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.v1.GbpAccount.Type type = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GbpAccount.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GbpAccount.Builder |
|
mergeFrom(GbpAccount other)
public GbpAccount.Builder mergeFrom(GbpAccount other)| Parameter | |
|---|---|
| Name | Description |
other |
GbpAccount |
| Returns | |
|---|---|
| Type | Description |
GbpAccount.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GbpAccount.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GbpAccount.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public GbpAccount.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| 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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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 |
longThe 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 |
StringThe 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 |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
GbpAccount.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GbpAccount.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GbpAccount.Builder |
|
setType(GbpAccount.Type value)
public GbpAccount.Builder setType(GbpAccount.Type value)The type of the Business Profile.
.google.shopping.merchant.accounts.v1.GbpAccount.Type type = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
GbpAccount.TypeThe 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.v1.GbpAccount.Type type = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
GbpAccount.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final GbpAccount.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GbpAccount.Builder |
|