proto library Client - Class OneofDescriptor (v5.36.2)

Namespace

Google \ Protobuf

Methods

__construct

Parameter
Name Description
internal_desc mixed

getName

Returns
Type Description
string The name of the oneof

getField

Parameter
Name Description
index int

Must be >= 0 and < getFieldCount()

Returns
Type Description
FieldDescriptor

getFieldCount

Returns
Type Description
int Number of fields in the oneof

isSynthetic