github.com/binkynet/BinkyNet@v1.12.1-0.20240421190447-da4e34c20be0/dart/lib/logprovider.pb.dart (about) 1 /// 2 // Generated code. Do not modify. 3 // source: logprovider.proto 4 // 5 // @dart = 2.12 6 // ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name 7 8 import 'dart:core' as $core; 9 10 import 'package:protobuf/protobuf.dart' as $pb; 11 12 import 'logprovider.pbenum.dart'; 13 14 export 'logprovider.pbenum.dart'; 15 16 class GetLogsRequest extends $pb.GeneratedMessage { 17 static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetLogsRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'binkynet.v1'), createEmptyInstance: create) 18 ..hasRequiredFields = false 19 ; 20 21 GetLogsRequest._() : super(); 22 factory GetLogsRequest() => create(); 23 factory GetLogsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); 24 factory GetLogsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); 25 @$core.Deprecated( 26 'Using this can add significant overhead to your binary. ' 27 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 28 'Will be removed in next major version') 29 GetLogsRequest clone() => GetLogsRequest()..mergeFromMessage(this); 30 @$core.Deprecated( 31 'Using this can add significant overhead to your binary. ' 32 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 33 'Will be removed in next major version') 34 GetLogsRequest copyWith(void Function(GetLogsRequest) updates) => super.copyWith((message) => updates(message as GetLogsRequest)) as GetLogsRequest; // ignore: deprecated_member_use 35 $pb.BuilderInfo get info_ => _i; 36 @$core.pragma('dart2js:noInline') 37 static GetLogsRequest create() => GetLogsRequest._(); 38 GetLogsRequest createEmptyInstance() => create(); 39 static $pb.PbList<GetLogsRequest> createRepeated() => $pb.PbList<GetLogsRequest>(); 40 @$core.pragma('dart2js:noInline') 41 static GetLogsRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetLogsRequest>(create); 42 static GetLogsRequest? _defaultInstance; 43 } 44 45 class LogEntry extends $pb.GeneratedMessage { 46 static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'LogEntry', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'binkynet.v1'), createEmptyInstance: create) 47 ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'message') 48 ..e<LogLevel>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'level', $pb.PbFieldType.OE, defaultOrMaker: LogLevel.TRACE, valueOf: LogLevel.valueOf, enumValues: LogLevel.values) 49 ..hasRequiredFields = false 50 ; 51 52 LogEntry._() : super(); 53 factory LogEntry({ 54 $core.String? message, 55 LogLevel? level, 56 }) { 57 final _result = create(); 58 if (message != null) { 59 _result.message = message; 60 } 61 if (level != null) { 62 _result.level = level; 63 } 64 return _result; 65 } 66 factory LogEntry.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); 67 factory LogEntry.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); 68 @$core.Deprecated( 69 'Using this can add significant overhead to your binary. ' 70 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 71 'Will be removed in next major version') 72 LogEntry clone() => LogEntry()..mergeFromMessage(this); 73 @$core.Deprecated( 74 'Using this can add significant overhead to your binary. ' 75 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 76 'Will be removed in next major version') 77 LogEntry copyWith(void Function(LogEntry) updates) => super.copyWith((message) => updates(message as LogEntry)) as LogEntry; // ignore: deprecated_member_use 78 $pb.BuilderInfo get info_ => _i; 79 @$core.pragma('dart2js:noInline') 80 static LogEntry create() => LogEntry._(); 81 LogEntry createEmptyInstance() => create(); 82 static $pb.PbList<LogEntry> createRepeated() => $pb.PbList<LogEntry>(); 83 @$core.pragma('dart2js:noInline') 84 static LogEntry getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<LogEntry>(create); 85 static LogEntry? _defaultInstance; 86 87 @$pb.TagNumber(1) 88 $core.String get message => $_getSZ(0); 89 @$pb.TagNumber(1) 90 set message($core.String v) { $_setString(0, v); } 91 @$pb.TagNumber(1) 92 $core.bool hasMessage() => $_has(0); 93 @$pb.TagNumber(1) 94 void clearMessage() => clearField(1); 95 96 @$pb.TagNumber(2) 97 LogLevel get level => $_getN(1); 98 @$pb.TagNumber(2) 99 set level(LogLevel v) { setField(2, v); } 100 @$pb.TagNumber(2) 101 $core.bool hasLevel() => $_has(1); 102 @$pb.TagNumber(2) 103 void clearLevel() => clearField(2); 104 } 105