proto library Client - Class Descriptor (v5.36.2)

Namespace

Google \ Protobuf

Methods

__construct

Parameter
Name Description
internal_desc mixed

getFullName

Returns
Type Description
string Full protobuf message name

getClass

Returns
Type Description
string PHP class name

getField

Parameter
Name Description
index int

Must be >= 0 and < getFieldCount()

Returns
Type Description
FieldDescriptor

getFieldCount

Returns
Type Description
int Number of fields in message

getOneofDecl

Parameter
Name Description
index int

Must be >= 0 and < getOneofDeclCount()

Returns
Type Description
OneofDescriptor

getOneofDeclCount

Returns
Type Description
int Number of oneofs in message

getRealOneofDeclCount

Returns
Type Description
int Number of real oneofs in message