aboutsummaryrefslogtreecommitdiff
path: root/objectivec/google/protobuf/Any.pbobjc.h
diff options
context:
space:
mode:
authorJisi Liu <liujisi@google.com>2017-08-21 10:39:27 -0700
committerGitHub <noreply@github.com>2017-08-21 10:39:27 -0700
commitba4e54724d2e6a1881c4fe88664d81fbacaf8c08 (patch)
tree5451ab616f035b92d006e51ec01b4c0dabb3f6d0 /objectivec/google/protobuf/Any.pbobjc.h
parent472f700884a2cd4e9b621c5e4b706a9b6de7c870 (diff)
parent139775ccc040a07e07c5407e34834dab27928cbc (diff)
downloadprotobuf-ba4e54724d2e6a1881c4fe88664d81fbacaf8c08.tar.gz
protobuf-ba4e54724d2e6a1881c4fe88664d81fbacaf8c08.tar.bz2
protobuf-ba4e54724d2e6a1881c4fe88664d81fbacaf8c08.zip
Merge pull request #3529 from pherl/merge3.4.x
Merge 3.4.x into master
Diffstat (limited to 'objectivec/google/protobuf/Any.pbobjc.h')
-rw-r--r--objectivec/google/protobuf/Any.pbobjc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/objectivec/google/protobuf/Any.pbobjc.h b/objectivec/google/protobuf/Any.pbobjc.h
index d236e4b2..b17e76f0 100644
--- a/objectivec/google/protobuf/Any.pbobjc.h
+++ b/objectivec/google/protobuf/Any.pbobjc.h
@@ -87,6 +87,16 @@ typedef GPB_ENUM(GPBAny_FieldNumber) {
* any.Unpack(foo)
* ...
*
+ * Example 4: Pack and unpack a message in Go
+ *
+ * foo := &pb.Foo{...}
+ * any, err := ptypes.MarshalAny(foo)
+ * ...
+ * foo := &pb.Foo{}
+ * if err := ptypes.UnmarshalAny(any, foo); err != nil {
+ * ...
+ * }
+ *
* The pack methods provided by protobuf library will by default use
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
* methods only use the fully qualified type name after the last '/'