GitHub

FieldDescriptorProto_Label

API reference for FieldDescriptorProto_Label.

The values of google.protobuf.FieldDescriptorProto.Label.

Attributes

AttributeTypeDescription
LABEL_OPTIONAL= 1

0 is reserved for errors

LABEL_REPEATED= 3
LABEL_REQUIRED= 2

The required label is only allowed in google.protobuf. In proto3 and Editions it's explicitly prohibited. In Editions, the field_presence feature can be used to get this behavior.