Class HttpResponseTrailerMatchInput.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HttpResponseTrailerMatchInput.Builder>
com.google.protobuf.GeneratedMessage.Builder<HttpResponseTrailerMatchInput.Builder>
io.envoyproxy.envoy.type.matcher.v3.HttpResponseTrailerMatchInput.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HttpResponseTrailerMatchInputOrBuilder, Cloneable
Enclosing class:
HttpResponseTrailerMatchInput

public static final class HttpResponseTrailerMatchInput.Builder extends com.google.protobuf.GeneratedMessage.Builder<HttpResponseTrailerMatchInput.Builder> implements HttpResponseTrailerMatchInputOrBuilder
 Match input indicates that matching should be done on a specific response trailer.
 The resulting input string will be all headers for the given key joined by a comma,
 e.g. if the request 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_trailers]
 
Protobuf type envoy.type.matcher.v3.HttpResponseTrailerMatchInput
  • Field Details

    • bitField0_

      private int bitField0_
    • headerName_

      private Object headerName_
  • Constructor Details

    • Builder

      private Builder()
    • Builder

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

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      private void buildPartial0(HttpResponseTrailerMatchInput result)
    • mergeFrom

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

    • isInitialized

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

      public HttpResponseTrailerMatchInput.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<HttpResponseTrailerMatchInput.Builder>
      Throws:
      IOException
    • getHeaderName

      public String getHeaderName()
       The response trailer to match on.
       
      string header_name = 1 [(.validate.rules) = { ... }
      Specified by:
      getHeaderName in interface HttpResponseTrailerMatchInputOrBuilder
      Returns:
      The headerName.
    • getHeaderNameBytes

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

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

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

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