label-methods | R Documentation |
Gets the label of a field (optional, required, or repeated).
object |
A FieldDescriptor object. |
as.string |
If true, print a string representation of the type. |
The method is implemented for the FieldDescriptor class
## Not run: proto.file <- system.file( "proto", "addressbook.proto", package = "RProtoBuf" ) Person <- P( "tutorial.Person", file = proto.file ) ## End(Not run) label(Person$id) label(Person$email) label(Person$phone) label(Person$id, TRUE) label(Person$email, TRUE) label(Person$phone, TRUE) LABEL_OPTIONAL LABEL_REQUIRED LABEL_REPEATED
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.