public static enum ConfigSourceOuterClass.ApiConfigSource.ApiType extends Enum<ConfigSourceOuterClass.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 |
|---|
GRPC
gRPC v2 API.
|
REST
REST-JSON v2 API.
|
REST_LEGACY
REST-JSON legacy corresponds to the v1 API.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
GRPC_VALUE
gRPC v2 API.
|
static int |
REST_LEGACY_VALUE
REST-JSON legacy corresponds to the v1 API.
|
static int |
REST_VALUE
REST-JSON v2 API.
|
| Modifier and Type | Method and Description |
|---|---|
static ConfigSourceOuterClass.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<ConfigSourceOuterClass.ApiConfigSource.ApiType> |
internalGetValueMap() |
static ConfigSourceOuterClass.ApiConfigSource.ApiType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ConfigSourceOuterClass.ApiConfigSource.ApiType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ConfigSourceOuterClass.ApiConfigSource.ApiType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigSourceOuterClass.ApiConfigSource.ApiType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigSourceOuterClass.ApiConfigSource.ApiType REST_LEGACY
REST-JSON legacy corresponds to the v1 API.
REST_LEGACY = 0;public static final ConfigSourceOuterClass.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 ConfigSourceOuterClass.ApiConfigSource.ApiType GRPC
gRPC v2 API.
GRPC = 2;public static final ConfigSourceOuterClass.ApiConfigSource.ApiType UNRECOGNIZED
public static final int REST_LEGACY_VALUE
REST-JSON legacy corresponds to the v1 API.
REST_LEGACY = 0;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 ConfigSourceOuterClass.ApiConfigSource.ApiType[] values()
for (ConfigSourceOuterClass.ApiConfigSource.ApiType c : ConfigSourceOuterClass.ApiConfigSource.ApiType.values()) System.out.println(c);
public static ConfigSourceOuterClass.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 ConfigSourceOuterClass.ApiConfigSource.ApiType valueOf(int value)
forNumber(int) instead.public static ConfigSourceOuterClass.ApiConfigSource.ApiType forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<ConfigSourceOuterClass.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 ConfigSourceOuterClass.ApiConfigSource.ApiType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2019 WSO2. All rights reserved.