public static enum HeaderParameter.Type extends Enum<HeaderParameter.Type> implements com.google.protobuf.ProtocolMessageEnum
`Type` is a supported HTTP header type. See https://swagger.io/specification/v2/#parameterType.Protobuf enum
grpc.gateway.protoc_gen_openapiv2.options.HeaderParameter.Type| Enum Constant and Description |
|---|
BOOLEAN
BOOLEAN = 4; |
INTEGER
INTEGER = 3; |
NUMBER
NUMBER = 2; |
STRING
STRING = 1; |
UNKNOWN
UNKNOWN = 0; |
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
BOOLEAN_VALUE
BOOLEAN = 4; |
static int |
INTEGER_VALUE
INTEGER = 3; |
static int |
NUMBER_VALUE
NUMBER = 2; |
static int |
STRING_VALUE
STRING = 1; |
static int |
UNKNOWN_VALUE
UNKNOWN = 0; |
| Modifier and Type | Method and Description |
|---|---|
static HeaderParameter.Type |
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<HeaderParameter.Type> |
internalGetValueMap() |
static HeaderParameter.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static HeaderParameter.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static HeaderParameter.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HeaderParameter.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HeaderParameter.Type UNKNOWN
UNKNOWN = 0;public static final HeaderParameter.Type STRING
STRING = 1;public static final HeaderParameter.Type NUMBER
NUMBER = 2;public static final HeaderParameter.Type INTEGER
INTEGER = 3;public static final HeaderParameter.Type BOOLEAN
BOOLEAN = 4;public static final HeaderParameter.Type UNRECOGNIZED
public static final int UNKNOWN_VALUE
UNKNOWN = 0;public static final int STRING_VALUE
STRING = 1;public static final int NUMBER_VALUE
NUMBER = 2;public static final int INTEGER_VALUE
INTEGER = 3;public static final int BOOLEAN_VALUE
BOOLEAN = 4;public static HeaderParameter.Type[] values()
for (HeaderParameter.Type c : HeaderParameter.Type.values()) System.out.println(c);
public static HeaderParameter.Type 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 HeaderParameter.Type valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static HeaderParameter.Type forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<HeaderParameter.Type> 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 HeaderParameter.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024. All rights reserved.