Enum DescriptorProtos.FieldDescriptorProto.Label (3.19.4)

public enum DescriptorProtos.FieldDescriptorProto.Label extends Enum<DescriptorProtos.FieldDescriptorProto.Label> implements ProtocolMessageEnum

Protobuf enum google.protobuf.FieldDescriptorProto.Label

Implements

ProtocolMessageEnum

Static Fields

NameDescription
LABEL_OPTIONAL

0 is reserved for errors

LABEL_OPTIONAL = 1;

LABEL_OPTIONAL_VALUE

0 is reserved for errors

LABEL_OPTIONAL = 1;

LABEL_REPEATED

LABEL_REPEATED = 3;

LABEL_REPEATED_VALUE

LABEL_REPEATED = 3;

LABEL_REQUIRED

LABEL_REQUIRED = 2;

LABEL_REQUIRED_VALUE

LABEL_REQUIRED = 2;

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()

Return the enum type's descriptor, which contains information about each defined value, etc.

getNumber()

Return the value's numeric value as defined in the .proto file.

getValueDescriptor()

Return the value's descriptor, which contains information such as value name, number, and type.