Class KnowledgeGraphEntitySearchOptions.SearchFilter.Builder

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

public static final class KnowledgeGraphEntitySearchOptions.SearchFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<KnowledgeGraphEntitySearchOptions.SearchFilter.Builder> implements KnowledgeGraphEntitySearchOptions.SearchFilterOrBuilder
 Filter options for Knowledge Graph Entities.
 
Protobuf type google.ads.googleads.v25.services.KnowledgeGraphEntitySearchOptions.SearchFilter
  • 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<KnowledgeGraphEntitySearchOptions.SearchFilter.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<KnowledgeGraphEntitySearchOptions.SearchFilter.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<KnowledgeGraphEntitySearchOptions.SearchFilter.Builder>
    • getDefaultInstanceForType

      public KnowledgeGraphEntitySearchOptions.SearchFilter 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

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

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

      public KnowledgeGraphEntitySearchOptions.SearchFilter.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<KnowledgeGraphEntitySearchOptions.SearchFilter.Builder>
      Throws:
      IOException
    • getEntityCapabilityFiltersList

       Optional. A list of entity capability filters supported for
       [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService].
       If set, returns entities relevant to the `query_text` and supported for
       any of the specified capabilities.
      
       For example, entity_capability_filters[0] and
       entity_capability_filters[1] are combined with OR so that entities
       supported for either capability are returned.
       
      repeated .google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capability_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEntityCapabilityFiltersList in interface KnowledgeGraphEntitySearchOptions.SearchFilterOrBuilder
      Returns:
      A list containing the entityCapabilityFilters.
    • getEntityCapabilityFiltersCount

      public int getEntityCapabilityFiltersCount()
       Optional. A list of entity capability filters supported for
       [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService].
       If set, returns entities relevant to the `query_text` and supported for
       any of the specified capabilities.
      
       For example, entity_capability_filters[0] and
       entity_capability_filters[1] are combined with OR so that entities
       supported for either capability are returned.
       
      repeated .google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capability_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEntityCapabilityFiltersCount in interface KnowledgeGraphEntitySearchOptions.SearchFilterOrBuilder
      Returns:
      The count of entityCapabilityFilters.
    • getEntityCapabilityFilters

       Optional. A list of entity capability filters supported for
       [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService].
       If set, returns entities relevant to the `query_text` and supported for
       any of the specified capabilities.
      
       For example, entity_capability_filters[0] and
       entity_capability_filters[1] are combined with OR so that entities
       supported for either capability are returned.
       
      repeated .google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capability_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEntityCapabilityFilters in interface KnowledgeGraphEntitySearchOptions.SearchFilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The entityCapabilityFilters at the given index.
    • setEntityCapabilityFilters

       Optional. A list of entity capability filters supported for
       [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService].
       If set, returns entities relevant to the `query_text` and supported for
       any of the specified capabilities.
      
       For example, entity_capability_filters[0] and
       entity_capability_filters[1] are combined with OR so that entities
       supported for either capability are returned.
       
      repeated .google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capability_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The entityCapabilityFilters to set.
      Returns:
      This builder for chaining.
    • addEntityCapabilityFilters

       Optional. A list of entity capability filters supported for
       [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService].
       If set, returns entities relevant to the `query_text` and supported for
       any of the specified capabilities.
      
       For example, entity_capability_filters[0] and
       entity_capability_filters[1] are combined with OR so that entities
       supported for either capability are returned.
       
      repeated .google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capability_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The entityCapabilityFilters to add.
      Returns:
      This builder for chaining.
    • addAllEntityCapabilityFilters

       Optional. A list of entity capability filters supported for
       [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService].
       If set, returns entities relevant to the `query_text` and supported for
       any of the specified capabilities.
      
       For example, entity_capability_filters[0] and
       entity_capability_filters[1] are combined with OR so that entities
       supported for either capability are returned.
       
      repeated .google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capability_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The entityCapabilityFilters to add.
      Returns:
      This builder for chaining.
    • clearEntityCapabilityFilters

      public KnowledgeGraphEntitySearchOptions.SearchFilter.Builder clearEntityCapabilityFilters()
       Optional. A list of entity capability filters supported for
       [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService].
       If set, returns entities relevant to the `query_text` and supported for
       any of the specified capabilities.
      
       For example, entity_capability_filters[0] and
       entity_capability_filters[1] are combined with OR so that entities
       supported for either capability are returned.
       
      repeated .google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capability_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getEntityCapabilityFiltersValueList

      public List<Integer> getEntityCapabilityFiltersValueList()
       Optional. A list of entity capability filters supported for
       [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService].
       If set, returns entities relevant to the `query_text` and supported for
       any of the specified capabilities.
      
       For example, entity_capability_filters[0] and
       entity_capability_filters[1] are combined with OR so that entities
       supported for either capability are returned.
       
      repeated .google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capability_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEntityCapabilityFiltersValueList in interface KnowledgeGraphEntitySearchOptions.SearchFilterOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for entityCapabilityFilters.
    • getEntityCapabilityFiltersValue

      public int getEntityCapabilityFiltersValue(int index)
       Optional. A list of entity capability filters supported for
       [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService].
       If set, returns entities relevant to the `query_text` and supported for
       any of the specified capabilities.
      
       For example, entity_capability_filters[0] and
       entity_capability_filters[1] are combined with OR so that entities
       supported for either capability are returned.
       
      repeated .google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capability_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEntityCapabilityFiltersValue in interface KnowledgeGraphEntitySearchOptions.SearchFilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of entityCapabilityFilters at the given index.
    • setEntityCapabilityFiltersValue

      public KnowledgeGraphEntitySearchOptions.SearchFilter.Builder setEntityCapabilityFiltersValue(int index, int value)
       Optional. A list of entity capability filters supported for
       [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService].
       If set, returns entities relevant to the `query_text` and supported for
       any of the specified capabilities.
      
       For example, entity_capability_filters[0] and
       entity_capability_filters[1] are combined with OR so that entities
       supported for either capability are returned.
       
      repeated .google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capability_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for entityCapabilityFilters to set.
      Returns:
      This builder for chaining.
    • addEntityCapabilityFiltersValue

      public KnowledgeGraphEntitySearchOptions.SearchFilter.Builder addEntityCapabilityFiltersValue(int value)
       Optional. A list of entity capability filters supported for
       [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService].
       If set, returns entities relevant to the `query_text` and supported for
       any of the specified capabilities.
      
       For example, entity_capability_filters[0] and
       entity_capability_filters[1] are combined with OR so that entities
       supported for either capability are returned.
       
      repeated .google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capability_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for entityCapabilityFilters to add.
      Returns:
      This builder for chaining.
    • addAllEntityCapabilityFiltersValue

      public KnowledgeGraphEntitySearchOptions.SearchFilter.Builder addAllEntityCapabilityFiltersValue(Iterable<Integer> values)
       Optional. A list of entity capability filters supported for
       [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService].
       If set, returns entities relevant to the `query_text` and supported for
       any of the specified capabilities.
      
       For example, entity_capability_filters[0] and
       entity_capability_filters[1] are combined with OR so that entities
       supported for either capability are returned.
       
      repeated .google.ads.googleads.v25.enums.InsightsKnowledgeGraphEntityCapabilitiesEnum.InsightsKnowledgeGraphEntityCapabilities entity_capability_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The enum numeric values on the wire for entityCapabilityFilters to add.
      Returns:
      This builder for chaining.