public static final class BusinessInfo.Builder extends GeneratedMessageV3.Builder<BusinessInfo.Builder> implements BusinessInfoOrBuilder The BusinessInfo message contains essential information about a
business.
This message captures key business details such as physical address, customer service contacts, and region-specific identifiers.
Protobuf type google.shopping.merchant.accounts.v1.BusinessInfo
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > BusinessInfo.BuilderImplements
BusinessInfoOrBuilderStatic 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 |
|
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 |
|
clearAddress()
public BusinessInfo.Builder clearAddress() Optional. The address of the business. Only region_code, address_lines,
postal_code, administrative_area and locality fields are supported.
All other fields are ignored.
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.v1.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 |
|
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 |
|
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.v1.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 |
|
getAddress()
public PostalAddress getAddress() Optional. The address of the business. Only region_code, address_lines,
postal_code, administrative_area and locality fields are supported.
All other fields are ignored.
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. Only region_code, address_lines,
postal_code, administrative_area and locality fields are supported.
All other fields are ignored.
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. Only region_code, address_lines,
postal_code, administrative_area and locality fields are supported.
All other fields are ignored.
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.v1.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.v1.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.v1.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 |
|
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.v1.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.v1.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. Only region_code, address_lines,
postal_code, administrative_area and locality fields are supported.
All other fields are ignored.
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.v1.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.v1.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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeAddress(PostalAddress value)
public BusinessInfo.Builder mergeAddress(PostalAddress value) Optional. The address of the business. Only region_code, address_lines,
postal_code, administrative_area and locality fields are supported.
All other fields are ignored.
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.v1.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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public BusinessInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
BusinessInfo.Builder |
|
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 |
|
setAddress(PostalAddress value)
public BusinessInfo.Builder setAddress(PostalAddress value) Optional. The address of the business. Only region_code, address_lines,
postal_code, administrative_area and locality fields are supported.
All other fields are ignored.
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. Only region_code, address_lines,
postal_code, administrative_area and locality fields are supported.
All other fields are ignored.
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.v1.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.v1.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 |
|
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 |
StringThe 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 |
ByteStringThe 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 |
StringThe 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 |
ByteStringThe 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.v1.PhoneVerificationState phone_verification_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
PhoneVerificationStateThe 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.v1.PhoneVerificationState phone_verification_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe 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 |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final BusinessInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
BusinessInfo.Builder |
|