class FieldDescriptor (View source)

Traits

Methods

__construct($internal_desc)

No description

string
getName()

No description

int
getNumber()

No description

int
getLabel()

No description

int
getType()

No description

getRealContainingOneof()

Gets the field's containing oneof, only if non-synthetic.

bool
hasOptionalKeyword()

No description

getMessageType()

No description

getEnumType()

No description

bool
isMap()

No description

Details

__construct($internal_desc)

internal  
 

No description

Parameters

$internal_desc

string getName()

No description

Return Value

string

Field name

int getNumber()

No description

Return Value

int

Protobuf field number

int getLabel()

No description

Return Value

int

int getType()

No description

Return Value

int

OneofDescriptor getContainingOneof()

No description

Return Value

OneofDescriptor

null|OneofDescriptor getRealContainingOneof()

Gets the field's containing oneof, only if non-synthetic.

Return Value

null|OneofDescriptor

bool hasOptionalKeyword()

No description

Return Value

bool

Descriptor getMessageType()

No description

Return Value

Descriptor

Returns a descriptor for the field type if the field type is a message, otherwise throws \Exception

Exceptions

Exception

EnumDescriptor getEnumType()

No description

Return Value

EnumDescriptor

Returns an enum descriptor if the field type is an enum, otherwise throws \Exception

Exceptions

Exception

bool isMap()

No description

Return Value

bool