Class ResponseFlagFilter.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ResponseFlagFilterOrBuilder, Cloneable
    Enclosing class:
    ResponseFlagFilter

    public static final class ResponseFlagFilter.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ResponseFlagFilter.Builder>
    implements ResponseFlagFilterOrBuilder
     Filters requests that received responses with an Envoy response flag set.
     A list of the response flags can be found
     in the access log formatter
     :ref:`documentation<config_access_log_format_response_flags>`.
     
    Protobuf type envoy.config.accesslog.v3.ResponseFlagFilter
    • 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<ResponseFlagFilter.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

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

        public ResponseFlagFilter.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<ResponseFlagFilter.Builder>
        Throws:
        IOException
      • getFlagsList

        public com.google.protobuf.ProtocolStringList getFlagsList()
         Only responses with the any of the flags listed in this field will be
         logged. This field is optional. If it is not specified, then any response
         flag will pass the filter check.
         
        repeated string flags = 1 [(.validate.rules) = { ... }
        Specified by:
        getFlagsList in interface ResponseFlagFilterOrBuilder
        Returns:
        A list containing the flags.
      • getFlagsCount

        public int getFlagsCount()
         Only responses with the any of the flags listed in this field will be
         logged. This field is optional. If it is not specified, then any response
         flag will pass the filter check.
         
        repeated string flags = 1 [(.validate.rules) = { ... }
        Specified by:
        getFlagsCount in interface ResponseFlagFilterOrBuilder
        Returns:
        The count of flags.
      • getFlags

        public String getFlags​(int index)
         Only responses with the any of the flags listed in this field will be
         logged. This field is optional. If it is not specified, then any response
         flag will pass the filter check.
         
        repeated string flags = 1 [(.validate.rules) = { ... }
        Specified by:
        getFlags in interface ResponseFlagFilterOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The flags at the given index.
      • getFlagsBytes

        public com.google.protobuf.ByteString getFlagsBytes​(int index)
         Only responses with the any of the flags listed in this field will be
         logged. This field is optional. If it is not specified, then any response
         flag will pass the filter check.
         
        repeated string flags = 1 [(.validate.rules) = { ... }
        Specified by:
        getFlagsBytes in interface ResponseFlagFilterOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the flags at the given index.
      • setFlags

        public ResponseFlagFilter.Builder setFlags​(int index,
                                                   String value)
         Only responses with the any of the flags listed in this field will be
         logged. This field is optional. If it is not specified, then any response
         flag will pass the filter check.
         
        repeated string flags = 1 [(.validate.rules) = { ... }
        Parameters:
        index - The index to set the value at.
        value - The flags to set.
        Returns:
        This builder for chaining.
      • addFlags

        public ResponseFlagFilter.Builder addFlags​(String value)
         Only responses with the any of the flags listed in this field will be
         logged. This field is optional. If it is not specified, then any response
         flag will pass the filter check.
         
        repeated string flags = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The flags to add.
        Returns:
        This builder for chaining.
      • addAllFlags

        public ResponseFlagFilter.Builder addAllFlags​(Iterable<String> values)
         Only responses with the any of the flags listed in this field will be
         logged. This field is optional. If it is not specified, then any response
         flag will pass the filter check.
         
        repeated string flags = 1 [(.validate.rules) = { ... }
        Parameters:
        values - The flags to add.
        Returns:
        This builder for chaining.
      • clearFlags

        public ResponseFlagFilter.Builder clearFlags()
         Only responses with the any of the flags listed in this field will be
         logged. This field is optional. If it is not specified, then any response
         flag will pass the filter check.
         
        repeated string flags = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • addFlagsBytes

        public ResponseFlagFilter.Builder addFlagsBytes​(com.google.protobuf.ByteString value)
         Only responses with the any of the flags listed in this field will be
         logged. This field is optional. If it is not specified, then any response
         flag will pass the filter check.
         
        repeated string flags = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes of the flags to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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