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

com.google.ads.googleads.v17.services.TargetingSuggestionMetrics Maven / Gradle / Ivy

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

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

/**
 * 
 * A suggested targetable audience relevant to the requested audience.
 * 
* * Protobuf type {@code google.ads.googleads.v17.services.TargetingSuggestionMetrics} */ public final class TargetingSuggestionMetrics extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.ads.googleads.v17.services.TargetingSuggestionMetrics) TargetingSuggestionMetricsOrBuilder { private static final long serialVersionUID = 0L; // Use TargetingSuggestionMetrics.newBuilder() to construct. private TargetingSuggestionMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TargetingSuggestionMetrics() { locations_ = java.util.Collections.emptyList(); ageRanges_ = java.util.Collections.emptyList(); userInterests_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TargetingSuggestionMetrics(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_TargetingSuggestionMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_TargetingSuggestionMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.TargetingSuggestionMetrics.class, com.google.ads.googleads.v17.services.TargetingSuggestionMetrics.Builder.class); } private int bitField0_; public static final int LOCATIONS_FIELD_NUMBER = 1; @SuppressWarnings("serial") private java.util.List locations_; /** *
   * Suggested location targeting.  These attributes all have dimension
   * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
   * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ @java.lang.Override public java.util.List getLocationsList() { return locations_; } /** *
   * Suggested location targeting.  These attributes all have dimension
   * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
   * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ @java.lang.Override public java.util.List getLocationsOrBuilderList() { return locations_; } /** *
   * Suggested location targeting.  These attributes all have dimension
   * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
   * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ @java.lang.Override public int getLocationsCount() { return locations_.size(); } /** *
   * Suggested location targeting.  These attributes all have dimension
   * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
   * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata getLocations(int index) { return locations_.get(index); } /** *
   * Suggested location targeting.  These attributes all have dimension
   * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
   * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder getLocationsOrBuilder( int index) { return locations_.get(index); } public static final int AGE_RANGES_FIELD_NUMBER = 2; @SuppressWarnings("serial") private java.util.List ageRanges_; /** *
   * Suggested age targeting; may be empty indicating no age targeting.
   * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ @java.lang.Override public java.util.List getAgeRangesList() { return ageRanges_; } /** *
   * Suggested age targeting; may be empty indicating no age targeting.
   * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ @java.lang.Override public java.util.List getAgeRangesOrBuilderList() { return ageRanges_; } /** *
   * Suggested age targeting; may be empty indicating no age targeting.
   * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ @java.lang.Override public int getAgeRangesCount() { return ageRanges_.size(); } /** *
   * Suggested age targeting; may be empty indicating no age targeting.
   * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ @java.lang.Override public com.google.ads.googleads.v17.common.AgeRangeInfo getAgeRanges(int index) { return ageRanges_.get(index); } /** *
   * Suggested age targeting; may be empty indicating no age targeting.
   * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ @java.lang.Override public com.google.ads.googleads.v17.common.AgeRangeInfoOrBuilder getAgeRangesOrBuilder( int index) { return ageRanges_.get(index); } public static final int GENDER_FIELD_NUMBER = 3; private com.google.ads.googleads.v17.common.GenderInfo gender_; /** *
   * Suggested gender targeting.  If present, this attribute has dimension
   * GENDER.
   * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 3; * @return Whether the gender field is set. */ @java.lang.Override public boolean hasGender() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Suggested gender targeting.  If present, this attribute has dimension
   * GENDER.
   * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 3; * @return The gender. */ @java.lang.Override public com.google.ads.googleads.v17.common.GenderInfo getGender() { return gender_ == null ? com.google.ads.googleads.v17.common.GenderInfo.getDefaultInstance() : gender_; } /** *
   * Suggested gender targeting.  If present, this attribute has dimension
   * GENDER.
   * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 3; */ @java.lang.Override public com.google.ads.googleads.v17.common.GenderInfoOrBuilder getGenderOrBuilder() { return gender_ == null ? com.google.ads.googleads.v17.common.GenderInfo.getDefaultInstance() : gender_; } public static final int USER_INTERESTS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private java.util.List userInterests_; /** *
   * Suggested audience segments to target.  These attributes all have dimension
   * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
   * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ @java.lang.Override public java.util.List getUserInterestsList() { return userInterests_; } /** *
   * Suggested audience segments to target.  These attributes all have dimension
   * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
   * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ @java.lang.Override public java.util.List getUserInterestsOrBuilderList() { return userInterests_; } /** *
   * Suggested audience segments to target.  These attributes all have dimension
   * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
   * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ @java.lang.Override public int getUserInterestsCount() { return userInterests_.size(); } /** *
   * Suggested audience segments to target.  These attributes all have dimension
   * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
   * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata getUserInterests(int index) { return userInterests_.get(index); } /** *
   * Suggested audience segments to target.  These attributes all have dimension
   * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
   * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ @java.lang.Override public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder getUserInterestsOrBuilder( int index) { return userInterests_.get(index); } public static final int COVERAGE_FIELD_NUMBER = 5; private double coverage_ = 0D; /** *
   * The fraction (from 0 to 1 inclusive) of the requested audience that can be
   * reached using the suggested targeting.
   * 
* * double coverage = 5; * @return The coverage. */ @java.lang.Override public double getCoverage() { return coverage_; } public static final int INDEX_FIELD_NUMBER = 6; private double index_ = 0D; /** *
   * The ratio of coverage to the coverage of the baseline audience or zero if
   * this ratio is undefined or is not meaningful.
   * 
* * double index = 6; * @return The index. */ @java.lang.Override public double getIndex() { return index_; } public static final int POTENTIAL_YOUTUBE_REACH_FIELD_NUMBER = 7; private long potentialYoutubeReach_ = 0L; /** *
   * The approximate estimated number of people that can be reached on YouTube
   * using this targeting.
   * 
* * int64 potential_youtube_reach = 7; * @return The potentialYoutubeReach. */ @java.lang.Override public long getPotentialYoutubeReach() { return potentialYoutubeReach_; } 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 { for (int i = 0; i < locations_.size(); i++) { output.writeMessage(1, locations_.get(i)); } for (int i = 0; i < ageRanges_.size(); i++) { output.writeMessage(2, ageRanges_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getGender()); } for (int i = 0; i < userInterests_.size(); i++) { output.writeMessage(4, userInterests_.get(i)); } if (java.lang.Double.doubleToRawLongBits(coverage_) != 0) { output.writeDouble(5, coverage_); } if (java.lang.Double.doubleToRawLongBits(index_) != 0) { output.writeDouble(6, index_); } if (potentialYoutubeReach_ != 0L) { output.writeInt64(7, potentialYoutubeReach_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < locations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, locations_.get(i)); } for (int i = 0; i < ageRanges_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, ageRanges_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getGender()); } for (int i = 0; i < userInterests_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, userInterests_.get(i)); } if (java.lang.Double.doubleToRawLongBits(coverage_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(5, coverage_); } if (java.lang.Double.doubleToRawLongBits(index_) != 0) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(6, index_); } if (potentialYoutubeReach_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(7, potentialYoutubeReach_); } 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.services.TargetingSuggestionMetrics)) { return super.equals(obj); } com.google.ads.googleads.v17.services.TargetingSuggestionMetrics other = (com.google.ads.googleads.v17.services.TargetingSuggestionMetrics) obj; if (!getLocationsList() .equals(other.getLocationsList())) return false; if (!getAgeRangesList() .equals(other.getAgeRangesList())) return false; if (hasGender() != other.hasGender()) return false; if (hasGender()) { if (!getGender() .equals(other.getGender())) return false; } if (!getUserInterestsList() .equals(other.getUserInterestsList())) return false; if (java.lang.Double.doubleToLongBits(getCoverage()) != java.lang.Double.doubleToLongBits( other.getCoverage())) return false; if (java.lang.Double.doubleToLongBits(getIndex()) != java.lang.Double.doubleToLongBits( other.getIndex())) return false; if (getPotentialYoutubeReach() != other.getPotentialYoutubeReach()) 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 (getLocationsCount() > 0) { hash = (37 * hash) + LOCATIONS_FIELD_NUMBER; hash = (53 * hash) + getLocationsList().hashCode(); } if (getAgeRangesCount() > 0) { hash = (37 * hash) + AGE_RANGES_FIELD_NUMBER; hash = (53 * hash) + getAgeRangesList().hashCode(); } if (hasGender()) { hash = (37 * hash) + GENDER_FIELD_NUMBER; hash = (53 * hash) + getGender().hashCode(); } if (getUserInterestsCount() > 0) { hash = (37 * hash) + USER_INTERESTS_FIELD_NUMBER; hash = (53 * hash) + getUserInterestsList().hashCode(); } hash = (37 * hash) + COVERAGE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCoverage())); hash = (37 * hash) + INDEX_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getIndex())); hash = (37 * hash) + POTENTIAL_YOUTUBE_REACH_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getPotentialYoutubeReach()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.ads.googleads.v17.services.TargetingSuggestionMetrics parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.TargetingSuggestionMetrics 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.services.TargetingSuggestionMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.TargetingSuggestionMetrics 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.services.TargetingSuggestionMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.ads.googleads.v17.services.TargetingSuggestionMetrics 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.services.TargetingSuggestionMetrics parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.TargetingSuggestionMetrics 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.services.TargetingSuggestionMetrics parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static com.google.ads.googleads.v17.services.TargetingSuggestionMetrics 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.services.TargetingSuggestionMetrics 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.services.TargetingSuggestionMetrics 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.services.TargetingSuggestionMetrics 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; } /** *
   * A suggested targetable audience relevant to the requested audience.
   * 
* * Protobuf type {@code google.ads.googleads.v17.services.TargetingSuggestionMetrics} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.ads.googleads.v17.services.TargetingSuggestionMetrics) com.google.ads.googleads.v17.services.TargetingSuggestionMetricsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_TargetingSuggestionMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_TargetingSuggestionMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.ads.googleads.v17.services.TargetingSuggestionMetrics.class, com.google.ads.googleads.v17.services.TargetingSuggestionMetrics.Builder.class); } // Construct using com.google.ads.googleads.v17.services.TargetingSuggestionMetrics.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getLocationsFieldBuilder(); getAgeRangesFieldBuilder(); getGenderFieldBuilder(); getUserInterestsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; if (locationsBuilder_ == null) { locations_ = java.util.Collections.emptyList(); } else { locations_ = null; locationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (ageRangesBuilder_ == null) { ageRanges_ = java.util.Collections.emptyList(); } else { ageRanges_ = null; ageRangesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); gender_ = null; if (genderBuilder_ != null) { genderBuilder_.dispose(); genderBuilder_ = null; } if (userInterestsBuilder_ == null) { userInterests_ = java.util.Collections.emptyList(); } else { userInterests_ = null; userInterestsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); coverage_ = 0D; index_ = 0D; potentialYoutubeReach_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.ads.googleads.v17.services.AudienceInsightsServiceProto.internal_static_google_ads_googleads_v17_services_TargetingSuggestionMetrics_descriptor; } @java.lang.Override public com.google.ads.googleads.v17.services.TargetingSuggestionMetrics getDefaultInstanceForType() { return com.google.ads.googleads.v17.services.TargetingSuggestionMetrics.getDefaultInstance(); } @java.lang.Override public com.google.ads.googleads.v17.services.TargetingSuggestionMetrics build() { com.google.ads.googleads.v17.services.TargetingSuggestionMetrics result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.ads.googleads.v17.services.TargetingSuggestionMetrics buildPartial() { com.google.ads.googleads.v17.services.TargetingSuggestionMetrics result = new com.google.ads.googleads.v17.services.TargetingSuggestionMetrics(this); buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } private void buildPartialRepeatedFields(com.google.ads.googleads.v17.services.TargetingSuggestionMetrics result) { if (locationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { locations_ = java.util.Collections.unmodifiableList(locations_); bitField0_ = (bitField0_ & ~0x00000001); } result.locations_ = locations_; } else { result.locations_ = locationsBuilder_.build(); } if (ageRangesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { ageRanges_ = java.util.Collections.unmodifiableList(ageRanges_); bitField0_ = (bitField0_ & ~0x00000002); } result.ageRanges_ = ageRanges_; } else { result.ageRanges_ = ageRangesBuilder_.build(); } if (userInterestsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { userInterests_ = java.util.Collections.unmodifiableList(userInterests_); bitField0_ = (bitField0_ & ~0x00000008); } result.userInterests_ = userInterests_; } else { result.userInterests_ = userInterestsBuilder_.build(); } } private void buildPartial0(com.google.ads.googleads.v17.services.TargetingSuggestionMetrics result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { result.gender_ = genderBuilder_ == null ? gender_ : genderBuilder_.build(); to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000010) != 0)) { result.coverage_ = coverage_; } if (((from_bitField0_ & 0x00000020) != 0)) { result.index_ = index_; } if (((from_bitField0_ & 0x00000040) != 0)) { result.potentialYoutubeReach_ = potentialYoutubeReach_; } 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.ads.googleads.v17.services.TargetingSuggestionMetrics) { return mergeFrom((com.google.ads.googleads.v17.services.TargetingSuggestionMetrics)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.ads.googleads.v17.services.TargetingSuggestionMetrics other) { if (other == com.google.ads.googleads.v17.services.TargetingSuggestionMetrics.getDefaultInstance()) return this; if (locationsBuilder_ == null) { if (!other.locations_.isEmpty()) { if (locations_.isEmpty()) { locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLocationsIsMutable(); locations_.addAll(other.locations_); } onChanged(); } } else { if (!other.locations_.isEmpty()) { if (locationsBuilder_.isEmpty()) { locationsBuilder_.dispose(); locationsBuilder_ = null; locations_ = other.locations_; bitField0_ = (bitField0_ & ~0x00000001); locationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLocationsFieldBuilder() : null; } else { locationsBuilder_.addAllMessages(other.locations_); } } } if (ageRangesBuilder_ == null) { if (!other.ageRanges_.isEmpty()) { if (ageRanges_.isEmpty()) { ageRanges_ = other.ageRanges_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureAgeRangesIsMutable(); ageRanges_.addAll(other.ageRanges_); } onChanged(); } } else { if (!other.ageRanges_.isEmpty()) { if (ageRangesBuilder_.isEmpty()) { ageRangesBuilder_.dispose(); ageRangesBuilder_ = null; ageRanges_ = other.ageRanges_; bitField0_ = (bitField0_ & ~0x00000002); ageRangesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAgeRangesFieldBuilder() : null; } else { ageRangesBuilder_.addAllMessages(other.ageRanges_); } } } if (other.hasGender()) { mergeGender(other.getGender()); } if (userInterestsBuilder_ == null) { if (!other.userInterests_.isEmpty()) { if (userInterests_.isEmpty()) { userInterests_ = other.userInterests_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureUserInterestsIsMutable(); userInterests_.addAll(other.userInterests_); } onChanged(); } } else { if (!other.userInterests_.isEmpty()) { if (userInterestsBuilder_.isEmpty()) { userInterestsBuilder_.dispose(); userInterestsBuilder_ = null; userInterests_ = other.userInterests_; bitField0_ = (bitField0_ & ~0x00000008); userInterestsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUserInterestsFieldBuilder() : null; } else { userInterestsBuilder_.addAllMessages(other.userInterests_); } } } if (other.getCoverage() != 0D) { setCoverage(other.getCoverage()); } if (other.getIndex() != 0D) { setIndex(other.getIndex()); } if (other.getPotentialYoutubeReach() != 0L) { setPotentialYoutubeReach(other.getPotentialYoutubeReach()); } 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: { com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata m = input.readMessage( com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.parser(), extensionRegistry); if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.add(m); } else { locationsBuilder_.addMessage(m); } break; } // case 10 case 18: { com.google.ads.googleads.v17.common.AgeRangeInfo m = input.readMessage( com.google.ads.googleads.v17.common.AgeRangeInfo.parser(), extensionRegistry); if (ageRangesBuilder_ == null) { ensureAgeRangesIsMutable(); ageRanges_.add(m); } else { ageRangesBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getGenderFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata m = input.readMessage( com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.parser(), extensionRegistry); if (userInterestsBuilder_ == null) { ensureUserInterestsIsMutable(); userInterests_.add(m); } else { userInterestsBuilder_.addMessage(m); } break; } // case 34 case 41: { coverage_ = input.readDouble(); bitField0_ |= 0x00000010; break; } // case 41 case 49: { index_ = input.readDouble(); bitField0_ |= 0x00000020; break; } // case 49 case 56: { potentialYoutubeReach_ = input.readInt64(); bitField0_ |= 0x00000040; break; } // case 56 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.util.List locations_ = java.util.Collections.emptyList(); private void ensureLocationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { locations_ = new java.util.ArrayList(locations_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder> locationsBuilder_; /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public java.util.List getLocationsList() { if (locationsBuilder_ == null) { return java.util.Collections.unmodifiableList(locations_); } else { return locationsBuilder_.getMessageList(); } } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public int getLocationsCount() { if (locationsBuilder_ == null) { return locations_.size(); } else { return locationsBuilder_.getCount(); } } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata getLocations(int index) { if (locationsBuilder_ == null) { return locations_.get(index); } else { return locationsBuilder_.getMessage(index); } } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public Builder setLocations( int index, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationsIsMutable(); locations_.set(index, value); onChanged(); } else { locationsBuilder_.setMessage(index, value); } return this; } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public Builder setLocations( int index, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder builderForValue) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.set(index, builderForValue.build()); onChanged(); } else { locationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public Builder addLocations(com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationsIsMutable(); locations_.add(value); onChanged(); } else { locationsBuilder_.addMessage(value); } return this; } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public Builder addLocations( int index, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata value) { if (locationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLocationsIsMutable(); locations_.add(index, value); onChanged(); } else { locationsBuilder_.addMessage(index, value); } return this; } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public Builder addLocations( com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder builderForValue) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.add(builderForValue.build()); onChanged(); } else { locationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public Builder addLocations( int index, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder builderForValue) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.add(index, builderForValue.build()); onChanged(); } else { locationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public Builder addAllLocations( java.lang.Iterable values) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, locations_); onChanged(); } else { locationsBuilder_.addAllMessages(values); } return this; } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public Builder clearLocations() { if (locationsBuilder_ == null) { locations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { locationsBuilder_.clear(); } return this; } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public Builder removeLocations(int index) { if (locationsBuilder_ == null) { ensureLocationsIsMutable(); locations_.remove(index); onChanged(); } else { locationsBuilder_.remove(index); } return this; } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder getLocationsBuilder( int index) { return getLocationsFieldBuilder().getBuilder(index); } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder getLocationsOrBuilder( int index) { if (locationsBuilder_ == null) { return locations_.get(index); } else { return locationsBuilder_.getMessageOrBuilder(index); } } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public java.util.List getLocationsOrBuilderList() { if (locationsBuilder_ != null) { return locationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(locations_); } } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder addLocationsBuilder() { return getLocationsFieldBuilder().addBuilder( com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.getDefaultInstance()); } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder addLocationsBuilder( int index) { return getLocationsFieldBuilder().addBuilder( index, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.getDefaultInstance()); } /** *
     * Suggested location targeting.  These attributes all have dimension
     * GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata locations = 1; */ public java.util.List getLocationsBuilderList() { return getLocationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder> getLocationsFieldBuilder() { if (locationsBuilder_ == null) { locationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder>( locations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); locations_ = null; } return locationsBuilder_; } private java.util.List ageRanges_ = java.util.Collections.emptyList(); private void ensureAgeRangesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { ageRanges_ = new java.util.ArrayList(ageRanges_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.common.AgeRangeInfo, com.google.ads.googleads.v17.common.AgeRangeInfo.Builder, com.google.ads.googleads.v17.common.AgeRangeInfoOrBuilder> ageRangesBuilder_; /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public java.util.List getAgeRangesList() { if (ageRangesBuilder_ == null) { return java.util.Collections.unmodifiableList(ageRanges_); } else { return ageRangesBuilder_.getMessageList(); } } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public int getAgeRangesCount() { if (ageRangesBuilder_ == null) { return ageRanges_.size(); } else { return ageRangesBuilder_.getCount(); } } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public com.google.ads.googleads.v17.common.AgeRangeInfo getAgeRanges(int index) { if (ageRangesBuilder_ == null) { return ageRanges_.get(index); } else { return ageRangesBuilder_.getMessage(index); } } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public Builder setAgeRanges( int index, com.google.ads.googleads.v17.common.AgeRangeInfo value) { if (ageRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAgeRangesIsMutable(); ageRanges_.set(index, value); onChanged(); } else { ageRangesBuilder_.setMessage(index, value); } return this; } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public Builder setAgeRanges( int index, com.google.ads.googleads.v17.common.AgeRangeInfo.Builder builderForValue) { if (ageRangesBuilder_ == null) { ensureAgeRangesIsMutable(); ageRanges_.set(index, builderForValue.build()); onChanged(); } else { ageRangesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public Builder addAgeRanges(com.google.ads.googleads.v17.common.AgeRangeInfo value) { if (ageRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAgeRangesIsMutable(); ageRanges_.add(value); onChanged(); } else { ageRangesBuilder_.addMessage(value); } return this; } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public Builder addAgeRanges( int index, com.google.ads.googleads.v17.common.AgeRangeInfo value) { if (ageRangesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAgeRangesIsMutable(); ageRanges_.add(index, value); onChanged(); } else { ageRangesBuilder_.addMessage(index, value); } return this; } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public Builder addAgeRanges( com.google.ads.googleads.v17.common.AgeRangeInfo.Builder builderForValue) { if (ageRangesBuilder_ == null) { ensureAgeRangesIsMutable(); ageRanges_.add(builderForValue.build()); onChanged(); } else { ageRangesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public Builder addAgeRanges( int index, com.google.ads.googleads.v17.common.AgeRangeInfo.Builder builderForValue) { if (ageRangesBuilder_ == null) { ensureAgeRangesIsMutable(); ageRanges_.add(index, builderForValue.build()); onChanged(); } else { ageRangesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public Builder addAllAgeRanges( java.lang.Iterable values) { if (ageRangesBuilder_ == null) { ensureAgeRangesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, ageRanges_); onChanged(); } else { ageRangesBuilder_.addAllMessages(values); } return this; } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public Builder clearAgeRanges() { if (ageRangesBuilder_ == null) { ageRanges_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { ageRangesBuilder_.clear(); } return this; } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public Builder removeAgeRanges(int index) { if (ageRangesBuilder_ == null) { ensureAgeRangesIsMutable(); ageRanges_.remove(index); onChanged(); } else { ageRangesBuilder_.remove(index); } return this; } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public com.google.ads.googleads.v17.common.AgeRangeInfo.Builder getAgeRangesBuilder( int index) { return getAgeRangesFieldBuilder().getBuilder(index); } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public com.google.ads.googleads.v17.common.AgeRangeInfoOrBuilder getAgeRangesOrBuilder( int index) { if (ageRangesBuilder_ == null) { return ageRanges_.get(index); } else { return ageRangesBuilder_.getMessageOrBuilder(index); } } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public java.util.List getAgeRangesOrBuilderList() { if (ageRangesBuilder_ != null) { return ageRangesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(ageRanges_); } } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public com.google.ads.googleads.v17.common.AgeRangeInfo.Builder addAgeRangesBuilder() { return getAgeRangesFieldBuilder().addBuilder( com.google.ads.googleads.v17.common.AgeRangeInfo.getDefaultInstance()); } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public com.google.ads.googleads.v17.common.AgeRangeInfo.Builder addAgeRangesBuilder( int index) { return getAgeRangesFieldBuilder().addBuilder( index, com.google.ads.googleads.v17.common.AgeRangeInfo.getDefaultInstance()); } /** *
     * Suggested age targeting; may be empty indicating no age targeting.
     * 
* * repeated .google.ads.googleads.v17.common.AgeRangeInfo age_ranges = 2; */ public java.util.List getAgeRangesBuilderList() { return getAgeRangesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.common.AgeRangeInfo, com.google.ads.googleads.v17.common.AgeRangeInfo.Builder, com.google.ads.googleads.v17.common.AgeRangeInfoOrBuilder> getAgeRangesFieldBuilder() { if (ageRangesBuilder_ == null) { ageRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.common.AgeRangeInfo, com.google.ads.googleads.v17.common.AgeRangeInfo.Builder, com.google.ads.googleads.v17.common.AgeRangeInfoOrBuilder>( ageRanges_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); ageRanges_ = null; } return ageRangesBuilder_; } private com.google.ads.googleads.v17.common.GenderInfo gender_; private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.GenderInfo, com.google.ads.googleads.v17.common.GenderInfo.Builder, com.google.ads.googleads.v17.common.GenderInfoOrBuilder> genderBuilder_; /** *
     * Suggested gender targeting.  If present, this attribute has dimension
     * GENDER.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 3; * @return Whether the gender field is set. */ public boolean hasGender() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Suggested gender targeting.  If present, this attribute has dimension
     * GENDER.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 3; * @return The gender. */ public com.google.ads.googleads.v17.common.GenderInfo getGender() { if (genderBuilder_ == null) { return gender_ == null ? com.google.ads.googleads.v17.common.GenderInfo.getDefaultInstance() : gender_; } else { return genderBuilder_.getMessage(); } } /** *
     * Suggested gender targeting.  If present, this attribute has dimension
     * GENDER.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 3; */ public Builder setGender(com.google.ads.googleads.v17.common.GenderInfo value) { if (genderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } gender_ = value; } else { genderBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Suggested gender targeting.  If present, this attribute has dimension
     * GENDER.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 3; */ public Builder setGender( com.google.ads.googleads.v17.common.GenderInfo.Builder builderForValue) { if (genderBuilder_ == null) { gender_ = builderForValue.build(); } else { genderBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** *
     * Suggested gender targeting.  If present, this attribute has dimension
     * GENDER.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 3; */ public Builder mergeGender(com.google.ads.googleads.v17.common.GenderInfo value) { if (genderBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && gender_ != null && gender_ != com.google.ads.googleads.v17.common.GenderInfo.getDefaultInstance()) { getGenderBuilder().mergeFrom(value); } else { gender_ = value; } } else { genderBuilder_.mergeFrom(value); } if (gender_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** *
     * Suggested gender targeting.  If present, this attribute has dimension
     * GENDER.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 3; */ public Builder clearGender() { bitField0_ = (bitField0_ & ~0x00000004); gender_ = null; if (genderBuilder_ != null) { genderBuilder_.dispose(); genderBuilder_ = null; } onChanged(); return this; } /** *
     * Suggested gender targeting.  If present, this attribute has dimension
     * GENDER.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 3; */ public com.google.ads.googleads.v17.common.GenderInfo.Builder getGenderBuilder() { bitField0_ |= 0x00000004; onChanged(); return getGenderFieldBuilder().getBuilder(); } /** *
     * Suggested gender targeting.  If present, this attribute has dimension
     * GENDER.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 3; */ public com.google.ads.googleads.v17.common.GenderInfoOrBuilder getGenderOrBuilder() { if (genderBuilder_ != null) { return genderBuilder_.getMessageOrBuilder(); } else { return gender_ == null ? com.google.ads.googleads.v17.common.GenderInfo.getDefaultInstance() : gender_; } } /** *
     * Suggested gender targeting.  If present, this attribute has dimension
     * GENDER.
     * 
* * .google.ads.googleads.v17.common.GenderInfo gender = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.GenderInfo, com.google.ads.googleads.v17.common.GenderInfo.Builder, com.google.ads.googleads.v17.common.GenderInfoOrBuilder> getGenderFieldBuilder() { if (genderBuilder_ == null) { genderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.ads.googleads.v17.common.GenderInfo, com.google.ads.googleads.v17.common.GenderInfo.Builder, com.google.ads.googleads.v17.common.GenderInfoOrBuilder>( getGender(), getParentForChildren(), isClean()); gender_ = null; } return genderBuilder_; } private java.util.List userInterests_ = java.util.Collections.emptyList(); private void ensureUserInterestsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { userInterests_ = new java.util.ArrayList(userInterests_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder> userInterestsBuilder_; /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public java.util.List getUserInterestsList() { if (userInterestsBuilder_ == null) { return java.util.Collections.unmodifiableList(userInterests_); } else { return userInterestsBuilder_.getMessageList(); } } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public int getUserInterestsCount() { if (userInterestsBuilder_ == null) { return userInterests_.size(); } else { return userInterestsBuilder_.getCount(); } } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata getUserInterests(int index) { if (userInterestsBuilder_ == null) { return userInterests_.get(index); } else { return userInterestsBuilder_.getMessage(index); } } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public Builder setUserInterests( int index, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata value) { if (userInterestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUserInterestsIsMutable(); userInterests_.set(index, value); onChanged(); } else { userInterestsBuilder_.setMessage(index, value); } return this; } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public Builder setUserInterests( int index, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder builderForValue) { if (userInterestsBuilder_ == null) { ensureUserInterestsIsMutable(); userInterests_.set(index, builderForValue.build()); onChanged(); } else { userInterestsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public Builder addUserInterests(com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata value) { if (userInterestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUserInterestsIsMutable(); userInterests_.add(value); onChanged(); } else { userInterestsBuilder_.addMessage(value); } return this; } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public Builder addUserInterests( int index, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata value) { if (userInterestsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUserInterestsIsMutable(); userInterests_.add(index, value); onChanged(); } else { userInterestsBuilder_.addMessage(index, value); } return this; } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public Builder addUserInterests( com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder builderForValue) { if (userInterestsBuilder_ == null) { ensureUserInterestsIsMutable(); userInterests_.add(builderForValue.build()); onChanged(); } else { userInterestsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public Builder addUserInterests( int index, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder builderForValue) { if (userInterestsBuilder_ == null) { ensureUserInterestsIsMutable(); userInterests_.add(index, builderForValue.build()); onChanged(); } else { userInterestsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public Builder addAllUserInterests( java.lang.Iterable values) { if (userInterestsBuilder_ == null) { ensureUserInterestsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, userInterests_); onChanged(); } else { userInterestsBuilder_.addAllMessages(values); } return this; } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public Builder clearUserInterests() { if (userInterestsBuilder_ == null) { userInterests_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { userInterestsBuilder_.clear(); } return this; } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public Builder removeUserInterests(int index) { if (userInterestsBuilder_ == null) { ensureUserInterestsIsMutable(); userInterests_.remove(index); onChanged(); } else { userInterestsBuilder_.remove(index); } return this; } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder getUserInterestsBuilder( int index) { return getUserInterestsFieldBuilder().getBuilder(index); } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder getUserInterestsOrBuilder( int index) { if (userInterestsBuilder_ == null) { return userInterests_.get(index); } else { return userInterestsBuilder_.getMessageOrBuilder(index); } } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public java.util.List getUserInterestsOrBuilderList() { if (userInterestsBuilder_ != null) { return userInterestsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(userInterests_); } } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder addUserInterestsBuilder() { return getUserInterestsFieldBuilder().addBuilder( com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.getDefaultInstance()); } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder addUserInterestsBuilder( int index) { return getUserInterestsFieldBuilder().addBuilder( index, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.getDefaultInstance()); } /** *
     * Suggested audience segments to target.  These attributes all have dimension
     * AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
     * 
* * repeated .google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata user_interests = 4; */ public java.util.List getUserInterestsBuilderList() { return getUserInterestsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder> getUserInterestsFieldBuilder() { if (userInterestsBuilder_ == null) { userInterestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadata.Builder, com.google.ads.googleads.v17.services.AudienceInsightsAttributeMetadataOrBuilder>( userInterests_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); userInterests_ = null; } return userInterestsBuilder_; } private double coverage_ ; /** *
     * The fraction (from 0 to 1 inclusive) of the requested audience that can be
     * reached using the suggested targeting.
     * 
* * double coverage = 5; * @return The coverage. */ @java.lang.Override public double getCoverage() { return coverage_; } /** *
     * The fraction (from 0 to 1 inclusive) of the requested audience that can be
     * reached using the suggested targeting.
     * 
* * double coverage = 5; * @param value The coverage to set. * @return This builder for chaining. */ public Builder setCoverage(double value) { coverage_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** *
     * The fraction (from 0 to 1 inclusive) of the requested audience that can be
     * reached using the suggested targeting.
     * 
* * double coverage = 5; * @return This builder for chaining. */ public Builder clearCoverage() { bitField0_ = (bitField0_ & ~0x00000010); coverage_ = 0D; onChanged(); return this; } private double index_ ; /** *
     * The ratio of coverage to the coverage of the baseline audience or zero if
     * this ratio is undefined or is not meaningful.
     * 
* * double index = 6; * @return The index. */ @java.lang.Override public double getIndex() { return index_; } /** *
     * The ratio of coverage to the coverage of the baseline audience or zero if
     * this ratio is undefined or is not meaningful.
     * 
* * double index = 6; * @param value The index to set. * @return This builder for chaining. */ public Builder setIndex(double value) { index_ = value; bitField0_ |= 0x00000020; onChanged(); return this; } /** *
     * The ratio of coverage to the coverage of the baseline audience or zero if
     * this ratio is undefined or is not meaningful.
     * 
* * double index = 6; * @return This builder for chaining. */ public Builder clearIndex() { bitField0_ = (bitField0_ & ~0x00000020); index_ = 0D; onChanged(); return this; } private long potentialYoutubeReach_ ; /** *
     * The approximate estimated number of people that can be reached on YouTube
     * using this targeting.
     * 
* * int64 potential_youtube_reach = 7; * @return The potentialYoutubeReach. */ @java.lang.Override public long getPotentialYoutubeReach() { return potentialYoutubeReach_; } /** *
     * The approximate estimated number of people that can be reached on YouTube
     * using this targeting.
     * 
* * int64 potential_youtube_reach = 7; * @param value The potentialYoutubeReach to set. * @return This builder for chaining. */ public Builder setPotentialYoutubeReach(long value) { potentialYoutubeReach_ = value; bitField0_ |= 0x00000040; onChanged(); return this; } /** *
     * The approximate estimated number of people that can be reached on YouTube
     * using this targeting.
     * 
* * int64 potential_youtube_reach = 7; * @return This builder for chaining. */ public Builder clearPotentialYoutubeReach() { bitField0_ = (bitField0_ & ~0x00000040); potentialYoutubeReach_ = 0L; 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.services.TargetingSuggestionMetrics) } // @@protoc_insertion_point(class_scope:google.ads.googleads.v17.services.TargetingSuggestionMetrics) private static final com.google.ads.googleads.v17.services.TargetingSuggestionMetrics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.ads.googleads.v17.services.TargetingSuggestionMetrics(); } public static com.google.ads.googleads.v17.services.TargetingSuggestionMetrics getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TargetingSuggestionMetrics 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.services.TargetingSuggestionMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy