aboutsummaryrefslogtreecommitdiff
path: root/objectivec
diff options
context:
space:
mode:
authorBo Yang <teboring@google.com>2016-12-19 16:04:00 -0800
committerBo Yang <teboring@google.com>2016-12-19 16:04:00 -0800
commit9cb253f46e5282ecbc20483e1609dd82dfa7f95a (patch)
treedf3f7434b6258e578e6a0f1e8eb37e827f8bd244 /objectivec
parentfb15862baccbde38a3924f89922a86df2c9a20e0 (diff)
parent199d82fde1734ab5bc931cd0de93309e50cd7ab9 (diff)
downloadprotobuf-9cb253f46e5282ecbc20483e1609dd82dfa7f95a.tar.gz
protobuf-9cb253f46e5282ecbc20483e1609dd82dfa7f95a.tar.bz2
protobuf-9cb253f46e5282ecbc20483e1609dd82dfa7f95a.zip
Down-integrate internal changes to github.
Diffstat (limited to 'objectivec')
-rw-r--r--objectivec/google/protobuf/Type.pbobjc.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/objectivec/google/protobuf/Type.pbobjc.h b/objectivec/google/protobuf/Type.pbobjc.h
index 06e75480..17986970 100644
--- a/objectivec/google/protobuf/Type.pbobjc.h
+++ b/objectivec/google/protobuf/Type.pbobjc.h
@@ -411,10 +411,20 @@ typedef GPB_ENUM(GPBOption_FieldNumber) {
**/
@interface GPBOption : GPBMessage
-/** The option's name. For example, `"java_package"`. */
+/**
+ * The option's name. For protobuf built-in options (options defined in
+ * descriptor.proto), this is the short name. For example, `"map_entry"`.
+ * For custom options, it should be the fully-qualified name. For example,
+ * `"google.api.http"`.
+ **/
@property(nonatomic, readwrite, copy, null_resettable) NSString *name;
-/** The option's value. For example, `"com.google.protobuf"`. */
+/**
+ * The option's value packed in an Any message. If the value is a primitive,
+ * the corresponding wrapper type defined in google/protobuf/wrappers.proto
+ * should be used. If the value is an enum, it should be stored as an int32
+ * value using the google.protobuf.Int32Value type.
+ **/
@property(nonatomic, readwrite, strong, null_resettable) GPBAny *value;
/** Test to see if @c value has been set. */
@property(nonatomic, readwrite) BOOL hasValue;