Class CategoryFilter.Builder

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

public static final class CategoryFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<CategoryFilter.Builder> implements CategoryFilterOrBuilder
 A list of Product & Service Categories for scoping benchmarks.
 
Protobuf type google.ads.googleads.v25.services.CategoryFilter
  • 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<CategoryFilter.Builder>
    • clear

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

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

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

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

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

      public CategoryFilter.Builder mergeFrom(CategoryFilter other)
    • isInitialized

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

      public CategoryFilter.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<CategoryFilter.Builder>
      Throws:
      IOException
    • getCategoryIdsList

      public com.google.protobuf.ProtocolStringList getCategoryIdsList()
       Required. Product & Service Category IDs. The supported list of IDs can be
       retrieved using
       [BenchmarksService.ListBenchmarksSources][google.ads.googleads.v25.services.BenchmarksService.ListBenchmarksSources].
       The scope of benchmarks analysis will be the union (ORs) of all categories
       supplied.
       
      repeated string category_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCategoryIdsList in interface CategoryFilterOrBuilder
      Returns:
      A list containing the categoryIds.
    • getCategoryIdsCount

      public int getCategoryIdsCount()
       Required. Product & Service Category IDs. The supported list of IDs can be
       retrieved using
       [BenchmarksService.ListBenchmarksSources][google.ads.googleads.v25.services.BenchmarksService.ListBenchmarksSources].
       The scope of benchmarks analysis will be the union (ORs) of all categories
       supplied.
       
      repeated string category_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCategoryIdsCount in interface CategoryFilterOrBuilder
      Returns:
      The count of categoryIds.
    • getCategoryIds

      public String getCategoryIds(int index)
       Required. Product & Service Category IDs. The supported list of IDs can be
       retrieved using
       [BenchmarksService.ListBenchmarksSources][google.ads.googleads.v25.services.BenchmarksService.ListBenchmarksSources].
       The scope of benchmarks analysis will be the union (ORs) of all categories
       supplied.
       
      repeated string category_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCategoryIds in interface CategoryFilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The categoryIds at the given index.
    • getCategoryIdsBytes

      public com.google.protobuf.ByteString getCategoryIdsBytes(int index)
       Required. Product & Service Category IDs. The supported list of IDs can be
       retrieved using
       [BenchmarksService.ListBenchmarksSources][google.ads.googleads.v25.services.BenchmarksService.ListBenchmarksSources].
       The scope of benchmarks analysis will be the union (ORs) of all categories
       supplied.
       
      repeated string category_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCategoryIdsBytes in interface CategoryFilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the categoryIds at the given index.
    • setCategoryIds

      public CategoryFilter.Builder setCategoryIds(int index, String value)
       Required. Product & Service Category IDs. The supported list of IDs can be
       retrieved using
       [BenchmarksService.ListBenchmarksSources][google.ads.googleads.v25.services.BenchmarksService.ListBenchmarksSources].
       The scope of benchmarks analysis will be the union (ORs) of all categories
       supplied.
       
      repeated string category_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The categoryIds to set.
      Returns:
      This builder for chaining.
    • addCategoryIds

      public CategoryFilter.Builder addCategoryIds(String value)
       Required. Product & Service Category IDs. The supported list of IDs can be
       retrieved using
       [BenchmarksService.ListBenchmarksSources][google.ads.googleads.v25.services.BenchmarksService.ListBenchmarksSources].
       The scope of benchmarks analysis will be the union (ORs) of all categories
       supplied.
       
      repeated string category_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The categoryIds to add.
      Returns:
      This builder for chaining.
    • addAllCategoryIds

      public CategoryFilter.Builder addAllCategoryIds(Iterable<String> values)
       Required. Product & Service Category IDs. The supported list of IDs can be
       retrieved using
       [BenchmarksService.ListBenchmarksSources][google.ads.googleads.v25.services.BenchmarksService.ListBenchmarksSources].
       The scope of benchmarks analysis will be the union (ORs) of all categories
       supplied.
       
      repeated string category_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The categoryIds to add.
      Returns:
      This builder for chaining.
    • clearCategoryIds

      public CategoryFilter.Builder clearCategoryIds()
       Required. Product & Service Category IDs. The supported list of IDs can be
       retrieved using
       [BenchmarksService.ListBenchmarksSources][google.ads.googleads.v25.services.BenchmarksService.ListBenchmarksSources].
       The scope of benchmarks analysis will be the union (ORs) of all categories
       supplied.
       
      repeated string category_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addCategoryIdsBytes

      public CategoryFilter.Builder addCategoryIdsBytes(com.google.protobuf.ByteString value)
       Required. Product & Service Category IDs. The supported list of IDs can be
       retrieved using
       [BenchmarksService.ListBenchmarksSources][google.ads.googleads.v25.services.BenchmarksService.ListBenchmarksSources].
       The scope of benchmarks analysis will be the union (ORs) of all categories
       supplied.
       
      repeated string category_ids = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the categoryIds to add.
      Returns:
      This builder for chaining.