Class BusinessInfo.Builder (0.11.0)

public static final class BusinessInfo.Builder extends GeneratedMessageV3.Builder<BusinessInfo.Builder> implements BusinessInfoOrBuilder

Collection of information related to a business.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BusinessInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BusinessInfo.Builder
Overrides

build()

public BusinessInfo build()
Returns
Type Description
BusinessInfo

buildPartial()

public BusinessInfo buildPartial()
Returns
Type Description
BusinessInfo

clear()

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

clearAddress()

public BusinessInfo.Builder clearAddress()

Optional. The address of the business.

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

Returns
Type Description
BusinessInfo.Builder

clearCustomerService()

public BusinessInfo.Builder clearCustomerService()

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

clearField(Descriptors.FieldDescriptor field)

public BusinessInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BusinessInfo.Builder
Overrides

clearKoreanBusinessRegistrationNumber()

public BusinessInfo.Builder clearKoreanBusinessRegistrationNumber()

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

This builder for chaining.

clearName()

public BusinessInfo.Builder clearName()

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

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

Returns
Type Description
BusinessInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BusinessInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BusinessInfo.Builder
Overrides

clearPhone()

public BusinessInfo.Builder clearPhone()

Output only. The phone number of the business.

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

Returns
Type Description
BusinessInfo.Builder

clearPhoneVerificationState()

public BusinessInfo.Builder clearPhoneVerificationState()

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

This builder for chaining.

clone()

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

getAddressBuilder()

public PostalAddress.Builder getAddressBuilder()

Optional. The address of the business.

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

Returns
Type Description
com.google.type.PostalAddress.Builder

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.

getCustomerServiceBuilder()

public CustomerService.Builder getCustomerServiceBuilder()

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

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

getDescriptorForType()

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

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.

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.

getPhoneBuilder()

public PhoneNumber.Builder getPhoneBuilder()

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

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAddress(PostalAddress value)

public BusinessInfo.Builder mergeAddress(PostalAddress value)

Optional. The address of the business.

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

Parameter
Name Description
value com.google.type.PostalAddress
Returns
Type Description
BusinessInfo.Builder

mergeCustomerService(CustomerService value)

public BusinessInfo.Builder mergeCustomerService(CustomerService value)

Optional. The customer service of the business.

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

Parameter
Name Description
value CustomerService
Returns
Type Description
BusinessInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(BusinessInfo other)

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

mergePhone(PhoneNumber value)

public BusinessInfo.Builder mergePhone(PhoneNumber value)

Output only. The phone number of the business.

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

Parameter
Name Description
value com.google.type.PhoneNumber
Returns
Type Description
BusinessInfo.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BusinessInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BusinessInfo.Builder
Overrides

setAddress(PostalAddress value)

public BusinessInfo.Builder setAddress(PostalAddress value)

Optional. The address of the business.

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

Parameter
Name Description
value com.google.type.PostalAddress
Returns
Type Description
BusinessInfo.Builder

setAddress(PostalAddress.Builder builderForValue)

public BusinessInfo.Builder setAddress(PostalAddress.Builder builderForValue)

Optional. The address of the business.

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

Parameter
Name Description
builderForValue com.google.type.PostalAddress.Builder
Returns
Type Description
BusinessInfo.Builder

setCustomerService(CustomerService value)

public BusinessInfo.Builder setCustomerService(CustomerService value)

Optional. The customer service of the business.

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

Parameter
Name Description
value CustomerService
Returns
Type Description
BusinessInfo.Builder

setCustomerService(CustomerService.Builder builderForValue)

public BusinessInfo.Builder setCustomerService(CustomerService.Builder builderForValue)

Optional. The customer service of the business.

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

Parameter
Name Description
builderForValue CustomerService.Builder
Returns
Type Description
BusinessInfo.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BusinessInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BusinessInfo.Builder
Overrides

setKoreanBusinessRegistrationNumber(String value)

public BusinessInfo.Builder setKoreanBusinessRegistrationNumber(String value)

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];

Parameter
Name Description
value String

The koreanBusinessRegistrationNumber to set.

Returns
Type Description
BusinessInfo.Builder

This builder for chaining.

setKoreanBusinessRegistrationNumberBytes(ByteString value)

public BusinessInfo.Builder setKoreanBusinessRegistrationNumberBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for koreanBusinessRegistrationNumber to set.

Returns
Type Description
BusinessInfo.Builder

This builder for chaining.

setName(String value)

public BusinessInfo.Builder setName(String value)

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

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
BusinessInfo.Builder

This builder for chaining.

setNameBytes(ByteString value)

public BusinessInfo.Builder setNameBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
BusinessInfo.Builder

This builder for chaining.

setPhone(PhoneNumber value)

public BusinessInfo.Builder setPhone(PhoneNumber value)

Output only. The phone number of the business.

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

Parameter
Name Description
value com.google.type.PhoneNumber
Returns
Type Description
BusinessInfo.Builder

setPhone(PhoneNumber.Builder builderForValue)

public BusinessInfo.Builder setPhone(PhoneNumber.Builder builderForValue)

Output only. The phone number of the business.

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

Parameter
Name Description
builderForValue com.google.type.PhoneNumber.Builder
Returns
Type Description
BusinessInfo.Builder

setPhoneVerificationState(PhoneVerificationState value)

public BusinessInfo.Builder setPhoneVerificationState(PhoneVerificationState value)

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];

Parameter
Name Description
value PhoneVerificationState

The phoneVerificationState to set.

Returns
Type Description
BusinessInfo.Builder

This builder for chaining.

setPhoneVerificationStateValue(int value)

public BusinessInfo.Builder setPhoneVerificationStateValue(int value)

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];

Parameter
Name Description
value int

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

Returns
Type Description
BusinessInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BusinessInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BusinessInfo.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BusinessInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BusinessInfo.Builder
Overrides