Class TargetingSuggestionMetrics.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TargetingSuggestionMetrics.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TargetingSuggestionMetrics.Builder>
      • getDefaultInstanceForType

        public TargetingSuggestionMetrics getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public TargetingSuggestionMetrics build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public TargetingSuggestionMetrics buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public TargetingSuggestionMetrics.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                   int index,
                                                                   java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TargetingSuggestionMetrics.Builder>
      • addRepeatedField

        public TargetingSuggestionMetrics.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                   java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TargetingSuggestionMetrics.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TargetingSuggestionMetrics.Builder>
      • mergeFrom

        public TargetingSuggestionMetrics.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                     throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TargetingSuggestionMetrics.Builder>
        Throws:
        java.io.IOException
      • getLocationsCount

        public int getLocationsCount()
         Suggested location targeting.  These attributes all have dimension
         GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata locations = 1;
        Specified by:
        getLocationsCount in interface TargetingSuggestionMetricsOrBuilder
      • addAllLocations

        public TargetingSuggestionMetrics.Builder addAllLocations​(java.lang.Iterable<? extends AudienceInsightsAttributeMetadata> values)
         Suggested location targeting.  These attributes all have dimension
         GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata locations = 1;
      • clearLocations

        public TargetingSuggestionMetrics.Builder clearLocations()
         Suggested location targeting.  These attributes all have dimension
         GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata locations = 1;
      • removeLocations

        public TargetingSuggestionMetrics.Builder removeLocations​(int index)
         Suggested location targeting.  These attributes all have dimension
         GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata locations = 1;
      • getLocationsBuilder

        public AudienceInsightsAttributeMetadata.Builder getLocationsBuilder​(int index)
         Suggested location targeting.  These attributes all have dimension
         GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata locations = 1;
      • addLocationsBuilder

        public AudienceInsightsAttributeMetadata.Builder addLocationsBuilder()
         Suggested location targeting.  These attributes all have dimension
         GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata locations = 1;
      • addLocationsBuilder

        public AudienceInsightsAttributeMetadata.Builder addLocationsBuilder​(int index)
         Suggested location targeting.  These attributes all have dimension
         GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata locations = 1;
      • getLocationsBuilderList

        public java.util.List<AudienceInsightsAttributeMetadata.Builder> getLocationsBuilderList()
         Suggested location targeting.  These attributes all have dimension
         GEO_TARGET_COUNTRY or SUB_COUNTRY_LOCATION
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata locations = 1;
      • getAgeRangesCount

        public int getAgeRangesCount()
         Suggested age targeting; may be empty indicating no age targeting.
         
        repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;
        Specified by:
        getAgeRangesCount in interface TargetingSuggestionMetricsOrBuilder
      • setAgeRanges

        public TargetingSuggestionMetrics.Builder setAgeRanges​(int index,
                                                               AgeRangeInfo value)
         Suggested age targeting; may be empty indicating no age targeting.
         
        repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;
      • addAgeRanges

        public TargetingSuggestionMetrics.Builder addAgeRanges​(AgeRangeInfo value)
         Suggested age targeting; may be empty indicating no age targeting.
         
        repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;
      • addAgeRanges

        public TargetingSuggestionMetrics.Builder addAgeRanges​(int index,
                                                               AgeRangeInfo value)
         Suggested age targeting; may be empty indicating no age targeting.
         
        repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;
      • addAllAgeRanges

        public TargetingSuggestionMetrics.Builder addAllAgeRanges​(java.lang.Iterable<? extends AgeRangeInfo> values)
         Suggested age targeting; may be empty indicating no age targeting.
         
        repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;
      • clearAgeRanges

        public TargetingSuggestionMetrics.Builder clearAgeRanges()
         Suggested age targeting; may be empty indicating no age targeting.
         
        repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;
      • removeAgeRanges

        public TargetingSuggestionMetrics.Builder removeAgeRanges​(int index)
         Suggested age targeting; may be empty indicating no age targeting.
         
        repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;
      • getAgeRangesBuilder

        public AgeRangeInfo.Builder getAgeRangesBuilder​(int index)
         Suggested age targeting; may be empty indicating no age targeting.
         
        repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;
      • addAgeRangesBuilder

        public AgeRangeInfo.Builder addAgeRangesBuilder()
         Suggested age targeting; may be empty indicating no age targeting.
         
        repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;
      • addAgeRangesBuilder

        public AgeRangeInfo.Builder addAgeRangesBuilder​(int index)
         Suggested age targeting; may be empty indicating no age targeting.
         
        repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;
      • getAgeRangesBuilderList

        public java.util.List<AgeRangeInfo.Builder> getAgeRangesBuilderList()
         Suggested age targeting; may be empty indicating no age targeting.
         
        repeated .google.ads.googleads.v15.common.AgeRangeInfo age_ranges = 2;
      • hasGender

        public boolean hasGender()
         Suggested gender targeting.  If present, this attribute has dimension
         GENDER.
         
        .google.ads.googleads.v15.common.GenderInfo gender = 3;
        Specified by:
        hasGender in interface TargetingSuggestionMetricsOrBuilder
        Returns:
        Whether the gender field is set.
      • getGender

        public GenderInfo getGender()
         Suggested gender targeting.  If present, this attribute has dimension
         GENDER.
         
        .google.ads.googleads.v15.common.GenderInfo gender = 3;
        Specified by:
        getGender in interface TargetingSuggestionMetricsOrBuilder
        Returns:
        The gender.
      • setGender

        public TargetingSuggestionMetrics.Builder setGender​(GenderInfo value)
         Suggested gender targeting.  If present, this attribute has dimension
         GENDER.
         
        .google.ads.googleads.v15.common.GenderInfo gender = 3;
      • mergeGender

        public TargetingSuggestionMetrics.Builder mergeGender​(GenderInfo value)
         Suggested gender targeting.  If present, this attribute has dimension
         GENDER.
         
        .google.ads.googleads.v15.common.GenderInfo gender = 3;
      • clearGender

        public TargetingSuggestionMetrics.Builder clearGender()
         Suggested gender targeting.  If present, this attribute has dimension
         GENDER.
         
        .google.ads.googleads.v15.common.GenderInfo gender = 3;
      • getGenderBuilder

        public GenderInfo.Builder getGenderBuilder()
         Suggested gender targeting.  If present, this attribute has dimension
         GENDER.
         
        .google.ads.googleads.v15.common.GenderInfo gender = 3;
      • getUserInterestsCount

        public int getUserInterestsCount()
         Suggested audience segments to target.  These attributes all have dimension
         AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;
        Specified by:
        getUserInterestsCount in interface TargetingSuggestionMetricsOrBuilder
      • setUserInterests

        public TargetingSuggestionMetrics.Builder setUserInterests​(int index,
                                                                   AudienceInsightsAttributeMetadata value)
         Suggested audience segments to target.  These attributes all have dimension
         AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;
      • setUserInterests

        public TargetingSuggestionMetrics.Builder setUserInterests​(int index,
                                                                   AudienceInsightsAttributeMetadata.Builder builderForValue)
         Suggested audience segments to target.  These attributes all have dimension
         AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;
      • addUserInterests

        public TargetingSuggestionMetrics.Builder addUserInterests​(AudienceInsightsAttributeMetadata value)
         Suggested audience segments to target.  These attributes all have dimension
         AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;
      • addUserInterests

        public TargetingSuggestionMetrics.Builder addUserInterests​(int index,
                                                                   AudienceInsightsAttributeMetadata value)
         Suggested audience segments to target.  These attributes all have dimension
         AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;
      • addUserInterests

        public TargetingSuggestionMetrics.Builder addUserInterests​(int index,
                                                                   AudienceInsightsAttributeMetadata.Builder builderForValue)
         Suggested audience segments to target.  These attributes all have dimension
         AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;
      • addAllUserInterests

        public TargetingSuggestionMetrics.Builder addAllUserInterests​(java.lang.Iterable<? extends AudienceInsightsAttributeMetadata> values)
         Suggested audience segments to target.  These attributes all have dimension
         AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;
      • clearUserInterests

        public TargetingSuggestionMetrics.Builder clearUserInterests()
         Suggested audience segments to target.  These attributes all have dimension
         AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;
      • removeUserInterests

        public TargetingSuggestionMetrics.Builder removeUserInterests​(int index)
         Suggested audience segments to target.  These attributes all have dimension
         AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;
      • getUserInterestsBuilder

        public AudienceInsightsAttributeMetadata.Builder getUserInterestsBuilder​(int index)
         Suggested audience segments to target.  These attributes all have dimension
         AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;
      • addUserInterestsBuilder

        public AudienceInsightsAttributeMetadata.Builder addUserInterestsBuilder()
         Suggested audience segments to target.  These attributes all have dimension
         AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;
      • addUserInterestsBuilder

        public AudienceInsightsAttributeMetadata.Builder addUserInterestsBuilder​(int index)
         Suggested audience segments to target.  These attributes all have dimension
         AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;
      • getUserInterestsBuilderList

        public java.util.List<AudienceInsightsAttributeMetadata.Builder> getUserInterestsBuilderList()
         Suggested audience segments to target.  These attributes all have dimension
         AFFINITY_USER_INTEREST or IN_MARKET_USER_INTEREST
         
        repeated .google.ads.googleads.v15.services.AudienceInsightsAttributeMetadata user_interests = 4;
      • getCoverage

        public double getCoverage()
         The fraction (from 0 to 1 inclusive) of the requested audience that can be
         reached using the suggested targeting.
         
        double coverage = 5;
        Specified by:
        getCoverage in interface TargetingSuggestionMetricsOrBuilder
        Returns:
        The coverage.
      • setCoverage

        public TargetingSuggestionMetrics.Builder setCoverage​(double value)
         The fraction (from 0 to 1 inclusive) of the requested audience that can be
         reached using the suggested targeting.
         
        double coverage = 5;
        Parameters:
        value - The coverage to set.
        Returns:
        This builder for chaining.
      • clearCoverage

        public TargetingSuggestionMetrics.Builder clearCoverage()
         The fraction (from 0 to 1 inclusive) of the requested audience that can be
         reached using the suggested targeting.
         
        double coverage = 5;
        Returns:
        This builder for chaining.
      • getIndex

        public double getIndex()
         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;
        Specified by:
        getIndex in interface TargetingSuggestionMetricsOrBuilder
        Returns:
        The index.
      • setIndex

        public TargetingSuggestionMetrics.Builder setIndex​(double value)
         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;
        Parameters:
        value - The index to set.
        Returns:
        This builder for chaining.
      • clearIndex

        public TargetingSuggestionMetrics.Builder clearIndex()
         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;
        Returns:
        This builder for chaining.
      • getPotentialYoutubeReach

        public long getPotentialYoutubeReach()
         The approximate estimated number of people that can be reached on YouTube
         using this targeting.
         
        int64 potential_youtube_reach = 7;
        Specified by:
        getPotentialYoutubeReach in interface TargetingSuggestionMetricsOrBuilder
        Returns:
        The potentialYoutubeReach.
      • setPotentialYoutubeReach

        public TargetingSuggestionMetrics.Builder setPotentialYoutubeReach​(long value)
         The approximate estimated number of people that can be reached on YouTube
         using this targeting.
         
        int64 potential_youtube_reach = 7;
        Parameters:
        value - The potentialYoutubeReach to set.
        Returns:
        This builder for chaining.
      • clearPotentialYoutubeReach

        public TargetingSuggestionMetrics.Builder clearPotentialYoutubeReach()
         The approximate estimated number of people that can be reached on YouTube
         using this targeting.
         
        int64 potential_youtube_reach = 7;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final TargetingSuggestionMetrics.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TargetingSuggestionMetrics.Builder>
      • mergeUnknownFields

        public final TargetingSuggestionMetrics.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TargetingSuggestionMetrics.Builder>