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 type envoy.extensions.filters.network.http_connection_manager.v4alpha.HttpConnectionManager.UpgradeConfig| Modifier and Type | Class and Description |
|---|---|
static class |
HttpConnectionManager.UpgradeConfig.Builder
The configuration for HTTP upgrades.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
ENABLED_FIELD_NUMBER |
static int |
FILTERS_FIELD_NUMBER |
static int |
UPGRADE_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static HttpConnectionManager.UpgradeConfig |
getDefaultInstance() |
HttpConnectionManager.UpgradeConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.BoolValue |
getEnabled()
Determines if upgrades are enabled or disabled by default.
|
com.google.protobuf.BoolValueOrBuilder |
getEnabledOrBuilder()
Determines if upgrades are enabled or disabled by default.
|
HttpFilter |
getFilters(int index)
If present, this represents the filter chain which will be created for
this type of upgrade.
|
int |
getFiltersCount()
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.
|
HttpFilterOrBuilder |
getFiltersOrBuilder(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() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getUpgradeType()
The case-insensitive name of this upgrade, e.g.
|
com.google.protobuf.ByteString |
getUpgradeTypeBytes()
The case-insensitive name of this upgrade, e.g.
|
boolean |
hasEnabled()
Determines if upgrades are enabled or disabled by default.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static HttpConnectionManager.UpgradeConfig.Builder |
newBuilder() |
static HttpConnectionManager.UpgradeConfig.Builder |
newBuilder(HttpConnectionManager.UpgradeConfig prototype) |
HttpConnectionManager.UpgradeConfig.Builder |
newBuilderForType() |
protected HttpConnectionManager.UpgradeConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static HttpConnectionManager.UpgradeConfig |
parseDelimitedFrom(InputStream input) |
static HttpConnectionManager.UpgradeConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpConnectionManager.UpgradeConfig |
parseFrom(byte[] data) |
static HttpConnectionManager.UpgradeConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpConnectionManager.UpgradeConfig |
parseFrom(ByteBuffer data) |
static HttpConnectionManager.UpgradeConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpConnectionManager.UpgradeConfig |
parseFrom(com.google.protobuf.ByteString data) |
static HttpConnectionManager.UpgradeConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpConnectionManager.UpgradeConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static HttpConnectionManager.UpgradeConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpConnectionManager.UpgradeConfig |
parseFrom(InputStream input) |
static HttpConnectionManager.UpgradeConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<HttpConnectionManager.UpgradeConfig> |
parser() |
HttpConnectionManager.UpgradeConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int UPGRADE_TYPE_FIELD_NUMBER
public static final int FILTERS_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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;getUpgradeType in interface HttpConnectionManager.UpgradeConfigOrBuilderpublic 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;getUpgradeTypeBytes in interface HttpConnectionManager.UpgradeConfigOrBuilderpublic 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.v4alpha.HttpFilter filters = 2;getFiltersList in interface HttpConnectionManager.UpgradeConfigOrBuilderpublic 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.v4alpha.HttpFilter filters = 2;getFiltersOrBuilderList in interface HttpConnectionManager.UpgradeConfigOrBuilderpublic 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.v4alpha.HttpFilter filters = 2;getFiltersCount in interface HttpConnectionManager.UpgradeConfigOrBuilderpublic 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.v4alpha.HttpFilter filters = 2;getFilters in interface HttpConnectionManager.UpgradeConfigOrBuilderpublic 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.v4alpha.HttpFilter filters = 2;getFiltersOrBuilder in interface HttpConnectionManager.UpgradeConfigOrBuilderpublic 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_api_field_config.route.v4alpha.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3;hasEnabled in interface HttpConnectionManager.UpgradeConfigOrBuilderpublic 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_api_field_config.route.v4alpha.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3;getEnabled in interface HttpConnectionManager.UpgradeConfigOrBuilderpublic 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_api_field_config.route.v4alpha.RouteAction.upgrade_configs>` as documented in the :ref:`upgrade documentation <arch_overview_upgrades>`.
.google.protobuf.BoolValue enabled = 3;getEnabledOrBuilder in interface HttpConnectionManager.UpgradeConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static HttpConnectionManager.UpgradeConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpConnectionManager.UpgradeConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpConnectionManager.UpgradeConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpConnectionManager.UpgradeConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpConnectionManager.UpgradeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpConnectionManager.UpgradeConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpConnectionManager.UpgradeConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static HttpConnectionManager.UpgradeConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HttpConnectionManager.UpgradeConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static HttpConnectionManager.UpgradeConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HttpConnectionManager.UpgradeConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static HttpConnectionManager.UpgradeConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic HttpConnectionManager.UpgradeConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static HttpConnectionManager.UpgradeConfig.Builder newBuilder()
public static HttpConnectionManager.UpgradeConfig.Builder newBuilder(HttpConnectionManager.UpgradeConfig prototype)
public HttpConnectionManager.UpgradeConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected HttpConnectionManager.UpgradeConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static HttpConnectionManager.UpgradeConfig getDefaultInstance()
public static com.google.protobuf.Parser<HttpConnectionManager.UpgradeConfig> parser()
public com.google.protobuf.Parser<HttpConnectionManager.UpgradeConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public HttpConnectionManager.UpgradeConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.