Package io.envoyproxy.envoy.api.v2.core
Class HttpProtocolOptions
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.api.v2.core.HttpProtocolOptions
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HttpProtocolOptionsOrBuilder,Serializable
public final class HttpProtocolOptions extends com.google.protobuf.GeneratedMessageV3 implements HttpProtocolOptionsOrBuilder
[#next-free-field: 6]
Protobuf typeenvoy.api.v2.core.HttpProtocolOptions- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpProtocolOptions.Builder[#next-free-field: 6]static classHttpProtocolOptions.HeadersWithUnderscoresActionAction to take when Envoy receives client request with header names containing underscore characters.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intHEADERS_WITH_UNDERSCORES_ACTION_FIELD_NUMBERstatic intIDLE_TIMEOUT_FIELD_NUMBERstatic intMAX_CONNECTION_DURATION_FIELD_NUMBERstatic intMAX_HEADERS_COUNT_FIELD_NUMBERstatic intMAX_STREAM_DURATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static HttpProtocolOptionsgetDefaultInstance()HttpProtocolOptionsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()HttpProtocolOptions.HeadersWithUnderscoresActiongetHeadersWithUnderscoresAction()Action to take when a client request with a header name containing underscore characters is received.intgetHeadersWithUnderscoresActionValue()Action to take when a client request with a header name containing underscore characters is received.com.google.protobuf.DurationgetIdleTimeout()The idle timeout for connections.com.google.protobuf.DurationOrBuildergetIdleTimeoutOrBuilder()The idle timeout for connections.com.google.protobuf.DurationgetMaxConnectionDuration()The maximum duration of a connection.com.google.protobuf.DurationOrBuildergetMaxConnectionDurationOrBuilder()The maximum duration of a connection.com.google.protobuf.UInt32ValuegetMaxHeadersCount()The maximum number of headers.com.google.protobuf.UInt32ValueOrBuildergetMaxHeadersCountOrBuilder()The maximum number of headers.com.google.protobuf.DurationgetMaxStreamDuration()Total duration to keep alive an HTTP request/response stream.com.google.protobuf.DurationOrBuildergetMaxStreamDurationOrBuilder()Total duration to keep alive an HTTP request/response stream.com.google.protobuf.Parser<HttpProtocolOptions>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasIdleTimeout()The idle timeout for connections.booleanhasMaxConnectionDuration()The maximum duration of a connection.booleanhasMaxHeadersCount()The maximum number of headers.booleanhasMaxStreamDuration()Total duration to keep alive an HTTP request/response stream.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static HttpProtocolOptions.BuildernewBuilder()static HttpProtocolOptions.BuildernewBuilder(HttpProtocolOptions prototype)HttpProtocolOptions.BuildernewBuilderForType()protected HttpProtocolOptions.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static HttpProtocolOptionsparseDelimitedFrom(InputStream input)static HttpProtocolOptionsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpProtocolOptionsparseFrom(byte[] data)static HttpProtocolOptionsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpProtocolOptionsparseFrom(com.google.protobuf.ByteString data)static HttpProtocolOptionsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpProtocolOptionsparseFrom(com.google.protobuf.CodedInputStream input)static HttpProtocolOptionsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpProtocolOptionsparseFrom(InputStream input)static HttpProtocolOptionsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpProtocolOptionsparseFrom(ByteBuffer data)static HttpProtocolOptionsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<HttpProtocolOptions>parser()HttpProtocolOptions.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
IDLE_TIMEOUT_FIELD_NUMBER
public static final int IDLE_TIMEOUT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_CONNECTION_DURATION_FIELD_NUMBER
public static final int MAX_CONNECTION_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_HEADERS_COUNT_FIELD_NUMBER
public static final int MAX_HEADERS_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_STREAM_DURATION_FIELD_NUMBER
public static final int MAX_STREAM_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEADERS_WITH_UNDERSCORES_ACTION_FIELD_NUMBER
public static final int HEADERS_WITH_UNDERSCORES_ACTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
hasIdleTimeout
public boolean hasIdleTimeout()
The idle timeout for connections. The idle timeout is defined as the period in which there are no active requests. When the idle timeout is reached the connection will be closed. If the connection is an HTTP/2 downstream connection a drain sequence will occur prior to closing the connection, see :ref:`drain_timeout <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.drain_timeout>`. Note that request based timeouts mean that HTTP/2 PINGs will not keep the connection alive. If not specified, this defaults to 1 hour. To disable idle timeouts explicitly set this to 0. .. warning:: Disabling this timeout has a highly likelihood of yielding connection leaks due to lost TCP FIN packets, etc.
.google.protobuf.Duration idle_timeout = 1;- Specified by:
hasIdleTimeoutin interfaceHttpProtocolOptionsOrBuilder- Returns:
- Whether the idleTimeout field is set.
-
getIdleTimeout
public com.google.protobuf.Duration getIdleTimeout()
The idle timeout for connections. The idle timeout is defined as the period in which there are no active requests. When the idle timeout is reached the connection will be closed. If the connection is an HTTP/2 downstream connection a drain sequence will occur prior to closing the connection, see :ref:`drain_timeout <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.drain_timeout>`. Note that request based timeouts mean that HTTP/2 PINGs will not keep the connection alive. If not specified, this defaults to 1 hour. To disable idle timeouts explicitly set this to 0. .. warning:: Disabling this timeout has a highly likelihood of yielding connection leaks due to lost TCP FIN packets, etc.
.google.protobuf.Duration idle_timeout = 1;- Specified by:
getIdleTimeoutin interfaceHttpProtocolOptionsOrBuilder- Returns:
- The idleTimeout.
-
getIdleTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getIdleTimeoutOrBuilder()
The idle timeout for connections. The idle timeout is defined as the period in which there are no active requests. When the idle timeout is reached the connection will be closed. If the connection is an HTTP/2 downstream connection a drain sequence will occur prior to closing the connection, see :ref:`drain_timeout <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.drain_timeout>`. Note that request based timeouts mean that HTTP/2 PINGs will not keep the connection alive. If not specified, this defaults to 1 hour. To disable idle timeouts explicitly set this to 0. .. warning:: Disabling this timeout has a highly likelihood of yielding connection leaks due to lost TCP FIN packets, etc.
.google.protobuf.Duration idle_timeout = 1;- Specified by:
getIdleTimeoutOrBuilderin interfaceHttpProtocolOptionsOrBuilder
-
hasMaxConnectionDuration
public boolean hasMaxConnectionDuration()
The maximum duration of a connection. The duration is defined as a period since a connection was established. If not set, there is no max duration. When max_connection_duration is reached the connection will be closed. Drain sequence will occur prior to closing the connection if if's applicable. See :ref:`drain_timeout <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.drain_timeout>`. Note: not implemented for upstream connections.
.google.protobuf.Duration max_connection_duration = 3;- Specified by:
hasMaxConnectionDurationin interfaceHttpProtocolOptionsOrBuilder- Returns:
- Whether the maxConnectionDuration field is set.
-
getMaxConnectionDuration
public com.google.protobuf.Duration getMaxConnectionDuration()
The maximum duration of a connection. The duration is defined as a period since a connection was established. If not set, there is no max duration. When max_connection_duration is reached the connection will be closed. Drain sequence will occur prior to closing the connection if if's applicable. See :ref:`drain_timeout <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.drain_timeout>`. Note: not implemented for upstream connections.
.google.protobuf.Duration max_connection_duration = 3;- Specified by:
getMaxConnectionDurationin interfaceHttpProtocolOptionsOrBuilder- Returns:
- The maxConnectionDuration.
-
getMaxConnectionDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getMaxConnectionDurationOrBuilder()
The maximum duration of a connection. The duration is defined as a period since a connection was established. If not set, there is no max duration. When max_connection_duration is reached the connection will be closed. Drain sequence will occur prior to closing the connection if if's applicable. See :ref:`drain_timeout <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.drain_timeout>`. Note: not implemented for upstream connections.
.google.protobuf.Duration max_connection_duration = 3;- Specified by:
getMaxConnectionDurationOrBuilderin interfaceHttpProtocolOptionsOrBuilder
-
hasMaxHeadersCount
public boolean hasMaxHeadersCount()
The maximum number of headers. If unconfigured, the default maximum number of request headers allowed is 100. Requests that exceed this limit will receive a 431 response for HTTP/1.x and cause a stream reset for HTTP/2.
.google.protobuf.UInt32Value max_headers_count = 2 [(.validate.rules) = { ... }- Specified by:
hasMaxHeadersCountin interfaceHttpProtocolOptionsOrBuilder- Returns:
- Whether the maxHeadersCount field is set.
-
getMaxHeadersCount
public com.google.protobuf.UInt32Value getMaxHeadersCount()
The maximum number of headers. If unconfigured, the default maximum number of request headers allowed is 100. Requests that exceed this limit will receive a 431 response for HTTP/1.x and cause a stream reset for HTTP/2.
.google.protobuf.UInt32Value max_headers_count = 2 [(.validate.rules) = { ... }- Specified by:
getMaxHeadersCountin interfaceHttpProtocolOptionsOrBuilder- Returns:
- The maxHeadersCount.
-
getMaxHeadersCountOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxHeadersCountOrBuilder()
The maximum number of headers. If unconfigured, the default maximum number of request headers allowed is 100. Requests that exceed this limit will receive a 431 response for HTTP/1.x and cause a stream reset for HTTP/2.
.google.protobuf.UInt32Value max_headers_count = 2 [(.validate.rules) = { ... }- Specified by:
getMaxHeadersCountOrBuilderin interfaceHttpProtocolOptionsOrBuilder
-
hasMaxStreamDuration
public boolean hasMaxStreamDuration()
Total duration to keep alive an HTTP request/response stream. If the time limit is reached the stream will be reset independent of any other timeouts. If not specified, this value is not set.
.google.protobuf.Duration max_stream_duration = 4;- Specified by:
hasMaxStreamDurationin interfaceHttpProtocolOptionsOrBuilder- Returns:
- Whether the maxStreamDuration field is set.
-
getMaxStreamDuration
public com.google.protobuf.Duration getMaxStreamDuration()
Total duration to keep alive an HTTP request/response stream. If the time limit is reached the stream will be reset independent of any other timeouts. If not specified, this value is not set.
.google.protobuf.Duration max_stream_duration = 4;- Specified by:
getMaxStreamDurationin interfaceHttpProtocolOptionsOrBuilder- Returns:
- The maxStreamDuration.
-
getMaxStreamDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getMaxStreamDurationOrBuilder()
Total duration to keep alive an HTTP request/response stream. If the time limit is reached the stream will be reset independent of any other timeouts. If not specified, this value is not set.
.google.protobuf.Duration max_stream_duration = 4;- Specified by:
getMaxStreamDurationOrBuilderin interfaceHttpProtocolOptionsOrBuilder
-
getHeadersWithUnderscoresActionValue
public int getHeadersWithUnderscoresActionValue()
Action to take when a client request with a header name containing underscore characters is received. If this setting is not specified, the value defaults to ALLOW. Note: upstream responses are not affected by this setting.
.envoy.api.v2.core.HttpProtocolOptions.HeadersWithUnderscoresAction headers_with_underscores_action = 5;- Specified by:
getHeadersWithUnderscoresActionValuein interfaceHttpProtocolOptionsOrBuilder- Returns:
- The enum numeric value on the wire for headersWithUnderscoresAction.
-
getHeadersWithUnderscoresAction
public HttpProtocolOptions.HeadersWithUnderscoresAction getHeadersWithUnderscoresAction()
Action to take when a client request with a header name containing underscore characters is received. If this setting is not specified, the value defaults to ALLOW. Note: upstream responses are not affected by this setting.
.envoy.api.v2.core.HttpProtocolOptions.HeadersWithUnderscoresAction headers_with_underscores_action = 5;- Specified by:
getHeadersWithUnderscoresActionin interfaceHttpProtocolOptionsOrBuilder- Returns:
- The headersWithUnderscoresAction.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HttpProtocolOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpProtocolOptions parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpProtocolOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpProtocolOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpProtocolOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpProtocolOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpProtocolOptions parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HttpProtocolOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HttpProtocolOptions parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HttpProtocolOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static HttpProtocolOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HttpProtocolOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public HttpProtocolOptions.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static HttpProtocolOptions.Builder newBuilder()
-
newBuilder
public static HttpProtocolOptions.Builder newBuilder(HttpProtocolOptions prototype)
-
toBuilder
public HttpProtocolOptions.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HttpProtocolOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static HttpProtocolOptions getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HttpProtocolOptions> parser()
-
getParserForType
public com.google.protobuf.Parser<HttpProtocolOptions> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public HttpProtocolOptions getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-