bin/x86_64-linux/google/protobuf/any.proto in grpc-tools-1.4.5 vs bin/x86_64-linux/google/protobuf/any.proto in grpc-tools-1.6.0.pre1

- old
+ new

@@ -72,9 +72,19 @@ // ... // if any.Is(Foo.DESCRIPTOR): // 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 '/' // in the type URL, for example "foo.bar.com/x/y.z" will yield type // name "y.z".