fix:增加test.proto
This commit is contained in:
parent
d8680ac7df
commit
558b9418cb
82
lib/talk/startChart/proto/test.pb.dart
Normal file
82
lib/talk/startChart/proto/test.pb.dart
Normal file
@ -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<TestStruct> createRepeated() => $pb.PbList<TestStruct>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static TestStruct getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<TestStruct>(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');
|
||||
11
lib/talk/startChart/proto/test.pbenum.dart
Normal file
11
lib/talk/startChart/proto/test.pbenum.dart
Normal file
@ -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
|
||||
|
||||
29
lib/talk/startChart/proto/test.pbjson.dart
Normal file
29
lib/talk/startChart/proto/test.pbjson.dart
Normal file
@ -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==');
|
||||
|
||||
14
lib/talk/startChart/proto/test.pbserver.dart
Normal file
14
lib/talk/startChart/proto/test.pbserver.dart
Normal file
@ -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';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user