Class DynamicBusinessProfileLocationGroupFilter.Builder

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

public static final class DynamicBusinessProfileLocationGroupFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<DynamicBusinessProfileLocationGroupFilter.Builder> implements DynamicBusinessProfileLocationGroupFilterOrBuilder
 Represents a filter on Business Profile locations in an asset set. If
 multiple filters are provided, they are AND'ed together.
 
Protobuf type google.ads.googleads.v23.common.DynamicBusinessProfileLocationGroupFilter
  • 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<DynamicBusinessProfileLocationGroupFilter.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<DynamicBusinessProfileLocationGroupFilter.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<DynamicBusinessProfileLocationGroupFilter.Builder>
    • getDefaultInstanceForType

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

      public DynamicBusinessProfileLocationGroupFilter.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<DynamicBusinessProfileLocationGroupFilter.Builder>
      Throws:
      IOException
    • getLabelFiltersList

      public com.google.protobuf.ProtocolStringList getLabelFiltersList()
       Used to filter Business Profile locations by label. Only locations that
       have any of the listed labels will be in the asset set.
       Label filters are OR'ed together.
       
      repeated string label_filters = 1;
      Specified by:
      getLabelFiltersList in interface DynamicBusinessProfileLocationGroupFilterOrBuilder
      Returns:
      A list containing the labelFilters.
    • getLabelFiltersCount

      public int getLabelFiltersCount()
       Used to filter Business Profile locations by label. Only locations that
       have any of the listed labels will be in the asset set.
       Label filters are OR'ed together.
       
      repeated string label_filters = 1;
      Specified by:
      getLabelFiltersCount in interface DynamicBusinessProfileLocationGroupFilterOrBuilder
      Returns:
      The count of labelFilters.
    • getLabelFilters

      public String getLabelFilters(int index)
       Used to filter Business Profile locations by label. Only locations that
       have any of the listed labels will be in the asset set.
       Label filters are OR'ed together.
       
      repeated string label_filters = 1;
      Specified by:
      getLabelFilters in interface DynamicBusinessProfileLocationGroupFilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The labelFilters at the given index.
    • getLabelFiltersBytes

      public com.google.protobuf.ByteString getLabelFiltersBytes(int index)
       Used to filter Business Profile locations by label. Only locations that
       have any of the listed labels will be in the asset set.
       Label filters are OR'ed together.
       
      repeated string label_filters = 1;
      Specified by:
      getLabelFiltersBytes in interface DynamicBusinessProfileLocationGroupFilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the labelFilters at the given index.
    • setLabelFilters

      public DynamicBusinessProfileLocationGroupFilter.Builder setLabelFilters(int index, String value)
       Used to filter Business Profile locations by label. Only locations that
       have any of the listed labels will be in the asset set.
       Label filters are OR'ed together.
       
      repeated string label_filters = 1;
      Parameters:
      index - The index to set the value at.
      value - The labelFilters to set.
      Returns:
      This builder for chaining.
    • addLabelFilters

       Used to filter Business Profile locations by label. Only locations that
       have any of the listed labels will be in the asset set.
       Label filters are OR'ed together.
       
      repeated string label_filters = 1;
      Parameters:
      value - The labelFilters to add.
      Returns:
      This builder for chaining.
    • addAllLabelFilters

       Used to filter Business Profile locations by label. Only locations that
       have any of the listed labels will be in the asset set.
       Label filters are OR'ed together.
       
      repeated string label_filters = 1;
      Parameters:
      values - The labelFilters to add.
      Returns:
      This builder for chaining.
    • clearLabelFilters

       Used to filter Business Profile locations by label. Only locations that
       have any of the listed labels will be in the asset set.
       Label filters are OR'ed together.
       
      repeated string label_filters = 1;
      Returns:
      This builder for chaining.
    • addLabelFiltersBytes

      public DynamicBusinessProfileLocationGroupFilter.Builder addLabelFiltersBytes(com.google.protobuf.ByteString value)
       Used to filter Business Profile locations by label. Only locations that
       have any of the listed labels will be in the asset set.
       Label filters are OR'ed together.
       
      repeated string label_filters = 1;
      Parameters:
      value - The bytes of the labelFilters to add.
      Returns:
      This builder for chaining.
    • hasBusinessNameFilter

      public boolean hasBusinessNameFilter()
       Used to filter Business Profile locations by business name.
       
      optional .google.ads.googleads.v23.common.BusinessProfileBusinessNameFilter business_name_filter = 2;
      Specified by:
      hasBusinessNameFilter in interface DynamicBusinessProfileLocationGroupFilterOrBuilder
      Returns:
      Whether the businessNameFilter field is set.
    • getBusinessNameFilter

      public BusinessProfileBusinessNameFilter getBusinessNameFilter()
       Used to filter Business Profile locations by business name.
       
      optional .google.ads.googleads.v23.common.BusinessProfileBusinessNameFilter business_name_filter = 2;
      Specified by:
      getBusinessNameFilter in interface DynamicBusinessProfileLocationGroupFilterOrBuilder
      Returns:
      The businessNameFilter.
    • setBusinessNameFilter

       Used to filter Business Profile locations by business name.
       
      optional .google.ads.googleads.v23.common.BusinessProfileBusinessNameFilter business_name_filter = 2;
    • setBusinessNameFilter

       Used to filter Business Profile locations by business name.
       
      optional .google.ads.googleads.v23.common.BusinessProfileBusinessNameFilter business_name_filter = 2;
    • mergeBusinessNameFilter

       Used to filter Business Profile locations by business name.
       
      optional .google.ads.googleads.v23.common.BusinessProfileBusinessNameFilter business_name_filter = 2;
    • clearBusinessNameFilter

      public DynamicBusinessProfileLocationGroupFilter.Builder clearBusinessNameFilter()
       Used to filter Business Profile locations by business name.
       
      optional .google.ads.googleads.v23.common.BusinessProfileBusinessNameFilter business_name_filter = 2;
    • getBusinessNameFilterBuilder

      public BusinessProfileBusinessNameFilter.Builder getBusinessNameFilterBuilder()
       Used to filter Business Profile locations by business name.
       
      optional .google.ads.googleads.v23.common.BusinessProfileBusinessNameFilter business_name_filter = 2;
    • getBusinessNameFilterOrBuilder

      public BusinessProfileBusinessNameFilterOrBuilder getBusinessNameFilterOrBuilder()
       Used to filter Business Profile locations by business name.
       
      optional .google.ads.googleads.v23.common.BusinessProfileBusinessNameFilter business_name_filter = 2;
      Specified by:
      getBusinessNameFilterOrBuilder in interface DynamicBusinessProfileLocationGroupFilterOrBuilder
    • getListingIdFiltersList

      public List<Long> getListingIdFiltersList()
       Used to filter Business Profile locations by listing ids.
       
      repeated int64 listing_id_filters = 3;
      Specified by:
      getListingIdFiltersList in interface DynamicBusinessProfileLocationGroupFilterOrBuilder
      Returns:
      A list containing the listingIdFilters.
    • getListingIdFiltersCount

      public int getListingIdFiltersCount()
       Used to filter Business Profile locations by listing ids.
       
      repeated int64 listing_id_filters = 3;
      Specified by:
      getListingIdFiltersCount in interface DynamicBusinessProfileLocationGroupFilterOrBuilder
      Returns:
      The count of listingIdFilters.
    • getListingIdFilters

      public long getListingIdFilters(int index)
       Used to filter Business Profile locations by listing ids.
       
      repeated int64 listing_id_filters = 3;
      Specified by:
      getListingIdFilters in interface DynamicBusinessProfileLocationGroupFilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The listingIdFilters at the given index.
    • setListingIdFilters

      public DynamicBusinessProfileLocationGroupFilter.Builder setListingIdFilters(int index, long value)
       Used to filter Business Profile locations by listing ids.
       
      repeated int64 listing_id_filters = 3;
      Parameters:
      index - The index to set the value at.
      value - The listingIdFilters to set.
      Returns:
      This builder for chaining.
    • addListingIdFilters

      public DynamicBusinessProfileLocationGroupFilter.Builder addListingIdFilters(long value)
       Used to filter Business Profile locations by listing ids.
       
      repeated int64 listing_id_filters = 3;
      Parameters:
      value - The listingIdFilters to add.
      Returns:
      This builder for chaining.
    • addAllListingIdFilters

      public DynamicBusinessProfileLocationGroupFilter.Builder addAllListingIdFilters(Iterable<? extends Long> values)
       Used to filter Business Profile locations by listing ids.
       
      repeated int64 listing_id_filters = 3;
      Parameters:
      values - The listingIdFilters to add.
      Returns:
      This builder for chaining.
    • clearListingIdFilters

      public DynamicBusinessProfileLocationGroupFilter.Builder clearListingIdFilters()
       Used to filter Business Profile locations by listing ids.
       
      repeated int64 listing_id_filters = 3;
      Returns:
      This builder for chaining.