lib/google/cloud/spanner/admin/database/v1/doc/google/protobuf/any.rb in google-cloud-spanner-1.0.0 vs lib/google/cloud/spanner/admin/database/v1/doc/google/protobuf/any.rb in google-cloud-spanner-1.1.0

- old
+ new

@@ -47,10 +47,20 @@ # ... # 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". @@ -75,11 +85,11 @@ # } # # If the embedded message type is well-known and has a custom JSON # representation, that representation will be embedded adding a field # +value+ which holds the custom JSON in addition to the +@type+ - # field. Example (for message Google::Protobuf::Duration): + # field. Example (for message {Google::Protobuf::Duration}): # # { # "@type": "type.googleapis.com/google.protobuf.Duration", # "value": "1.212s" # } @@ -94,10 +104,10 @@ # * If no scheme is provided, +https+ is assumed. # * The last segment of the URL's path must represent the fully # qualified name of the type (as in +path/google.protobuf.Duration+). # The name should be in a canonical form (e.g., leading "." is # not accepted). - # * An HTTP GET on the URL must yield a Google::Protobuf::Type + # * An HTTP GET on the URL must yield a {Google::Protobuf::Type} # value in binary format, or produce an error. # * Applications are allowed to cache lookup results based on the # URL, or have them precompiled into a binary to avoid any # lookup. Therefore, binary compatibility needs to be preserved # on changes to types. (Use versioned type names to manage \ No newline at end of file