Class BusinessInfo (0.7.0)

public final class BusinessInfo extends GeneratedMessageV3 implements BusinessInfoOrBuilder

Collection of information related to a business.

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

Static Fields

ADDRESS_FIELD_NUMBER

public static final int ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

CUSTOMER_SERVICE_FIELD_NUMBER

public static final int CUSTOMER_SERVICE_FIELD_NUMBER
Field Value
Type Description
int

KOREAN_BUSINESS_REGISTRATION_NUMBER_FIELD_NUMBER

public static final int KOREAN_BUSINESS_REGISTRATION_NUMBER_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PHONE_FIELD_NUMBER

public static final int PHONE_FIELD_NUMBER
Field Value
Type Description
int

PHONE_VERIFICATION_STATE_FIELD_NUMBER

public static final int PHONE_VERIFICATION_STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BusinessInfo getDefaultInstance()
Returns
Type Description
BusinessInfo

getDescriptor()

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

newBuilder()

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

newBuilder(BusinessInfo prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAddress()

public PostalAddress getAddress()

Optional. The address of the business.

optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.PostalAddress

The address.

getAddressOrBuilder()

public PostalAddressOrBuilder getAddressOrBuilder()

Optional. The address of the business.

optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
com.google.type.PostalAddressOrBuilder

getCustomerService()

public CustomerService getCustomerService()

Optional. The customer service of the business.

optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomerService

The customerService.

getCustomerServiceOrBuilder()

public CustomerServiceOrBuilder getCustomerServiceOrBuilder()

Optional. The customer service of the business.

optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CustomerServiceOrBuilder

getDefaultInstanceForType()

public BusinessInfo getDefaultInstanceForType()
Returns
Type Description
BusinessInfo

getKoreanBusinessRegistrationNumber()

public String getKoreanBusinessRegistrationNumber()

Optional. The 10-digit Korean business registration number separated with dashes in the format: XXX-XX-XXXXX.

optional string korean_business_registration_number = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The koreanBusinessRegistrationNumber.

getKoreanBusinessRegistrationNumberBytes()

public ByteString getKoreanBusinessRegistrationNumberBytes()

Optional. The 10-digit Korean business registration number separated with dashes in the format: XXX-XX-XXXXX.

optional string korean_business_registration_number = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for koreanBusinessRegistrationNumber.

getName()

public String getName()

Identifier. The resource name of the business info. Format: accounts/{account}/businessInfo

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the business info. Format: accounts/{account}/businessInfo

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

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getPhone()

public PhoneNumber getPhone()

Output only. The phone number of the business.

optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.PhoneNumber

The phone.

getPhoneOrBuilder()

public PhoneNumberOrBuilder getPhoneOrBuilder()

Output only. The phone number of the business.

optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.PhoneNumberOrBuilder

getPhoneVerificationState()

public PhoneVerificationState getPhoneVerificationState()

Output only. The phone verification state of the business.

optional .google.shopping.merchant.accounts.v1beta.PhoneVerificationState phone_verification_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PhoneVerificationState

The phoneVerificationState.

getPhoneVerificationStateValue()

public int getPhoneVerificationStateValue()

Output only. The phone verification state of the business.

optional .google.shopping.merchant.accounts.v1beta.PhoneVerificationState phone_verification_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for phoneVerificationState.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAddress()

public boolean hasAddress()

Optional. The address of the business.

optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the address field is set.

hasCustomerService()

public boolean hasCustomerService()

Optional. The customer service of the business.

optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the customerService field is set.

hasKoreanBusinessRegistrationNumber()

public boolean hasKoreanBusinessRegistrationNumber()

Optional. The 10-digit Korean business registration number separated with dashes in the format: XXX-XX-XXXXX.

optional string korean_business_registration_number = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the koreanBusinessRegistrationNumber field is set.

hasPhone()

public boolean hasPhone()

Output only. The phone number of the business.

optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the phone field is set.

hasPhoneVerificationState()

public boolean hasPhoneVerificationState()

Output only. The phone verification state of the business.

optional .google.shopping.merchant.accounts.v1beta.PhoneVerificationState phone_verification_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the phoneVerificationState field is set.

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 BusinessInfo.Builder newBuilderForType()
Returns
Type Description
BusinessInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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