public static enum FieldConstraints.TypeCase extends Enum<FieldConstraints.TypeCase> implements com.google.protobuf.Internal.EnumLite
| Enum Constant and Description |
|---|
ANY |
BOOL |
BYTES |
DOUBLE |
DURATION |
ENUM |
FIXED32 |
FIXED64 |
FLOAT |
INT32 |
INT64 |
MAP |
REPEATED |
SFIXED32 |
SFIXED64 |
SINT32 |
SINT64 |
STRING |
TIMESTAMP |
TYPE_NOT_SET |
UINT32 |
UINT64 |
| Modifier and Type | Method and Description |
|---|---|
static FieldConstraints.TypeCase |
forNumber(int value) |
int |
getNumber() |
static FieldConstraints.TypeCase |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static FieldConstraints.TypeCase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldConstraints.TypeCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldConstraints.TypeCase FLOAT
public static final FieldConstraints.TypeCase DOUBLE
public static final FieldConstraints.TypeCase INT32
public static final FieldConstraints.TypeCase INT64
public static final FieldConstraints.TypeCase UINT32
public static final FieldConstraints.TypeCase UINT64
public static final FieldConstraints.TypeCase SINT32
public static final FieldConstraints.TypeCase SINT64
public static final FieldConstraints.TypeCase FIXED32
public static final FieldConstraints.TypeCase FIXED64
public static final FieldConstraints.TypeCase SFIXED32
public static final FieldConstraints.TypeCase SFIXED64
public static final FieldConstraints.TypeCase BOOL
public static final FieldConstraints.TypeCase STRING
public static final FieldConstraints.TypeCase BYTES
public static final FieldConstraints.TypeCase ENUM
public static final FieldConstraints.TypeCase REPEATED
public static final FieldConstraints.TypeCase MAP
public static final FieldConstraints.TypeCase ANY
public static final FieldConstraints.TypeCase DURATION
public static final FieldConstraints.TypeCase TIMESTAMP
public static final FieldConstraints.TypeCase TYPE_NOT_SET
public static FieldConstraints.TypeCase[] values()
for (FieldConstraints.TypeCase c : FieldConstraints.TypeCase.values()) System.out.println(c);
public static FieldConstraints.TypeCase 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 null@Deprecated public static FieldConstraints.TypeCase valueOf(int value)
forNumber(int) instead.value - The number of the enum to look for.public static FieldConstraints.TypeCase forNumber(int value)
public int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLiteCopyright © 2023. All rights reserved.