proto_docs/google/protobuf/any.rb in google-cloud-video_intelligence-v1-0.4.1 vs proto_docs/google/protobuf/any.rb in google-cloud-video_intelligence-v1-0.5.0

- old
+ new

@@ -55,13 +55,16 @@ # ... # # Example 4: Pack and unpack a message in Go # # foo := &pb.Foo{...} - # any, err := ptypes.MarshalAny(foo) + # any, err := anypb.New(foo) + # if err != nil { + # ... + # } # ... # foo := &pb.Foo{} - # if err := ptypes.UnmarshalAny(any, foo); err != nil { + # if err := any.UnmarshalTo(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