public enum Time extends java.lang.Enum<Time> implements com.google.protobuf.ProtocolMessageEnum
This enumeration defines restriction for date/time values.Protobuf enum
Time
Enum Constant and Description |
---|
FUTURE
The value must be in the future.
|
PAST
The value must be in the past.
|
TIME_UNDEFINED
The default value (if the time option is not set).
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
FUTURE_VALUE
The value must be in the future.
|
static int |
PAST_VALUE
The value must be in the past.
|
static int |
TIME_UNDEFINED_VALUE
The default value (if the time option is not set).
|
Modifier and Type | Method and Description |
---|---|
static Time |
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<Time> |
internalGetValueMap() |
static Time |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Time |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Time |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Time[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Time TIME_UNDEFINED
The default value (if the time option is not set).
TIME_UNDEFINED = 0;
public static final Time PAST
The value must be in the past.
PAST = 1;
public static final Time FUTURE
The value must be in the future.
FUTURE = 2;
public static final Time UNRECOGNIZED
public static final int TIME_UNDEFINED_VALUE
The default value (if the time option is not set).
TIME_UNDEFINED = 0;
public static final int PAST_VALUE
The value must be in the past.
PAST = 1;
public static final int FUTURE_VALUE
The value must be in the future.
FUTURE = 2;
public static Time[] values()
for (Time c : Time.values()) System.out.println(c);
public static Time 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 Time valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Time forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Time> 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 Time valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)