-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
388b536
commit 763c3eb
Showing
48 changed files
with
11,495 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
/// | ||
// Generated code. Do not modify. | ||
// source: errors/errors.proto | ||
// | ||
// @dart = 2.12 | ||
// 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 | ||
|
||
import 'dart:core' as $core; | ||
|
||
import 'package:protobuf/protobuf.dart' as $pb; | ||
|
||
class Error extends $pb.GeneratedMessage { | ||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Error', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'errors'), createEmptyInstance: create) | ||
..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'code', $pb.PbFieldType.O3) | ||
..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'reason') | ||
..aOS(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'message') | ||
..m<$core.String, $core.String>(4, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'metadata', entryClassName: 'Error.MetadataEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OS, packageName: const $pb.PackageName('errors')) | ||
..hasRequiredFields = false | ||
; | ||
|
||
Error._() : super(); | ||
factory Error({ | ||
$core.int? code, | ||
$core.String? reason, | ||
$core.String? message, | ||
$core.Map<$core.String, $core.String>? metadata, | ||
}) { | ||
final _result = create(); | ||
if (code != null) { | ||
_result.code = code; | ||
} | ||
if (reason != null) { | ||
_result.reason = reason; | ||
} | ||
if (message != null) { | ||
_result.message = message; | ||
} | ||
if (metadata != null) { | ||
_result.metadata.addAll(metadata); | ||
} | ||
return _result; | ||
} | ||
factory Error.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); | ||
factory Error.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); | ||
@$core.Deprecated( | ||
'Using this can add significant overhead to your binary. ' | ||
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' | ||
'Will be removed in next major version') | ||
Error clone() => Error()..mergeFromMessage(this); | ||
@$core.Deprecated( | ||
'Using this can add significant overhead to your binary. ' | ||
'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' | ||
'Will be removed in next major version') | ||
Error copyWith(void Function(Error) updates) => super.copyWith((message) => updates(message as Error)) as Error; // ignore: deprecated_member_use | ||
$pb.BuilderInfo get info_ => _i; | ||
@$core.pragma('dart2js:noInline') | ||
static Error create() => Error._(); | ||
Error createEmptyInstance() => create(); | ||
static $pb.PbList<Error> createRepeated() => $pb.PbList<Error>(); | ||
@$core.pragma('dart2js:noInline') | ||
static Error getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Error>(create); | ||
static Error? _defaultInstance; | ||
|
||
@$pb.TagNumber(1) | ||
$core.int get code => $_getIZ(0); | ||
@$pb.TagNumber(1) | ||
set code($core.int v) { $_setSignedInt32(0, v); } | ||
@$pb.TagNumber(1) | ||
$core.bool hasCode() => $_has(0); | ||
@$pb.TagNumber(1) | ||
void clearCode() => clearField(1); | ||
|
||
@$pb.TagNumber(2) | ||
$core.String get reason => $_getSZ(1); | ||
@$pb.TagNumber(2) | ||
set reason($core.String v) { $_setString(1, v); } | ||
@$pb.TagNumber(2) | ||
$core.bool hasReason() => $_has(1); | ||
@$pb.TagNumber(2) | ||
void clearReason() => clearField(2); | ||
|
||
@$pb.TagNumber(3) | ||
$core.String get message => $_getSZ(2); | ||
@$pb.TagNumber(3) | ||
set message($core.String v) { $_setString(2, v); } | ||
@$pb.TagNumber(3) | ||
$core.bool hasMessage() => $_has(2); | ||
@$pb.TagNumber(3) | ||
void clearMessage() => clearField(3); | ||
|
||
@$pb.TagNumber(4) | ||
$core.Map<$core.String, $core.String> get metadata => $_getMap(3); | ||
} | ||
|
||
class Errors { | ||
static final defaultCode = $pb.Extension<$core.int>(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'google.protobuf.EnumOptions', const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'defaultCode', 1108, $pb.PbFieldType.O3); | ||
static final code = $pb.Extension<$core.int>(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'google.protobuf.EnumValueOptions', const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'code', 1109, $pb.PbFieldType.O3); | ||
static void registerAllExtensions($pb.ExtensionRegistry registry) { | ||
registry.add(defaultCode); | ||
registry.add(code); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/// | ||
// Generated code. Do not modify. | ||
// source: errors/errors.proto | ||
// | ||
// @dart = 2.12 | ||
// 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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/// | ||
// Generated code. Do not modify. | ||
// source: errors/errors.proto | ||
// | ||
// @dart = 2.12 | ||
// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,deprecated_member_use_from_same_package,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 | ||
|
||
import 'dart:core' as $core; | ||
import 'dart:convert' as $convert; | ||
import 'dart:typed_data' as $typed_data; | ||
@$core.Deprecated('Use errorDescriptor instead') | ||
const Error$json = const { | ||
'1': 'Error', | ||
'2': const [ | ||
const {'1': 'code', '3': 1, '4': 1, '5': 5, '10': 'code'}, | ||
const {'1': 'reason', '3': 2, '4': 1, '5': 9, '10': 'reason'}, | ||
const {'1': 'message', '3': 3, '4': 1, '5': 9, '10': 'message'}, | ||
const {'1': 'metadata', '3': 4, '4': 3, '5': 11, '6': '.errors.Error.MetadataEntry', '10': 'metadata'}, | ||
], | ||
'3': const [Error_MetadataEntry$json], | ||
}; | ||
|
||
@$core.Deprecated('Use errorDescriptor instead') | ||
const Error_MetadataEntry$json = const { | ||
'1': 'MetadataEntry', | ||
'2': const [ | ||
const {'1': 'key', '3': 1, '4': 1, '5': 9, '10': 'key'}, | ||
const {'1': 'value', '3': 2, '4': 1, '5': 9, '10': 'value'}, | ||
], | ||
'7': const {'7': true}, | ||
}; | ||
|
||
/// Descriptor for `Error`. Decode as a `google.protobuf.DescriptorProto`. | ||
final $typed_data.Uint8List errorDescriptor = $convert.base64Decode('CgVFcnJvchISCgRjb2RlGAEgASgFUgRjb2RlEhYKBnJlYXNvbhgCIAEoCVIGcmVhc29uEhgKB21lc3NhZ2UYAyABKAlSB21lc3NhZ2USNwoIbWV0YWRhdGEYBCADKAsyGy5lcnJvcnMuRXJyb3IuTWV0YWRhdGFFbnRyeVIIbWV0YWRhdGEaOwoNTWV0YWRhdGFFbnRyeRIQCgNrZXkYASABKAlSA2tleRIUCgV2YWx1ZRgCIAEoCVIFdmFsdWU6AjgB'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/// | ||
// Generated code. Do not modify. | ||
// source: errors/errors.proto | ||
// | ||
// @dart = 2.12 | ||
// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,deprecated_member_use_from_same_package,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 | ||
|
||
export 'errors.pb.dart'; | ||
|
Oops, something went wrong.