public enum ApiVersion extends Enum<ApiVersion> implements com.google.protobuf.ProtocolMessageEnum
xDS API version. This is used to describe both resource and transport protocol versions (in distinct configuration fields).Protobuf enum
envoy.api.v2.core.ApiVersion| Enum Constant and Description |
|---|
AUTO
Deprecated.
|
UNRECOGNIZED |
V2
Deprecated.
|
V3
Use xDS v3 API.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO_VALUE
When not specified, we assume v2, to ease migration to Envoy's stable API
versioning.
|
static int |
V2_VALUE
Use xDS v2 API.
|
static int |
V3_VALUE
Use xDS v3 API.
|
| Modifier and Type | Method and Description |
|---|---|
static ApiVersion |
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<ApiVersion> |
internalGetValueMap() |
static ApiVersion |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ApiVersion |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ApiVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApiVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final ApiVersion AUTO
When not specified, we assume v2, to ease migration to Envoy's stable API versioning. If a client does not support v2 (e.g. due to deprecation), this is an invalid value.
AUTO = 0 [deprecated = true];@Deprecated public static final ApiVersion V2
Use xDS v2 API.
V2 = 1 [deprecated = true];public static final ApiVersion V3
Use xDS v3 API.
V3 = 2;public static final ApiVersion UNRECOGNIZED
public static final int AUTO_VALUE
When not specified, we assume v2, to ease migration to Envoy's stable API versioning. If a client does not support v2 (e.g. due to deprecation), this is an invalid value.
AUTO = 0 [deprecated = true];public static final int V2_VALUE
Use xDS v2 API.
V2 = 1 [deprecated = true];public static final int V3_VALUE
Use xDS v3 API.
V3 = 2;public static ApiVersion[] values()
for (ApiVersion c : ApiVersion.values()) System.out.println(c);
public static ApiVersion 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 ApiVersion valueOf(int value)
forNumber(int) instead.public static ApiVersion forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<ApiVersion> 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 ApiVersion valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.