number-methods | R Documentation |
Gets the declared tag number of a field
The method is implemented for FieldDescriptor and EnumValueDescriptor classes.
## Not run:
proto.file <- system.file( "proto", "addressbook.proto", package = "RProtoBuf" )
Person <- P( "tutorial.Person", file = proto.file )
## End(Not run)
number(Person$id)
number(Person$email)
as.character(Person)
number(value(tutorial.Person$PhoneType, name="HOME"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.