|
|
@ -71,6 +71,16 @@ typedef GPB_ENUM(GPBAny_FieldNumber) { |
|
|
|
/// foo = any.unpack(Foo.class);
|
|
|
|
/// foo = any.unpack(Foo.class);
|
|
|
|
/// }
|
|
|
|
/// }
|
|
|
|
///
|
|
|
|
///
|
|
|
|
|
|
|
|
/// Example 3: Pack and unpack a message in Python.
|
|
|
|
|
|
|
|
///
|
|
|
|
|
|
|
|
/// foo = Foo(...)
|
|
|
|
|
|
|
|
/// any = Any()
|
|
|
|
|
|
|
|
/// any.Pack(foo)
|
|
|
|
|
|
|
|
/// ...
|
|
|
|
|
|
|
|
/// if any.Is(Foo.DESCRIPTOR):
|
|
|
|
|
|
|
|
/// any.Unpack(foo)
|
|
|
|
|
|
|
|
/// ...
|
|
|
|
|
|
|
|
///
|
|
|
|
/// The pack methods provided by protobuf library will by default use
|
|
|
|
/// The pack methods provided by protobuf library will by default use
|
|
|
|
/// 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
|
|
/// 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
|
|
|
/// methods only use the fully qualified type name after the last '/'
|
|
|
|
/// methods only use the fully qualified type name after the last '/'
|
|
|
@ -110,10 +120,10 @@ typedef GPB_ENUM(GPBAny_FieldNumber) { |
|
|
|
/// A URL/resource name whose content describes the type of the
|
|
|
|
/// A URL/resource name whose content describes the type of the
|
|
|
|
/// serialized protocol buffer message.
|
|
|
|
/// serialized protocol buffer message.
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// For URLs which use the schema `http`, `https`, or no schema, the
|
|
|
|
/// For URLs which use the scheme `http`, `https`, or no scheme, the
|
|
|
|
/// following restrictions and interpretations apply:
|
|
|
|
/// following restrictions and interpretations apply:
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// * If no schema is provided, `https` is assumed.
|
|
|
|
/// * If no scheme is provided, `https` is assumed.
|
|
|
|
/// * The last segment of the URL's path must represent the fully
|
|
|
|
/// * The last segment of the URL's path must represent the fully
|
|
|
|
/// qualified name of the type (as in `path/google.protobuf.Duration`).
|
|
|
|
/// qualified name of the type (as in `path/google.protobuf.Duration`).
|
|
|
|
/// The name should be in a canonical form (e.g., leading "." is
|
|
|
|
/// The name should be in a canonical form (e.g., leading "." is
|
|
|
@ -126,7 +136,7 @@ typedef GPB_ENUM(GPBAny_FieldNumber) { |
|
|
|
/// on changes to types. (Use versioned type names to manage
|
|
|
|
/// on changes to types. (Use versioned type names to manage
|
|
|
|
/// breaking changes.)
|
|
|
|
/// breaking changes.)
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// Schemas other than `http`, `https` (or the empty schema) might be
|
|
|
|
/// Schemes other than `http`, `https` (or the empty scheme) might be
|
|
|
|
/// used with implementation specific semantics.
|
|
|
|
/// used with implementation specific semantics.
|
|
|
|
@property(nonatomic, readwrite, copy, null_resettable) NSString *typeURL; |
|
|
|
@property(nonatomic, readwrite, copy, null_resettable) NSString *typeURL; |
|
|
|
|
|
|
|
|
|
|
|