From 558b9418cb57eedf4ade6e77c734392309812dcc Mon Sep 17 00:00:00 2001 From: liyi Date: Mon, 23 Dec 2024 18:52:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=A2=9E=E5=8A=A0test.proto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/talk/startChart/proto/test.pb.dart | 82 ++++++++++++++++++++ lib/talk/startChart/proto/test.pbenum.dart | 11 +++ lib/talk/startChart/proto/test.pbjson.dart | 29 +++++++ lib/talk/startChart/proto/test.pbserver.dart | 14 ++++ 4 files changed, 136 insertions(+) create mode 100644 lib/talk/startChart/proto/test.pb.dart create mode 100644 lib/talk/startChart/proto/test.pbenum.dart create mode 100644 lib/talk/startChart/proto/test.pbjson.dart create mode 100644 lib/talk/startChart/proto/test.pbserver.dart diff --git a/lib/talk/startChart/proto/test.pb.dart b/lib/talk/startChart/proto/test.pb.dart new file mode 100644 index 00000000..2f27e4c1 --- /dev/null +++ b/lib/talk/startChart/proto/test.pb.dart @@ -0,0 +1,82 @@ +// +// Generated code. Do not modify. +// source: test.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:core' as $core; + +import 'package:protobuf/protobuf.dart' as $pb; + +class TestStruct extends $pb.GeneratedMessage { + factory TestStruct({ + $core.int? statusA, + $core.int? statusB, + }) { + final $result = create(); + if (statusA != null) { + $result.statusA = statusA; + } + if (statusB != null) { + $result.statusB = statusB; + } + return $result; + } + TestStruct._() : super(); + factory TestStruct.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory TestStruct.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + + static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TestStruct', package: const $pb.PackageName(_omitMessageNames ? '' : 'main'), createEmptyInstance: create) + ..a<$core.int>(1, _omitFieldNames ? '' : 'StatusA', $pb.PbFieldType.OU3, protoName: 'StatusA') + ..a<$core.int>(2, _omitFieldNames ? '' : 'StatusB', $pb.PbFieldType.OU3, protoName: 'StatusB') + ..hasRequiredFields = false + ; + + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + TestStruct clone() => TestStruct()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + TestStruct copyWith(void Function(TestStruct) updates) => super.copyWith((message) => updates(message as TestStruct)) as TestStruct; + + $pb.BuilderInfo get info_ => _i; + + @$core.pragma('dart2js:noInline') + static TestStruct create() => TestStruct._(); + TestStruct createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static TestStruct getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static TestStruct? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get statusA => $_getIZ(0); + @$pb.TagNumber(1) + set statusA($core.int v) { $_setUnsignedInt32(0, v); } + @$pb.TagNumber(1) + $core.bool hasStatusA() => $_has(0); + @$pb.TagNumber(1) + void clearStatusA() => clearField(1); + + @$pb.TagNumber(2) + $core.int get statusB => $_getIZ(1); + @$pb.TagNumber(2) + set statusB($core.int v) { $_setUnsignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasStatusB() => $_has(1); + @$pb.TagNumber(2) + void clearStatusB() => clearField(2); +} + + +const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); +const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names'); diff --git a/lib/talk/startChart/proto/test.pbenum.dart b/lib/talk/startChart/proto/test.pbenum.dart new file mode 100644 index 00000000..27df3fe4 --- /dev/null +++ b/lib/talk/startChart/proto/test.pbenum.dart @@ -0,0 +1,11 @@ +// +// Generated code. Do not modify. +// source: test.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + diff --git a/lib/talk/startChart/proto/test.pbjson.dart b/lib/talk/startChart/proto/test.pbjson.dart new file mode 100644 index 00000000..3562951e --- /dev/null +++ b/lib/talk/startChart/proto/test.pbjson.dart @@ -0,0 +1,29 @@ +// +// Generated code. Do not modify. +// source: test.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +import 'dart:convert' as $convert; +import 'dart:core' as $core; +import 'dart:typed_data' as $typed_data; + +@$core.Deprecated('Use testStructDescriptor instead') +const TestStruct$json = { + '1': 'TestStruct', + '2': [ + {'1': 'StatusA', '3': 1, '4': 1, '5': 13, '10': 'StatusA'}, + {'1': 'StatusB', '3': 2, '4': 1, '5': 13, '10': 'StatusB'}, + ], +}; + +/// Descriptor for `TestStruct`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List testStructDescriptor = $convert.base64Decode( + 'CgpUZXN0U3RydWN0EhgKB1N0YXR1c0EYASABKA1SB1N0YXR1c0ESGAoHU3RhdHVzQhgCIAEoDV' + 'IHU3RhdHVzQg=='); + diff --git a/lib/talk/startChart/proto/test.pbserver.dart b/lib/talk/startChart/proto/test.pbserver.dart new file mode 100644 index 00000000..3ef60894 --- /dev/null +++ b/lib/talk/startChart/proto/test.pbserver.dart @@ -0,0 +1,14 @@ +// +// Generated code. Do not modify. +// source: test.proto +// +// @dart = 2.12 + +// ignore_for_file: annotate_overrides, camel_case_types, comment_references +// ignore_for_file: constant_identifier_names +// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes +// ignore_for_file: non_constant_identifier_names, prefer_final_fields +// ignore_for_file: unnecessary_import, unnecessary_this, unused_import + +export 'test.pb.dart'; +