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

com.google.shopping.merchant.accounts.v1beta.Account 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/accounts.proto

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

/**
 *
 *
 * 
 * An account.
 * 
* * Protobuf type {@code google.shopping.merchant.accounts.v1beta.Account} */ public final class Account extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.shopping.merchant.accounts.v1beta.Account) AccountOrBuilder { private static final long serialVersionUID = 0L; // Use Account.newBuilder() to construct. private Account(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Account() { name_ = ""; accountName_ = ""; languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Account(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.AccountsProto .internal_static_google_shopping_merchant_accounts_v1beta_Account_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.accounts.v1beta.AccountsProto .internal_static_google_shopping_merchant_accounts_v1beta_Account_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.Account.class, com.google.shopping.merchant.accounts.v1beta.Account.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 account.
   * Format: `accounts/{account}`
   * 
* * 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 account.
   * Format: `accounts/{account}`
   * 
* * 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 ACCOUNT_ID_FIELD_NUMBER = 2; private long accountId_ = 0L; /** * * *
   * Output only. The ID of the account.
   * 
* * int64 account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } public static final int ACCOUNT_NAME_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object accountName_ = ""; /** * * *
   * Required. A human-readable name of the account. See
   * [store name](https://support.google.com/merchants/answer/160556) and
   * [business name](https://support.google.com/merchants/answer/12159159) for
   * more information.
   * 
* * string account_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The accountName. */ @java.lang.Override public java.lang.String getAccountName() { java.lang.Object ref = accountName_; 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(); accountName_ = s; return s; } } /** * * *
   * Required. A human-readable name of the account. See
   * [store name](https://support.google.com/merchants/answer/160556) and
   * [business name](https://support.google.com/merchants/answer/12159159) for
   * more information.
   * 
* * string account_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for accountName. */ @java.lang.Override public com.google.protobuf.ByteString getAccountNameBytes() { java.lang.Object ref = accountName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ADULT_CONTENT_FIELD_NUMBER = 4; private boolean adultContent_ = false; /** * * *
   * Whether this account contains adult content.
   * 
* * bool adult_content = 4; * * @return The adultContent. */ @java.lang.Override public boolean getAdultContent() { return adultContent_; } public static final int TEST_ACCOUNT_FIELD_NUMBER = 5; private boolean testAccount_ = false; /** * * *
   * Output only. Whether this is a test account.
   * 
* * bool test_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The testAccount. */ @java.lang.Override public boolean getTestAccount() { return testAccount_; } public static final int TIME_ZONE_FIELD_NUMBER = 6; private com.google.type.TimeZone timeZone_; /** * * *
   * Required. The time zone of the account.
   *
   * On writes, `time_zone` sets both the `reporting_time_zone` and the
   * `display_time_zone`.
   *
   * For reads, `time_zone` always returns the `display_time_zone`. If
   * `display_time_zone` doesn't exist for your account, `time_zone` is empty.
   * 
* * .google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the timeZone field is set. */ @java.lang.Override public boolean hasTimeZone() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * Required. The time zone of the account.
   *
   * On writes, `time_zone` sets both the `reporting_time_zone` and the
   * `display_time_zone`.
   *
   * For reads, `time_zone` always returns the `display_time_zone`. If
   * `display_time_zone` doesn't exist for your account, `time_zone` is empty.
   * 
* * .google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; * * @return The timeZone. */ @java.lang.Override public com.google.type.TimeZone getTimeZone() { return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; } /** * * *
   * Required. The time zone of the account.
   *
   * On writes, `time_zone` sets both the `reporting_time_zone` and the
   * `display_time_zone`.
   *
   * For reads, `time_zone` always returns the `display_time_zone`. If
   * `display_time_zone` doesn't exist for your account, `time_zone` is empty.
   * 
* * .google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 7; @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** * * *
   * Required. The account's [BCP-47 language
   * code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
   * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The languageCode. */ @java.lang.Override public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; 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(); languageCode_ = s; return s; } } /** * * *
   * Required. The account's [BCP-47 language
   * code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
   * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for languageCode. */ @java.lang.Override public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = 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 (accountId_ != 0L) { output.writeInt64(2, accountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, accountName_); } if (adultContent_ != false) { output.writeBool(4, adultContent_); } if (testAccount_ != false) { output.writeBool(5, testAccount_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getTimeZone()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, languageCode_); } 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 (accountId_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, accountId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, accountName_); } if (adultContent_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, adultContent_); } if (testAccount_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, testAccount_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTimeZone()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, languageCode_); } 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.Account)) { return super.equals(obj); } com.google.shopping.merchant.accounts.v1beta.Account other = (com.google.shopping.merchant.accounts.v1beta.Account) obj; if (!getName().equals(other.getName())) return false; if (getAccountId() != other.getAccountId()) return false; if (!getAccountName().equals(other.getAccountName())) return false; if (getAdultContent() != other.getAdultContent()) return false; if (getTestAccount() != other.getTestAccount()) return false; if (hasTimeZone() != other.hasTimeZone()) return false; if (hasTimeZone()) { if (!getTimeZone().equals(other.getTimeZone())) return false; } if (!getLanguageCode().equals(other.getLanguageCode())) 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(); hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAccountId()); hash = (37 * hash) + ACCOUNT_NAME_FIELD_NUMBER; hash = (53 * hash) + getAccountName().hashCode(); hash = (37 * hash) + ADULT_CONTENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdultContent()); hash = (37 * hash) + TEST_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTestAccount()); if (hasTimeZone()) { hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; hash = (53 * hash) + getTimeZone().hashCode(); } hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.shopping.merchant.accounts.v1beta.Account parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.Account 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.Account parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.Account 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.Account parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.merchant.accounts.v1beta.Account 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.Account 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.Account 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.Account 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.Account 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.Account 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.Account 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.Account 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; } /** * * *
   * An account.
   * 
* * Protobuf type {@code google.shopping.merchant.accounts.v1beta.Account} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.shopping.merchant.accounts.v1beta.Account) com.google.shopping.merchant.accounts.v1beta.AccountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.merchant.accounts.v1beta.AccountsProto .internal_static_google_shopping_merchant_accounts_v1beta_Account_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.merchant.accounts.v1beta.AccountsProto .internal_static_google_shopping_merchant_accounts_v1beta_Account_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.merchant.accounts.v1beta.Account.class, com.google.shopping.merchant.accounts.v1beta.Account.Builder.class); } // Construct using com.google.shopping.merchant.accounts.v1beta.Account.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getTimeZoneFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; accountId_ = 0L; accountName_ = ""; adultContent_ = false; testAccount_ = false; timeZone_ = null; if (timeZoneBuilder_ != null) { timeZoneBuilder_.dispose(); timeZoneBuilder_ = null; } languageCode_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.shopping.merchant.accounts.v1beta.AccountsProto .internal_static_google_shopping_merchant_accounts_v1beta_Account_descriptor; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.Account getDefaultInstanceForType() { return com.google.shopping.merchant.accounts.v1beta.Account.getDefaultInstance(); } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.Account build() { com.google.shopping.merchant.accounts.v1beta.Account result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.shopping.merchant.accounts.v1beta.Account buildPartial() { com.google.shopping.merchant.accounts.v1beta.Account result = new com.google.shopping.merchant.accounts.v1beta.Account(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.shopping.merchant.accounts.v1beta.Account result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.accountId_ = accountId_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.accountName_ = accountName_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.adultContent_ = adultContent_; } if (((from_bitField0_ & 0x00000010) != 0)) { result.testAccount_ = testAccount_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { result.timeZone_ = timeZoneBuilder_ == null ? timeZone_ : timeZoneBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000040) != 0)) { result.languageCode_ = languageCode_; } 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.Account) { return mergeFrom((com.google.shopping.merchant.accounts.v1beta.Account) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.shopping.merchant.accounts.v1beta.Account other) { if (other == com.google.shopping.merchant.accounts.v1beta.Account.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (other.getAccountId() != 0L) { setAccountId(other.getAccountId()); } if (!other.getAccountName().isEmpty()) { accountName_ = other.accountName_; bitField0_ |= 0x00000004; onChanged(); } if (other.getAdultContent() != false) { setAdultContent(other.getAdultContent()); } if (other.getTestAccount() != false) { setTestAccount(other.getTestAccount()); } if (other.hasTimeZone()) { mergeTimeZone(other.getTimeZone()); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; bitField0_ |= 0x00000040; 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 16: { accountId_ = input.readInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { accountName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 32: { adultContent_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { testAccount_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { input.readMessage(getTimeZoneFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 58: { languageCode_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000040; break; } // case 58 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 account.
     * Format: `accounts/{account}`
     * 
* * 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 account.
     * Format: `accounts/{account}`
     * 
* * 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 account.
     * Format: `accounts/{account}`
     * 
* * 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 account.
     * Format: `accounts/{account}`
     * 
* * 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 account.
     * Format: `accounts/{account}`
     * 
* * 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 long accountId_; /** * * *
     * Output only. The ID of the account.
     * 
* * int64 account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The accountId. */ @java.lang.Override public long getAccountId() { return accountId_; } /** * * *
     * Output only. The ID of the account.
     * 
* * int64 account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The accountId to set. * @return This builder for chaining. */ public Builder setAccountId(long value) { accountId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. The ID of the account.
     * 
* * int64 account_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearAccountId() { bitField0_ = (bitField0_ & ~0x00000002); accountId_ = 0L; onChanged(); return this; } private java.lang.Object accountName_ = ""; /** * * *
     * Required. A human-readable name of the account. See
     * [store name](https://support.google.com/merchants/answer/160556) and
     * [business name](https://support.google.com/merchants/answer/12159159) for
     * more information.
     * 
* * string account_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The accountName. */ public java.lang.String getAccountName() { java.lang.Object ref = accountName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); accountName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. A human-readable name of the account. See
     * [store name](https://support.google.com/merchants/answer/160556) and
     * [business name](https://support.google.com/merchants/answer/12159159) for
     * more information.
     * 
* * string account_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for accountName. */ public com.google.protobuf.ByteString getAccountNameBytes() { java.lang.Object ref = accountName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); accountName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. A human-readable name of the account. See
     * [store name](https://support.google.com/merchants/answer/160556) and
     * [business name](https://support.google.com/merchants/answer/12159159) for
     * more information.
     * 
* * string account_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The accountName to set. * @return This builder for chaining. */ public Builder setAccountName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } accountName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * Required. A human-readable name of the account. See
     * [store name](https://support.google.com/merchants/answer/160556) and
     * [business name](https://support.google.com/merchants/answer/12159159) for
     * more information.
     * 
* * string account_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearAccountName() { accountName_ = getDefaultInstance().getAccountName(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * Required. A human-readable name of the account. See
     * [store name](https://support.google.com/merchants/answer/160556) and
     * [business name](https://support.google.com/merchants/answer/12159159) for
     * more information.
     * 
* * string account_name = 3 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for accountName to set. * @return This builder for chaining. */ public Builder setAccountNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); accountName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private boolean adultContent_; /** * * *
     * Whether this account contains adult content.
     * 
* * bool adult_content = 4; * * @return The adultContent. */ @java.lang.Override public boolean getAdultContent() { return adultContent_; } /** * * *
     * Whether this account contains adult content.
     * 
* * bool adult_content = 4; * * @param value The adultContent to set. * @return This builder for chaining. */ public Builder setAdultContent(boolean value) { adultContent_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Whether this account contains adult content.
     * 
* * bool adult_content = 4; * * @return This builder for chaining. */ public Builder clearAdultContent() { bitField0_ = (bitField0_ & ~0x00000008); adultContent_ = false; onChanged(); return this; } private boolean testAccount_; /** * * *
     * Output only. Whether this is a test account.
     * 
* * bool test_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The testAccount. */ @java.lang.Override public boolean getTestAccount() { return testAccount_; } /** * * *
     * Output only. Whether this is a test account.
     * 
* * bool test_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The testAccount to set. * @return This builder for chaining. */ public Builder setTestAccount(boolean value) { testAccount_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * Output only. Whether this is a test account.
     * 
* * bool test_account = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ public Builder clearTestAccount() { bitField0_ = (bitField0_ & ~0x00000010); testAccount_ = false; onChanged(); return this; } private com.google.type.TimeZone timeZone_; private com.google.protobuf.SingleFieldBuilderV3< com.google.type.TimeZone, com.google.type.TimeZone.Builder, com.google.type.TimeZoneOrBuilder> timeZoneBuilder_; /** * * *
     * Required. The time zone of the account.
     *
     * On writes, `time_zone` sets both the `reporting_time_zone` and the
     * `display_time_zone`.
     *
     * For reads, `time_zone` always returns the `display_time_zone`. If
     * `display_time_zone` doesn't exist for your account, `time_zone` is empty.
     * 
* * .google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; * * @return Whether the timeZone field is set. */ public boolean hasTimeZone() { return ((bitField0_ & 0x00000020) != 0); } /** * * *
     * Required. The time zone of the account.
     *
     * On writes, `time_zone` sets both the `reporting_time_zone` and the
     * `display_time_zone`.
     *
     * For reads, `time_zone` always returns the `display_time_zone`. If
     * `display_time_zone` doesn't exist for your account, `time_zone` is empty.
     * 
* * .google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; * * @return The timeZone. */ public com.google.type.TimeZone getTimeZone() { if (timeZoneBuilder_ == null) { return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; } else { return timeZoneBuilder_.getMessage(); } } /** * * *
     * Required. The time zone of the account.
     *
     * On writes, `time_zone` sets both the `reporting_time_zone` and the
     * `display_time_zone`.
     *
     * For reads, `time_zone` always returns the `display_time_zone`. If
     * `display_time_zone` doesn't exist for your account, `time_zone` is empty.
     * 
* * .google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTimeZone(com.google.type.TimeZone value) { if (timeZoneBuilder_ == null) { if (value == null) { throw new NullPointerException(); } timeZone_ = value; } else { timeZoneBuilder_.setMessage(value); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Required. The time zone of the account.
     *
     * On writes, `time_zone` sets both the `reporting_time_zone` and the
     * `display_time_zone`.
     *
     * For reads, `time_zone` always returns the `display_time_zone`. If
     * `display_time_zone` doesn't exist for your account, `time_zone` is empty.
     * 
* * .google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setTimeZone(com.google.type.TimeZone.Builder builderForValue) { if (timeZoneBuilder_ == null) { timeZone_ = builderForValue.build(); } else { timeZoneBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Required. The time zone of the account.
     *
     * On writes, `time_zone` sets both the `reporting_time_zone` and the
     * `display_time_zone`.
     *
     * For reads, `time_zone` always returns the `display_time_zone`. If
     * `display_time_zone` doesn't exist for your account, `time_zone` is empty.
     * 
* * .google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeTimeZone(com.google.type.TimeZone value) { if (timeZoneBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && timeZone_ != null && timeZone_ != com.google.type.TimeZone.getDefaultInstance()) { getTimeZoneBuilder().mergeFrom(value); } else { timeZone_ = value; } } else { timeZoneBuilder_.mergeFrom(value); } if (timeZone_ != null) { bitField0_ |= 0x00000020; onChanged(); } return this; } /** * * *
     * Required. The time zone of the account.
     *
     * On writes, `time_zone` sets both the `reporting_time_zone` and the
     * `display_time_zone`.
     *
     * For reads, `time_zone` always returns the `display_time_zone`. If
     * `display_time_zone` doesn't exist for your account, `time_zone` is empty.
     * 
* * .google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearTimeZone() { bitField0_ = (bitField0_ & ~0x00000020); timeZone_ = null; if (timeZoneBuilder_ != null) { timeZoneBuilder_.dispose(); timeZoneBuilder_ = null; } onChanged(); return this; } /** * * *
     * Required. The time zone of the account.
     *
     * On writes, `time_zone` sets both the `reporting_time_zone` and the
     * `display_time_zone`.
     *
     * For reads, `time_zone` always returns the `display_time_zone`. If
     * `display_time_zone` doesn't exist for your account, `time_zone` is empty.
     * 
* * .google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.type.TimeZone.Builder getTimeZoneBuilder() { bitField0_ |= 0x00000020; onChanged(); return getTimeZoneFieldBuilder().getBuilder(); } /** * * *
     * Required. The time zone of the account.
     *
     * On writes, `time_zone` sets both the `reporting_time_zone` and the
     * `display_time_zone`.
     *
     * For reads, `time_zone` always returns the `display_time_zone`. If
     * `display_time_zone` doesn't exist for your account, `time_zone` is empty.
     * 
* * .google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.type.TimeZoneOrBuilder getTimeZoneOrBuilder() { if (timeZoneBuilder_ != null) { return timeZoneBuilder_.getMessageOrBuilder(); } else { return timeZone_ == null ? com.google.type.TimeZone.getDefaultInstance() : timeZone_; } } /** * * *
     * Required. The time zone of the account.
     *
     * On writes, `time_zone` sets both the `reporting_time_zone` and the
     * `display_time_zone`.
     *
     * For reads, `time_zone` always returns the `display_time_zone`. If
     * `display_time_zone` doesn't exist for your account, `time_zone` is empty.
     * 
* * .google.type.TimeZone time_zone = 6 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.type.TimeZone, com.google.type.TimeZone.Builder, com.google.type.TimeZoneOrBuilder> getTimeZoneFieldBuilder() { if (timeZoneBuilder_ == null) { timeZoneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.type.TimeZone, com.google.type.TimeZone.Builder, com.google.type.TimeZoneOrBuilder>( getTimeZone(), getParentForChildren(), isClean()); timeZone_ = null; } return timeZoneBuilder_; } private java.lang.Object languageCode_ = ""; /** * * *
     * Required. The account's [BCP-47 language
     * code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
     * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. The account's [BCP-47 language
     * code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
     * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for languageCode. */ public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. The account's [BCP-47 language
     * code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
     * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * * @param value The languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Required. The account's [BCP-47 language
     * code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
     * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearLanguageCode() { languageCode_ = getDefaultInstance().getLanguageCode(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** * * *
     * Required. The account's [BCP-47 language
     * code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
     * 
* * string language_code = 7 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000040; 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.Account) } // @@protoc_insertion_point(class_scope:google.shopping.merchant.accounts.v1beta.Account) private static final com.google.shopping.merchant.accounts.v1beta.Account DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.merchant.accounts.v1beta.Account(); } public static com.google.shopping.merchant.accounts.v1beta.Account getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Account 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.Account getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy