Class BenchmarksSource.Builder

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

public static final class BenchmarksSource.Builder extends com.google.protobuf.GeneratedMessage.Builder<BenchmarksSource.Builder> implements BenchmarksSourceOrBuilder
 The source used to generate benchmarks metrics for. The ID of the source can
 be obtained from
 [BenchmarksService.ListBenchmarksSources][google.ads.googleads.v25.services.BenchmarksService.ListBenchmarksSources].
 
Protobuf type google.ads.googleads.v25.services.BenchmarksSource
  • 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<BenchmarksSource.Builder>
    • clear

      public BenchmarksSource.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<BenchmarksSource.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<BenchmarksSource.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public BenchmarksSource.Builder mergeFrom(BenchmarksSource other)
    • isInitialized

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

      public BenchmarksSource.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<BenchmarksSource.Builder>
      Throws:
      IOException
    • getBenchmarksSourceIdCase

      public BenchmarksSource.BenchmarksSourceIdCase getBenchmarksSourceIdCase()
      Specified by:
      getBenchmarksSourceIdCase in interface BenchmarksSourceOrBuilder
    • clearBenchmarksSourceId

      public BenchmarksSource.Builder clearBenchmarksSourceId()
    • hasIndustryVerticalId

      public boolean hasIndustryVerticalId()
       The ID of the Industry Vertical.
       
      int64 industry_vertical_id = 1;
      Specified by:
      hasIndustryVerticalId in interface BenchmarksSourceOrBuilder
      Returns:
      Whether the industryVerticalId field is set.
    • getIndustryVerticalId

      public long getIndustryVerticalId()
       The ID of the Industry Vertical.
       
      int64 industry_vertical_id = 1;
      Specified by:
      getIndustryVerticalId in interface BenchmarksSourceOrBuilder
      Returns:
      The industryVerticalId.
    • setIndustryVerticalId

      public BenchmarksSource.Builder setIndustryVerticalId(long value)
       The ID of the Industry Vertical.
       
      int64 industry_vertical_id = 1;
      Parameters:
      value - The industryVerticalId to set.
      Returns:
      This builder for chaining.
    • clearIndustryVerticalId

      public BenchmarksSource.Builder clearIndustryVerticalId()
       The ID of the Industry Vertical.
       
      int64 industry_vertical_id = 1;
      Returns:
      This builder for chaining.
    • hasAllAdvertisers

      public boolean hasAllAdvertisers()
       Comparison against all advertisers running Ads. This benchmarking option
       must utilize additional filters. Setting the `category_filter` is
       required. One or more categories will scope the metrics of both the
       customer and all advertisers to those selected categories.
       
      bool all_advertisers = 2;
      Specified by:
      hasAllAdvertisers in interface BenchmarksSourceOrBuilder
      Returns:
      Whether the allAdvertisers field is set.
    • getAllAdvertisers

      public boolean getAllAdvertisers()
       Comparison against all advertisers running Ads. This benchmarking option
       must utilize additional filters. Setting the `category_filter` is
       required. One or more categories will scope the metrics of both the
       customer and all advertisers to those selected categories.
       
      bool all_advertisers = 2;
      Specified by:
      getAllAdvertisers in interface BenchmarksSourceOrBuilder
      Returns:
      The allAdvertisers.
    • setAllAdvertisers

      public BenchmarksSource.Builder setAllAdvertisers(boolean value)
       Comparison against all advertisers running Ads. This benchmarking option
       must utilize additional filters. Setting the `category_filter` is
       required. One or more categories will scope the metrics of both the
       customer and all advertisers to those selected categories.
       
      bool all_advertisers = 2;
      Parameters:
      value - The allAdvertisers to set.
      Returns:
      This builder for chaining.
    • clearAllAdvertisers

      public BenchmarksSource.Builder clearAllAdvertisers()
       Comparison against all advertisers running Ads. This benchmarking option
       must utilize additional filters. Setting the `category_filter` is
       required. One or more categories will scope the metrics of both the
       customer and all advertisers to those selected categories.
       
      bool all_advertisers = 2;
      Returns:
      This builder for chaining.