Skip to content

Commit

Permalink
fix: protoc gen files
Browse files Browse the repository at this point in the history
  • Loading branch information
kkweon committed Jun 20, 2021
1 parent da5da10 commit 2550023
Show file tree
Hide file tree
Showing 13 changed files with 62 additions and 32 deletions.
2 changes: 1 addition & 1 deletion client/lib/custom_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ class CustomTheme extends ChangeNotifier {
Icon get icon => _isDarkMode
? const Icon(Icons.dark_mode_outlined)
: const Icon(Icons.light_mode_outlined);
}
}
69 changes: 49 additions & 20 deletions client/lib/protos/google/protobuf/timestamp.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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<Timestamp> createRepeated() => $pb.PbList<Timestamp>();
@$core.pragma('dart2js:noInline')
static Timestamp getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Timestamp>(create);
static Timestamp getDefault() =>
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Timestamp>(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)
Expand All @@ -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.
Expand All @@ -80,4 +110,3 @@ class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin {
return result;
}
}

1 change: 0 additions & 1 deletion client/lib/protos/google/protobuf/timestamp.pbenum.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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

4 changes: 3 additions & 1 deletion client/lib/protos/google/protobuf/timestamp.pbjson.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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=');
2 changes: 1 addition & 1 deletion client/lib/screens/main_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ class PRVideos extends StatelessWidget {
PR12Video(index: index, video: snapshot.data![index]));
});
}
}
}
2 changes: 1 addition & 1 deletion client/lib/widgets/components/expandable_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ class _ExpandableTextState extends State<ExpandableText> {
_isExpanded = !_isExpanded;
});
}
}
}
2 changes: 1 addition & 1 deletion client/lib/widgets/detail/abstract.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ class PaperAbstractWidget extends StatelessWidget {
],
));
}
}
}
2 changes: 1 addition & 1 deletion client/lib/widgets/main/pr12video.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ List<Widget> getCategoryWidgets(Category category) {
default:
return [const Icon(Icons.grid_view), const Text('ETC')];
}
}
}
2 changes: 1 addition & 1 deletion client/test/screens/main_screen_test_with_mocks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ void main() {
expect(mockTheme.themeMode, isNot(oldThemeMode));
});
});
}
}
2 changes: 1 addition & 1 deletion server/pkg/pr12er/database.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/pkg/pr12er/messages.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/pkg/pr12er/metadata.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion server/pkg/pr12er/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2550023

Please sign in to comment.