Enum Openapiv2.SecurityScheme.Flow
- java.lang.Object
-
- java.lang.Enum<Openapiv2.SecurityScheme.Flow>
-
- grpc.gateway.protoc_gen_openapiv2.options.Openapiv2.SecurityScheme.Flow
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,java.io.Serializable,java.lang.Comparable<Openapiv2.SecurityScheme.Flow>
- Enclosing class:
- Openapiv2.SecurityScheme
public static enum Openapiv2.SecurityScheme.Flow extends java.lang.Enum<Openapiv2.SecurityScheme.Flow> implements com.google.protobuf.ProtocolMessageEnum
The flow used by the OAuth2 security scheme. Valid values are "implicit", "password", "application" or "accessCode".
Protobuf enumgrpc.gateway.protoc_gen_openapiv2.options.SecurityScheme.Flow
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FLOW_ACCESS_CODEFLOW_ACCESS_CODE = 4;FLOW_APPLICATIONFLOW_APPLICATION = 3;FLOW_IMPLICITFLOW_IMPLICIT = 1;FLOW_INVALIDFLOW_INVALID = 0;FLOW_PASSWORDFLOW_PASSWORD = 2;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intFLOW_ACCESS_CODE_VALUEFLOW_ACCESS_CODE = 4;static intFLOW_APPLICATION_VALUEFLOW_APPLICATION = 3;static intFLOW_IMPLICIT_VALUEFLOW_IMPLICIT = 1;static intFLOW_INVALID_VALUEFLOW_INVALID = 0;static intFLOW_PASSWORD_VALUEFLOW_PASSWORD = 2;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Openapiv2.SecurityScheme.FlowforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<Openapiv2.SecurityScheme.Flow>internalGetValueMap()static Openapiv2.SecurityScheme.FlowvalueOf(int value)Deprecated.static Openapiv2.SecurityScheme.FlowvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static Openapiv2.SecurityScheme.FlowvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Openapiv2.SecurityScheme.Flow[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FLOW_INVALID
public static final Openapiv2.SecurityScheme.Flow FLOW_INVALID
FLOW_INVALID = 0;
-
FLOW_IMPLICIT
public static final Openapiv2.SecurityScheme.Flow FLOW_IMPLICIT
FLOW_IMPLICIT = 1;
-
FLOW_PASSWORD
public static final Openapiv2.SecurityScheme.Flow FLOW_PASSWORD
FLOW_PASSWORD = 2;
-
FLOW_APPLICATION
public static final Openapiv2.SecurityScheme.Flow FLOW_APPLICATION
FLOW_APPLICATION = 3;
-
FLOW_ACCESS_CODE
public static final Openapiv2.SecurityScheme.Flow FLOW_ACCESS_CODE
FLOW_ACCESS_CODE = 4;
-
UNRECOGNIZED
public static final Openapiv2.SecurityScheme.Flow UNRECOGNIZED
-
-
Field Detail
-
FLOW_INVALID_VALUE
public static final int FLOW_INVALID_VALUE
FLOW_INVALID = 0;- See Also:
- Constant Field Values
-
FLOW_IMPLICIT_VALUE
public static final int FLOW_IMPLICIT_VALUE
FLOW_IMPLICIT = 1;- See Also:
- Constant Field Values
-
FLOW_PASSWORD_VALUE
public static final int FLOW_PASSWORD_VALUE
FLOW_PASSWORD = 2;- See Also:
- Constant Field Values
-
FLOW_APPLICATION_VALUE
public static final int FLOW_APPLICATION_VALUE
FLOW_APPLICATION = 3;- See Also:
- Constant Field Values
-
FLOW_ACCESS_CODE_VALUE
public static final int FLOW_ACCESS_CODE_VALUE
FLOW_ACCESS_CODE = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Openapiv2.SecurityScheme.Flow[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Openapiv2.SecurityScheme.Flow c : Openapiv2.SecurityScheme.Flow.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Openapiv2.SecurityScheme.Flow valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- 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 public static Openapiv2.SecurityScheme.Flow valueOf(int value)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
forNumber
public static Openapiv2.SecurityScheme.Flow forNumber(int value)
- 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<Openapiv2.SecurityScheme.Flow> 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 Openapiv2.SecurityScheme.Flow 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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-