Learn R Programming

RProtoBuf (version 0.1-0)

EnumDescriptor-class: Class "EnumDescriptor"

Description

R representation of an enum descriptor. This is a thin wrapper around the EnumDescriptor c++ class.

Arguments

Objects from the Class

Objects of this class are typically retrieved as members of Descriptor objects

References

The EnumDescriptor C++ class

See Also

The Descriptor class

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 )

# enum type
Person$PhoneType

Run the code above in your browser using DataLab