public enum ProtocolType extends Enum<ProtocolType> implements com.google.protobuf.ProtocolMessageEnum
Thrift Protocol types supported by Envoy.Protobuf enum
envoy.extensions.filters.network.thrift_proxy.v3.ProtocolType| Enum Constant and Description |
|---|
AUTO_PROTOCOL
For downstream connections, the Thrift proxy will attempt to determine which protocol to use.
|
BINARY
The Thrift proxy will use the Thrift binary protocol.
|
COMPACT
The Thrift proxy will use the Thrift compact protocol.
|
LAX_BINARY
The Thrift proxy will use Thrift non-strict binary protocol.
|
TWITTER
The Thrift proxy will use the Thrift "Twitter" protocol implemented by the finagle library.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO_PROTOCOL_VALUE
For downstream connections, the Thrift proxy will attempt to determine which protocol to use.
|
static int |
BINARY_VALUE
The Thrift proxy will use the Thrift binary protocol.
|
static int |
COMPACT_VALUE
The Thrift proxy will use the Thrift compact protocol.
|
static int |
LAX_BINARY_VALUE
The Thrift proxy will use Thrift non-strict binary protocol.
|
static int |
TWITTER_VALUE
The Thrift proxy will use the Thrift "Twitter" protocol implemented by the finagle library.
|
| Modifier and Type | Method and Description |
|---|---|
static ProtocolType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ProtocolType> |
internalGetValueMap() |
static ProtocolType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ProtocolType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ProtocolType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProtocolType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProtocolType AUTO_PROTOCOL
For downstream connections, the Thrift proxy will attempt to determine which protocol to use. Note that the older, non-strict (or lax) binary protocol is not included in automatic protocol detection. For upstream connections, the Thrift proxy will use the same protocol as the downstream connection.
AUTO_PROTOCOL = 0;public static final ProtocolType BINARY
The Thrift proxy will use the Thrift binary protocol.
BINARY = 1;public static final ProtocolType LAX_BINARY
The Thrift proxy will use Thrift non-strict binary protocol.
LAX_BINARY = 2;public static final ProtocolType COMPACT
The Thrift proxy will use the Thrift compact protocol.
COMPACT = 3;public static final ProtocolType TWITTER
The Thrift proxy will use the Thrift "Twitter" protocol implemented by the finagle library.
TWITTER = 4;public static final ProtocolType UNRECOGNIZED
public static final int AUTO_PROTOCOL_VALUE
For downstream connections, the Thrift proxy will attempt to determine which protocol to use. Note that the older, non-strict (or lax) binary protocol is not included in automatic protocol detection. For upstream connections, the Thrift proxy will use the same protocol as the downstream connection.
AUTO_PROTOCOL = 0;public static final int BINARY_VALUE
The Thrift proxy will use the Thrift binary protocol.
BINARY = 1;public static final int LAX_BINARY_VALUE
The Thrift proxy will use Thrift non-strict binary protocol.
LAX_BINARY = 2;public static final int COMPACT_VALUE
The Thrift proxy will use the Thrift compact protocol.
COMPACT = 3;public static final int TWITTER_VALUE
The Thrift proxy will use the Thrift "Twitter" protocol implemented by the finagle library.
TWITTER = 4;public static ProtocolType[] values()
for (ProtocolType c : ProtocolType.values()) System.out.println(c);
public static ProtocolType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ProtocolType valueOf(int value)
forNumber(int) instead.public static ProtocolType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<ProtocolType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ProtocolType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.