EnumValueDescriptor-class | R Documentation |
R representation of an enum value descriptor. This
is a thin wrapper around the EnumValueDescriptor
c++ class.
Objects of this class are typically retrieved with the
value
method of the EnumDescriptor class
pointer
:external pointer to the EnumValueDescriptor
instance
name
:simple name of the enum
full_name
:fully qualified name
signature(object = "EnumValueDescriptor")
: small information
signature(x = "EnumValueDescriptor")
:
returns the debug string of the enum descriptor.
This is retrieved by a call to the DebugString
method of the EnumDescriptor object.
signature(x = "EnumValueDescriptor")
: same as as.character
signature(x = "EnumValueDescriptor")
: invoke pseudo
methods
signature(object = "EnumValueDescriptor", full = "logical")
:
return the name of this enum constant.
signature(object = "EnumValueDescriptor")
:
return the numeric value of this enum constant.
signature(object = "EnumDescriptor")
: retrieves the EnumDescriptor related to this value descriptor.
Romain Francois <francoisromain@free.fr>
## Not run:
# 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 )
## End(Not run)
# enum type
Person$PhoneType
# enum value type
value(Person$PhoneType, 1)
name(value(Person$PhoneType, 1))
name(value(Person$PhoneType, 1), TRUE)
number(value(Person$PhoneType, number=1))
enum_type(value(Person$PhoneType, number=1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.