proto_docs/google/protobuf/any.rb in google-cloud-video_intelligence-v1p1beta1-0.2.6 vs proto_docs/google/protobuf/any.rb in google-cloud-video_intelligence-v1p1beta1-0.3.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