Package io.envoyproxy.envoy.api.v2.route
Class RouteAction.UpgradeConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.envoyproxy.envoy.api.v2.route.RouteAction.UpgradeConfig
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RouteAction.UpgradeConfigOrBuilder,Serializable
- Enclosing class:
- RouteAction
public static final class RouteAction.UpgradeConfig extends com.google.protobuf.GeneratedMessageV3 implements RouteAction.UpgradeConfigOrBuilder
Allows enabling and disabling upgrades on a per-route basis. This overrides any enabled/disabled upgrade filter chain specified in the HttpConnectionManager :ref:`upgrade_configs <envoy_api_field_config.filter.network.http_connection_manager.v2.HttpConnectionManager.upgrade_configs>` but does not affect any custom filter chain specified there.
Protobuf typeenvoy.api.v2.route.RouteAction.UpgradeConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRouteAction.UpgradeConfig.BuilderAllows enabling and disabling upgrades on a per-route basis.-
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 intUPGRADE_TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static RouteAction.UpgradeConfiggetDefaultInstance()RouteAction.UpgradeConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.BoolValuegetEnabled()Determines if upgrades are available on this route.com.google.protobuf.BoolValueOrBuildergetEnabledOrBuilder()Determines if upgrades are available on this route.com.google.protobuf.Parser<RouteAction.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 available on this route.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static RouteAction.UpgradeConfig.BuildernewBuilder()static RouteAction.UpgradeConfig.BuildernewBuilder(RouteAction.UpgradeConfig prototype)RouteAction.UpgradeConfig.BuildernewBuilderForType()protected RouteAction.UpgradeConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static RouteAction.UpgradeConfigparseDelimitedFrom(InputStream input)static RouteAction.UpgradeConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteAction.UpgradeConfigparseFrom(byte[] data)static RouteAction.UpgradeConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteAction.UpgradeConfigparseFrom(com.google.protobuf.ByteString data)static RouteAction.UpgradeConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteAction.UpgradeConfigparseFrom(com.google.protobuf.CodedInputStream input)static RouteAction.UpgradeConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteAction.UpgradeConfigparseFrom(InputStream input)static RouteAction.UpgradeConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static RouteAction.UpgradeConfigparseFrom(ByteBuffer data)static RouteAction.UpgradeConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<RouteAction.UpgradeConfig>parser()RouteAction.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
-
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 [(.validate.rules) = { ... }- Specified by:
getUpgradeTypein interfaceRouteAction.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 [(.validate.rules) = { ... }- Specified by:
getUpgradeTypeBytesin interfaceRouteAction.UpgradeConfigOrBuilder- Returns:
- The bytes for upgradeType.
-
hasEnabled
public boolean hasEnabled()
Determines if upgrades are available on this route. Defaults to true.
.google.protobuf.BoolValue enabled = 2;- Specified by:
hasEnabledin interfaceRouteAction.UpgradeConfigOrBuilder- Returns:
- Whether the enabled field is set.
-
getEnabled
public com.google.protobuf.BoolValue getEnabled()
Determines if upgrades are available on this route. Defaults to true.
.google.protobuf.BoolValue enabled = 2;- Specified by:
getEnabledin interfaceRouteAction.UpgradeConfigOrBuilder- Returns:
- The enabled.
-
getEnabledOrBuilder
public com.google.protobuf.BoolValueOrBuilder getEnabledOrBuilder()
Determines if upgrades are available on this route. Defaults to true.
.google.protobuf.BoolValue enabled = 2;- Specified by:
getEnabledOrBuilderin interfaceRouteAction.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 RouteAction.UpgradeConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteAction.UpgradeConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteAction.UpgradeConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteAction.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 RouteAction.UpgradeConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteAction.UpgradeConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteAction.UpgradeConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RouteAction.UpgradeConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RouteAction.UpgradeConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RouteAction.UpgradeConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static RouteAction.UpgradeConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RouteAction.UpgradeConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public RouteAction.UpgradeConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RouteAction.UpgradeConfig.Builder newBuilder()
-
newBuilder
public static RouteAction.UpgradeConfig.Builder newBuilder(RouteAction.UpgradeConfig prototype)
-
toBuilder
public RouteAction.UpgradeConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RouteAction.UpgradeConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static RouteAction.UpgradeConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RouteAction.UpgradeConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<RouteAction.UpgradeConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RouteAction.UpgradeConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-