Class GbpAccount (0.20.0)

public final class GbpAccount extends GeneratedMessageV3 implements GbpAccountOrBuilder

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

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

Implements

GbpAccountOrBuilder

Static Fields

GBP_ACCOUNT_ID_FIELD_NUMBER

public static final int GBP_ACCOUNT_ID_FIELD_NUMBER
Field Value
Type Description
int

GBP_ACCOUNT_NAME_FIELD_NUMBER

public static final int GBP_ACCOUNT_NAME_FIELD_NUMBER
Field Value
Type Description
int

LISTING_COUNT_FIELD_NUMBER

public static final int LISTING_COUNT_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GbpAccount getDefaultInstance()
Returns
Type Description
GbpAccount

getDescriptor()

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

newBuilder()

public static GbpAccount.Builder newBuilder()
Returns
Type Description
GbpAccount.Builder

newBuilder(GbpAccount prototype)

public static GbpAccount.Builder newBuilder(GbpAccount prototype)
Parameter
Name Description
prototype GbpAccount
Returns
Type Description
GbpAccount.Builder

parseDelimitedFrom(InputStream input)

public static GbpAccount parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GbpAccount
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GbpAccount parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GbpAccount
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GbpAccount parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GbpAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GbpAccount parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GbpAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GbpAccount parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GbpAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GbpAccount parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GbpAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GbpAccount parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GbpAccount
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GbpAccount parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GbpAccount
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GbpAccount parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GbpAccount
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GbpAccount parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GbpAccount
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GbpAccount parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GbpAccount
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GbpAccount parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GbpAccount
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GbpAccount> parser()
Returns
Type Description
Parser<GbpAccount>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public GbpAccount getDefaultInstanceForType()
Returns
Type Description
GbpAccount

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.

getParserForType()

public Parser<GbpAccount> getParserForType()
Returns
Type Description
Parser<GbpAccount>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GbpAccount.Builder newBuilderForType()
Returns
Type Description
GbpAccount.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GbpAccount.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GbpAccount.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public GbpAccount.Builder toBuilder()
Returns
Type Description
GbpAccount.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException