Class DynamicLocationSetFilter.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DynamicLocationSetFilter.Builder>
com.google.ads.googleads.v18.common.DynamicLocationSetFilter.Builder
All Implemented Interfaces:
DynamicLocationSetFilterOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DynamicLocationSetFilter

public static final class DynamicLocationSetFilter.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DynamicLocationSetFilter.Builder> implements DynamicLocationSetFilterOrBuilder
 Represents a filter on locations in a feed item set.
 Only applicable if the parent Feed of the FeedItemSet is a LOCATION feed.
 
Protobuf type google.ads.googleads.v18.common.DynamicLocationSetFilter
  • Method Details

    • getDescriptor

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

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

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

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

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicLocationSetFilter.Builder>
    • setField

      public DynamicLocationSetFilter.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicLocationSetFilter.Builder>
    • clearField

      public DynamicLocationSetFilter.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicLocationSetFilter.Builder>
    • clearOneof

      public DynamicLocationSetFilter.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicLocationSetFilter.Builder>
    • setRepeatedField

      public DynamicLocationSetFilter.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicLocationSetFilter.Builder>
    • addRepeatedField

      public DynamicLocationSetFilter.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicLocationSetFilter.Builder>
    • mergeFrom

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

    • isInitialized

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

      public DynamicLocationSetFilter.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<DynamicLocationSetFilter.Builder>
      Throws:
      IOException
    • getLabelsList

      public com.google.protobuf.ProtocolStringList getLabelsList()
       If multiple labels are set, then only feeditems marked with all the labels
       will be added to the FeedItemSet.
       
      repeated string labels = 1;
      Specified by:
      getLabelsList in interface DynamicLocationSetFilterOrBuilder
      Returns:
      A list containing the labels.
    • getLabelsCount

      public int getLabelsCount()
       If multiple labels are set, then only feeditems marked with all the labels
       will be added to the FeedItemSet.
       
      repeated string labels = 1;
      Specified by:
      getLabelsCount in interface DynamicLocationSetFilterOrBuilder
      Returns:
      The count of labels.
    • getLabels

      public String getLabels(int index)
       If multiple labels are set, then only feeditems marked with all the labels
       will be added to the FeedItemSet.
       
      repeated string labels = 1;
      Specified by:
      getLabels in interface DynamicLocationSetFilterOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The labels at the given index.
    • getLabelsBytes

      public com.google.protobuf.ByteString getLabelsBytes(int index)
       If multiple labels are set, then only feeditems marked with all the labels
       will be added to the FeedItemSet.
       
      repeated string labels = 1;
      Specified by:
      getLabelsBytes in interface DynamicLocationSetFilterOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the labels at the given index.
    • setLabels

      public DynamicLocationSetFilter.Builder setLabels(int index, String value)
       If multiple labels are set, then only feeditems marked with all the labels
       will be added to the FeedItemSet.
       
      repeated string labels = 1;
      Parameters:
      index - The index to set the value at.
      value - The labels to set.
      Returns:
      This builder for chaining.
    • addLabels

      public DynamicLocationSetFilter.Builder addLabels(String value)
       If multiple labels are set, then only feeditems marked with all the labels
       will be added to the FeedItemSet.
       
      repeated string labels = 1;
      Parameters:
      value - The labels to add.
      Returns:
      This builder for chaining.
    • addAllLabels

      public DynamicLocationSetFilter.Builder addAllLabels(Iterable<String> values)
       If multiple labels are set, then only feeditems marked with all the labels
       will be added to the FeedItemSet.
       
      repeated string labels = 1;
      Parameters:
      values - The labels to add.
      Returns:
      This builder for chaining.
    • clearLabels

      public DynamicLocationSetFilter.Builder clearLabels()
       If multiple labels are set, then only feeditems marked with all the labels
       will be added to the FeedItemSet.
       
      repeated string labels = 1;
      Returns:
      This builder for chaining.
    • addLabelsBytes

      public DynamicLocationSetFilter.Builder addLabelsBytes(com.google.protobuf.ByteString value)
       If multiple labels are set, then only feeditems marked with all the labels
       will be added to the FeedItemSet.
       
      repeated string labels = 1;
      Parameters:
      value - The bytes of the labels to add.
      Returns:
      This builder for chaining.
    • hasBusinessNameFilter

      public boolean hasBusinessNameFilter()
       Business name filter.
       
      .google.ads.googleads.v18.common.BusinessNameFilter business_name_filter = 2;
      Specified by:
      hasBusinessNameFilter in interface DynamicLocationSetFilterOrBuilder
      Returns:
      Whether the businessNameFilter field is set.
    • getBusinessNameFilter

      public BusinessNameFilter getBusinessNameFilter()
       Business name filter.
       
      .google.ads.googleads.v18.common.BusinessNameFilter business_name_filter = 2;
      Specified by:
      getBusinessNameFilter in interface DynamicLocationSetFilterOrBuilder
      Returns:
      The businessNameFilter.
    • setBusinessNameFilter

      public DynamicLocationSetFilter.Builder setBusinessNameFilter(BusinessNameFilter value)
       Business name filter.
       
      .google.ads.googleads.v18.common.BusinessNameFilter business_name_filter = 2;
    • setBusinessNameFilter

      public DynamicLocationSetFilter.Builder setBusinessNameFilter(BusinessNameFilter.Builder builderForValue)
       Business name filter.
       
      .google.ads.googleads.v18.common.BusinessNameFilter business_name_filter = 2;
    • mergeBusinessNameFilter

      public DynamicLocationSetFilter.Builder mergeBusinessNameFilter(BusinessNameFilter value)
       Business name filter.
       
      .google.ads.googleads.v18.common.BusinessNameFilter business_name_filter = 2;
    • clearBusinessNameFilter

      public DynamicLocationSetFilter.Builder clearBusinessNameFilter()
       Business name filter.
       
      .google.ads.googleads.v18.common.BusinessNameFilter business_name_filter = 2;
    • getBusinessNameFilterBuilder

      public BusinessNameFilter.Builder getBusinessNameFilterBuilder()
       Business name filter.
       
      .google.ads.googleads.v18.common.BusinessNameFilter business_name_filter = 2;
    • getBusinessNameFilterOrBuilder

      public BusinessNameFilterOrBuilder getBusinessNameFilterOrBuilder()
       Business name filter.
       
      .google.ads.googleads.v18.common.BusinessNameFilter business_name_filter = 2;
      Specified by:
      getBusinessNameFilterOrBuilder in interface DynamicLocationSetFilterOrBuilder
    • setUnknownFields

      public final DynamicLocationSetFilter.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicLocationSetFilter.Builder>
    • mergeUnknownFields

      public final DynamicLocationSetFilter.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicLocationSetFilter.Builder>