Class BreakdownDefinition.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BreakdownDefinition.Builder>
com.google.ads.googleads.v23.services.BreakdownDefinition.Builder
All Implemented Interfaces:
BreakdownDefinitionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BreakdownDefinition

public static final class BreakdownDefinition.Builder extends com.google.protobuf.GeneratedMessage.Builder<BreakdownDefinition.Builder> implements BreakdownDefinitionOrBuilder
 The set of dimensions to group metrics by.
 
Protobuf type google.ads.googleads.v23.services.BreakdownDefinition
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<BreakdownDefinition.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.GeneratedMessage.Builder<BreakdownDefinition.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.GeneratedMessage.Builder<BreakdownDefinition.Builder>
    • getDefaultInstanceForType

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

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

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

      public BreakdownDefinition.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<BreakdownDefinition.Builder>
    • mergeFrom

    • isInitialized

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

      public BreakdownDefinition.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<BreakdownDefinition.Builder>
      Throws:
      IOException
    • getDateBreakdownValue

      public int getDateBreakdownValue()
       The granularity for segmenting metrics by date. When this field is set,
       a valid date_range in the GenerateBenchmarksMetricsRequest is required
       and must precisely align with the boundaries of the selected granularity.
      
       For example, a monthly breakdown must start on the first day of a month and
       end on the last day of a month. A quarterly breakdown must start on the
       first day of a quarter and end on the last day of a quarter. A weekly
       breakdown must start on a Sunday and end on a Saturday. This is different
       from the ISO 8601 standard, where weeks start on Monday.
       
      .google.ads.googleads.v23.enums.BenchmarksTimeGranularityEnum.BenchmarksTimeGranularity date_breakdown = 1;
      Specified by:
      getDateBreakdownValue in interface BreakdownDefinitionOrBuilder
      Returns:
      The enum numeric value on the wire for dateBreakdown.
    • setDateBreakdownValue

      public BreakdownDefinition.Builder setDateBreakdownValue(int value)
       The granularity for segmenting metrics by date. When this field is set,
       a valid date_range in the GenerateBenchmarksMetricsRequest is required
       and must precisely align with the boundaries of the selected granularity.
      
       For example, a monthly breakdown must start on the first day of a month and
       end on the last day of a month. A quarterly breakdown must start on the
       first day of a quarter and end on the last day of a quarter. A weekly
       breakdown must start on a Sunday and end on a Saturday. This is different
       from the ISO 8601 standard, where weeks start on Monday.
       
      .google.ads.googleads.v23.enums.BenchmarksTimeGranularityEnum.BenchmarksTimeGranularity date_breakdown = 1;
      Parameters:
      value - The enum numeric value on the wire for dateBreakdown to set.
      Returns:
      This builder for chaining.
    • getDateBreakdown

       The granularity for segmenting metrics by date. When this field is set,
       a valid date_range in the GenerateBenchmarksMetricsRequest is required
       and must precisely align with the boundaries of the selected granularity.
      
       For example, a monthly breakdown must start on the first day of a month and
       end on the last day of a month. A quarterly breakdown must start on the
       first day of a quarter and end on the last day of a quarter. A weekly
       breakdown must start on a Sunday and end on a Saturday. This is different
       from the ISO 8601 standard, where weeks start on Monday.
       
      .google.ads.googleads.v23.enums.BenchmarksTimeGranularityEnum.BenchmarksTimeGranularity date_breakdown = 1;
      Specified by:
      getDateBreakdown in interface BreakdownDefinitionOrBuilder
      Returns:
      The dateBreakdown.
    • setDateBreakdown

       The granularity for segmenting metrics by date. When this field is set,
       a valid date_range in the GenerateBenchmarksMetricsRequest is required
       and must precisely align with the boundaries of the selected granularity.
      
       For example, a monthly breakdown must start on the first day of a month and
       end on the last day of a month. A quarterly breakdown must start on the
       first day of a quarter and end on the last day of a quarter. A weekly
       breakdown must start on a Sunday and end on a Saturday. This is different
       from the ISO 8601 standard, where weeks start on Monday.
       
      .google.ads.googleads.v23.enums.BenchmarksTimeGranularityEnum.BenchmarksTimeGranularity date_breakdown = 1;
      Parameters:
      value - The dateBreakdown to set.
      Returns:
      This builder for chaining.
    • clearDateBreakdown

      public BreakdownDefinition.Builder clearDateBreakdown()
       The granularity for segmenting metrics by date. When this field is set,
       a valid date_range in the GenerateBenchmarksMetricsRequest is required
       and must precisely align with the boundaries of the selected granularity.
      
       For example, a monthly breakdown must start on the first day of a month and
       end on the last day of a month. A quarterly breakdown must start on the
       first day of a quarter and end on the last day of a quarter. A weekly
       breakdown must start on a Sunday and end on a Saturday. This is different
       from the ISO 8601 standard, where weeks start on Monday.
       
      .google.ads.googleads.v23.enums.BenchmarksTimeGranularityEnum.BenchmarksTimeGranularity date_breakdown = 1;
      Returns:
      This builder for chaining.