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

com.google.shopping.css.v1.Account Maven / Gradle / Ivy

There is a newer version: 0.23.0
Show newest version
/*
 * 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/css/v1/accounts.proto

// Protobuf Java Version: 3.25.5
package com.google.shopping.css.v1;

/**
 *
 *
 * 
 * Information about CSS/MC account.
 * 
* * Protobuf type {@code google.shopping.css.v1.Account} */ public final class Account extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.shopping.css.v1.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_ = ""; fullName_ = ""; displayName_ = ""; homepageUri_ = ""; parent_ = ""; labelIds_ = emptyLongList(); automaticLabelIds_ = emptyLongList(); accountType_ = 0; } @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.css.v1.AccountsProto .internal_static_google_shopping_css_v1_Account_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.css.v1.AccountsProto .internal_static_google_shopping_css_v1_Account_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.css.v1.Account.class, com.google.shopping.css.v1.Account.Builder.class); } /** * * *
   * The account type.
   * 
* * Protobuf enum {@code google.shopping.css.v1.Account.AccountType} */ public enum AccountType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unknown account type.
     * 
* * ACCOUNT_TYPE_UNSPECIFIED = 0; */ ACCOUNT_TYPE_UNSPECIFIED(0), /** * * *
     * CSS group account.
     * 
* * CSS_GROUP = 1; */ CSS_GROUP(1), /** * * *
     * CSS domain account.
     * 
* * CSS_DOMAIN = 2; */ CSS_DOMAIN(2), /** * * *
     * MC Primary CSS MCA account.
     * 
* * MC_PRIMARY_CSS_MCA = 3; */ MC_PRIMARY_CSS_MCA(3), /** * * *
     * MC CSS MCA account.
     * 
* * MC_CSS_MCA = 4; */ MC_CSS_MCA(4), /** * * *
     * MC Marketplace MCA account.
     * 
* * MC_MARKETPLACE_MCA = 5; */ MC_MARKETPLACE_MCA(5), /** * * *
     * MC Other MCA account.
     * 
* * MC_OTHER_MCA = 6; */ MC_OTHER_MCA(6), /** * * *
     * MC Standalone account.
     * 
* * MC_STANDALONE = 7; */ MC_STANDALONE(7), /** * * *
     * MC MCA sub-account.
     * 
* * MC_MCA_SUBACCOUNT = 8; */ MC_MCA_SUBACCOUNT(8), UNRECOGNIZED(-1), ; /** * * *
     * Unknown account type.
     * 
* * ACCOUNT_TYPE_UNSPECIFIED = 0; */ public static final int ACCOUNT_TYPE_UNSPECIFIED_VALUE = 0; /** * * *
     * CSS group account.
     * 
* * CSS_GROUP = 1; */ public static final int CSS_GROUP_VALUE = 1; /** * * *
     * CSS domain account.
     * 
* * CSS_DOMAIN = 2; */ public static final int CSS_DOMAIN_VALUE = 2; /** * * *
     * MC Primary CSS MCA account.
     * 
* * MC_PRIMARY_CSS_MCA = 3; */ public static final int MC_PRIMARY_CSS_MCA_VALUE = 3; /** * * *
     * MC CSS MCA account.
     * 
* * MC_CSS_MCA = 4; */ public static final int MC_CSS_MCA_VALUE = 4; /** * * *
     * MC Marketplace MCA account.
     * 
* * MC_MARKETPLACE_MCA = 5; */ public static final int MC_MARKETPLACE_MCA_VALUE = 5; /** * * *
     * MC Other MCA account.
     * 
* * MC_OTHER_MCA = 6; */ public static final int MC_OTHER_MCA_VALUE = 6; /** * * *
     * MC Standalone account.
     * 
* * MC_STANDALONE = 7; */ public static final int MC_STANDALONE_VALUE = 7; /** * * *
     * MC MCA sub-account.
     * 
* * MC_MCA_SUBACCOUNT = 8; */ public static final int MC_MCA_SUBACCOUNT_VALUE = 8; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static AccountType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static AccountType forNumber(int value) { switch (value) { case 0: return ACCOUNT_TYPE_UNSPECIFIED; case 1: return CSS_GROUP; case 2: return CSS_DOMAIN; case 3: return MC_PRIMARY_CSS_MCA; case 4: return MC_CSS_MCA; case 5: return MC_MARKETPLACE_MCA; case 6: return MC_OTHER_MCA; case 7: return MC_STANDALONE; case 8: return MC_MCA_SUBACCOUNT; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AccountType findValueByNumber(int number) { return AccountType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.shopping.css.v1.Account.getDescriptor().getEnumTypes().get(0); } private static final AccountType[] VALUES = values(); public static AccountType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private AccountType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.shopping.css.v1.Account.AccountType) } private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** * * *
   * The label resource name.
   * Format: accounts/{account}
   * 
* * string name = 1; * * @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; } } /** * * *
   * The label resource name.
   * Format: accounts/{account}
   * 
* * string name = 1; * * @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 FULL_NAME_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object fullName_ = ""; /** * * *
   * Output only. Immutable. The CSS/MC account's full name.
   * 
* * * string full_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The fullName. */ @java.lang.Override public java.lang.String getFullName() { java.lang.Object ref = fullName_; 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(); fullName_ = s; return s; } } /** * * *
   * Output only. Immutable. The CSS/MC account's full name.
   * 
* * * string full_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The bytes for fullName. */ @java.lang.Override public com.google.protobuf.ByteString getFullNameBytes() { java.lang.Object ref = fullName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** * * *
   * The CSS/MC account's short display name.
   * 
* * optional string display_name = 3; * * @return Whether the displayName field is set. */ @java.lang.Override public boolean hasDisplayName() { return ((bitField0_ & 0x00000001) != 0); } /** * * *
   * The CSS/MC account's short display name.
   * 
* * optional string display_name = 3; * * @return The displayName. */ @java.lang.Override public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; } } /** * * *
   * The CSS/MC account's short display name.
   * 
* * optional string display_name = 3; * * @return The bytes for displayName. */ @java.lang.Override public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOMEPAGE_URI_FIELD_NUMBER = 4; @SuppressWarnings("serial") private volatile java.lang.Object homepageUri_ = ""; /** * * *
   * Output only. Immutable. The CSS/MC account's homepage.
   * 
* * * optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @return Whether the homepageUri field is set. */ @java.lang.Override public boolean hasHomepageUri() { return ((bitField0_ & 0x00000002) != 0); } /** * * *
   * Output only. Immutable. The CSS/MC account's homepage.
   * 
* * * optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The homepageUri. */ @java.lang.Override public java.lang.String getHomepageUri() { java.lang.Object ref = homepageUri_; 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(); homepageUri_ = s; return s; } } /** * * *
   * Output only. Immutable. The CSS/MC account's homepage.
   * 
* * * optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The bytes for homepageUri. */ @java.lang.Override public com.google.protobuf.ByteString getHomepageUriBytes() { java.lang.Object ref = homepageUri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); homepageUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PARENT_FIELD_NUMBER = 5; @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** * * *
   * The CSS/MC account's parent resource. CSS group for CSS domains; CSS
   * domain for MC accounts. Returned only if the user has access to the
   * parent account.
   * 
* * optional string parent = 5; * * @return Whether the parent field is set. */ @java.lang.Override public boolean hasParent() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
   * The CSS/MC account's parent resource. CSS group for CSS domains; CSS
   * domain for MC accounts. Returned only if the user has access to the
   * parent account.
   * 
* * optional string parent = 5; * * @return The parent. */ @java.lang.Override public java.lang.String getParent() { java.lang.Object ref = parent_; 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(); parent_ = s; return s; } } /** * * *
   * The CSS/MC account's parent resource. CSS group for CSS domains; CSS
   * domain for MC accounts. Returned only if the user has access to the
   * parent account.
   * 
* * optional string parent = 5; * * @return The bytes for parent. */ @java.lang.Override public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LABEL_IDS_FIELD_NUMBER = 6; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList labelIds_ = emptyLongList(); /** * * *
   * Manually created label IDs assigned to the CSS/MC account by a CSS parent
   * account.
   * 
* * repeated int64 label_ids = 6; * * @return A list containing the labelIds. */ @java.lang.Override public java.util.List getLabelIdsList() { return labelIds_; } /** * * *
   * Manually created label IDs assigned to the CSS/MC account by a CSS parent
   * account.
   * 
* * repeated int64 label_ids = 6; * * @return The count of labelIds. */ public int getLabelIdsCount() { return labelIds_.size(); } /** * * *
   * Manually created label IDs assigned to the CSS/MC account by a CSS parent
   * account.
   * 
* * repeated int64 label_ids = 6; * * @param index The index of the element to return. * @return The labelIds at the given index. */ public long getLabelIds(int index) { return labelIds_.getLong(index); } private int labelIdsMemoizedSerializedSize = -1; public static final int AUTOMATIC_LABEL_IDS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList automaticLabelIds_ = emptyLongList(); /** * * *
   * Automatically created label IDs assigned to the MC account by
   * CSS Center.
   * 
* * repeated int64 automatic_label_ids = 7; * * @return A list containing the automaticLabelIds. */ @java.lang.Override public java.util.List getAutomaticLabelIdsList() { return automaticLabelIds_; } /** * * *
   * Automatically created label IDs assigned to the MC account by
   * CSS Center.
   * 
* * repeated int64 automatic_label_ids = 7; * * @return The count of automaticLabelIds. */ public int getAutomaticLabelIdsCount() { return automaticLabelIds_.size(); } /** * * *
   * Automatically created label IDs assigned to the MC account by
   * CSS Center.
   * 
* * repeated int64 automatic_label_ids = 7; * * @param index The index of the element to return. * @return The automaticLabelIds at the given index. */ public long getAutomaticLabelIds(int index) { return automaticLabelIds_.getLong(index); } private int automaticLabelIdsMemoizedSerializedSize = -1; public static final int ACCOUNT_TYPE_FIELD_NUMBER = 8; private int accountType_ = 0; /** * * *
   * Output only. The type of this account.
   * 
* * * .google.shopping.css.v1.Account.AccountType account_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for accountType. */ @java.lang.Override public int getAccountTypeValue() { return accountType_; } /** * * *
   * Output only. The type of this account.
   * 
* * * .google.shopping.css.v1.Account.AccountType account_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The accountType. */ @java.lang.Override public com.google.shopping.css.v1.Account.AccountType getAccountType() { com.google.shopping.css.v1.Account.AccountType result = com.google.shopping.css.v1.Account.AccountType.forNumber(accountType_); return result == null ? com.google.shopping.css.v1.Account.AccountType.UNRECOGNIZED : result; } 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 { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fullName_); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, homepageUri_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, parent_); } if (getLabelIdsList().size() > 0) { output.writeUInt32NoTag(50); output.writeUInt32NoTag(labelIdsMemoizedSerializedSize); } for (int i = 0; i < labelIds_.size(); i++) { output.writeInt64NoTag(labelIds_.getLong(i)); } if (getAutomaticLabelIdsList().size() > 0) { output.writeUInt32NoTag(58); output.writeUInt32NoTag(automaticLabelIdsMemoizedSerializedSize); } for (int i = 0; i < automaticLabelIds_.size(); i++) { output.writeInt64NoTag(automaticLabelIds_.getLong(i)); } if (accountType_ != com.google.shopping.css.v1.Account.AccountType.ACCOUNT_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(8, accountType_); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fullName_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, homepageUri_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, parent_); } { int dataSize = 0; for (int i = 0; i < labelIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag(labelIds_.getLong(i)); } size += dataSize; if (!getLabelIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } labelIdsMemoizedSerializedSize = dataSize; } { int dataSize = 0; for (int i = 0; i < automaticLabelIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag( automaticLabelIds_.getLong(i)); } size += dataSize; if (!getAutomaticLabelIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } automaticLabelIdsMemoizedSerializedSize = dataSize; } if (accountType_ != com.google.shopping.css.v1.Account.AccountType.ACCOUNT_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, accountType_); } 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.css.v1.Account)) { return super.equals(obj); } com.google.shopping.css.v1.Account other = (com.google.shopping.css.v1.Account) obj; if (!getName().equals(other.getName())) return false; if (!getFullName().equals(other.getFullName())) return false; if (hasDisplayName() != other.hasDisplayName()) return false; if (hasDisplayName()) { if (!getDisplayName().equals(other.getDisplayName())) return false; } if (hasHomepageUri() != other.hasHomepageUri()) return false; if (hasHomepageUri()) { if (!getHomepageUri().equals(other.getHomepageUri())) return false; } if (hasParent() != other.hasParent()) return false; if (hasParent()) { if (!getParent().equals(other.getParent())) return false; } if (!getLabelIdsList().equals(other.getLabelIdsList())) return false; if (!getAutomaticLabelIdsList().equals(other.getAutomaticLabelIdsList())) return false; if (accountType_ != other.accountType_) 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) + FULL_NAME_FIELD_NUMBER; hash = (53 * hash) + getFullName().hashCode(); if (hasDisplayName()) { hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); } if (hasHomepageUri()) { hash = (37 * hash) + HOMEPAGE_URI_FIELD_NUMBER; hash = (53 * hash) + getHomepageUri().hashCode(); } if (hasParent()) { hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); } if (getLabelIdsCount() > 0) { hash = (37 * hash) + LABEL_IDS_FIELD_NUMBER; hash = (53 * hash) + getLabelIdsList().hashCode(); } if (getAutomaticLabelIdsCount() > 0) { hash = (37 * hash) + AUTOMATIC_LABEL_IDS_FIELD_NUMBER; hash = (53 * hash) + getAutomaticLabelIdsList().hashCode(); } hash = (37 * hash) + ACCOUNT_TYPE_FIELD_NUMBER; hash = (53 * hash) + accountType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.shopping.css.v1.Account parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.css.v1.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.css.v1.Account parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.css.v1.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.css.v1.Account parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.shopping.css.v1.Account parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.shopping.css.v1.Account parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.css.v1.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.css.v1.Account parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.shopping.css.v1.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.css.v1.Account parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.shopping.css.v1.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.css.v1.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; } /** * * *
   * Information about CSS/MC account.
   * 
* * Protobuf type {@code google.shopping.css.v1.Account} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.shopping.css.v1.Account) com.google.shopping.css.v1.AccountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.shopping.css.v1.AccountsProto .internal_static_google_shopping_css_v1_Account_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.shopping.css.v1.AccountsProto .internal_static_google_shopping_css_v1_Account_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.shopping.css.v1.Account.class, com.google.shopping.css.v1.Account.Builder.class); } // Construct using com.google.shopping.css.v1.Account.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; name_ = ""; fullName_ = ""; displayName_ = ""; homepageUri_ = ""; parent_ = ""; labelIds_ = emptyLongList(); automaticLabelIds_ = emptyLongList(); accountType_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.shopping.css.v1.AccountsProto .internal_static_google_shopping_css_v1_Account_descriptor; } @java.lang.Override public com.google.shopping.css.v1.Account getDefaultInstanceForType() { return com.google.shopping.css.v1.Account.getDefaultInstance(); } @java.lang.Override public com.google.shopping.css.v1.Account build() { com.google.shopping.css.v1.Account result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.shopping.css.v1.Account buildPartial() { com.google.shopping.css.v1.Account result = new com.google.shopping.css.v1.Account(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.shopping.css.v1.Account result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.fullName_ = fullName_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.displayName_ = displayName_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000008) != 0)) { result.homepageUri_ = homepageUri_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000010) != 0)) { result.parent_ = parent_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { labelIds_.makeImmutable(); result.labelIds_ = labelIds_; } if (((from_bitField0_ & 0x00000040) != 0)) { automaticLabelIds_.makeImmutable(); result.automaticLabelIds_ = automaticLabelIds_; } if (((from_bitField0_ & 0x00000080) != 0)) { result.accountType_ = accountType_; } 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.css.v1.Account) { return mergeFrom((com.google.shopping.css.v1.Account) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.shopping.css.v1.Account other) { if (other == com.google.shopping.css.v1.Account.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } if (!other.getFullName().isEmpty()) { fullName_ = other.fullName_; bitField0_ |= 0x00000002; onChanged(); } if (other.hasDisplayName()) { displayName_ = other.displayName_; bitField0_ |= 0x00000004; onChanged(); } if (other.hasHomepageUri()) { homepageUri_ = other.homepageUri_; bitField0_ |= 0x00000008; onChanged(); } if (other.hasParent()) { parent_ = other.parent_; bitField0_ |= 0x00000010; onChanged(); } if (!other.labelIds_.isEmpty()) { if (labelIds_.isEmpty()) { labelIds_ = other.labelIds_; labelIds_.makeImmutable(); bitField0_ |= 0x00000020; } else { ensureLabelIdsIsMutable(); labelIds_.addAll(other.labelIds_); } onChanged(); } if (!other.automaticLabelIds_.isEmpty()) { if (automaticLabelIds_.isEmpty()) { automaticLabelIds_ = other.automaticLabelIds_; automaticLabelIds_.makeImmutable(); bitField0_ |= 0x00000040; } else { ensureAutomaticLabelIdsIsMutable(); automaticLabelIds_.addAll(other.automaticLabelIds_); } onChanged(); } if (other.accountType_ != 0) { setAccountTypeValue(other.getAccountTypeValue()); } 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: { fullName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { displayName_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 case 34: { homepageUri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { parent_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000010; break; } // case 42 case 48: { long v = input.readInt64(); ensureLabelIdsIsMutable(); labelIds_.addLong(v); break; } // case 48 case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureLabelIdsIsMutable(); while (input.getBytesUntilLimit() > 0) { labelIds_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 50 case 56: { long v = input.readInt64(); ensureAutomaticLabelIdsIsMutable(); automaticLabelIds_.addLong(v); break; } // case 56 case 58: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureAutomaticLabelIdsIsMutable(); while (input.getBytesUntilLimit() > 0) { automaticLabelIds_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 58 case 64: { accountType_ = input.readEnum(); bitField0_ |= 0x00000080; break; } // case 64 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_ = ""; /** * * *
     * The label resource name.
     * Format: accounts/{account}
     * 
* * string name = 1; * * @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; } } /** * * *
     * The label resource name.
     * Format: accounts/{account}
     * 
* * string name = 1; * * @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; } } /** * * *
     * The label resource name.
     * Format: accounts/{account}
     * 
* * string name = 1; * * @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; } /** * * *
     * The label resource name.
     * Format: accounts/{account}
     * 
* * string name = 1; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * The label resource name.
     * Format: accounts/{account}
     * 
* * string name = 1; * * @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 java.lang.Object fullName_ = ""; /** * * *
     * Output only. Immutable. The CSS/MC account's full name.
     * 
* * * string full_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The fullName. */ public java.lang.String getFullName() { java.lang.Object ref = fullName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fullName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Immutable. The CSS/MC account's full name.
     * 
* * * string full_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The bytes for fullName. */ public com.google.protobuf.ByteString getFullNameBytes() { java.lang.Object ref = fullName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); fullName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Immutable. The CSS/MC account's full name.
     * 
* * * string full_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The fullName to set. * @return This builder for chaining. */ public Builder setFullName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } fullName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** * * *
     * Output only. Immutable. The CSS/MC account's full name.
     * 
* * * string full_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. */ public Builder clearFullName() { fullName_ = getDefaultInstance().getFullName(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * * *
     * Output only. Immutable. The CSS/MC account's full name.
     * 
* * * string full_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The bytes for fullName to set. * @return This builder for chaining. */ public Builder setFullNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fullName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** * * *
     * The CSS/MC account's short display name.
     * 
* * optional string display_name = 3; * * @return Whether the displayName field is set. */ public boolean hasDisplayName() { return ((bitField0_ & 0x00000004) != 0); } /** * * *
     * The CSS/MC account's short display name.
     * 
* * optional string display_name = 3; * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The CSS/MC account's short display name.
     * 
* * optional string display_name = 3; * * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The CSS/MC account's short display name.
     * 
* * optional string display_name = 3; * * @param value The displayName to set. * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** * * *
     * The CSS/MC account's short display name.
     * 
* * optional string display_name = 3; * * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** * * *
     * The CSS/MC account's short display name.
     * 
* * optional string display_name = 3; * * @param value The bytes for displayName to set. * @return This builder for chaining. */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } private java.lang.Object homepageUri_ = ""; /** * * *
     * Output only. Immutable. The CSS/MC account's homepage.
     * 
* * * optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @return Whether the homepageUri field is set. */ public boolean hasHomepageUri() { return ((bitField0_ & 0x00000008) != 0); } /** * * *
     * Output only. Immutable. The CSS/MC account's homepage.
     * 
* * * optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The homepageUri. */ public java.lang.String getHomepageUri() { java.lang.Object ref = homepageUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); homepageUri_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Output only. Immutable. The CSS/MC account's homepage.
     * 
* * * optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @return The bytes for homepageUri. */ public com.google.protobuf.ByteString getHomepageUriBytes() { java.lang.Object ref = homepageUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); homepageUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Output only. Immutable. The CSS/MC account's homepage.
     * 
* * * optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The homepageUri to set. * @return This builder for chaining. */ public Builder setHomepageUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } homepageUri_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } /** * * *
     * Output only. Immutable. The CSS/MC account's homepage.
     * 
* * * optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @return This builder for chaining. */ public Builder clearHomepageUri() { homepageUri_ = getDefaultInstance().getHomepageUri(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } /** * * *
     * Output only. Immutable. The CSS/MC account's homepage.
     * 
* * * optional string homepage_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; * * * @param value The bytes for homepageUri to set. * @return This builder for chaining. */ public Builder setHomepageUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); homepageUri_ = value; bitField0_ |= 0x00000008; onChanged(); return this; } private java.lang.Object parent_ = ""; /** * * *
     * The CSS/MC account's parent resource. CSS group for CSS domains; CSS
     * domain for MC accounts. Returned only if the user has access to the
     * parent account.
     * 
* * optional string parent = 5; * * @return Whether the parent field is set. */ public boolean hasParent() { return ((bitField0_ & 0x00000010) != 0); } /** * * *
     * The CSS/MC account's parent resource. CSS group for CSS domains; CSS
     * domain for MC accounts. Returned only if the user has access to the
     * parent account.
     * 
* * optional string parent = 5; * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * The CSS/MC account's parent resource. CSS group for CSS domains; CSS
     * domain for MC accounts. Returned only if the user has access to the
     * parent account.
     * 
* * optional string parent = 5; * * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * The CSS/MC account's parent resource. CSS group for CSS domains; CSS
     * domain for MC accounts. Returned only if the user has access to the
     * parent account.
     * 
* * optional string parent = 5; * * @param value The parent to set. * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** * * *
     * The CSS/MC account's parent resource. CSS group for CSS domains; CSS
     * domain for MC accounts. Returned only if the user has access to the
     * parent account.
     * 
* * optional string parent = 5; * * @return This builder for chaining. */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } /** * * *
     * The CSS/MC account's parent resource. CSS group for CSS domains; CSS
     * domain for MC accounts. Returned only if the user has access to the
     * parent account.
     * 
* * optional string parent = 5; * * @param value The bytes for parent to set. * @return This builder for chaining. */ public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } private com.google.protobuf.Internal.LongList labelIds_ = emptyLongList(); private void ensureLabelIdsIsMutable() { if (!labelIds_.isModifiable()) { labelIds_ = makeMutableCopy(labelIds_); } bitField0_ |= 0x00000020; } /** * * *
     * Manually created label IDs assigned to the CSS/MC account by a CSS parent
     * account.
     * 
* * repeated int64 label_ids = 6; * * @return A list containing the labelIds. */ public java.util.List getLabelIdsList() { labelIds_.makeImmutable(); return labelIds_; } /** * * *
     * Manually created label IDs assigned to the CSS/MC account by a CSS parent
     * account.
     * 
* * repeated int64 label_ids = 6; * * @return The count of labelIds. */ public int getLabelIdsCount() { return labelIds_.size(); } /** * * *
     * Manually created label IDs assigned to the CSS/MC account by a CSS parent
     * account.
     * 
* * repeated int64 label_ids = 6; * * @param index The index of the element to return. * @return The labelIds at the given index. */ public long getLabelIds(int index) { return labelIds_.getLong(index); } /** * * *
     * Manually created label IDs assigned to the CSS/MC account by a CSS parent
     * account.
     * 
* * repeated int64 label_ids = 6; * * @param index The index to set the value at. * @param value The labelIds to set. * @return This builder for chaining. */ public Builder setLabelIds(int index, long value) { ensureLabelIdsIsMutable(); labelIds_.setLong(index, value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Manually created label IDs assigned to the CSS/MC account by a CSS parent
     * account.
     * 
* * repeated int64 label_ids = 6; * * @param value The labelIds to add. * @return This builder for chaining. */ public Builder addLabelIds(long value) { ensureLabelIdsIsMutable(); labelIds_.addLong(value); bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Manually created label IDs assigned to the CSS/MC account by a CSS parent
     * account.
     * 
* * repeated int64 label_ids = 6; * * @param values The labelIds to add. * @return This builder for chaining. */ public Builder addAllLabelIds(java.lang.Iterable values) { ensureLabelIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labelIds_); bitField0_ |= 0x00000020; onChanged(); return this; } /** * * *
     * Manually created label IDs assigned to the CSS/MC account by a CSS parent
     * account.
     * 
* * repeated int64 label_ids = 6; * * @return This builder for chaining. */ public Builder clearLabelIds() { labelIds_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } private com.google.protobuf.Internal.LongList automaticLabelIds_ = emptyLongList(); private void ensureAutomaticLabelIdsIsMutable() { if (!automaticLabelIds_.isModifiable()) { automaticLabelIds_ = makeMutableCopy(automaticLabelIds_); } bitField0_ |= 0x00000040; } /** * * *
     * Automatically created label IDs assigned to the MC account by
     * CSS Center.
     * 
* * repeated int64 automatic_label_ids = 7; * * @return A list containing the automaticLabelIds. */ public java.util.List getAutomaticLabelIdsList() { automaticLabelIds_.makeImmutable(); return automaticLabelIds_; } /** * * *
     * Automatically created label IDs assigned to the MC account by
     * CSS Center.
     * 
* * repeated int64 automatic_label_ids = 7; * * @return The count of automaticLabelIds. */ public int getAutomaticLabelIdsCount() { return automaticLabelIds_.size(); } /** * * *
     * Automatically created label IDs assigned to the MC account by
     * CSS Center.
     * 
* * repeated int64 automatic_label_ids = 7; * * @param index The index of the element to return. * @return The automaticLabelIds at the given index. */ public long getAutomaticLabelIds(int index) { return automaticLabelIds_.getLong(index); } /** * * *
     * Automatically created label IDs assigned to the MC account by
     * CSS Center.
     * 
* * repeated int64 automatic_label_ids = 7; * * @param index The index to set the value at. * @param value The automaticLabelIds to set. * @return This builder for chaining. */ public Builder setAutomaticLabelIds(int index, long value) { ensureAutomaticLabelIdsIsMutable(); automaticLabelIds_.setLong(index, value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Automatically created label IDs assigned to the MC account by
     * CSS Center.
     * 
* * repeated int64 automatic_label_ids = 7; * * @param value The automaticLabelIds to add. * @return This builder for chaining. */ public Builder addAutomaticLabelIds(long value) { ensureAutomaticLabelIdsIsMutable(); automaticLabelIds_.addLong(value); bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Automatically created label IDs assigned to the MC account by
     * CSS Center.
     * 
* * repeated int64 automatic_label_ids = 7; * * @param values The automaticLabelIds to add. * @return This builder for chaining. */ public Builder addAllAutomaticLabelIds(java.lang.Iterable values) { ensureAutomaticLabelIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, automaticLabelIds_); bitField0_ |= 0x00000040; onChanged(); return this; } /** * * *
     * Automatically created label IDs assigned to the MC account by
     * CSS Center.
     * 
* * repeated int64 automatic_label_ids = 7; * * @return This builder for chaining. */ public Builder clearAutomaticLabelIds() { automaticLabelIds_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } private int accountType_ = 0; /** * * *
     * Output only. The type of this account.
     * 
* * * .google.shopping.css.v1.Account.AccountType account_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The enum numeric value on the wire for accountType. */ @java.lang.Override public int getAccountTypeValue() { return accountType_; } /** * * *
     * Output only. The type of this account.
     * 
* * * .google.shopping.css.v1.Account.AccountType account_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The enum numeric value on the wire for accountType to set. * @return This builder for chaining. */ public Builder setAccountTypeValue(int value) { accountType_ = value; bitField0_ |= 0x00000080; onChanged(); return this; } /** * * *
     * Output only. The type of this account.
     * 
* * * .google.shopping.css.v1.Account.AccountType account_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The accountType. */ @java.lang.Override public com.google.shopping.css.v1.Account.AccountType getAccountType() { com.google.shopping.css.v1.Account.AccountType result = com.google.shopping.css.v1.Account.AccountType.forNumber(accountType_); return result == null ? com.google.shopping.css.v1.Account.AccountType.UNRECOGNIZED : result; } /** * * *
     * Output only. The type of this account.
     * 
* * * .google.shopping.css.v1.Account.AccountType account_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @param value The accountType to set. * @return This builder for chaining. */ public Builder setAccountType(com.google.shopping.css.v1.Account.AccountType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; accountType_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Output only. The type of this account.
     * 
* * * .google.shopping.css.v1.Account.AccountType account_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return This builder for chaining. */ public Builder clearAccountType() { bitField0_ = (bitField0_ & ~0x00000080); accountType_ = 0; 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.css.v1.Account) } // @@protoc_insertion_point(class_scope:google.shopping.css.v1.Account) private static final com.google.shopping.css.v1.Account DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.shopping.css.v1.Account(); } public static com.google.shopping.css.v1.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.css.v1.Account getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy