java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Http1CodecConfig.Builder>
io.envoyproxy.envoy.extensions.filters.network.generic_proxy.codecs.http1.v3.Http1CodecConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Http1CodecConfigOrBuilder, Cloneable
Enclosing class:
Http1CodecConfig

public static final class Http1CodecConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Http1CodecConfig.Builder> implements Http1CodecConfigOrBuilder
 Configuration for HTTP codec. This HTTP1 codec is used to parse and serialize HTTP1 messages
 for the generic proxy filter.
 Any decoding error will result in the generic proxy closing the connection.

 .. note::
   This codec only supports HTTP1.1 messages and does not support HTTP1.0 messages. And it limits
   part of the HTTP1.1 features, such as upgrade, connect, etc.
   This codec is mainly designed for the features evaluation of the generic proxy filter. Please
   be cautious when using it in production.
 
Protobuf type envoy.extensions.filters.network.generic_proxy.codecs.http1.v3.Http1CodecConfig
  • Method Details

    • 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<Http1CodecConfig.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public Http1CodecConfig.Builder mergeFrom(Http1CodecConfig other)
    • isInitialized

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

      public Http1CodecConfig.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<Http1CodecConfig.Builder>
      Throws:
      IOException
    • hasSingleFrameMode

      public boolean hasSingleFrameMode()
       If true, the codec will parse and serialize HTTP1 messages in a single frame per message.
      
       A frame is a minimal unit of data that can be processed by the generic proxy. If false, the
       codec will parse and serialize HTTP1 messages in a streaming way. In this case, the codec
       will output multiple frames for a single HTTP1 message to the generic proxy.
       If true, the codec will buffer the entire HTTP1 message body before sending it to the generic
       proxy. This may have better performance in small message scenarios and is more friendly to
       handle the HTTP1 message body. This also may result in higher memory usage and latency if
       the message body is large.
      
       Default is true.
       
      .google.protobuf.BoolValue single_frame_mode = 1;
      Specified by:
      hasSingleFrameMode in interface Http1CodecConfigOrBuilder
      Returns:
      Whether the singleFrameMode field is set.
    • getSingleFrameMode

      public com.google.protobuf.BoolValue getSingleFrameMode()
       If true, the codec will parse and serialize HTTP1 messages in a single frame per message.
      
       A frame is a minimal unit of data that can be processed by the generic proxy. If false, the
       codec will parse and serialize HTTP1 messages in a streaming way. In this case, the codec
       will output multiple frames for a single HTTP1 message to the generic proxy.
       If true, the codec will buffer the entire HTTP1 message body before sending it to the generic
       proxy. This may have better performance in small message scenarios and is more friendly to
       handle the HTTP1 message body. This also may result in higher memory usage and latency if
       the message body is large.
      
       Default is true.
       
      .google.protobuf.BoolValue single_frame_mode = 1;
      Specified by:
      getSingleFrameMode in interface Http1CodecConfigOrBuilder
      Returns:
      The singleFrameMode.
    • setSingleFrameMode

      public Http1CodecConfig.Builder setSingleFrameMode(com.google.protobuf.BoolValue value)
       If true, the codec will parse and serialize HTTP1 messages in a single frame per message.
      
       A frame is a minimal unit of data that can be processed by the generic proxy. If false, the
       codec will parse and serialize HTTP1 messages in a streaming way. In this case, the codec
       will output multiple frames for a single HTTP1 message to the generic proxy.
       If true, the codec will buffer the entire HTTP1 message body before sending it to the generic
       proxy. This may have better performance in small message scenarios and is more friendly to
       handle the HTTP1 message body. This also may result in higher memory usage and latency if
       the message body is large.
      
       Default is true.
       
      .google.protobuf.BoolValue single_frame_mode = 1;
    • setSingleFrameMode

      public Http1CodecConfig.Builder setSingleFrameMode(com.google.protobuf.BoolValue.Builder builderForValue)
       If true, the codec will parse and serialize HTTP1 messages in a single frame per message.
      
       A frame is a minimal unit of data that can be processed by the generic proxy. If false, the
       codec will parse and serialize HTTP1 messages in a streaming way. In this case, the codec
       will output multiple frames for a single HTTP1 message to the generic proxy.
       If true, the codec will buffer the entire HTTP1 message body before sending it to the generic
       proxy. This may have better performance in small message scenarios and is more friendly to
       handle the HTTP1 message body. This also may result in higher memory usage and latency if
       the message body is large.
      
       Default is true.
       
      .google.protobuf.BoolValue single_frame_mode = 1;
    • mergeSingleFrameMode

      public Http1CodecConfig.Builder mergeSingleFrameMode(com.google.protobuf.BoolValue value)
       If true, the codec will parse and serialize HTTP1 messages in a single frame per message.
      
       A frame is a minimal unit of data that can be processed by the generic proxy. If false, the
       codec will parse and serialize HTTP1 messages in a streaming way. In this case, the codec
       will output multiple frames for a single HTTP1 message to the generic proxy.
       If true, the codec will buffer the entire HTTP1 message body before sending it to the generic
       proxy. This may have better performance in small message scenarios and is more friendly to
       handle the HTTP1 message body. This also may result in higher memory usage and latency if
       the message body is large.
      
       Default is true.
       
      .google.protobuf.BoolValue single_frame_mode = 1;
    • clearSingleFrameMode

      public Http1CodecConfig.Builder clearSingleFrameMode()
       If true, the codec will parse and serialize HTTP1 messages in a single frame per message.
      
       A frame is a minimal unit of data that can be processed by the generic proxy. If false, the
       codec will parse and serialize HTTP1 messages in a streaming way. In this case, the codec
       will output multiple frames for a single HTTP1 message to the generic proxy.
       If true, the codec will buffer the entire HTTP1 message body before sending it to the generic
       proxy. This may have better performance in small message scenarios and is more friendly to
       handle the HTTP1 message body. This also may result in higher memory usage and latency if
       the message body is large.
      
       Default is true.
       
      .google.protobuf.BoolValue single_frame_mode = 1;
    • getSingleFrameModeBuilder

      public com.google.protobuf.BoolValue.Builder getSingleFrameModeBuilder()
       If true, the codec will parse and serialize HTTP1 messages in a single frame per message.
      
       A frame is a minimal unit of data that can be processed by the generic proxy. If false, the
       codec will parse and serialize HTTP1 messages in a streaming way. In this case, the codec
       will output multiple frames for a single HTTP1 message to the generic proxy.
       If true, the codec will buffer the entire HTTP1 message body before sending it to the generic
       proxy. This may have better performance in small message scenarios and is more friendly to
       handle the HTTP1 message body. This also may result in higher memory usage and latency if
       the message body is large.
      
       Default is true.
       
      .google.protobuf.BoolValue single_frame_mode = 1;
    • getSingleFrameModeOrBuilder

      public com.google.protobuf.BoolValueOrBuilder getSingleFrameModeOrBuilder()
       If true, the codec will parse and serialize HTTP1 messages in a single frame per message.
      
       A frame is a minimal unit of data that can be processed by the generic proxy. If false, the
       codec will parse and serialize HTTP1 messages in a streaming way. In this case, the codec
       will output multiple frames for a single HTTP1 message to the generic proxy.
       If true, the codec will buffer the entire HTTP1 message body before sending it to the generic
       proxy. This may have better performance in small message scenarios and is more friendly to
       handle the HTTP1 message body. This also may result in higher memory usage and latency if
       the message body is large.
      
       Default is true.
       
      .google.protobuf.BoolValue single_frame_mode = 1;
      Specified by:
      getSingleFrameModeOrBuilder in interface Http1CodecConfigOrBuilder
    • hasMaxBufferSize

      public boolean hasMaxBufferSize()
       The maximum size of the HTTP1 message body in bytes. If not set, 8*1024*1024 (8MB) is used.
       This only makes sense when single_frame_mode is true.
       If the HTTP1 message body size exceeds this value, this will result in a decoding error
       and the generic proxy will close the connection.
       
      .google.protobuf.UInt32Value max_buffer_size = 2;
      Specified by:
      hasMaxBufferSize in interface Http1CodecConfigOrBuilder
      Returns:
      Whether the maxBufferSize field is set.
    • getMaxBufferSize

      public com.google.protobuf.UInt32Value getMaxBufferSize()
       The maximum size of the HTTP1 message body in bytes. If not set, 8*1024*1024 (8MB) is used.
       This only makes sense when single_frame_mode is true.
       If the HTTP1 message body size exceeds this value, this will result in a decoding error
       and the generic proxy will close the connection.
       
      .google.protobuf.UInt32Value max_buffer_size = 2;
      Specified by:
      getMaxBufferSize in interface Http1CodecConfigOrBuilder
      Returns:
      The maxBufferSize.
    • setMaxBufferSize

      public Http1CodecConfig.Builder setMaxBufferSize(com.google.protobuf.UInt32Value value)
       The maximum size of the HTTP1 message body in bytes. If not set, 8*1024*1024 (8MB) is used.
       This only makes sense when single_frame_mode is true.
       If the HTTP1 message body size exceeds this value, this will result in a decoding error
       and the generic proxy will close the connection.
       
      .google.protobuf.UInt32Value max_buffer_size = 2;
    • setMaxBufferSize

      public Http1CodecConfig.Builder setMaxBufferSize(com.google.protobuf.UInt32Value.Builder builderForValue)
       The maximum size of the HTTP1 message body in bytes. If not set, 8*1024*1024 (8MB) is used.
       This only makes sense when single_frame_mode is true.
       If the HTTP1 message body size exceeds this value, this will result in a decoding error
       and the generic proxy will close the connection.
       
      .google.protobuf.UInt32Value max_buffer_size = 2;
    • mergeMaxBufferSize

      public Http1CodecConfig.Builder mergeMaxBufferSize(com.google.protobuf.UInt32Value value)
       The maximum size of the HTTP1 message body in bytes. If not set, 8*1024*1024 (8MB) is used.
       This only makes sense when single_frame_mode is true.
       If the HTTP1 message body size exceeds this value, this will result in a decoding error
       and the generic proxy will close the connection.
       
      .google.protobuf.UInt32Value max_buffer_size = 2;
    • clearMaxBufferSize

      public Http1CodecConfig.Builder clearMaxBufferSize()
       The maximum size of the HTTP1 message body in bytes. If not set, 8*1024*1024 (8MB) is used.
       This only makes sense when single_frame_mode is true.
       If the HTTP1 message body size exceeds this value, this will result in a decoding error
       and the generic proxy will close the connection.
       
      .google.protobuf.UInt32Value max_buffer_size = 2;
    • getMaxBufferSizeBuilder

      public com.google.protobuf.UInt32Value.Builder getMaxBufferSizeBuilder()
       The maximum size of the HTTP1 message body in bytes. If not set, 8*1024*1024 (8MB) is used.
       This only makes sense when single_frame_mode is true.
       If the HTTP1 message body size exceeds this value, this will result in a decoding error
       and the generic proxy will close the connection.
       
      .google.protobuf.UInt32Value max_buffer_size = 2;
    • getMaxBufferSizeOrBuilder

      public com.google.protobuf.UInt32ValueOrBuilder getMaxBufferSizeOrBuilder()
       The maximum size of the HTTP1 message body in bytes. If not set, 8*1024*1024 (8MB) is used.
       This only makes sense when single_frame_mode is true.
       If the HTTP1 message body size exceeds this value, this will result in a decoding error
       and the generic proxy will close the connection.
       
      .google.protobuf.UInt32Value max_buffer_size = 2;
      Specified by:
      getMaxBufferSizeOrBuilder in interface Http1CodecConfigOrBuilder
    • setUnknownFields

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

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