proto library Client - Class Label (v5.36.2)

Reference documentation and code samples for the proto library Client class Label.

Protobuf type google.protobuf.FieldDescriptorProto.Label

Namespace

Google \ Protobuf \ Internal \ FieldDescriptorProto

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

LABEL_OPTIONAL

Value: 1

0 is reserved for errors

Generated from protobuf enum LABEL_OPTIONAL = 1;

LABEL_REPEATED

Value: 3

Generated from protobuf enum LABEL_REPEATED = 3;

LABEL_REQUIRED

Value: 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.

Generated from protobuf enum LABEL_REQUIRED = 2;