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

com.google.ads.googleads.v17.common.LookalikeUserListInfo Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/ads/googleads/v17/common/user_lists.proto

// Protobuf Java Version: 3.25.3
package com.google.ads.googleads.v17.common;

/**
 * 
 * LookalikeUserlist, composed of users similar to those
 *   of a configurable seed (set of UserLists)
 * 
* * Protobuf type {@code google.ads.googleads.v17.common.LookalikeUserListInfo} */ public final class LookalikeUserListInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.common.LookalikeUserListInfo) LookalikeUserListInfoOrBuilder { private static final long serialVersionUID = 0L; // Use LookalikeUserListInfo.newBuilder() to construct. private LookalikeUserListInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LookalikeUserListInfo() { seedUserListIds_ = emptyLongList(); expansionLevel_ = 0; countryCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LookalikeUserListInfo(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.UserListsProto.internal_static_google_ads_googleads_v17_common_LookalikeUserListInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.UserListsProto.internal_static_google_ads_googleads_v17_common_LookalikeUserListInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.LookalikeUserListInfo.class, com.google.ads.googleads.v17.common.LookalikeUserListInfo.Builder.class); } public static final int SEED_USER_LIST_IDS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private com.google.protobuf.Internal.LongList seedUserListIds_ = emptyLongList(); /** *
   * Seed UserList ID from which this list is derived, provided by user.
   * 
* * repeated int64 seed_user_list_ids = 1; * @return A list containing the seedUserListIds. */ @java.lang.Override public java.util.List getSeedUserListIdsList() { return seedUserListIds_; } /** *
   * Seed UserList ID from which this list is derived, provided by user.
   * 
* * repeated int64 seed_user_list_ids = 1; * @return The count of seedUserListIds. */ public int getSeedUserListIdsCount() { return seedUserListIds_.size(); } /** *
   * Seed UserList ID from which this list is derived, provided by user.
   * 
* * repeated int64 seed_user_list_ids = 1; * @param index The index of the element to return. * @return The seedUserListIds at the given index. */ public long getSeedUserListIds(int index) { return seedUserListIds_.getLong(index); } private int seedUserListIdsMemoizedSerializedSize = -1; public static final int EXPANSION_LEVEL_FIELD_NUMBER = 2; private int expansionLevel_ = 0; /** *
   * Expansion level, reflecting the size of the lookalike audience
   * 
* * .google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel expansion_level = 2; * @return The enum numeric value on the wire for expansionLevel. */ @java.lang.Override public int getExpansionLevelValue() { return expansionLevel_; } /** *
   * Expansion level, reflecting the size of the lookalike audience
   * 
* * .google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel expansion_level = 2; * @return The expansionLevel. */ @java.lang.Override public com.google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel getExpansionLevel() { com.google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel result = com.google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel.forNumber(expansionLevel_); return result == null ? com.google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel.UNRECOGNIZED : result; } public static final int COUNTRY_CODES_FIELD_NUMBER = 3; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList countryCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** *
   * Countries targeted by the Lookalike. Two-letter country code as defined by
   * ISO-3166
   * 
* * repeated string country_codes = 3; * @return A list containing the countryCodes. */ public com.google.protobuf.ProtocolStringList getCountryCodesList() { return countryCodes_; } /** *
   * Countries targeted by the Lookalike. Two-letter country code as defined by
   * ISO-3166
   * 
* * repeated string country_codes = 3; * @return The count of countryCodes. */ public int getCountryCodesCount() { return countryCodes_.size(); } /** *
   * Countries targeted by the Lookalike. Two-letter country code as defined by
   * ISO-3166
   * 
* * repeated string country_codes = 3; * @param index The index of the element to return. * @return The countryCodes at the given index. */ public java.lang.String getCountryCodes(int index) { return countryCodes_.get(index); } /** *
   * Countries targeted by the Lookalike. Two-letter country code as defined by
   * ISO-3166
   * 
* * repeated string country_codes = 3; * @param index The index of the value to return. * @return The bytes of the countryCodes at the given index. */ public com.google.protobuf.ByteString getCountryCodesBytes(int index) { return countryCodes_.getByteString(index); } 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 (getSeedUserListIdsList().size() > 0) { output.writeUInt32NoTag(10); output.writeUInt32NoTag(seedUserListIdsMemoizedSerializedSize); } for (int i = 0; i < seedUserListIds_.size(); i++) { output.writeInt64NoTag(seedUserListIds_.getLong(i)); } if (expansionLevel_ != com.google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel.UNSPECIFIED.getNumber()) { output.writeEnum(2, expansionLevel_); } for (int i = 0; i < countryCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, countryCodes_.getRaw(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < seedUserListIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeInt64SizeNoTag(seedUserListIds_.getLong(i)); } size += dataSize; if (!getSeedUserListIdsList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream .computeInt32SizeNoTag(dataSize); } seedUserListIdsMemoizedSerializedSize = dataSize; } if (expansionLevel_ != com.google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel.UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, expansionLevel_); } { int dataSize = 0; for (int i = 0; i < countryCodes_.size(); i++) { dataSize += computeStringSizeNoTag(countryCodes_.getRaw(i)); } size += dataSize; size += 1 * getCountryCodesList().size(); } 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.ads.googleads.v17.common.LookalikeUserListInfo)) { return super.equals(obj); } com.google.ads.googleads.v17.common.LookalikeUserListInfo other = (com.google.ads.googleads.v17.common.LookalikeUserListInfo) obj; if (!getSeedUserListIdsList() .equals(other.getSeedUserListIdsList())) return false; if (expansionLevel_ != other.expansionLevel_) return false; if (!getCountryCodesList() .equals(other.getCountryCodesList())) 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(); if (getSeedUserListIdsCount() > 0) { hash = (37 * hash) + SEED_USER_LIST_IDS_FIELD_NUMBER; hash = (53 * hash) + getSeedUserListIdsList().hashCode(); } hash = (37 * hash) + EXPANSION_LEVEL_FIELD_NUMBER; hash = (53 * hash) + expansionLevel_; if (getCountryCodesCount() > 0) { hash = (37 * hash) + COUNTRY_CODES_FIELD_NUMBER; hash = (53 * hash) + getCountryCodesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.common.LookalikeUserListInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.LookalikeUserListInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.common.LookalikeUserListInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.LookalikeUserListInfo 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.ads.googleads.v17.common.LookalikeUserListInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.common.LookalikeUserListInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.ads.googleads.v17.common.LookalikeUserListInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.LookalikeUserListInfo 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.ads.googleads.v17.common.LookalikeUserListInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.LookalikeUserListInfo 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.ads.googleads.v17.common.LookalikeUserListInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.common.LookalikeUserListInfo 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.ads.googleads.v17.common.LookalikeUserListInfo 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; } /** *
   * LookalikeUserlist, composed of users similar to those
   *   of a configurable seed (set of UserLists)
   * 
* * Protobuf type {@code google.ads.googleads.v17.common.LookalikeUserListInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.common.LookalikeUserListInfo) com.google.ads.googleads.v17.common.LookalikeUserListInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.common.UserListsProto.internal_static_google_ads_googleads_v17_common_LookalikeUserListInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.common.UserListsProto.internal_static_google_ads_googleads_v17_common_LookalikeUserListInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.common.LookalikeUserListInfo.class, com.google.ads.googleads.v17.common.LookalikeUserListInfo.Builder.class); } // Construct using com.google.ads.googleads.v17.common.LookalikeUserListInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; seedUserListIds_ = emptyLongList(); expansionLevel_ = 0; countryCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.common.UserListsProto.internal_static_google_ads_googleads_v17_common_LookalikeUserListInfo_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.common.LookalikeUserListInfo getDefaultInstanceForType() { return com.google.ads.googleads.v17.common.LookalikeUserListInfo.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.common.LookalikeUserListInfo build() { com.google.ads.googleads.v17.common.LookalikeUserListInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.common.LookalikeUserListInfo buildPartial() { com.google.ads.googleads.v17.common.LookalikeUserListInfo result = new com.google.ads.googleads.v17.common.LookalikeUserListInfo(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartial0(com.google.ads.googleads.v17.common.LookalikeUserListInfo result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { seedUserListIds_.makeImmutable(); result.seedUserListIds_ = seedUserListIds_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.expansionLevel_ = expansionLevel_; } if (((from_bitField0_ & 0x00000004) != 0)) { countryCodes_.makeImmutable(); result.countryCodes_ = countryCodes_; } } @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.ads.googleads.v17.common.LookalikeUserListInfo) { return mergeFrom((com.google.ads.googleads.v17.common.LookalikeUserListInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.common.LookalikeUserListInfo other) { if (other == com.google.ads.googleads.v17.common.LookalikeUserListInfo.getDefaultInstance()) return this; if (!other.seedUserListIds_.isEmpty()) { if (seedUserListIds_.isEmpty()) { seedUserListIds_ = other.seedUserListIds_; seedUserListIds_.makeImmutable(); bitField0_ |= 0x00000001; } else { ensureSeedUserListIdsIsMutable(); seedUserListIds_.addAll(other.seedUserListIds_); } onChanged(); } if (other.expansionLevel_ != 0) { setExpansionLevelValue(other.getExpansionLevelValue()); } if (!other.countryCodes_.isEmpty()) { if (countryCodes_.isEmpty()) { countryCodes_ = other.countryCodes_; bitField0_ |= 0x00000004; } else { ensureCountryCodesIsMutable(); countryCodes_.addAll(other.countryCodes_); } 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 8: { long v = input.readInt64(); ensureSeedUserListIdsIsMutable(); seedUserListIds_.addLong(v); break; } // case 8 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureSeedUserListIdsIsMutable(); while (input.getBytesUntilLimit() > 0) { seedUserListIds_.addLong(input.readInt64()); } input.popLimit(limit); break; } // case 10 case 16: { expansionLevel_ = input.readEnum(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { java.lang.String s = input.readStringRequireUtf8(); ensureCountryCodesIsMutable(); countryCodes_.add(s); break; } // case 26 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 com.google.protobuf.Internal.LongList seedUserListIds_ = emptyLongList(); private void ensureSeedUserListIdsIsMutable() { if (!seedUserListIds_.isModifiable()) { seedUserListIds_ = makeMutableCopy(seedUserListIds_); } bitField0_ |= 0x00000001; } /** *
     * Seed UserList ID from which this list is derived, provided by user.
     * 
* * repeated int64 seed_user_list_ids = 1; * @return A list containing the seedUserListIds. */ public java.util.List getSeedUserListIdsList() { seedUserListIds_.makeImmutable(); return seedUserListIds_; } /** *
     * Seed UserList ID from which this list is derived, provided by user.
     * 
* * repeated int64 seed_user_list_ids = 1; * @return The count of seedUserListIds. */ public int getSeedUserListIdsCount() { return seedUserListIds_.size(); } /** *
     * Seed UserList ID from which this list is derived, provided by user.
     * 
* * repeated int64 seed_user_list_ids = 1; * @param index The index of the element to return. * @return The seedUserListIds at the given index. */ public long getSeedUserListIds(int index) { return seedUserListIds_.getLong(index); } /** *
     * Seed UserList ID from which this list is derived, provided by user.
     * 
* * repeated int64 seed_user_list_ids = 1; * @param index The index to set the value at. * @param value The seedUserListIds to set. * @return This builder for chaining. */ public Builder setSeedUserListIds( int index, long value) { ensureSeedUserListIdsIsMutable(); seedUserListIds_.setLong(index, value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Seed UserList ID from which this list is derived, provided by user.
     * 
* * repeated int64 seed_user_list_ids = 1; * @param value The seedUserListIds to add. * @return This builder for chaining. */ public Builder addSeedUserListIds(long value) { ensureSeedUserListIdsIsMutable(); seedUserListIds_.addLong(value); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Seed UserList ID from which this list is derived, provided by user.
     * 
* * repeated int64 seed_user_list_ids = 1; * @param values The seedUserListIds to add. * @return This builder for chaining. */ public Builder addAllSeedUserListIds( java.lang.Iterable values) { ensureSeedUserListIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, seedUserListIds_); bitField0_ |= 0x00000001; onChanged(); return this; } /** *
     * Seed UserList ID from which this list is derived, provided by user.
     * 
* * repeated int64 seed_user_list_ids = 1; * @return This builder for chaining. */ public Builder clearSeedUserListIds() { seedUserListIds_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } private int expansionLevel_ = 0; /** *
     * Expansion level, reflecting the size of the lookalike audience
     * 
* * .google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel expansion_level = 2; * @return The enum numeric value on the wire for expansionLevel. */ @java.lang.Override public int getExpansionLevelValue() { return expansionLevel_; } /** *
     * Expansion level, reflecting the size of the lookalike audience
     * 
* * .google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel expansion_level = 2; * @param value The enum numeric value on the wire for expansionLevel to set. * @return This builder for chaining. */ public Builder setExpansionLevelValue(int value) { expansionLevel_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** *
     * Expansion level, reflecting the size of the lookalike audience
     * 
* * .google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel expansion_level = 2; * @return The expansionLevel. */ @java.lang.Override public com.google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel getExpansionLevel() { com.google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel result = com.google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel.forNumber(expansionLevel_); return result == null ? com.google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel.UNRECOGNIZED : result; } /** *
     * Expansion level, reflecting the size of the lookalike audience
     * 
* * .google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel expansion_level = 2; * @param value The expansionLevel to set. * @return This builder for chaining. */ public Builder setExpansionLevel(com.google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; expansionLevel_ = value.getNumber(); onChanged(); return this; } /** *
     * Expansion level, reflecting the size of the lookalike audience
     * 
* * .google.ads.googleads.v17.enums.LookalikeExpansionLevelEnum.LookalikeExpansionLevel expansion_level = 2; * @return This builder for chaining. */ public Builder clearExpansionLevel() { bitField0_ = (bitField0_ & ~0x00000002); expansionLevel_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringArrayList countryCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureCountryCodesIsMutable() { if (!countryCodes_.isModifiable()) { countryCodes_ = new com.google.protobuf.LazyStringArrayList(countryCodes_); } bitField0_ |= 0x00000004; } /** *
     * Countries targeted by the Lookalike. Two-letter country code as defined by
     * ISO-3166
     * 
* * repeated string country_codes = 3; * @return A list containing the countryCodes. */ public com.google.protobuf.ProtocolStringList getCountryCodesList() { countryCodes_.makeImmutable(); return countryCodes_; } /** *
     * Countries targeted by the Lookalike. Two-letter country code as defined by
     * ISO-3166
     * 
* * repeated string country_codes = 3; * @return The count of countryCodes. */ public int getCountryCodesCount() { return countryCodes_.size(); } /** *
     * Countries targeted by the Lookalike. Two-letter country code as defined by
     * ISO-3166
     * 
* * repeated string country_codes = 3; * @param index The index of the element to return. * @return The countryCodes at the given index. */ public java.lang.String getCountryCodes(int index) { return countryCodes_.get(index); } /** *
     * Countries targeted by the Lookalike. Two-letter country code as defined by
     * ISO-3166
     * 
* * repeated string country_codes = 3; * @param index The index of the value to return. * @return The bytes of the countryCodes at the given index. */ public com.google.protobuf.ByteString getCountryCodesBytes(int index) { return countryCodes_.getByteString(index); } /** *
     * Countries targeted by the Lookalike. Two-letter country code as defined by
     * ISO-3166
     * 
* * repeated string country_codes = 3; * @param index The index to set the value at. * @param value The countryCodes to set. * @return This builder for chaining. */ public Builder setCountryCodes( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCountryCodesIsMutable(); countryCodes_.set(index, value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Countries targeted by the Lookalike. Two-letter country code as defined by
     * ISO-3166
     * 
* * repeated string country_codes = 3; * @param value The countryCodes to add. * @return This builder for chaining. */ public Builder addCountryCodes( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureCountryCodesIsMutable(); countryCodes_.add(value); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Countries targeted by the Lookalike. Two-letter country code as defined by
     * ISO-3166
     * 
* * repeated string country_codes = 3; * @param values The countryCodes to add. * @return This builder for chaining. */ public Builder addAllCountryCodes( java.lang.Iterable values) { ensureCountryCodesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, countryCodes_); bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Countries targeted by the Lookalike. Two-letter country code as defined by
     * ISO-3166
     * 
* * repeated string country_codes = 3; * @return This builder for chaining. */ public Builder clearCountryCodes() { countryCodes_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000004);; onChanged(); return this; } /** *
     * Countries targeted by the Lookalike. Two-letter country code as defined by
     * ISO-3166
     * 
* * repeated string country_codes = 3; * @param value The bytes of the countryCodes to add. * @return This builder for chaining. */ public Builder addCountryCodesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureCountryCodesIsMutable(); countryCodes_.add(value); bitField0_ |= 0x00000004; 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.ads.googleads.v17.common.LookalikeUserListInfo) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.common.LookalikeUserListInfo) private static final com.google.ads.googleads.v17.common.LookalikeUserListInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.common.LookalikeUserListInfo(); } public static com.google.ads.googleads.v17.common.LookalikeUserListInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LookalikeUserListInfo 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.ads.googleads.v17.common.LookalikeUserListInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy