From 25500231b0973780d931ab4491177e30fe00bffa Mon Sep 17 00:00:00 2001 From: Mo Kweon Date: Sun, 20 Jun 2021 10:20:30 -0700 Subject: [PATCH] fix: protoc gen files --- client/lib/custom_theme.dart | 2 +- .../protos/google/protobuf/timestamp.pb.dart | 69 +++++++++++++------ .../google/protobuf/timestamp.pbenum.dart | 1 - .../google/protobuf/timestamp.pbjson.dart | 4 +- client/lib/screens/main_screen.dart | 2 +- .../widgets/components/expandable_text.dart | 2 +- client/lib/widgets/detail/abstract.dart | 2 +- client/lib/widgets/main/pr12video.dart | 2 +- .../screens/main_screen_test_with_mocks.dart | 2 +- server/pkg/pr12er/database.pb.go | 2 +- server/pkg/pr12er/messages.pb.go | 2 +- server/pkg/pr12er/metadata.pb.go | 2 +- server/pkg/pr12er/service.pb.go | 2 +- 13 files changed, 62 insertions(+), 32 deletions(-) diff --git a/client/lib/custom_theme.dart b/client/lib/custom_theme.dart index 287c5374..cc247e21 100644 --- a/client/lib/custom_theme.dart +++ b/client/lib/custom_theme.dart @@ -52,4 +52,4 @@ class CustomTheme extends ChangeNotifier { Icon get icon => _isDarkMode ? const Icon(Icons.dark_mode_outlined) : const Icon(Icons.light_mode_outlined); -} \ No newline at end of file +} diff --git a/client/lib/protos/google/protobuf/timestamp.pb.dart b/client/lib/protos/google/protobuf/timestamp.pb.dart index e5ed493f..a3416608 100644 --- a/client/lib/protos/google/protobuf/timestamp.pb.dart +++ b/client/lib/protos/google/protobuf/timestamp.pb.dart @@ -13,11 +13,29 @@ import 'package:protobuf/protobuf.dart' as $pb; import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin; class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Timestamp', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'google.protobuf'), createEmptyInstance: create, toProto3Json: $mixin.TimestampMixin.toProto3JsonHelper, fromProto3Json: $mixin.TimestampMixin.fromProto3JsonHelper) - ..aInt64(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'seconds') - ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'nanos', $pb.PbFieldType.O3) - ..hasRequiredFields = false - ; + static final $pb.BuilderInfo _i = $pb.BuilderInfo( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'Timestamp', + package: const $pb.PackageName( + const $core.bool.fromEnvironment('protobuf.omit_message_names') + ? '' + : 'google.protobuf'), + createEmptyInstance: create, + toProto3Json: $mixin.TimestampMixin.toProto3JsonHelper, + fromProto3Json: $mixin.TimestampMixin.fromProto3JsonHelper) + ..aInt64( + 1, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'seconds') + ..a<$core.int>( + 2, + const $core.bool.fromEnvironment('protobuf.omit_field_names') + ? '' + : 'nanos', + $pb.PbFieldType.O3) + ..hasRequiredFields = false; Timestamp._() : super(); factory Timestamp({ @@ -33,31 +51,39 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { } return _result; } - factory Timestamp.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory Timestamp.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') + factory Timestamp.fromBuffer($core.List<$core.int> i, + [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => + create()..mergeFromBuffer(i, r); + factory Timestamp.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') Timestamp clone() => Timestamp()..mergeFromMessage(this); - @$core.Deprecated( - 'Using this can add significant overhead to your binary. ' - 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' - 'Will be removed in next major version') - Timestamp copyWith(void Function(Timestamp) updates) => super.copyWith((message) => updates(message as Timestamp)) as Timestamp; // ignore: deprecated_member_use + @$core.Deprecated('Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + Timestamp copyWith(void Function(Timestamp) updates) => + super.copyWith((message) => updates(message as Timestamp)) + as Timestamp; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Timestamp create() => Timestamp._(); Timestamp createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static Timestamp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static Timestamp getDefault() => + _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Timestamp? _defaultInstance; @$pb.TagNumber(1) $fixnum.Int64 get seconds => $_getI64(0); @$pb.TagNumber(1) - set seconds($fixnum.Int64 v) { $_setInt64(0, v); } + set seconds($fixnum.Int64 v) { + $_setInt64(0, v); + } + @$pb.TagNumber(1) $core.bool hasSeconds() => $_has(0); @$pb.TagNumber(1) @@ -66,11 +92,15 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { @$pb.TagNumber(2) $core.int get nanos => $_getIZ(1); @$pb.TagNumber(2) - set nanos($core.int v) { $_setSignedInt32(1, v); } + set nanos($core.int v) { + $_setSignedInt32(1, v); + } + @$pb.TagNumber(2) $core.bool hasNanos() => $_has(1); @$pb.TagNumber(2) void clearNanos() => clearField(2); + /// Creates a new instance from [dateTime]. /// /// Time zone information will not be preserved. @@ -80,4 +110,3 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin { return result; } } - diff --git a/client/lib/protos/google/protobuf/timestamp.pbenum.dart b/client/lib/protos/google/protobuf/timestamp.pbenum.dart index 72b1ec68..78b6cb53 100644 --- a/client/lib/protos/google/protobuf/timestamp.pbenum.dart +++ b/client/lib/protos/google/protobuf/timestamp.pbenum.dart @@ -4,4 +4,3 @@ // // @dart = 2.12 // ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields - diff --git a/client/lib/protos/google/protobuf/timestamp.pbjson.dart b/client/lib/protos/google/protobuf/timestamp.pbjson.dart index d031fbfc..1ae3997a 100644 --- a/client/lib/protos/google/protobuf/timestamp.pbjson.dart +++ b/client/lib/protos/google/protobuf/timestamp.pbjson.dart @@ -8,6 +8,7 @@ import 'dart:core' as $core; import 'dart:convert' as $convert; import 'dart:typed_data' as $typed_data; + @$core.Deprecated('Use timestampDescriptor instead') const Timestamp$json = const { '1': 'Timestamp', @@ -18,4 +19,5 @@ const Timestamp$json = const { }; /// Descriptor for `Timestamp`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List timestampDescriptor = $convert.base64Decode('CglUaW1lc3RhbXASGAoHc2Vjb25kcxgBIAEoA1IHc2Vjb25kcxIUCgVuYW5vcxgCIAEoBVIFbmFub3M='); +final $typed_data.Uint8List timestampDescriptor = $convert.base64Decode( + 'CglUaW1lc3RhbXASGAoHc2Vjb25kcxgBIAEoA1IHc2Vjb25kcxIUCgVuYW5vcxgCIAEoBVIFbmFub3M='); diff --git a/client/lib/screens/main_screen.dart b/client/lib/screens/main_screen.dart index b375713f..7952819c 100644 --- a/client/lib/screens/main_screen.dart +++ b/client/lib/screens/main_screen.dart @@ -64,4 +64,4 @@ class PRVideos extends StatelessWidget { PR12Video(index: index, video: snapshot.data![index])); }); } -} \ No newline at end of file +} diff --git a/client/lib/widgets/components/expandable_text.dart b/client/lib/widgets/components/expandable_text.dart index 22280c9e..aa26229a 100644 --- a/client/lib/widgets/components/expandable_text.dart +++ b/client/lib/widgets/components/expandable_text.dart @@ -60,4 +60,4 @@ class _ExpandableTextState extends State { _isExpanded = !_isExpanded; }); } -} \ No newline at end of file +} diff --git a/client/lib/widgets/detail/abstract.dart b/client/lib/widgets/detail/abstract.dart index 72970243..c2c3a3a6 100644 --- a/client/lib/widgets/detail/abstract.dart +++ b/client/lib/widgets/detail/abstract.dart @@ -23,4 +23,4 @@ class PaperAbstractWidget extends StatelessWidget { ], )); } -} \ No newline at end of file +} diff --git a/client/lib/widgets/main/pr12video.dart b/client/lib/widgets/main/pr12video.dart index bf4f4d53..72875275 100644 --- a/client/lib/widgets/main/pr12video.dart +++ b/client/lib/widgets/main/pr12video.dart @@ -74,4 +74,4 @@ List getCategoryWidgets(Category category) { default: return [const Icon(Icons.grid_view), const Text('ETC')]; } -} \ No newline at end of file +} diff --git a/client/test/screens/main_screen_test_with_mocks.dart b/client/test/screens/main_screen_test_with_mocks.dart index 5fca79a1..8208f691 100644 --- a/client/test/screens/main_screen_test_with_mocks.dart +++ b/client/test/screens/main_screen_test_with_mocks.dart @@ -75,4 +75,4 @@ void main() { expect(mockTheme.themeMode, isNot(oldThemeMode)); }); }); -} \ No newline at end of file +} diff --git a/server/pkg/pr12er/database.pb.go b/server/pkg/pr12er/database.pb.go index 33e23ba0..f4fd7bdb 100644 --- a/server/pkg/pr12er/database.pb.go +++ b/server/pkg/pr12er/database.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.15.2 +// protoc v3.17.1 // source: pkg/pr12er/database.proto package pr12er diff --git a/server/pkg/pr12er/messages.pb.go b/server/pkg/pr12er/messages.pb.go index 0c3e87ac..ca448203 100644 --- a/server/pkg/pr12er/messages.pb.go +++ b/server/pkg/pr12er/messages.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.15.2 +// protoc v3.17.1 // source: pkg/pr12er/messages.proto package pr12er diff --git a/server/pkg/pr12er/metadata.pb.go b/server/pkg/pr12er/metadata.pb.go index 72fc47c7..72f3a4be 100644 --- a/server/pkg/pr12er/metadata.pb.go +++ b/server/pkg/pr12er/metadata.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.15.2 +// protoc v3.17.1 // source: pkg/pr12er/metadata.proto package pr12er diff --git a/server/pkg/pr12er/service.pb.go b/server/pkg/pr12er/service.pb.go index c58903ab..d54a3d88 100644 --- a/server/pkg/pr12er/service.pb.go +++ b/server/pkg/pr12er/service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.15.2 +// protoc v3.17.1 // source: pkg/pr12er/service.proto package pr12er