Class: Google::Protobuf::FieldDescriptorProto::Label

Inherits:
Object
  • Object
show all
Extended by:
Protobug::Enum
Defined in:
lib/google/protobuf/descriptor_pb.rb

Constant Summary collapse

LABEL_OPTIONAL =

0 is reserved for errors

new("LABEL_OPTIONAL", 1).freeze
LABEL_REPEATED =
new("LABEL_REPEATED", 3).freeze
LABEL_REQUIRED =

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.

new("LABEL_REQUIRED", 2).freeze