|
|
|
@ -2197,7 +2197,8 @@ definitions:
|
|
|
|
|
|
|
|
|
|
Note: this functionality is not currently available in the official
|
|
|
|
|
protobuf release, and it is not used for type URLs beginning with
|
|
|
|
|
type.googleapis.com.
|
|
|
|
|
type.googleapis.com. As of May 2023, there are no widely used type server
|
|
|
|
|
implementations and no plans to implement one.
|
|
|
|
|
|
|
|
|
|
Schemes other than `http`, `https` (or the empty scheme) might be
|
|
|
|
|
used with implementation specific semantics.
|
|
|
|
@ -2232,7 +2233,7 @@ definitions:
|
|
|
|
|
foo = any.unpack(Foo.getDefaultInstance());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Example 3: Pack and unpack a message in Python.
|
|
|
|
|
Example 3: Pack and unpack a message in Python.
|
|
|
|
|
|
|
|
|
|
foo = Foo(...)
|
|
|
|
|
any = Any()
|
|
|
|
@ -2242,7 +2243,7 @@ definitions:
|
|
|
|
|
any.Unpack(foo)
|
|
|
|
|
...
|
|
|
|
|
|
|
|
|
|
Example 4: Pack and unpack a message in Go
|
|
|
|
|
Example 4: Pack and unpack a message in Go
|
|
|
|
|
|
|
|
|
|
foo := &pb.Foo{...}
|
|
|
|
|
any, err := anypb.New(foo)
|
|
|
|
@ -2262,7 +2263,7 @@ definitions:
|
|
|
|
|
name "y.z".
|
|
|
|
|
|
|
|
|
|
JSON
|
|
|
|
|
|
|
|
|
|
====
|
|
|
|
|
The JSON representation of an `Any` value uses the regular
|
|
|
|
|
representation of the deserialized, embedded message, with an
|
|
|
|
|
additional field `@type` which contains the type URL. Example:
|
|
|
|
|