public enum Scheme extends java.lang.Enum<Scheme> implements com.google.protobuf.ProtocolMessageEnum
Scheme describes the schemes supported by the OpenAPI Swagger and Operation objects.Protobuf enum
grpc.gateway.protoc_gen_openapiv2.options.Scheme
Enum Constant and Description |
---|
HTTP
HTTP = 1; |
HTTPS
HTTPS = 2; |
UNKNOWN
UNKNOWN = 0; |
UNRECOGNIZED |
WS
WS = 3; |
WSS
WSS = 4; |
Modifier and Type | Field and Description |
---|---|
static int |
HTTP_VALUE
HTTP = 1; |
static int |
HTTPS_VALUE
HTTPS = 2; |
static int |
UNKNOWN_VALUE
UNKNOWN = 0; |
static int |
WS_VALUE
WS = 3; |
static int |
WSS_VALUE
WSS = 4; |
Modifier and Type | Method and Description |
---|---|
static Scheme |
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<Scheme> |
internalGetValueMap() |
static Scheme |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Scheme |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Scheme |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Scheme[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scheme UNKNOWN
UNKNOWN = 0;
public static final Scheme HTTP
HTTP = 1;
public static final Scheme HTTPS
HTTPS = 2;
public static final Scheme WS
WS = 3;
public static final Scheme WSS
WSS = 4;
public static final Scheme UNRECOGNIZED
public static final int UNKNOWN_VALUE
UNKNOWN = 0;
public static final int HTTP_VALUE
HTTP = 1;
public static final int HTTPS_VALUE
HTTPS = 2;
public static final int WS_VALUE
WS = 3;
public static final int WSS_VALUE
WSS = 4;
public static Scheme[] values()
for (Scheme c : Scheme.values()) System.out.println(c);
public static Scheme valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Scheme valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Scheme forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Scheme> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Scheme valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)