Latest generation

This commit is contained in:
ci core model
2026-01-15 14:01:45 +00:00
parent d0f35ffc39
commit 279af75c5d
28 changed files with 2973 additions and 243 deletions

View File

@@ -42,6 +42,10 @@ export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
/// if (any.is(Foo.class)) {
/// foo = any.unpack(Foo.class);
/// }
/// // or ...
/// if (any.isSameTypeAs(Foo.getDefaultInstance())) {
/// foo = any.unpack(Foo.getDefaultInstance());
/// }
///
/// Example 3: Pack and unpack a message in Python.
///
@@ -56,10 +60,13 @@ export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
/// 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 {
/// ...
/// }
///
@@ -69,7 +76,6 @@ export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
/// in the type URL, for example "foo.bar.com/x/y.z" will yield type
/// name "y.z".
///
///
/// JSON
/// ====
/// The JSON representation of an `Any` value uses the regular
@@ -159,7 +165,8 @@ class Any extends $pb.GeneratedMessage with $mixin.AnyMixin {
///
/// 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.