Class Http1CodecConfig.Builder
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The maximum size of the HTTP1 message body in bytes.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) If true, the codec will parse and serialize HTTP1 messages in a single frame per message.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.UInt32ValueThe maximum size of the HTTP1 message body in bytes.com.google.protobuf.UInt32Value.BuilderThe maximum size of the HTTP1 message body in bytes.com.google.protobuf.UInt32ValueOrBuilderThe maximum size of the HTTP1 message body in bytes.com.google.protobuf.BoolValueIf true, the codec will parse and serialize HTTP1 messages in a single frame per message.com.google.protobuf.BoolValue.BuilderIf true, the codec will parse and serialize HTTP1 messages in a single frame per message.com.google.protobuf.BoolValueOrBuilderIf true, the codec will parse and serialize HTTP1 messages in a single frame per message.booleanThe maximum size of the HTTP1 message body in bytes.booleanIf true, the codec will parse and serialize HTTP1 messages in a single frame per message.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(Http1CodecConfig other) mergeMaxBufferSize(com.google.protobuf.UInt32Value value) The maximum size of the HTTP1 message body in bytes.mergeSingleFrameMode(com.google.protobuf.BoolValue value) If true, the codec will parse and serialize HTTP1 messages in a single frame per message.final Http1CodecConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setMaxBufferSize(com.google.protobuf.UInt32Value value) The maximum size of the HTTP1 message body in bytes.setMaxBufferSize(com.google.protobuf.UInt32Value.Builder builderForValue) The maximum size of the HTTP1 message body in bytes.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setSingleFrameMode(com.google.protobuf.BoolValue value) If true, the codec will parse and serialize HTTP1 messages in a single frame per message.setSingleFrameMode(com.google.protobuf.BoolValue.Builder builderForValue) If true, the codec will parse and serialize HTTP1 messages in a single frame per message.final Http1CodecConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Http1CodecConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Http1CodecConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Http1CodecConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Http1CodecConfig.Builder>
-
setField
public Http1CodecConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Http1CodecConfig.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Http1CodecConfig.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Http1CodecConfig.Builder>
-
setRepeatedField
public Http1CodecConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Http1CodecConfig.Builder>
-
addRepeatedField
public Http1CodecConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Http1CodecConfig.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Http1CodecConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
hasSingleFrameModein interfaceHttp1CodecConfigOrBuilder- 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:
getSingleFrameModein interfaceHttp1CodecConfigOrBuilder- Returns:
- The singleFrameMode.
-
setSingleFrameMode
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
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
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:
getSingleFrameModeOrBuilderin interfaceHttp1CodecConfigOrBuilder
-
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:
hasMaxBufferSizein interfaceHttp1CodecConfigOrBuilder- 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:
getMaxBufferSizein interfaceHttp1CodecConfigOrBuilder- Returns:
- The maxBufferSize.
-
setMaxBufferSize
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
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
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:
getMaxBufferSizeOrBuilderin interfaceHttp1CodecConfigOrBuilder
-
setUnknownFields
public final Http1CodecConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Http1CodecConfig.Builder>
-
mergeUnknownFields
public final Http1CodecConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Http1CodecConfig.Builder>
-