Class HeaderFilter.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HeaderFilter.Builder>
com.google.protobuf.GeneratedMessage.Builder<HeaderFilter.Builder>
io.envoyproxy.envoy.config.accesslog.v3.HeaderFilter.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, HeaderFilterOrBuilder, Cloneable
Enclosing class:
HeaderFilter

public static final class HeaderFilter.Builder extends com.google.protobuf.GeneratedMessage.Builder<HeaderFilter.Builder> implements HeaderFilterOrBuilder
 Filters requests based on the presence or value of a request header.
 
Protobuf type envoy.config.accesslog.v3.HeaderFilter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
     
     
    private com.google.protobuf.SingleFieldBuilder<HeaderMatcher,HeaderMatcher.Builder,HeaderMatcherOrBuilder>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
    private
    Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    private void
     
     
    Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
    Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
    private com.google.protobuf.SingleFieldBuilder<HeaderMatcher,HeaderMatcher.Builder,HeaderMatcherOrBuilder>
    Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
    Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
    boolean
    Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    private void
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
    Only requests with a header which matches the specified HeaderMatcher will pass the filter check.
    Only requests with a header which matches the specified HeaderMatcher will pass the filter check.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • 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<HeaderFilter.Builder>
    • maybeForceBuilderInitialization

      private void maybeForceBuilderInitialization()
    • clear

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

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

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

      public HeaderFilter 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(HeaderFilter result)
    • mergeFrom

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

      public HeaderFilter.Builder mergeFrom(HeaderFilter other)
    • isInitialized

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

      public HeaderFilter.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<HeaderFilter.Builder>
      Throws:
      IOException
    • hasHeader

      public boolean hasHeader()
       Only requests with a header which matches the specified HeaderMatcher will
       pass the filter check.
       
      .envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
      Specified by:
      hasHeader in interface HeaderFilterOrBuilder
      Returns:
      Whether the header field is set.
    • getHeader

      public HeaderMatcher getHeader()
       Only requests with a header which matches the specified HeaderMatcher will
       pass the filter check.
       
      .envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
      Specified by:
      getHeader in interface HeaderFilterOrBuilder
      Returns:
      The header.
    • setHeader

      public HeaderFilter.Builder setHeader(HeaderMatcher value)
       Only requests with a header which matches the specified HeaderMatcher will
       pass the filter check.
       
      .envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
    • setHeader

      public HeaderFilter.Builder setHeader(HeaderMatcher.Builder builderForValue)
       Only requests with a header which matches the specified HeaderMatcher will
       pass the filter check.
       
      .envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
    • mergeHeader

      public HeaderFilter.Builder mergeHeader(HeaderMatcher value)
       Only requests with a header which matches the specified HeaderMatcher will
       pass the filter check.
       
      .envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
    • clearHeader

      public HeaderFilter.Builder clearHeader()
       Only requests with a header which matches the specified HeaderMatcher will
       pass the filter check.
       
      .envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
    • getHeaderBuilder

      public HeaderMatcher.Builder getHeaderBuilder()
       Only requests with a header which matches the specified HeaderMatcher will
       pass the filter check.
       
      .envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
    • getHeaderOrBuilder

      public HeaderMatcherOrBuilder getHeaderOrBuilder()
       Only requests with a header which matches the specified HeaderMatcher will
       pass the filter check.
       
      .envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }
      Specified by:
      getHeaderOrBuilder in interface HeaderFilterOrBuilder
    • getHeaderFieldBuilder

      private com.google.protobuf.SingleFieldBuilder<HeaderMatcher,HeaderMatcher.Builder,HeaderMatcherOrBuilder> getHeaderFieldBuilder()
       Only requests with a header which matches the specified HeaderMatcher will
       pass the filter check.
       
      .envoy.config.route.v3.HeaderMatcher header = 1 [(.validate.rules) = { ... }