All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.shopping.merchant.accounts.v1beta.BusinessInfo Maven / Gradle / Ivy

/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/shopping/merchant/accounts/v1beta/businessinfo.proto

// Protobuf Java Version: 3.25.5
package com.google.shopping.merchant.accounts.v1beta;

/**
 *
 *
 * 
 * Collection of information related to a business.
 * 
* * Protobuf type {@code google.shopping.merchant.accounts.v1beta.BusinessInfo} */ public final class BusinessInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.BusinessInfo) BusinessInfoOrBuilder { private static final long serialVersionUID = 0L; // Use BusinessInfo.newBuilder() to construct. private BusinessInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BusinessInfo() { name_ = ""; phoneVerificationState_ = 0; koreanBusinessRegistrationNumber_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BusinessInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.BusinessInfoProto .internal_static_google_shopping_merchant_accounts_v1beta_BusinessInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.accounts.v1beta.BusinessInfoProto .internal_static_google_shopping_merchant_accounts_v1beta_BusinessInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.BusinessInfo.class, com.google.shopping.merchant.accounts.v1beta.BusinessInfo.Builder.class); } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * Identifier. The resource name of the business info.
   * Format: `accounts/{account}/businessInfo`
   * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * Identifier. The resource name of the business info.
   * Format: `accounts/{account}/businessInfo`
   * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADDRESS_FIELD_NUMBER = 2; private com.google.type.PostalAddress address_; /** * * *
   * Optional. The address of the business.
   * 
* * * optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the address field is set. */ @java.lang.Override public boolean hasAddress() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Optional. The address of the business.
   * 
* * * optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The address. */ @java.lang.Override public com.google.type.PostalAddress getAddress() { return address_ == null ? com.google.type.PostalAddress.getDefaultInstance() : address_; } /** * * *
   * Optional. The address of the business.
   * 
* * * optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.type.PostalAddressOrBuilder getAddressOrBuilder() { return address_ == null ? com.google.type.PostalAddress.getDefaultInstance() : address_; } public static final int PHONE_FIELD_NUMBER = 3; private com.google.type.PhoneNumber phone_; /** * * *
   * Output only. The phone number of the business.
   * 
* * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the phone field is set. */ @java.lang.Override public boolean hasPhone() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Output only. The phone number of the business.
   * 
* * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The phone. */ @java.lang.Override public com.google.type.PhoneNumber getPhone() { return phone_ == null ? com.google.type.PhoneNumber.getDefaultInstance() : phone_; } /** * * *
   * Output only. The phone number of the business.
   * 
* * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override public com.google.type.PhoneNumberOrBuilder getPhoneOrBuilder() { return phone_ == null ? com.google.type.PhoneNumber.getDefaultInstance() : phone_; } public static final int PHONE_VERIFICATION_STATE_FIELD_NUMBER = 4; private int phoneVerificationState_ = 0; /** * * *
   * 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]; * * * @return Whether the phoneVerificationState field is set. */ @java.lang.Override public boolean hasPhoneVerificationState() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * 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]; * * * @return The enum numeric value on the wire for phoneVerificationState. */ @java.lang.Override public int getPhoneVerificationStateValue() { return phoneVerificationState_; } /** * * *
   * 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]; * * * @return The phoneVerificationState. */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.PhoneVerificationState getPhoneVerificationState() { com.google.shopping.merchant.accounts.v1beta.PhoneVerificationState result = com.google.shopping.merchant.accounts.v1beta.PhoneVerificationState.forNumber( phoneVerificationState_); return result == null ? com.google.shopping.merchant.accounts.v1beta.PhoneVerificationState.UNRECOGNIZED : result; } public static final int CUSTOMER_SERVICE_FIELD_NUMBER = 5; private com.google.shopping.merchant.accounts.v1beta.CustomerService customerService_; /** * * *
   * Optional. The customer service of the business.
   * 
* * * optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the customerService field is set. */ @java.lang.Override public boolean hasCustomerService() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
   * Optional. The customer service of the business.
   * 
* * * optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The customerService. */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.CustomerService getCustomerService() { return customerService_ == null ? com.google.shopping.merchant.accounts.v1beta.CustomerService.getDefaultInstance() : customerService_; } /** * * *
   * Optional. The customer service of the business.
   * 
* * * optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.CustomerServiceOrBuilder getCustomerServiceOrBuilder() { return customerService_ == null ? com.google.shopping.merchant.accounts.v1beta.CustomerService.getDefaultInstance() : customerService_; } public static final int KOREAN_BUSINESS_REGISTRATION_NUMBER_FIELD_NUMBER = 6; @SuppressWarnings("serial") private volatile java.lang.Object koreanBusinessRegistrationNumber_ = ""; /** * * *
   * Optional. The 10-digit [Korean business registration
   * number](https://support.google.com/merchants/answer/9037766) separated with
   * dashes in the format: XXX-XX-XXXXX.
   * 
* * * optional string korean_business_registration_number = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the koreanBusinessRegistrationNumber field is set. */ @java.lang.Override public boolean hasKoreanBusinessRegistrationNumber() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
   * Optional. The 10-digit [Korean business registration
   * number](https://support.google.com/merchants/answer/9037766) separated with
   * dashes in the format: XXX-XX-XXXXX.
   * 
* * * optional string korean_business_registration_number = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The koreanBusinessRegistrationNumber. */ @java.lang.Override public java.lang.String getKoreanBusinessRegistrationNumber() { java.lang.Object ref = koreanBusinessRegistrationNumber_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); koreanBusinessRegistrationNumber_ = s; return s; } } /** * * *
   * Optional. The 10-digit [Korean business registration
   * number](https://support.google.com/merchants/answer/9037766) separated with
   * dashes in the format: XXX-XX-XXXXX.
   * 
* * * optional string korean_business_registration_number = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The bytes for koreanBusinessRegistrationNumber. */ @java.lang.Override public com.google.protobuf.ByteString getKoreanBusinessRegistrationNumberBytes() { java.lang.Object ref = koreanBusinessRegistrationNumber_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); koreanBusinessRegistrationNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getAddress()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getPhone()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(4, phoneVerificationState_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(5, getCustomerService()); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString( output, 6, koreanBusinessRegistrationNumber_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAddress()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPhone()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, phoneVerificationState_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCustomerService()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize( 6, koreanBusinessRegistrationNumber_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.shopping.merchant.accounts.v1beta.BusinessInfo)) { return super.equals(obj); } com.google.shopping.merchant.accounts.v1beta.BusinessInfo other = (com.google.shopping.merchant.accounts.v1beta.BusinessInfo) obj; if (!getName().equals(other.getName())) return false; if (hasAddress() != other.hasAddress()) return false; if (hasAddress()) { if (!getAddress().equals(other.getAddress())) return false; } if (hasPhone() != other.hasPhone()) return false; if (hasPhone()) { if (!getPhone().equals(other.getPhone())) return false; } if (hasPhoneVerificationState() != other.hasPhoneVerificationState()) return false; if (hasPhoneVerificationState()) { if (phoneVerificationState_ != other.phoneVerificationState_) return false; } if (hasCustomerService() != other.hasCustomerService()) return false; if (hasCustomerService()) { if (!getCustomerService().equals(other.getCustomerService())) return false; } if (hasKoreanBusinessRegistrationNumber() != other.hasKoreanBusinessRegistrationNumber()) return false; if (hasKoreanBusinessRegistrationNumber()) { if (!getKoreanBusinessRegistrationNumber() .equals(other.getKoreanBusinessRegistrationNumber())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); if (hasAddress()) { hash = (37 * hash) + ADDRESS_FIELD_NUMBER; hash = (53 * hash) + getAddress().hashCode(); } if (hasPhone()) { hash = (37 * hash) + PHONE_FIELD_NUMBER; hash = (53 * hash) + getPhone().hashCode(); } if (hasPhoneVerificationState()) { hash = (37 * hash) + PHONE_VERIFICATION_STATE_FIELD_NUMBER; hash = (53 * hash) + phoneVerificationState_; } if (hasCustomerService()) { hash = (37 * hash) + CUSTOMER_SERVICE_FIELD_NUMBER; hash = (53 * hash) + getCustomerService().hashCode(); } if (hasKoreanBusinessRegistrationNumber()) { hash = (37 * hash) + KOREAN_BUSINESS_REGISTRATION_NUMBER_FIELD_NUMBER; hash = (53 * hash) + getKoreanBusinessRegistrationNumber().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.shopping.merchant.accounts.v1beta.BusinessInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.BusinessInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.BusinessInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.BusinessInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.BusinessInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.BusinessInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.BusinessInfo parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.BusinessInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.BusinessInfo parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.BusinessInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } public static com.google.shopping.merchant.accounts.v1beta.BusinessInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.merchant.accounts.v1beta.BusinessInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder( com.google.shopping.merchant.accounts.v1beta.BusinessInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * * *
   * Collection of information related to a business.
   * 
* * Protobuf type {@code google.shopping.merchant.accounts.v1beta.BusinessInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.BusinessInfo) com.google.shopping.merchant.accounts.v1beta.BusinessInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.BusinessInfoProto .internal_static_google_shopping_merchant_accounts_v1beta_BusinessInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.accounts.v1beta.BusinessInfoProto .internal_static_google_shopping_merchant_accounts_v1beta_BusinessInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.BusinessInfo.class, com.google.shopping.merchant.accounts.v1beta.BusinessInfo.Builder.class); } // Construct using com.google.shopping.merchant.accounts.v1beta.BusinessInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAddressFieldBuilder(); getPhoneFieldBuilder(); getCustomerServiceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; address_ = null; if (addressBuilder_ != null) { addressBuilder_.dispose(); addressBuilder_ = null; } phone_ = null; if (phoneBuilder_ != null) { phoneBuilder_.dispose(); phoneBuilder_ = null; } phoneVerificationState_ = 0; customerService_ = null; if (customerServiceBuilder_ != null) { customerServiceBuilder_.dispose(); customerServiceBuilder_ = null; } koreanBusinessRegistrationNumber_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.shopping.merchant.accounts.v1beta.BusinessInfoProto .internal_static_google_shopping_merchant_accounts_v1beta_BusinessInfo_descriptor; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.BusinessInfo getDefaultInstanceForType() { return com.google.shopping.merchant.accounts.v1beta.BusinessInfo.getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.BusinessInfo build() { com.google.shopping.merchant.accounts.v1beta.BusinessInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.BusinessInfo buildPartial() { com.google.shopping.merchant.accounts.v1beta.BusinessInfo result = new com.google.shopping.merchant.accounts.v1beta.BusinessInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.shopping.merchant.accounts.v1beta.BusinessInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.address_ = addressBuilder_ == null ? address_ : addressBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.phone_ = phoneBuilder_ == null ? phone_ : phoneBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.phoneVerificationState_ = phoneVerificationState_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.customerService_ = customerServiceBuilder_ == null ? customerService_ : customerServiceBuilder_.build(); to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.koreanBusinessRegistrationNumber_ = koreanBusinessRegistrationNumber_; to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.shopping.merchant.accounts.v1beta.BusinessInfo) { return mergeFrom((com.google.shopping.merchant.accounts.v1beta.BusinessInfo) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.shopping.merchant.accounts.v1beta.BusinessInfo other) { if (other == com.google.shopping.merchant.accounts.v1beta.BusinessInfo.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.hasAddress()) { mergeAddress(other.getAddress()); } if (other.hasPhone()) { mergePhone(other.getPhone()); } if (other.hasPhoneVerificationState()) { setPhoneVerificationState(other.getPhoneVerificationState()); } if (other.hasCustomerService()) { mergeCustomerService(other.getCustomerService()); } if (other.hasKoreanBusinessRegistrationNumber()) { koreanBusinessRegistrationNumber_ = other.koreanBusinessRegistrationNumber_; bitField0_ |= 0x00000020; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getAddressFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getPhoneFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 32: { phoneVerificationState_ = input.readEnum(); bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getCustomerServiceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { koreanBusinessRegistrationNumber_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000020; break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
     * Identifier. The resource name of the business info.
     * Format: `accounts/{account}/businessInfo`
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Identifier. The resource name of the business info.
     * Format: `accounts/{account}/businessInfo`
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Identifier. The resource name of the business info.
     * Format: `accounts/{account}/businessInfo`
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** * * *
     * Identifier. The resource name of the business info.
     * Format: `accounts/{account}/businessInfo`
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * Identifier. The resource name of the business info.
     * Format: `accounts/{account}/businessInfo`
     * 
* * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } private com.google.type.PostalAddress address_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.PostalAddress, com.google.type.PostalAddress.Builder, com.google.type.PostalAddressOrBuilder> addressBuilder_; /** * * *
     * Optional. The address of the business.
     * 
* * * optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the address field is set. */ public boolean hasAddress() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
     * Optional. The address of the business.
     * 
* * * optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The address. */ public com.google.type.PostalAddress getAddress() { if (addressBuilder_ == null) { return address_ == null ? com.google.type.PostalAddress.getDefaultInstance() : address_; } else { return addressBuilder_.getMessage(); } } /** * * *
     * Optional. The address of the business.
     * 
* * * optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setAddress(com.google.type.PostalAddress value) { if (addressBuilder_ == null) { if (value == null) { throw new NullPointerException(); } address_ = value; } else { addressBuilder_.setMessage(value); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Optional. The address of the business.
     * 
* * * optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setAddress(com.google.type.PostalAddress.Builder builderForValue) { if (addressBuilder_ == null) { address_ = builderForValue.build(); } else { addressBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Optional. The address of the business.
     * 
* * * optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeAddress(com.google.type.PostalAddress value) { if (addressBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && address_ != null && address_ != com.google.type.PostalAddress.getDefaultInstance()) { getAddressBuilder().mergeFrom(value); } else { address_ = value; } } else { addressBuilder_.mergeFrom(value); } if (address_ != null) { bitField0_ |= 0x00000002; onChanged(); } return this; } /** * * *
     * Optional. The address of the business.
     * 
* * * optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearAddress() { bitField0_ = (bitField0_ & ~0x00000002); address_ = null; if (addressBuilder_ != null) { addressBuilder_.dispose(); addressBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. The address of the business.
     * 
* * * optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.type.PostalAddress.Builder getAddressBuilder() { bitField0_ |= 0x00000002; onChanged(); return getAddressFieldBuilder().getBuilder(); } /** * * *
     * Optional. The address of the business.
     * 
* * * optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.type.PostalAddressOrBuilder getAddressOrBuilder() { if (addressBuilder_ != null) { return addressBuilder_.getMessageOrBuilder(); } else { return address_ == null ? com.google.type.PostalAddress.getDefaultInstance() : address_; } } /** * * *
     * Optional. The address of the business.
     * 
* * * optional .google.type.PostalAddress address = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.PostalAddress, com.google.type.PostalAddress.Builder, com.google.type.PostalAddressOrBuilder> getAddressFieldBuilder() { if (addressBuilder_ == null) { addressBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.PostalAddress, com.google.type.PostalAddress.Builder, com.google.type.PostalAddressOrBuilder>( getAddress(), getParentForChildren(), isClean()); address_ = null; } return addressBuilder_; } private com.google.type.PhoneNumber phone_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.PhoneNumber, com.google.type.PhoneNumber.Builder, com.google.type.PhoneNumberOrBuilder> phoneBuilder_; /** * * *
     * Output only. The phone number of the business.
     * 
* * * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the phone field is set. */ public boolean hasPhone() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * Output only. The phone number of the business.
     * 
* * * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The phone. */ public com.google.type.PhoneNumber getPhone() { if (phoneBuilder_ == null) { return phone_ == null ? com.google.type.PhoneNumber.getDefaultInstance() : phone_; } else { return phoneBuilder_.getMessage(); } } /** * * *
     * Output only. The phone number of the business.
     * 
* * * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setPhone(com.google.type.PhoneNumber value) { if (phoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); } phone_ = value; } else { phoneBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The phone number of the business.
     * 
* * * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setPhone(com.google.type.PhoneNumber.Builder builderForValue) { if (phoneBuilder_ == null) { phone_ = builderForValue.build(); } else { phoneBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Output only. The phone number of the business.
     * 
* * * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergePhone(com.google.type.PhoneNumber value) { if (phoneBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && phone_ != null && phone_ != com.google.type.PhoneNumber.getDefaultInstance()) { getPhoneBuilder().mergeFrom(value); } else { phone_ = value; } } else { phoneBuilder_.mergeFrom(value); } if (phone_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** * * *
     * Output only. The phone number of the business.
     * 
* * * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearPhone() { bitField0_ = (bitField0_ & ~0x00000004); phone_ = null; if (phoneBuilder_ != null) { phoneBuilder_.dispose(); phoneBuilder_ = null; } onChanged(); return this; } /** * * *
     * Output only. The phone number of the business.
     * 
* * * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.type.PhoneNumber.Builder getPhoneBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPhoneFieldBuilder().getBuilder(); } /** * * *
     * Output only. The phone number of the business.
     * 
* * * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.type.PhoneNumberOrBuilder getPhoneOrBuilder() { if (phoneBuilder_ != null) { return phoneBuilder_.getMessageOrBuilder(); } else { return phone_ == null ? com.google.type.PhoneNumber.getDefaultInstance() : phone_; } } /** * * *
     * Output only. The phone number of the business.
     * 
* * * optional .google.type.PhoneNumber phone = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.PhoneNumber, com.google.type.PhoneNumber.Builder, com.google.type.PhoneNumberOrBuilder> getPhoneFieldBuilder() { if (phoneBuilder_ == null) { phoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.PhoneNumber, com.google.type.PhoneNumber.Builder, com.google.type.PhoneNumberOrBuilder>( getPhone(), getParentForChildren(), isClean()); phone_ = null; } return phoneBuilder_; } private int phoneVerificationState_ = 0; /** * * *
     * 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]; * * * @return Whether the phoneVerificationState field is set. */ @java.lang.Override public boolean hasPhoneVerificationState() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * 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]; * * * @return The enum numeric value on the wire for phoneVerificationState. */ @java.lang.Override public int getPhoneVerificationStateValue() { return phoneVerificationState_; } /** * * *
     * 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]; * * * @param value The enum numeric value on the wire for phoneVerificationState to set. * @return This builder for chaining. */ public Builder setPhoneVerificationStateValue(int value) { phoneVerificationState_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * 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]; * * * @return The phoneVerificationState. */ @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.PhoneVerificationState getPhoneVerificationState() { com.google.shopping.merchant.accounts.v1beta.PhoneVerificationState result = com.google.shopping.merchant.accounts.v1beta.PhoneVerificationState.forNumber( phoneVerificationState_); return result == null ? com.google.shopping.merchant.accounts.v1beta.PhoneVerificationState.UNRECOGNIZED : result; } /** * * *
     * 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]; * * * @param value The phoneVerificationState to set. * @return This builder for chaining. */ public Builder setPhoneVerificationState( com.google.shopping.merchant.accounts.v1beta.PhoneVerificationState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; phoneVerificationState_ = value.getNumber(); onChanged(); return this; } /** * * *
     * 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]; * * * @return This builder for chaining. */ public Builder clearPhoneVerificationState() { bitField0_ = (bitField0_ & ~0x00000008); phoneVerificationState_ = 0; onChanged(); return this; } private com.google.shopping.merchant.accounts.v1beta.CustomerService customerService_; private com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.CustomerService, com.google.shopping.merchant.accounts.v1beta.CustomerService.Builder, com.google.shopping.merchant.accounts.v1beta.CustomerServiceOrBuilder> customerServiceBuilder_; /** * * *
     * Optional. The customer service of the business.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the customerService field is set. */ public boolean hasCustomerService() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * Optional. The customer service of the business.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The customerService. */ public com.google.shopping.merchant.accounts.v1beta.CustomerService getCustomerService() { if (customerServiceBuilder_ == null) { return customerService_ == null ? com.google.shopping.merchant.accounts.v1beta.CustomerService.getDefaultInstance() : customerService_; } else { return customerServiceBuilder_.getMessage(); } } /** * * *
     * Optional. The customer service of the business.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setCustomerService( com.google.shopping.merchant.accounts.v1beta.CustomerService value) { if (customerServiceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } customerService_ = value; } else { customerServiceBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Optional. The customer service of the business.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setCustomerService( com.google.shopping.merchant.accounts.v1beta.CustomerService.Builder builderForValue) { if (customerServiceBuilder_ == null) { customerService_ = builderForValue.build(); } else { customerServiceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Optional. The customer service of the business.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeCustomerService( com.google.shopping.merchant.accounts.v1beta.CustomerService value) { if (customerServiceBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && customerService_ != null && customerService_ != com.google.shopping.merchant.accounts.v1beta.CustomerService .getDefaultInstance()) { getCustomerServiceBuilder().mergeFrom(value); } else { customerService_ = value; } } else { customerServiceBuilder_.mergeFrom(value); } if (customerService_ != null) { bitField0_ |= 0x00000010; onChanged(); } return this; } /** * * *
     * Optional. The customer service of the business.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearCustomerService() { bitField0_ = (bitField0_ & ~0x00000010); customerService_ = null; if (customerServiceBuilder_ != null) { customerServiceBuilder_.dispose(); customerServiceBuilder_ = null; } onChanged(); return this; } /** * * *
     * Optional. The customer service of the business.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.shopping.merchant.accounts.v1beta.CustomerService.Builder getCustomerServiceBuilder() { bitField0_ |= 0x00000010; onChanged(); return getCustomerServiceFieldBuilder().getBuilder(); } /** * * *
     * Optional. The customer service of the business.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.shopping.merchant.accounts.v1beta.CustomerServiceOrBuilder getCustomerServiceOrBuilder() { if (customerServiceBuilder_ != null) { return customerServiceBuilder_.getMessageOrBuilder(); } else { return customerService_ == null ? com.google.shopping.merchant.accounts.v1beta.CustomerService.getDefaultInstance() : customerService_; } } /** * * *
     * Optional. The customer service of the business.
     * 
* * * optional .google.shopping.merchant.accounts.v1beta.CustomerService customer_service = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.CustomerService, com.google.shopping.merchant.accounts.v1beta.CustomerService.Builder, com.google.shopping.merchant.accounts.v1beta.CustomerServiceOrBuilder> getCustomerServiceFieldBuilder() { if (customerServiceBuilder_ == null) { customerServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.shopping.merchant.accounts.v1beta.CustomerService, com.google.shopping.merchant.accounts.v1beta.CustomerService.Builder, com.google.shopping.merchant.accounts.v1beta.CustomerServiceOrBuilder>( getCustomerService(), getParentForChildren(), isClean()); customerService_ = null; } return customerServiceBuilder_; } private java.lang.Object koreanBusinessRegistrationNumber_ = ""; /** * * *
     * Optional. The 10-digit [Korean business registration
     * number](https://support.google.com/merchants/answer/9037766) separated with
     * dashes in the format: XXX-XX-XXXXX.
     * 
* * * optional string korean_business_registration_number = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the koreanBusinessRegistrationNumber field is set. */ public boolean hasKoreanBusinessRegistrationNumber() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * Optional. The 10-digit [Korean business registration
     * number](https://support.google.com/merchants/answer/9037766) separated with
     * dashes in the format: XXX-XX-XXXXX.
     * 
* * * optional string korean_business_registration_number = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The koreanBusinessRegistrationNumber. */ public java.lang.String getKoreanBusinessRegistrationNumber() { java.lang.Object ref = koreanBusinessRegistrationNumber_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); koreanBusinessRegistrationNumber_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Optional. The 10-digit [Korean business registration
     * number](https://support.google.com/merchants/answer/9037766) separated with
     * dashes in the format: XXX-XX-XXXXX.
     * 
* * * optional string korean_business_registration_number = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The bytes for koreanBusinessRegistrationNumber. */ public com.google.protobuf.ByteString getKoreanBusinessRegistrationNumberBytes() { java.lang.Object ref = koreanBusinessRegistrationNumber_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); koreanBusinessRegistrationNumber_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Optional. The 10-digit [Korean business registration
     * number](https://support.google.com/merchants/answer/9037766) separated with
     * dashes in the format: XXX-XX-XXXXX.
     * 
* * * optional string korean_business_registration_number = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The koreanBusinessRegistrationNumber to set. * @return This builder for chaining. */ public Builder setKoreanBusinessRegistrationNumber(java.lang.String value) { if (value == null) { throw new NullPointerException(); } koreanBusinessRegistrationNumber_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Optional. The 10-digit [Korean business registration
     * number](https://support.google.com/merchants/answer/9037766) separated with
     * dashes in the format: XXX-XX-XXXXX.
     * 
* * * optional string korean_business_registration_number = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. */ public Builder clearKoreanBusinessRegistrationNumber() { koreanBusinessRegistrationNumber_ = getDefaultInstance().getKoreanBusinessRegistrationNumber(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } /** * * *
     * Optional. The 10-digit [Korean business registration
     * number](https://support.google.com/merchants/answer/9037766) separated with
     * dashes in the format: XXX-XX-XXXXX.
     * 
* * * optional string korean_business_registration_number = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The bytes for koreanBusinessRegistrationNumber to set. * @return This builder for chaining. */ public Builder setKoreanBusinessRegistrationNumberBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); koreanBusinessRegistrationNumber_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.shopping.merchant.accounts.v1beta.BusinessInfo) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.BusinessInfo) private static final com.google.shopping.merchant.accounts.v1beta.BusinessInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.BusinessInfo(); } public static com.google.shopping.merchant.accounts.v1beta.BusinessInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BusinessInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.BusinessInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy