Class HttpConnectionManager.UpgradeConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.UpgradeConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HttpConnectionManager.UpgradeConfigOrBuilder,Serializable
- Enclosing class:
- HttpConnectionManager
public static final class HttpConnectionManager.UpgradeConfig extends com.google.protobuf.GeneratedMessageV3 implements HttpConnectionManager.UpgradeConfigOrBuilder
The configuration for HTTP upgrades. For each upgrade type desired, an UpgradeConfig must be added. .. warning:: The current implementation of upgrade headers does not handle multi-valued upgrade headers. Support for multi-valued headers may be added in the future if needed. .. warning:: The current implementation of upgrade headers does not work with HTTP/2 upstreams.Protobuf typeenvoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.UpgradeConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpConnectionManager.UpgradeConfig.BuilderThe configuration for HTTP upgrades.-
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 intENABLED_FIELD_NUMBERstatic intFILTERS_FIELD_NUMBERstatic intUPGRADE_TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static HttpConnectionManager.UpgradeConfiggetDefaultInstance()HttpConnectionManager.UpgradeConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.BoolValuegetEnabled()Determines if upgrades are enabled or disabled by default.com.google.protobuf.BoolValueOrBuildergetEnabledOrBuilder()Determines if upgrades are enabled or disabled by default.HttpFiltergetFilters(int index)If present, this represents the filter chain which will be created for this type of upgrade.intgetFiltersCount()If present, this represents the filter chain which will be created for this type of upgrade.List<HttpFilter>getFiltersList()If present, this represents the filter chain which will be created for this type of upgrade.HttpFilterOrBuildergetFiltersOrBuilder(int index)If present, this represents the filter chain which will be created for this type of upgrade.List<? extends HttpFilterOrBuilder>getFiltersOrBuilderList()If present, this represents the filter chain which will be created for this type of upgrade.com.google.protobuf.Parser<HttpConnectionManager.UpgradeConfig>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()StringgetUpgradeType()The case-insensitive name of this upgrade, e.g.com.google.protobuf.ByteStringgetUpgradeTypeBytes()The case-insensitive name of this upgrade, e.g.booleanhasEnabled()Determines if upgrades are enabled or disabled by default.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static HttpConnectionManager.UpgradeConfig.BuildernewBuilder()static HttpConnectionManager.UpgradeConfig.BuildernewBuilder(HttpConnectionManager.UpgradeConfig prototype)HttpConnectionManager.UpgradeConfig.BuildernewBuilderForType()protected HttpConnectionManager.UpgradeConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static HttpConnectionManager.UpgradeConfigparseDelimitedFrom(InputStream input)static HttpConnectionManager.UpgradeConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpConnectionManager.UpgradeConfigparseFrom(byte[] data)static HttpConnectionManager.UpgradeConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpConnectionManager.UpgradeConfigparseFrom(com.google.protobuf.ByteString data)static HttpConnectionManager.UpgradeConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpConnectionManager.UpgradeConfigparseFrom(com.google.protobuf.CodedInputStream input)static HttpConnectionManager.UpgradeConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpConnectionManager.UpgradeConfigparseFrom(InputStream input)static HttpConnectionManager.UpgradeConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HttpConnectionManager.UpgradeConfigparseFrom(ByteBuffer data)static HttpConnectionManager.UpgradeConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<HttpConnectionManager.UpgradeConfig>parser()HttpConnectionManager.UpgradeConfig.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
-
UPGRADE_TYPE_FIELD_NUMBER
public static final int UPGRADE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FILTERS_FIELD_NUMBER
public static final int FILTERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ENABLED_FIELD_NUMBER
public static final int ENABLED_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
-
getUpgradeType
public String getUpgradeType()
The case-insensitive name of this upgrade, e.g. "websocket". For each upgrade type present in upgrade_configs, requests with Upgrade: [upgrade_type] will be proxied upstream.
string upgrade_type = 1;- Specified by:
getUpgradeTypein interfaceHttpConnectionManager.UpgradeConfigOrBuilder- Returns:
- The upgradeType.
-
getUpgradeTypeBytes
public com.google.protobuf.ByteString getUpgradeTypeBytes()
The case-insensitive name of this upgrade, e.g. "websocket". For each upgrade type present in upgrade_configs, requests with Upgrade: [upgrade_type] will be proxied upstream.
string upgrade_type = 1;- Specified by:
getUpgradeTypeBytesin interfaceHttpConnectionManager.UpgradeConfigOrBuilder- Returns:
- The bytes for upgradeType.
-
getFiltersList
public List<HttpFilter> getFiltersList()
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2;- Specified by:
getFiltersListin interfaceHttpConnectionManager.UpgradeConfigOrBuilder
-
getFiltersOrBuilderList
public List<? extends HttpFilterOrBuilder> getFiltersOrBuilderList()
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2;- Specified by:
getFiltersOrBuilderListin interfaceHttpConnectionManager.UpgradeConfigOrBuilder
-
getFiltersCount
public int getFiltersCount()
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2;- Specified by:
getFiltersCountin interfaceHttpConnectionManager.UpgradeConfigOrBuilder
-
getFilters
public HttpFilter getFilters(int index)
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2;- Specified by:
getFiltersin interfaceHttpConnectionManager.UpgradeConfigOrBuilder
-
getFiltersOrBuilder
public HttpFilterOrBuilder getFiltersOrBuilder(int index)
If present, this represents the filter chain which will be created for this type of upgrade. If no filters are present, the filter chain for HTTP connections will be used for this upgrade type.
repeated .envoy.extensions.filters.network.http_connection_manager.v3.HttpFilter filters = 2;- Specified by:
getFiltersOrBuilderin interfaceHttpConnectionManager.UpgradeConfigOrBuilder
-
hasEnabled
public boolean hasEnabled()
Determines if upgrades are enabled or disabled by default. Defaults to true. This can be overridden on a per-route basis with :ref:`cluster <envoy_v3_api_field_config.route.v3.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3;- Specified by:
hasEnabledin interfaceHttpConnectionManager.UpgradeConfigOrBuilder- Returns:
- Whether the enabled field is set.
-
getEnabled
public com.google.protobuf.BoolValue getEnabled()
Determines if upgrades are enabled or disabled by default. Defaults to true. This can be overridden on a per-route basis with :ref:`cluster <envoy_v3_api_field_config.route.v3.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3;- Specified by:
getEnabledin interfaceHttpConnectionManager.UpgradeConfigOrBuilder- Returns:
- The enabled.
-
getEnabledOrBuilder
public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder()
Determines if upgrades are enabled or disabled by default. Defaults to true. This can be overridden on a per-route basis with :ref:`cluster <envoy_v3_api_field_config.route.v3.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3;- Specified by:
getEnabledOrBuilderin interfaceHttpConnectionManager.UpgradeConfigOrBuilder
-
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 HttpConnectionManager.UpgradeConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpConnectionManager.UpgradeConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpConnectionManager.UpgradeConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpConnectionManager.UpgradeConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpConnectionManager.UpgradeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpConnectionManager.UpgradeConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpConnectionManager.UpgradeConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HttpConnectionManager.UpgradeConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HttpConnectionManager.UpgradeConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HttpConnectionManager.UpgradeConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static HttpConnectionManager.UpgradeConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HttpConnectionManager.UpgradeConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public HttpConnectionManager.UpgradeConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static HttpConnectionManager.UpgradeConfig.Builder newBuilder()
-
newBuilder
public static HttpConnectionManager.UpgradeConfig.Builder newBuilder(HttpConnectionManager.UpgradeConfig prototype)
-
toBuilder
public HttpConnectionManager.UpgradeConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HttpConnectionManager.UpgradeConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static HttpConnectionManager.UpgradeConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HttpConnectionManager.UpgradeConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<HttpConnectionManager.UpgradeConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public HttpConnectionManager.UpgradeConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-