Skip to content

Commit

Permalink
Update Proto Files
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobkoerber committed Oct 30, 2024
1 parent 2ae2d14 commit 4356e0b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 496 deletions.
2 changes: 2 additions & 0 deletions lib/base/networking/apis/google/protobuf/empty.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import 'package:protobuf/protobuf.dart' as $pb;
/// service Foo {
/// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
/// }
///
/// The JSON representation for `Empty` is empty JSON object `{}`.
class Empty extends $pb.GeneratedMessage {
factory Empty() => create();
Empty._() : super();
Expand Down
4 changes: 3 additions & 1 deletion lib/base/networking/apis/google/protobuf/timestamp.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin;
/// Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
/// .setNanos((int) ((millis % 1000) * 1000000)).build();
///
///
/// Example 5: Compute Timestamp from Java `Instant.now()`.
///
/// Instant now = Instant.now();
Expand All @@ -73,6 +74,7 @@ import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin;
/// Timestamp.newBuilder().setSeconds(now.getEpochSecond())
/// .setNanos(now.getNano()).build();
///
///
/// Example 6: Compute Timestamp from current time in Python.
///
/// timestamp = Timestamp()
Expand Down Expand Up @@ -102,7 +104,7 @@ import 'package:protobuf/src/protobuf/mixins/well_known.dart' as $mixin;
/// [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
/// the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
/// the Joda Time's [`ISODateTimeFormat.dateTime()`](
/// http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
/// http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
/// ) to obtain a formatter capable of generating timestamps in this format.
class Timestamp extends $pb.GeneratedMessage with $mixin.TimestampMixin {
factory Timestamp({
Expand Down
306 changes: 0 additions & 306 deletions lib/base/networking/apis/tumdev/campus_backend.pb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3788,56 +3788,6 @@ class GetMemberReply extends $pb.GeneratedMessage {
void clearMemberId() => clearField(3);
}

class GetUploadStatusRequest extends $pb.GeneratedMessage {
factory GetUploadStatusRequest({
$core.String? lrzId,
}) {
final $result = create();
if (lrzId != null) {
$result.lrzId = lrzId;
}
return $result;
}
GetUploadStatusRequest._() : super();
factory GetUploadStatusRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory GetUploadStatusRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetUploadStatusRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'lrzId')
..hasRequiredFields = false
;

@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
GetUploadStatusRequest clone() => GetUploadStatusRequest()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
GetUploadStatusRequest copyWith(void Function(GetUploadStatusRequest) updates) => super.copyWith((message) => updates(message as GetUploadStatusRequest)) as GetUploadStatusRequest;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static GetUploadStatusRequest create() => GetUploadStatusRequest._();
GetUploadStatusRequest createEmptyInstance() => create();
static $pb.PbList<GetUploadStatusRequest> createRepeated() => $pb.PbList<GetUploadStatusRequest>();
@$core.pragma('dart2js:noInline')
static GetUploadStatusRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetUploadStatusRequest>(create);
static GetUploadStatusRequest? _defaultInstance;

@$pb.TagNumber(1)
$core.String get lrzId => $_getSZ(0);
@$pb.TagNumber(1)
set lrzId($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasLrzId() => $_has(0);
@$pb.TagNumber(1)
void clearLrzId() => clearField(1);
}

class GetUploadStatusReply extends $pb.GeneratedMessage {
factory GetUploadStatusReply({
$core.String? fcmToken,
Expand Down Expand Up @@ -3944,262 +3894,6 @@ class GetUploadStatusReply extends $pb.GeneratedMessage {
void clearExternalId() => clearField(5);
}

class GetNotificationRequest extends $pb.GeneratedMessage {
factory GetNotificationRequest({
$core.int? notificationId,
}) {
final $result = create();
if (notificationId != null) {
$result.notificationId = notificationId;
}
return $result;
}
GetNotificationRequest._() : super();
factory GetNotificationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory GetNotificationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetNotificationRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
..a<$core.int>(1, _omitFieldNames ? '' : 'notificationId', $pb.PbFieldType.O3)
..hasRequiredFields = false
;

@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
GetNotificationRequest clone() => GetNotificationRequest()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
GetNotificationRequest copyWith(void Function(GetNotificationRequest) updates) => super.copyWith((message) => updates(message as GetNotificationRequest)) as GetNotificationRequest;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static GetNotificationRequest create() => GetNotificationRequest._();
GetNotificationRequest createEmptyInstance() => create();
static $pb.PbList<GetNotificationRequest> createRepeated() => $pb.PbList<GetNotificationRequest>();
@$core.pragma('dart2js:noInline')
static GetNotificationRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetNotificationRequest>(create);
static GetNotificationRequest? _defaultInstance;

@$pb.TagNumber(1)
$core.int get notificationId => $_getIZ(0);
@$pb.TagNumber(1)
set notificationId($core.int v) { $_setSignedInt32(0, v); }
@$pb.TagNumber(1)
$core.bool hasNotificationId() => $_has(0);
@$pb.TagNumber(1)
void clearNotificationId() => clearField(1);
}

class GetNotificationReply extends $pb.GeneratedMessage {
factory GetNotificationReply({
$core.int? notificationId,
$core.int? type,
$core.String? title,
$core.String? description,
$core.String? signature,
}) {
final $result = create();
if (notificationId != null) {
$result.notificationId = notificationId;
}
if (type != null) {
$result.type = type;
}
if (title != null) {
$result.title = title;
}
if (description != null) {
$result.description = description;
}
if (signature != null) {
$result.signature = signature;
}
return $result;
}
GetNotificationReply._() : super();
factory GetNotificationReply.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory GetNotificationReply.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetNotificationReply', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
..a<$core.int>(1, _omitFieldNames ? '' : 'notificationId', $pb.PbFieldType.O3)
..a<$core.int>(2, _omitFieldNames ? '' : 'type', $pb.PbFieldType.O3)
..aOS(3, _omitFieldNames ? '' : 'title')
..aOS(4, _omitFieldNames ? '' : 'description')
..aOS(5, _omitFieldNames ? '' : 'signature')
..hasRequiredFields = false
;

@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
GetNotificationReply clone() => GetNotificationReply()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
GetNotificationReply copyWith(void Function(GetNotificationReply) updates) => super.copyWith((message) => updates(message as GetNotificationReply)) as GetNotificationReply;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static GetNotificationReply create() => GetNotificationReply._();
GetNotificationReply createEmptyInstance() => create();
static $pb.PbList<GetNotificationReply> createRepeated() => $pb.PbList<GetNotificationReply>();
@$core.pragma('dart2js:noInline')
static GetNotificationReply getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetNotificationReply>(create);
static GetNotificationReply? _defaultInstance;

@$pb.TagNumber(1)
$core.int get notificationId => $_getIZ(0);
@$pb.TagNumber(1)
set notificationId($core.int v) { $_setSignedInt32(0, v); }
@$pb.TagNumber(1)
$core.bool hasNotificationId() => $_has(0);
@$pb.TagNumber(1)
void clearNotificationId() => clearField(1);

@$pb.TagNumber(2)
$core.int get type => $_getIZ(1);
@$pb.TagNumber(2)
set type($core.int v) { $_setSignedInt32(1, v); }
@$pb.TagNumber(2)
$core.bool hasType() => $_has(1);
@$pb.TagNumber(2)
void clearType() => clearField(2);

@$pb.TagNumber(3)
$core.String get title => $_getSZ(2);
@$pb.TagNumber(3)
set title($core.String v) { $_setString(2, v); }
@$pb.TagNumber(3)
$core.bool hasTitle() => $_has(2);
@$pb.TagNumber(3)
void clearTitle() => clearField(3);

@$pb.TagNumber(4)
$core.String get description => $_getSZ(3);
@$pb.TagNumber(4)
set description($core.String v) { $_setString(3, v); }
@$pb.TagNumber(4)
$core.bool hasDescription() => $_has(3);
@$pb.TagNumber(4)
void clearDescription() => clearField(4);

@$pb.TagNumber(5)
$core.String get signature => $_getSZ(4);
@$pb.TagNumber(5)
set signature($core.String v) { $_setString(4, v); }
@$pb.TagNumber(5)
$core.bool hasSignature() => $_has(4);
@$pb.TagNumber(5)
void clearSignature() => clearField(5);
}

class GetNotificationConfirmRequest extends $pb.GeneratedMessage {
factory GetNotificationConfirmRequest({
$core.int? notificationId,
}) {
final $result = create();
if (notificationId != null) {
$result.notificationId = notificationId;
}
return $result;
}
GetNotificationConfirmRequest._() : super();
factory GetNotificationConfirmRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory GetNotificationConfirmRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetNotificationConfirmRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
..a<$core.int>(1, _omitFieldNames ? '' : 'notificationId', $pb.PbFieldType.O3)
..hasRequiredFields = false
;

@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
GetNotificationConfirmRequest clone() => GetNotificationConfirmRequest()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
GetNotificationConfirmRequest copyWith(void Function(GetNotificationConfirmRequest) updates) => super.copyWith((message) => updates(message as GetNotificationConfirmRequest)) as GetNotificationConfirmRequest;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static GetNotificationConfirmRequest create() => GetNotificationConfirmRequest._();
GetNotificationConfirmRequest createEmptyInstance() => create();
static $pb.PbList<GetNotificationConfirmRequest> createRepeated() => $pb.PbList<GetNotificationConfirmRequest>();
@$core.pragma('dart2js:noInline')
static GetNotificationConfirmRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetNotificationConfirmRequest>(create);
static GetNotificationConfirmRequest? _defaultInstance;

@$pb.TagNumber(1)
$core.int get notificationId => $_getIZ(0);
@$pb.TagNumber(1)
set notificationId($core.int v) { $_setSignedInt32(0, v); }
@$pb.TagNumber(1)
$core.bool hasNotificationId() => $_has(0);
@$pb.TagNumber(1)
void clearNotificationId() => clearField(1);
}

class GetNotificationConfirmReply extends $pb.GeneratedMessage {
factory GetNotificationConfirmReply({
$core.String? status,
}) {
final $result = create();
if (status != null) {
$result.status = status;
}
return $result;
}
GetNotificationConfirmReply._() : super();
factory GetNotificationConfirmReply.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
factory GetNotificationConfirmReply.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetNotificationConfirmReply', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
..aOS(1, _omitFieldNames ? '' : 'status')
..hasRequiredFields = false
;

@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
'Will be removed in next major version')
GetNotificationConfirmReply clone() => GetNotificationConfirmReply()..mergeFromMessage(this);
@$core.Deprecated(
'Using this can add significant overhead to your binary. '
'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
'Will be removed in next major version')
GetNotificationConfirmReply copyWith(void Function(GetNotificationConfirmReply) updates) => super.copyWith((message) => updates(message as GetNotificationConfirmReply)) as GetNotificationConfirmReply;

$pb.BuilderInfo get info_ => _i;

@$core.pragma('dart2js:noInline')
static GetNotificationConfirmReply create() => GetNotificationConfirmReply._();
GetNotificationConfirmReply createEmptyInstance() => create();
static $pb.PbList<GetNotificationConfirmReply> createRepeated() => $pb.PbList<GetNotificationConfirmReply>();
@$core.pragma('dart2js:noInline')
static GetNotificationConfirmReply getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetNotificationConfirmReply>(create);
static GetNotificationConfirmReply? _defaultInstance;

@$pb.TagNumber(1)
$core.String get status => $_getSZ(0);
@$pb.TagNumber(1)
set status($core.String v) { $_setString(0, v); }
@$pb.TagNumber(1)
$core.bool hasStatus() => $_has(0);
@$pb.TagNumber(1)
void clearStatus() => clearField(1);
}

class GetCanteenHeadCountRequest extends $pb.GeneratedMessage {
factory GetCanteenHeadCountRequest({
$core.String? canteenId,
Expand Down
Loading

0 comments on commit 4356e0b

Please sign in to comment.