Class DynamicLocationSetFilter.Builder

  • All Implemented Interfaces:
    DynamicLocationSetFilterOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.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.v10.common.DynamicLocationSetFilter
    • Method Detail

      • 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>
      • 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
      • setField

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

        public DynamicLocationSetFilter.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 java.lang.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,
                                                                 java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DynamicLocationSetFilter.Builder>
      • 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 java.io.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:
        java.io.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 java.lang.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,
                                                          java.lang.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​(java.lang.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​(java.lang.Iterable<java.lang.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.v10.common.BusinessNameFilter business_name_filter = 2;
        Specified by:
        hasBusinessNameFilter in interface DynamicLocationSetFilterOrBuilder
        Returns:
        Whether the businessNameFilter field is set.
      • clearBusinessNameFilter

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

        public BusinessNameFilter.Builder getBusinessNameFilterBuilder()
         Business name filter.
         
        .google.ads.googleads.v10.common.BusinessNameFilter business_name_filter = 2;
      • 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>