Class KeywordPlanAggregateMetrics.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanAggregateMetrics.Builder>
com.google.ads.googleads.v18.common.KeywordPlanAggregateMetrics.Builder
All Implemented Interfaces:
KeywordPlanAggregateMetricsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
KeywordPlanAggregateMetrics

public static final class KeywordPlanAggregateMetrics.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanAggregateMetrics.Builder> implements KeywordPlanAggregateMetricsOrBuilder
 The aggregate metrics specification of the request.
 
Protobuf type google.ads.googleads.v18.common.KeywordPlanAggregateMetrics
  • Method Details

    • 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<KeywordPlanAggregateMetrics.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanAggregateMetrics.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<KeywordPlanAggregateMetrics.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanAggregateMetrics.Builder>
    • setField

      public KeywordPlanAggregateMetrics.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanAggregateMetrics.Builder>
    • clearField

      public KeywordPlanAggregateMetrics.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanAggregateMetrics.Builder>
    • clearOneof

      public KeywordPlanAggregateMetrics.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanAggregateMetrics.Builder>
    • setRepeatedField

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

      public KeywordPlanAggregateMetrics.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<KeywordPlanAggregateMetrics.Builder>
    • mergeFrom

      public KeywordPlanAggregateMetrics.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeywordPlanAggregateMetrics.Builder>
    • mergeFrom

    • isInitialized

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

      public KeywordPlanAggregateMetrics.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<KeywordPlanAggregateMetrics.Builder>
      Throws:
      IOException
    • getAggregateMetricTypesList

       The list of aggregate metrics to fetch data.
       
      repeated .google.ads.googleads.v18.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;
      Specified by:
      getAggregateMetricTypesList in interface KeywordPlanAggregateMetricsOrBuilder
      Returns:
      A list containing the aggregateMetricTypes.
    • getAggregateMetricTypesCount

      public int getAggregateMetricTypesCount()
       The list of aggregate metrics to fetch data.
       
      repeated .google.ads.googleads.v18.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;
      Specified by:
      getAggregateMetricTypesCount in interface KeywordPlanAggregateMetricsOrBuilder
      Returns:
      The count of aggregateMetricTypes.
    • getAggregateMetricTypes

      public KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType getAggregateMetricTypes(int index)
       The list of aggregate metrics to fetch data.
       
      repeated .google.ads.googleads.v18.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;
      Specified by:
      getAggregateMetricTypes in interface KeywordPlanAggregateMetricsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The aggregateMetricTypes at the given index.
    • setAggregateMetricTypes

       The list of aggregate metrics to fetch data.
       
      repeated .google.ads.googleads.v18.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;
      Parameters:
      index - The index to set the value at.
      value - The aggregateMetricTypes to set.
      Returns:
      This builder for chaining.
    • addAggregateMetricTypes

       The list of aggregate metrics to fetch data.
       
      repeated .google.ads.googleads.v18.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;
      Parameters:
      value - The aggregateMetricTypes to add.
      Returns:
      This builder for chaining.
    • addAllAggregateMetricTypes

       The list of aggregate metrics to fetch data.
       
      repeated .google.ads.googleads.v18.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;
      Parameters:
      values - The aggregateMetricTypes to add.
      Returns:
      This builder for chaining.
    • clearAggregateMetricTypes

      public KeywordPlanAggregateMetrics.Builder clearAggregateMetricTypes()
       The list of aggregate metrics to fetch data.
       
      repeated .google.ads.googleads.v18.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;
      Returns:
      This builder for chaining.
    • getAggregateMetricTypesValueList

      public List<Integer> getAggregateMetricTypesValueList()
       The list of aggregate metrics to fetch data.
       
      repeated .google.ads.googleads.v18.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;
      Specified by:
      getAggregateMetricTypesValueList in interface KeywordPlanAggregateMetricsOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for aggregateMetricTypes.
    • getAggregateMetricTypesValue

      public int getAggregateMetricTypesValue(int index)
       The list of aggregate metrics to fetch data.
       
      repeated .google.ads.googleads.v18.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;
      Specified by:
      getAggregateMetricTypesValue in interface KeywordPlanAggregateMetricsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of aggregateMetricTypes at the given index.
    • setAggregateMetricTypesValue

      public KeywordPlanAggregateMetrics.Builder setAggregateMetricTypesValue(int index, int value)
       The list of aggregate metrics to fetch data.
       
      repeated .google.ads.googleads.v18.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for aggregateMetricTypes to set.
      Returns:
      This builder for chaining.
    • addAggregateMetricTypesValue

      public KeywordPlanAggregateMetrics.Builder addAggregateMetricTypesValue(int value)
       The list of aggregate metrics to fetch data.
       
      repeated .google.ads.googleads.v18.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;
      Parameters:
      value - The enum numeric value on the wire for aggregateMetricTypes to add.
      Returns:
      This builder for chaining.
    • addAllAggregateMetricTypesValue

      public KeywordPlanAggregateMetrics.Builder addAllAggregateMetricTypesValue(Iterable<Integer> values)
       The list of aggregate metrics to fetch data.
       
      repeated .google.ads.googleads.v18.enums.KeywordPlanAggregateMetricTypeEnum.KeywordPlanAggregateMetricType aggregate_metric_types = 1;
      Parameters:
      values - The enum numeric values on the wire for aggregateMetricTypes to add.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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