Package build.buf.validate
Enum FieldConstraints.TypeCase
- java.lang.Object
-
- java.lang.Enum<FieldConstraints.TypeCase>
-
- build.buf.validate.FieldConstraints.TypeCase
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,java.io.Serializable,java.lang.Comparable<FieldConstraints.TypeCase>
- Enclosing class:
- FieldConstraints
public static enum FieldConstraints.TypeCase extends java.lang.Enum<FieldConstraints.TypeCase> implements com.google.protobuf.Internal.EnumLite
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static FieldConstraints.TypeCaseforNumber(int value)intgetNumber()static FieldConstraints.TypeCasevalueOf(int value)Deprecated.static FieldConstraints.TypeCasevalueOf(java.lang.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.
-
-
-
Enum Constant Detail
-
FLOAT
public static final FieldConstraints.TypeCase FLOAT
-
DOUBLE
public static final FieldConstraints.TypeCase DOUBLE
-
INT32
public static final FieldConstraints.TypeCase INT32
-
INT64
public static final FieldConstraints.TypeCase INT64
-
UINT32
public static final FieldConstraints.TypeCase UINT32
-
UINT64
public static final FieldConstraints.TypeCase UINT64
-
SINT32
public static final FieldConstraints.TypeCase SINT32
-
SINT64
public static final FieldConstraints.TypeCase SINT64
-
FIXED32
public static final FieldConstraints.TypeCase FIXED32
-
FIXED64
public static final FieldConstraints.TypeCase FIXED64
-
SFIXED32
public static final FieldConstraints.TypeCase SFIXED32
-
SFIXED64
public static final FieldConstraints.TypeCase SFIXED64
-
BOOL
public static final FieldConstraints.TypeCase BOOL
-
STRING
public static final FieldConstraints.TypeCase STRING
-
BYTES
public static final FieldConstraints.TypeCase BYTES
-
ENUM
public static final FieldConstraints.TypeCase ENUM
-
REPEATED
public static final FieldConstraints.TypeCase REPEATED
-
MAP
public static final FieldConstraints.TypeCase MAP
-
ANY
public static final FieldConstraints.TypeCase ANY
-
DURATION
public static final FieldConstraints.TypeCase DURATION
-
TIMESTAMP
public static final FieldConstraints.TypeCase TIMESTAMP
-
TYPE_NOT_SET
public static final FieldConstraints.TypeCase TYPE_NOT_SET
-
-
Method Detail
-
values
public static FieldConstraints.TypeCase[] 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 (FieldConstraints.TypeCase c : FieldConstraints.TypeCase.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FieldConstraints.TypeCase 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
-
valueOf
@Deprecated public static FieldConstraints.TypeCase 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 FieldConstraints.TypeCase forNumber(int value)
-
getNumber
public int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite
-
-