public static enum ApiConfigSource.ApiType extends Enum<ApiConfigSource.ApiType> implements com.google.protobuf.ProtocolMessageEnum
APIs may be fetched via either REST or gRPC.Protobuf enum
envoy.api.v2.core.ApiConfigSource.ApiType| Enum Constant and Description |
|---|
DELTA_GRPC
Using the delta xDS gRPC service, i.e.
|
GRPC
gRPC v2 API.
|
REST
REST-JSON v2 API.
|
UNRECOGNIZED |
UNSUPPORTED_REST_LEGACY
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DELTA_GRPC_VALUE
Using the delta xDS gRPC service, i.e.
|
static int |
GRPC_VALUE
gRPC v2 API.
|
static int |
REST_VALUE
REST-JSON v2 API.
|
static int |
UNSUPPORTED_REST_LEGACY_VALUE
Ideally this would be 'reserved 0' but one can't reserve the default
value.
|
| Modifier and Type | Method and Description |
|---|---|
static ApiConfigSource.ApiType |
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<ApiConfigSource.ApiType> |
internalGetValueMap() |
static ApiConfigSource.ApiType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ApiConfigSource.ApiType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ApiConfigSource.ApiType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApiConfigSource.ApiType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Deprecated public static final ApiConfigSource.ApiType UNSUPPORTED_REST_LEGACY
Ideally this would be 'reserved 0' but one can't reserve the default value. Instead we throw an exception if this is ever used.
UNSUPPORTED_REST_LEGACY = 0 [deprecated = true, (.envoy.annotations.disallowed_by_default_enum) = true];public static final ApiConfigSource.ApiType REST
REST-JSON v2 API. The `canonical JSON encoding <https://developers.google.com/protocol-buffers/docs/proto3#json>`_ for the v2 protos is used.
REST = 1;public static final ApiConfigSource.ApiType GRPC
gRPC v2 API.
GRPC = 2;public static final ApiConfigSource.ApiType DELTA_GRPC
Using the delta xDS gRPC service, i.e. DeltaDiscovery{Request,Response}
rather than Discovery{Request,Response}. Rather than sending Envoy the entire state
with every update, the xDS server only sends what has changed since the last update.
DELTA_GRPC = 3;public static final ApiConfigSource.ApiType UNRECOGNIZED
public static final int UNSUPPORTED_REST_LEGACY_VALUE
Ideally this would be 'reserved 0' but one can't reserve the default value. Instead we throw an exception if this is ever used.
UNSUPPORTED_REST_LEGACY = 0 [deprecated = true, (.envoy.annotations.disallowed_by_default_enum) = true];public static final int REST_VALUE
REST-JSON v2 API. The `canonical JSON encoding <https://developers.google.com/protocol-buffers/docs/proto3#json>`_ for the v2 protos is used.
REST = 1;public static final int GRPC_VALUE
gRPC v2 API.
GRPC = 2;public static final int DELTA_GRPC_VALUE
Using the delta xDS gRPC service, i.e. DeltaDiscovery{Request,Response}
rather than Discovery{Request,Response}. Rather than sending Envoy the entire state
with every update, the xDS server only sends what has changed since the last update.
DELTA_GRPC = 3;public static ApiConfigSource.ApiType[] values()
for (ApiConfigSource.ApiType c : ApiConfigSource.ApiType.values()) System.out.println(c);
public static ApiConfigSource.ApiType 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 ApiConfigSource.ApiType valueOf(int value)
forNumber(int) instead.public static ApiConfigSource.ApiType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<ApiConfigSource.ApiType> 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 ApiConfigSource.ApiType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.