Learn R Programming

RProtoBuf (version 0.2.6)

number-methods: Gets the declared tag number of a field

Description

Gets the declared tag number of a field

Arguments

See Also

The method is implemented for the FieldDescriptor class

Examples

Run this code
proto.file <- system.file( "proto", "addressbook.proto", package = "RProtoBuf" )
Person <- P( "tutorial.Person", file = proto.file )
number(Person$id)
number(Person$email)
as.character(Person)

Run the code above in your browser using DataLab