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.config.core.v4alpha.ApiConfigSource.ApiType| Enum Constant and Description |
|---|
AGGREGATED_DELTA_GRPC
Delta xDS gRPC with ADS.
|
AGGREGATED_GRPC
SotW xDS gRPC with ADS.
|
DELTA_GRPC
Using the delta xDS gRPC service, i.e.
|
DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE
Deprecated.
|
GRPC
SotW gRPC service.
|
REST
REST-JSON v2 API.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
AGGREGATED_DELTA_GRPC_VALUE
Delta xDS gRPC with ADS.
|
static int |
AGGREGATED_GRPC_VALUE
SotW xDS gRPC with ADS.
|
static int |
DELTA_GRPC_VALUE
Using the delta xDS gRPC service, i.e.
|
static int |
DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE_VALUE
Ideally this would be 'reserved 0' but one can't reserve the default
value.
|
static int |
GRPC_VALUE
SotW gRPC service.
|
static int |
REST_VALUE
REST-JSON v2 API.
|
| 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 DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE
Ideally this would be 'reserved 0' but one can't reserve the default value. Instead we throw an exception if this is ever used.
DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE = 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
SotW gRPC service.
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 AGGREGATED_GRPC
SotW xDS gRPC with ADS. All resources which resolve to this configuration source will be multiplexed on a single connection to an ADS endpoint. [#not-implemented-hide:]
AGGREGATED_GRPC = 5;public static final ApiConfigSource.ApiType AGGREGATED_DELTA_GRPC
Delta xDS gRPC with ADS. All resources which resolve to this configuration source will be multiplexed on a single connection to an ADS endpoint. [#not-implemented-hide:]
AGGREGATED_DELTA_GRPC = 6;public static final ApiConfigSource.ApiType UNRECOGNIZED
public static final int DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE_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.
DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE = 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
SotW gRPC service.
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 final int AGGREGATED_GRPC_VALUE
SotW xDS gRPC with ADS. All resources which resolve to this configuration source will be multiplexed on a single connection to an ADS endpoint. [#not-implemented-hide:]
AGGREGATED_GRPC = 5;public static final int AGGREGATED_DELTA_GRPC_VALUE
Delta xDS gRPC with ADS. All resources which resolve to this configuration source will be multiplexed on a single connection to an ADS endpoint. [#not-implemented-hide:]
AGGREGATED_DELTA_GRPC = 6;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.