// // 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');