Learn R Programming

RProtoBuf (version 0.1-0)

FieldDescriptor-class: Class "FieldDescriptor"

Description

R representation of message type field descriptor. This is a thin wrapper around the C++ class FieldDescriptor

Arguments

Objects from the Class

Objects typically are retrieved from FieldDescriptor

References

The FieldDescriptor C++ class

See Also

Descriptor

Examples

Run this code
# example proto file supplied with this package
proto.file <- system.file( "proto", "addressbook.proto", package = "RProtoBuf" ) 

# reading a proto file and creating the descriptor
Person <- P( "tutorial.Person", file = proto.file )

# field descriptor object
Person$email

# debug string
as.character( Person$email )

# or as a pseudo method
Person$email$as.character()

Run the code above in your browser using DataLab