Class HouseholdIncomeDimension.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<HouseholdIncomeDimension.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<HouseholdIncomeDimension.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public HouseholdIncomeDimension.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<HouseholdIncomeDimension.Builder>
      • addRepeatedField

        public HouseholdIncomeDimension.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<HouseholdIncomeDimension.Builder>
      • isInitialized

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

        public HouseholdIncomeDimension.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<HouseholdIncomeDimension.Builder>
        Throws:
        java.io.IOException
      • getIncomeRangesCount

        public int getIncomeRangesCount()
         Included household income demographic segments.
         
        repeated .google.ads.googleads.v10.enums.IncomeRangeTypeEnum.IncomeRangeType income_ranges = 1;
        Specified by:
        getIncomeRangesCount in interface HouseholdIncomeDimensionOrBuilder
        Returns:
        The count of incomeRanges.
      • getIncomeRanges

        public IncomeRangeTypeEnum.IncomeRangeType getIncomeRanges​(int index)
         Included household income demographic segments.
         
        repeated .google.ads.googleads.v10.enums.IncomeRangeTypeEnum.IncomeRangeType income_ranges = 1;
        Specified by:
        getIncomeRanges in interface HouseholdIncomeDimensionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The incomeRanges at the given index.
      • setIncomeRanges

        public HouseholdIncomeDimension.Builder setIncomeRanges​(int index,
                                                                IncomeRangeTypeEnum.IncomeRangeType value)
         Included household income demographic segments.
         
        repeated .google.ads.googleads.v10.enums.IncomeRangeTypeEnum.IncomeRangeType income_ranges = 1;
        Parameters:
        index - The index to set the value at.
        value - The incomeRanges to set.
        Returns:
        This builder for chaining.
      • addIncomeRanges

        public HouseholdIncomeDimension.Builder addIncomeRanges​(IncomeRangeTypeEnum.IncomeRangeType value)
         Included household income demographic segments.
         
        repeated .google.ads.googleads.v10.enums.IncomeRangeTypeEnum.IncomeRangeType income_ranges = 1;
        Parameters:
        value - The incomeRanges to add.
        Returns:
        This builder for chaining.
      • addAllIncomeRanges

        public HouseholdIncomeDimension.Builder addAllIncomeRanges​(java.lang.Iterable<? extends IncomeRangeTypeEnum.IncomeRangeType> values)
         Included household income demographic segments.
         
        repeated .google.ads.googleads.v10.enums.IncomeRangeTypeEnum.IncomeRangeType income_ranges = 1;
        Parameters:
        values - The incomeRanges to add.
        Returns:
        This builder for chaining.
      • clearIncomeRanges

        public HouseholdIncomeDimension.Builder clearIncomeRanges()
         Included household income demographic segments.
         
        repeated .google.ads.googleads.v10.enums.IncomeRangeTypeEnum.IncomeRangeType income_ranges = 1;
        Returns:
        This builder for chaining.
      • getIncomeRangesValueList

        public java.util.List<java.lang.Integer> getIncomeRangesValueList()
         Included household income demographic segments.
         
        repeated .google.ads.googleads.v10.enums.IncomeRangeTypeEnum.IncomeRangeType income_ranges = 1;
        Specified by:
        getIncomeRangesValueList in interface HouseholdIncomeDimensionOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for incomeRanges.
      • getIncomeRangesValue

        public int getIncomeRangesValue​(int index)
         Included household income demographic segments.
         
        repeated .google.ads.googleads.v10.enums.IncomeRangeTypeEnum.IncomeRangeType income_ranges = 1;
        Specified by:
        getIncomeRangesValue in interface HouseholdIncomeDimensionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of incomeRanges at the given index.
      • setIncomeRangesValue

        public HouseholdIncomeDimension.Builder setIncomeRangesValue​(int index,
                                                                     int value)
         Included household income demographic segments.
         
        repeated .google.ads.googleads.v10.enums.IncomeRangeTypeEnum.IncomeRangeType income_ranges = 1;
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of incomeRanges at the given index.
      • addIncomeRangesValue

        public HouseholdIncomeDimension.Builder addIncomeRangesValue​(int value)
         Included household income demographic segments.
         
        repeated .google.ads.googleads.v10.enums.IncomeRangeTypeEnum.IncomeRangeType income_ranges = 1;
        Parameters:
        value - The enum numeric value on the wire for incomeRanges to add.
        Returns:
        This builder for chaining.
      • addAllIncomeRangesValue

        public HouseholdIncomeDimension.Builder addAllIncomeRangesValue​(java.lang.Iterable<java.lang.Integer> values)
         Included household income demographic segments.
         
        repeated .google.ads.googleads.v10.enums.IncomeRangeTypeEnum.IncomeRangeType income_ranges = 1;
        Parameters:
        values - The enum numeric values on the wire for incomeRanges to add.
        Returns:
        This builder for chaining.
      • hasIncludeUndetermined

        public boolean hasIncludeUndetermined()
         Include users whose household income is not determined.
         
        optional bool include_undetermined = 2;
        Specified by:
        hasIncludeUndetermined in interface HouseholdIncomeDimensionOrBuilder
        Returns:
        Whether the includeUndetermined field is set.
      • getIncludeUndetermined

        public boolean getIncludeUndetermined()
         Include users whose household income is not determined.
         
        optional bool include_undetermined = 2;
        Specified by:
        getIncludeUndetermined in interface HouseholdIncomeDimensionOrBuilder
        Returns:
        The includeUndetermined.
      • setIncludeUndetermined

        public HouseholdIncomeDimension.Builder setIncludeUndetermined​(boolean value)
         Include users whose household income is not determined.
         
        optional bool include_undetermined = 2;
        Parameters:
        value - The includeUndetermined to set.
        Returns:
        This builder for chaining.
      • clearIncludeUndetermined

        public HouseholdIncomeDimension.Builder clearIncludeUndetermined()
         Include users whose household income is not determined.
         
        optional bool include_undetermined = 2;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final HouseholdIncomeDimension.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<HouseholdIncomeDimension.Builder>
      • mergeUnknownFields

        public final HouseholdIncomeDimension.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<HouseholdIncomeDimension.Builder>