public static enum TypeProtos.DataMode extends Enum<TypeProtos.DataMode> implements com.google.protobuf.ProtocolMessageEnum
common.DataMode| Enum Constant and Description |
|---|
OPTIONAL
nullable
|
REPEATED
single, repeated-field
|
REQUIRED
non-nullable
|
| Modifier and Type | Field and Description |
|---|---|
static int |
OPTIONAL_VALUE
nullable
|
static int |
REPEATED_VALUE
single, repeated-field
|
static int |
REQUIRED_VALUE
non-nullable
|
| Modifier and Type | Method and Description |
|---|---|
static TypeProtos.DataMode |
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<TypeProtos.DataMode> |
internalGetValueMap() |
static TypeProtos.DataMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static TypeProtos.DataMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static TypeProtos.DataMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeProtos.DataMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeProtos.DataMode OPTIONAL
nullable
OPTIONAL = 0;public static final TypeProtos.DataMode REQUIRED
non-nullable
REQUIRED = 1;public static final TypeProtos.DataMode REPEATED
single, repeated-field
REPEATED = 2;public static final int OPTIONAL_VALUE
nullable
OPTIONAL = 0;public static final int REQUIRED_VALUE
non-nullable
REQUIRED = 1;public static final int REPEATED_VALUE
single, repeated-field
REPEATED = 2;public static TypeProtos.DataMode[] values()
for (TypeProtos.DataMode c : TypeProtos.DataMode.values()) System.out.println(c);
public static TypeProtos.DataMode 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 TypeProtos.DataMode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static TypeProtos.DataMode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<TypeProtos.DataMode> 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 TypeProtos.DataMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2021 The Apache Software Foundation. All rights reserved.