[Rprotobuf-commits] r493 - pkg/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Jul 9 05:01:51 CEST 2013


Author: murray
Date: 2013-07-09 05:01:51 +0200 (Tue, 09 Jul 2013)
New Revision: 493

Modified:
   pkg/man/FieldDescriptor-class.Rd
Log:
Add more example methods for this class.



Modified: pkg/man/FieldDescriptor-class.Rd
===================================================================
--- pkg/man/FieldDescriptor-class.Rd	2013-06-24 04:16:43 UTC (rev 492)
+++ pkg/man/FieldDescriptor-class.Rd	2013-07-09 03:01:51 UTC (rev 493)
@@ -106,6 +106,50 @@
 Person$email$default_value()
 
 Person$email$is_extension()
+
+# Get the default values
+has_default_value(Person$id)
+has_default_value(Person$email)
+has_default_value(Person$phone)
+default_value(Person$id)
+default_value(Person$email)
+default_value(Person$phone)
+
+# Get the types of field descriptors
+type(Person$id)
+type(Person$id, as.string=TRUE)
+cpp_type(Person$email)
+cpp_type(Person$email, TRUE)
+
+# Get the label of a field descriptor
+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
+
+# Test if a field is optional
+is_optional(Person$id)
+is_optional(Person$email)
+is_optional(Person$phone)
+
+# Test if a field is repeated
+is_repeated(Person$id)
+is_repeated(Person$email)
+is_repeated(Person$phone)
+
+# Test if a field is required
+is_required(Person$id)
+is_required(Person$email)
+is_required(Person$phone)
+
+# Return the class of a message field
+message_type(Person$phone)
+
 }
 }
 \keyword{classes}



More information about the Rprotobuf-commits mailing list