// // Generated code. Do not modify. // source: notification.proto // // @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references // ignore_for_file: constant_identifier_names, library_prefixes // ignore_for_file: non_constant_identifier_names, prefer_final_fields // ignore_for_file: unnecessary_import, unnecessary_this, unused_import import 'dart:core' as $core; import 'package:fixnum/fixnum.dart' as $fixnum; import 'package:protobuf/protobuf.dart' as $pb; import 'notification.pbenum.dart'; export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions; export 'notification.pbenum.dart'; class Notification extends $pb.GeneratedMessage { factory Notification({ $core.String? payload, NotificationType? type, $core.String? templateName, $core.String? ackID, NotificationCategory? category, $core.String? iD, }) { final $result = create(); if (payload != null) { $result.payload = payload; } if (type != null) { $result.type = type; } if (templateName != null) { $result.templateName = templateName; } if (ackID != null) { $result.ackID = ackID; } if (category != null) { $result.category = category; } if (iD != null) { $result.iD = iD; } return $result; } Notification._() : super(); factory Notification.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory Notification.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Notification', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'Payload', protoName: 'Payload') ..e(2, _omitFieldNames ? '' : 'Type', $pb.PbFieldType.OE, protoName: 'Type', defaultOrMaker: NotificationType.NOTIFICATION_TYPE_UNDEFINED, valueOf: NotificationType.valueOf, enumValues: NotificationType.values) ..aOS(3, _omitFieldNames ? '' : 'TemplateName', protoName: 'TemplateName') ..aOS(4, _omitFieldNames ? '' : 'AckID', protoName: 'AckID') ..e(5, _omitFieldNames ? '' : 'Category', $pb.PbFieldType.OE, protoName: 'Category', defaultOrMaker: NotificationCategory.NOTIFICATION_CATEGORY_UNDEFINED, valueOf: NotificationCategory.valueOf, enumValues: NotificationCategory.values) ..aOS(6, _omitFieldNames ? '' : 'ID', protoName: 'ID') ..hasRequiredFields = false ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Notification clone() => Notification()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') Notification copyWith(void Function(Notification) updates) => super.copyWith((message) => updates(message as Notification)) as Notification; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Notification create() => Notification._(); Notification createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static Notification getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static Notification? _defaultInstance; @$pb.TagNumber(1) $core.String get payload => $_getSZ(0); @$pb.TagNumber(1) set payload($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasPayload() => $_has(0); @$pb.TagNumber(1) void clearPayload() => $_clearField(1); @$pb.TagNumber(2) NotificationType get type => $_getN(1); @$pb.TagNumber(2) set type(NotificationType v) { $_setField(2, v); } @$pb.TagNumber(2) $core.bool hasType() => $_has(1); @$pb.TagNumber(2) void clearType() => $_clearField(2); @$pb.TagNumber(3) $core.String get templateName => $_getSZ(2); @$pb.TagNumber(3) set templateName($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasTemplateName() => $_has(2); @$pb.TagNumber(3) void clearTemplateName() => $_clearField(3); @$pb.TagNumber(4) $core.String get ackID => $_getSZ(3); @$pb.TagNumber(4) set ackID($core.String v) { $_setString(3, v); } @$pb.TagNumber(4) $core.bool hasAckID() => $_has(3); @$pb.TagNumber(4) void clearAckID() => $_clearField(4); @$pb.TagNumber(5) NotificationCategory get category => $_getN(4); @$pb.TagNumber(5) set category(NotificationCategory v) { $_setField(5, v); } @$pb.TagNumber(5) $core.bool hasCategory() => $_has(4); @$pb.TagNumber(5) void clearCategory() => $_clearField(5); @$pb.TagNumber(6) $core.String get iD => $_getSZ(5); @$pb.TagNumber(6) set iD($core.String v) { $_setString(5, v); } @$pb.TagNumber(6) $core.bool hasID() => $_has(5); @$pb.TagNumber(6) void clearID() => $_clearField(6); } class NotificationRequest extends $pb.GeneratedMessage { factory NotificationRequest({ $core.String? payload, NotificationType? type, $core.String? templateName, NotificationCategory? category, }) { final $result = create(); if (payload != null) { $result.payload = payload; } if (type != null) { $result.type = type; } if (templateName != null) { $result.templateName = templateName; } if (category != null) { $result.category = category; } return $result; } NotificationRequest._() : super(); factory NotificationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory NotificationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'NotificationRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'Payload', protoName: 'Payload') ..e(2, _omitFieldNames ? '' : 'Type', $pb.PbFieldType.OE, protoName: 'Type', defaultOrMaker: NotificationType.NOTIFICATION_TYPE_UNDEFINED, valueOf: NotificationType.valueOf, enumValues: NotificationType.values) ..aOS(3, _omitFieldNames ? '' : 'TemplateName', protoName: 'TemplateName') ..e(4, _omitFieldNames ? '' : 'Category', $pb.PbFieldType.OE, protoName: 'Category', defaultOrMaker: NotificationCategory.NOTIFICATION_CATEGORY_UNDEFINED, valueOf: NotificationCategory.valueOf, enumValues: NotificationCategory.values) ..hasRequiredFields = false ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') NotificationRequest clone() => NotificationRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') NotificationRequest copyWith(void Function(NotificationRequest) updates) => super.copyWith((message) => updates(message as NotificationRequest)) as NotificationRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static NotificationRequest create() => NotificationRequest._(); NotificationRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static NotificationRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static NotificationRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get payload => $_getSZ(0); @$pb.TagNumber(1) set payload($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasPayload() => $_has(0); @$pb.TagNumber(1) void clearPayload() => $_clearField(1); @$pb.TagNumber(2) NotificationType get type => $_getN(1); @$pb.TagNumber(2) set type(NotificationType v) { $_setField(2, v); } @$pb.TagNumber(2) $core.bool hasType() => $_has(1); @$pb.TagNumber(2) void clearType() => $_clearField(2); @$pb.TagNumber(3) $core.String get templateName => $_getSZ(2); @$pb.TagNumber(3) set templateName($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasTemplateName() => $_has(2); @$pb.TagNumber(3) void clearTemplateName() => $_clearField(3); @$pb.TagNumber(4) NotificationCategory get category => $_getN(3); @$pb.TagNumber(4) set category(NotificationCategory v) { $_setField(4, v); } @$pb.TagNumber(4) $core.bool hasCategory() => $_has(3); @$pb.TagNumber(4) void clearCategory() => $_clearField(4); } class PublishToUserRequest extends $pb.GeneratedMessage { factory PublishToUserRequest({ $core.String? userID, $fixnum.Int64? expirationDate, NotificationRequest? notification, }) { final $result = create(); if (userID != null) { $result.userID = userID; } if (expirationDate != null) { $result.expirationDate = expirationDate; } if (notification != null) { $result.notification = notification; } return $result; } PublishToUserRequest._() : super(); factory PublishToUserRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory PublishToUserRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PublishToUserRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'UserID', protoName: 'UserID') ..aInt64(2, _omitFieldNames ? '' : 'ExpirationDate', protoName: 'ExpirationDate') ..aOM(3, _omitFieldNames ? '' : 'Notification', protoName: 'Notification', subBuilder: NotificationRequest.create) ..hasRequiredFields = false ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') PublishToUserRequest clone() => PublishToUserRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') PublishToUserRequest copyWith(void Function(PublishToUserRequest) updates) => super.copyWith((message) => updates(message as PublishToUserRequest)) as PublishToUserRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PublishToUserRequest create() => PublishToUserRequest._(); PublishToUserRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static PublishToUserRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PublishToUserRequest? _defaultInstance; @$pb.TagNumber(1) $core.String get userID => $_getSZ(0); @$pb.TagNumber(1) set userID($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasUserID() => $_has(0); @$pb.TagNumber(1) void clearUserID() => $_clearField(1); @$pb.TagNumber(2) $fixnum.Int64 get expirationDate => $_getI64(1); @$pb.TagNumber(2) set expirationDate($fixnum.Int64 v) { $_setInt64(1, v); } @$pb.TagNumber(2) $core.bool hasExpirationDate() => $_has(1); @$pb.TagNumber(2) void clearExpirationDate() => $_clearField(2); @$pb.TagNumber(3) NotificationRequest get notification => $_getN(2); @$pb.TagNumber(3) set notification(NotificationRequest v) { $_setField(3, v); } @$pb.TagNumber(3) $core.bool hasNotification() => $_has(2); @$pb.TagNumber(3) void clearNotification() => $_clearField(3); @$pb.TagNumber(3) NotificationRequest ensureNotification() => $_ensure(2); } class PublishToUserResult extends $pb.GeneratedMessage { factory PublishToUserResult() => create(); PublishToUserResult._() : super(); factory PublishToUserResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory PublishToUserResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PublishToUserResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..hasRequiredFields = false ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') PublishToUserResult clone() => PublishToUserResult()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') PublishToUserResult copyWith(void Function(PublishToUserResult) updates) => super.copyWith((message) => updates(message as PublishToUserResult)) as PublishToUserResult; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PublishToUserResult create() => PublishToUserResult._(); PublishToUserResult createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static PublishToUserResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static PublishToUserResult? _defaultInstance; } class NotificationListItem extends $pb.GeneratedMessage { factory NotificationListItem({ $core.String? payload, NotificationType? type, $core.String? templateName, NotificationCategory? category, $core.String? iD, }) { final $result = create(); if (payload != null) { $result.payload = payload; } if (type != null) { $result.type = type; } if (templateName != null) { $result.templateName = templateName; } if (category != null) { $result.category = category; } if (iD != null) { $result.iD = iD; } return $result; } NotificationListItem._() : super(); factory NotificationListItem.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory NotificationListItem.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'NotificationListItem', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..aOS(1, _omitFieldNames ? '' : 'Payload', protoName: 'Payload') ..e(2, _omitFieldNames ? '' : 'Type', $pb.PbFieldType.OE, protoName: 'Type', defaultOrMaker: NotificationType.NOTIFICATION_TYPE_UNDEFINED, valueOf: NotificationType.valueOf, enumValues: NotificationType.values) ..aOS(3, _omitFieldNames ? '' : 'TemplateName', protoName: 'TemplateName') ..e(4, _omitFieldNames ? '' : 'Category', $pb.PbFieldType.OE, protoName: 'Category', defaultOrMaker: NotificationCategory.NOTIFICATION_CATEGORY_UNDEFINED, valueOf: NotificationCategory.valueOf, enumValues: NotificationCategory.values) ..aOS(5, _omitFieldNames ? '' : 'ID', protoName: 'ID') ..hasRequiredFields = false ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') NotificationListItem clone() => NotificationListItem()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') NotificationListItem copyWith(void Function(NotificationListItem) updates) => super.copyWith((message) => updates(message as NotificationListItem)) as NotificationListItem; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static NotificationListItem create() => NotificationListItem._(); NotificationListItem createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static NotificationListItem getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static NotificationListItem? _defaultInstance; @$pb.TagNumber(1) $core.String get payload => $_getSZ(0); @$pb.TagNumber(1) set payload($core.String v) { $_setString(0, v); } @$pb.TagNumber(1) $core.bool hasPayload() => $_has(0); @$pb.TagNumber(1) void clearPayload() => $_clearField(1); @$pb.TagNumber(2) NotificationType get type => $_getN(1); @$pb.TagNumber(2) set type(NotificationType v) { $_setField(2, v); } @$pb.TagNumber(2) $core.bool hasType() => $_has(1); @$pb.TagNumber(2) void clearType() => $_clearField(2); @$pb.TagNumber(3) $core.String get templateName => $_getSZ(2); @$pb.TagNumber(3) set templateName($core.String v) { $_setString(2, v); } @$pb.TagNumber(3) $core.bool hasTemplateName() => $_has(2); @$pb.TagNumber(3) void clearTemplateName() => $_clearField(3); @$pb.TagNumber(4) NotificationCategory get category => $_getN(3); @$pb.TagNumber(4) set category(NotificationCategory v) { $_setField(4, v); } @$pb.TagNumber(4) $core.bool hasCategory() => $_has(3); @$pb.TagNumber(4) void clearCategory() => $_clearField(4); @$pb.TagNumber(5) $core.String get iD => $_getSZ(4); @$pb.TagNumber(5) set iD($core.String v) { $_setString(4, v); } @$pb.TagNumber(5) $core.bool hasID() => $_has(4); @$pb.TagNumber(5) void clearID() => $_clearField(5); } class ListNotificationRequest extends $pb.GeneratedMessage { factory ListNotificationRequest() => create(); ListNotificationRequest._() : super(); factory ListNotificationRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListNotificationRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListNotificationRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..hasRequiredFields = false ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ListNotificationRequest clone() => ListNotificationRequest()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ListNotificationRequest copyWith(void Function(ListNotificationRequest) updates) => super.copyWith((message) => updates(message as ListNotificationRequest)) as ListNotificationRequest; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ListNotificationRequest create() => ListNotificationRequest._(); ListNotificationRequest createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ListNotificationRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ListNotificationRequest? _defaultInstance; } class ListNotificationResult extends $pb.GeneratedMessage { factory ListNotificationResult({ $core.Iterable? notifications, }) { final $result = create(); if (notifications != null) { $result.notifications.addAll(notifications); } return $result; } ListNotificationResult._() : super(); factory ListNotificationResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); factory ListNotificationResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListNotificationResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create) ..pc(1, _omitFieldNames ? '' : 'Notifications', $pb.PbFieldType.PM, protoName: 'Notifications', subBuilder: NotificationListItem.create) ..hasRequiredFields = false ; @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ListNotificationResult clone() => ListNotificationResult()..mergeFromMessage(this); @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.') ListNotificationResult copyWith(void Function(ListNotificationResult) updates) => super.copyWith((message) => updates(message as ListNotificationResult)) as ListNotificationResult; $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ListNotificationResult create() => ListNotificationResult._(); ListNotificationResult createEmptyInstance() => create(); static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') static ListNotificationResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); static ListNotificationResult? _defaultInstance; @$pb.TagNumber(1) $pb.PbList get notifications => $_getList(0); } const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');