Class HttpResponseHeaderMatchInput.Builder

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

    public static final class HttpResponseHeaderMatchInput.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<HttpResponseHeaderMatchInput.Builder>
    implements HttpResponseHeaderMatchInputOrBuilder
     Match input indicating that matching should be done on a specific response header.
     The resulting input string will be all headers for the given key joined by a comma,
     e.g. if the response contains two 'foo' headers with value 'bar' and 'baz', the input
     string will be 'bar,baz'.
     [#comment:TODO(snowp): Link to unified matching docs.]
     [#extension: envoy.matching.inputs.response_headers]
     
    Protobuf type envoy.type.matcher.v3.HttpResponseHeaderMatchInput
    • Field Detail

      • bitField0_

        private int bitField0_
      • headerName_

        private java.lang.Object headerName_
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

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

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

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

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

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

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

        public com.google.protobuf.ByteString getHeaderNameBytes()
         The response header to match on.
         
        string header_name = 1 [(.validate.rules) = { ... }
        Specified by:
        getHeaderNameBytes in interface HttpResponseHeaderMatchInputOrBuilder
        Returns:
        The bytes for headerName.
      • setHeaderName

        public HttpResponseHeaderMatchInput.Builder setHeaderName​(java.lang.String value)
         The response header to match on.
         
        string header_name = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The headerName to set.
        Returns:
        This builder for chaining.
      • clearHeaderName

        public HttpResponseHeaderMatchInput.Builder clearHeaderName()
         The response header to match on.
         
        string header_name = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setHeaderNameBytes

        public HttpResponseHeaderMatchInput.Builder setHeaderNameBytes​(com.google.protobuf.ByteString value)
         The response header to match on.
         
        string header_name = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for headerName to set.
        Returns:
        This builder for chaining.