public static enum SecurityScheme.Flow extends java.lang.Enum<SecurityScheme.Flow> implements com.google.protobuf.ProtocolMessageEnum
The flow used by the OAuth2 security scheme. Valid values are "implicit", "password", "application" or "accessCode".Protobuf enum
grpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow
Enum Constant and Description |
---|
FLOW_ACCESS_CODE
FLOW_ACCESS_CODE = 4; |
FLOW_APPLICATION
FLOW_APPLICATION = 3; |
FLOW_IMPLICIT
FLOW_IMPLICIT = 1; |
FLOW_INVALID
FLOW_INVALID = 0; |
FLOW_PASSWORD
FLOW_PASSWORD = 2; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
FLOW_ACCESS_CODE_VALUE
FLOW_ACCESS_CODE = 4; |
static int |
FLOW_APPLICATION_VALUE
FLOW_APPLICATION = 3; |
static int |
FLOW_IMPLICIT_VALUE
FLOW_IMPLICIT = 1; |
static int |
FLOW_INVALID_VALUE
FLOW_INVALID = 0; |
static int |
FLOW_PASSWORD_VALUE
FLOW_PASSWORD = 2; |
Modifier and Type | Method and Description |
---|---|
static SecurityScheme.Flow |
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<SecurityScheme.Flow> |
internalGetValueMap() |
static SecurityScheme.Flow |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SecurityScheme.Flow |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SecurityScheme.Flow |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SecurityScheme.Flow[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SecurityScheme.Flow FLOW_INVALID
FLOW_INVALID = 0;
public static final SecurityScheme.Flow FLOW_IMPLICIT
FLOW_IMPLICIT = 1;
public static final SecurityScheme.Flow FLOW_PASSWORD
FLOW_PASSWORD = 2;
public static final SecurityScheme.Flow FLOW_APPLICATION
FLOW_APPLICATION = 3;
public static final SecurityScheme.Flow FLOW_ACCESS_CODE
FLOW_ACCESS_CODE = 4;
public static final SecurityScheme.Flow UNRECOGNIZED
public static final int FLOW_INVALID_VALUE
FLOW_INVALID = 0;
public static final int FLOW_IMPLICIT_VALUE
FLOW_IMPLICIT = 1;
public static final int FLOW_PASSWORD_VALUE
FLOW_PASSWORD = 2;
public static final int FLOW_APPLICATION_VALUE
FLOW_APPLICATION = 3;
public static final int FLOW_ACCESS_CODE_VALUE
FLOW_ACCESS_CODE = 4;
public static SecurityScheme.Flow[] values()
for (SecurityScheme.Flow c : SecurityScheme.Flow.values()) System.out.println(c);
public static SecurityScheme.Flow 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 SecurityScheme.Flow valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static SecurityScheme.Flow forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SecurityScheme.Flow> 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 SecurityScheme.Flow valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)