Type
class Type extends Message
Properties
string | $name | ||
Field[] | $fields | ||
string[] | $oneofs | ||
Option[] | $options | ||
SourceContext | $source_context | ||
int | $syntax |
Methods
static
descriptor()
No description
boolean
hasName()
Check if
string
getName()
Get
boolean
hasFields()
Check if
clearFields()
Clear
Field[]
getFieldsList()
Get all elements of
boolean
hasOneofs()
Check if
clearOneofs()
Clear
string
getOneofs(int $idx = NULL)
Get
string[]
getOneofsList()
Get all elements of
boolean
hasOptions()
Check if
clearOptions()
Clear
getOptions(int $idx = NULL)
Get
Option[]
getOptionsList()
Get all elements of
boolean
hasSourceContext()
Check if
clearSourceContext()
Clear
getSourceContext()
Get
boolean
hasSyntax()
Check if
clearSyntax()
Clear
int
getSyntax()
Get
Details
at line line 39
static
descriptor()
at line line 107
boolean
hasName()
Check if
at line line 116
Type
clearName()
Clear
at line line 125
string
getName()
Get
at line line 135
Type
setName(string $value)
Set
at line line 144
boolean
hasFields()
Check if
at line line 153
Type
clearFields()
Clear
at line line 163
Field
getFields(int $idx = NULL)
Get
at line line 182
Field[]
getFieldsList()
Get all elements of
at line line 201
boolean
hasOneofs()
Check if
at line line 210
Type
clearOneofs()
Clear
at line line 220
string
getOneofs(int $idx = NULL)
Get
at line line 230
Type
setOneofs($value, $idx = NULL)
Set
at line line 239
string[]
getOneofsList()
Get all elements of
at line line 249
Type
addOneofs(string $value)
Add a new element to
at line line 258
boolean
hasOptions()
Check if
at line line 267
Type
clearOptions()
Clear
at line line 277
Option
getOptions(int $idx = NULL)
Get
at line line 296
Option[]
getOptionsList()
Get all elements of
at line line 315
boolean
hasSourceContext()
Check if
at line line 324
Type
clearSourceContext()
Clear
at line line 333
SourceContext
getSourceContext()
Get
at line line 343
Type
setSourceContext(SourceContext $value)
Set
at line line 352
boolean
hasSyntax()
Check if
at line line 361
Type
clearSyntax()
Clear
at line line 370
int
getSyntax()
Get
at line line 380
Type
setSyntax(int $value)
Set