Package io.envoyproxy.envoy.api.v2.core
Enum ApiConfigSource.ApiType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ApiConfigSource.ApiType>,java.lang.constant.Constable
- Enclosing class:
- ApiConfigSource
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-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUsing the delta xDS gRPC service, i.e.gRPC v2 API.REST-JSON v2 API.Deprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intUsing the delta xDS gRPC service, i.e.static final intgRPC v2 API.static final intREST-JSON v2 API.static final intDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiConfigSource.ApiTypeforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ApiConfigSource.ApiType>static ApiConfigSource.ApiTypevalueOf(int value) Deprecated.static ApiConfigSource.ApiTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ApiConfigSource.ApiTypeReturns 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.
-
Enum Constant Details
-
UNSUPPORTED_REST_LEGACY
Deprecated.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]; -
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; -
GRPC
gRPC v2 API.
GRPC = 2; -
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; -
UNRECOGNIZED
-
-
Field Details
-
UNSUPPORTED_REST_LEGACY_VALUE
Deprecated.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];- See Also:
-
REST_VALUE
public static final int REST_VALUEREST-JSON v2 API. The `canonical JSON encoding <https://developers.google.com/protocol-buffers/docs/proto3#json>`_ for the v2 protos is used.
REST = 1;- See Also:
-
GRPC_VALUE
public static final int GRPC_VALUEgRPC v2 API.
GRPC = 2;- See Also:
-
DELTA_GRPC_VALUE
public static final int DELTA_GRPC_VALUEUsing 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;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ApiConfigSource.ApiType> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static ApiConfigSource.ApiType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-