Class ChainFilter.Builder

  • All Implemented Interfaces:
    ChainFilterOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    ChainFilter

    public static final class ChainFilter.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ChainFilter.Builder>
    implements ChainFilterOrBuilder
     One chain level filter on location in a feed item set.
     The filtering logic among all the fields is AND.
     
    Protobuf type google.ads.googleads.v15.common.ChainFilter
    • 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<ChainFilter.Builder>
      • clear

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

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

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

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

        public ChainFilter.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<ChainFilter.Builder>
      • setField

        public ChainFilter.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<ChainFilter.Builder>
      • clearField

        public ChainFilter.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<ChainFilter.Builder>
      • clearOneof

        public ChainFilter.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<ChainFilter.Builder>
      • setRepeatedField

        public ChainFilter.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<ChainFilter.Builder>
      • addRepeatedField

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

        public ChainFilter.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<ChainFilter.Builder>
      • isInitialized

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

        public ChainFilter.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<ChainFilter.Builder>
        Throws:
        java.io.IOException
      • getChainId

        public long getChainId()
         Required. Used to filter chain locations by chain id. Only chain locations
         that belong to the specified chain will be in the asset set.
         
        int64 chain_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getChainId in interface ChainFilterOrBuilder
        Returns:
        The chainId.
      • setChainId

        public ChainFilter.Builder setChainId​(long value)
         Required. Used to filter chain locations by chain id. Only chain locations
         that belong to the specified chain will be in the asset set.
         
        int64 chain_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The chainId to set.
        Returns:
        This builder for chaining.
      • clearChainId

        public ChainFilter.Builder clearChainId()
         Required. Used to filter chain locations by chain id. Only chain locations
         that belong to the specified chain will be in the asset set.
         
        int64 chain_id = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getLocationAttributesList

        public com.google.protobuf.ProtocolStringList getLocationAttributesList()
         Used to filter chain locations by location attributes.
         Only chain locations that belong to all of the specified attribute(s) will
         be in the asset set. If this field is empty, it means no filtering on this
         field.
         
        repeated string location_attributes = 2;
        Specified by:
        getLocationAttributesList in interface ChainFilterOrBuilder
        Returns:
        A list containing the locationAttributes.
      • getLocationAttributesCount

        public int getLocationAttributesCount()
         Used to filter chain locations by location attributes.
         Only chain locations that belong to all of the specified attribute(s) will
         be in the asset set. If this field is empty, it means no filtering on this
         field.
         
        repeated string location_attributes = 2;
        Specified by:
        getLocationAttributesCount in interface ChainFilterOrBuilder
        Returns:
        The count of locationAttributes.
      • getLocationAttributes

        public java.lang.String getLocationAttributes​(int index)
         Used to filter chain locations by location attributes.
         Only chain locations that belong to all of the specified attribute(s) will
         be in the asset set. If this field is empty, it means no filtering on this
         field.
         
        repeated string location_attributes = 2;
        Specified by:
        getLocationAttributes in interface ChainFilterOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The locationAttributes at the given index.
      • getLocationAttributesBytes

        public com.google.protobuf.ByteString getLocationAttributesBytes​(int index)
         Used to filter chain locations by location attributes.
         Only chain locations that belong to all of the specified attribute(s) will
         be in the asset set. If this field is empty, it means no filtering on this
         field.
         
        repeated string location_attributes = 2;
        Specified by:
        getLocationAttributesBytes in interface ChainFilterOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the locationAttributes at the given index.
      • setLocationAttributes

        public ChainFilter.Builder setLocationAttributes​(int index,
                                                         java.lang.String value)
         Used to filter chain locations by location attributes.
         Only chain locations that belong to all of the specified attribute(s) will
         be in the asset set. If this field is empty, it means no filtering on this
         field.
         
        repeated string location_attributes = 2;
        Parameters:
        index - The index to set the value at.
        value - The locationAttributes to set.
        Returns:
        This builder for chaining.
      • addLocationAttributes

        public ChainFilter.Builder addLocationAttributes​(java.lang.String value)
         Used to filter chain locations by location attributes.
         Only chain locations that belong to all of the specified attribute(s) will
         be in the asset set. If this field is empty, it means no filtering on this
         field.
         
        repeated string location_attributes = 2;
        Parameters:
        value - The locationAttributes to add.
        Returns:
        This builder for chaining.
      • addAllLocationAttributes

        public ChainFilter.Builder addAllLocationAttributes​(java.lang.Iterable<java.lang.String> values)
         Used to filter chain locations by location attributes.
         Only chain locations that belong to all of the specified attribute(s) will
         be in the asset set. If this field is empty, it means no filtering on this
         field.
         
        repeated string location_attributes = 2;
        Parameters:
        values - The locationAttributes to add.
        Returns:
        This builder for chaining.
      • clearLocationAttributes

        public ChainFilter.Builder clearLocationAttributes()
         Used to filter chain locations by location attributes.
         Only chain locations that belong to all of the specified attribute(s) will
         be in the asset set. If this field is empty, it means no filtering on this
         field.
         
        repeated string location_attributes = 2;
        Returns:
        This builder for chaining.
      • addLocationAttributesBytes

        public ChainFilter.Builder addLocationAttributesBytes​(com.google.protobuf.ByteString value)
         Used to filter chain locations by location attributes.
         Only chain locations that belong to all of the specified attribute(s) will
         be in the asset set. If this field is empty, it means no filtering on this
         field.
         
        repeated string location_attributes = 2;
        Parameters:
        value - The bytes of the locationAttributes to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ChainFilter.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<ChainFilter.Builder>
      • mergeUnknownFields

        public final ChainFilter.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<ChainFilter.Builder>