// This is a generated file - do not edit. // // Generated from notification.proto. // @dart = 3.3 // ignore_for_file: annotate_overrides, camel_case_types, comment_references // ignore_for_file: constant_identifier_names // ignore_for_file: curly_braces_in_flow_control_structures // ignore_for_file: deprecated_member_use_from_same_package, library_prefixes // ignore_for_file: non_constant_identifier_names 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._(); factory Notification.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); factory Notification.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); 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; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static Notification create() => Notification._(); @$core.override 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 value) => $_setString(0, value); @$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 value) => $_setField(2, value); @$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 value) => $_setString(2, value); @$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 value) => $_setString(3, value); @$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 value) => $_setField(5, value); @$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 value) => $_setString(5, value); @$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._(); factory NotificationRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); factory NotificationRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); 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; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static NotificationRequest create() => NotificationRequest._(); @$core.override 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 value) => $_setString(0, value); @$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 value) => $_setField(2, value); @$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 value) => $_setString(2, value); @$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 value) => $_setField(4, value); @$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._(); factory PublishToUserRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); factory PublishToUserRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); 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; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PublishToUserRequest create() => PublishToUserRequest._(); @$core.override 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 value) => $_setString(0, value); @$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 value) => $_setInt64(1, value); @$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 value) => $_setField(3, value); @$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._(); factory PublishToUserResult.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); factory PublishToUserResult.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); 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; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static PublishToUserResult create() => PublishToUserResult._(); @$core.override 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._(); factory NotificationListItem.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); factory NotificationListItem.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); 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; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static NotificationListItem create() => NotificationListItem._(); @$core.override 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 value) => $_setString(0, value); @$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 value) => $_setField(2, value); @$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 value) => $_setString(2, value); @$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 value) => $_setField(4, value); @$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 value) => $_setString(4, value); @$pb.TagNumber(5) $core.bool hasID() => $_has(4); @$pb.TagNumber(5) void clearID() => $_clearField(5); } class ListNotificationRequest extends $pb.GeneratedMessage { factory ListNotificationRequest() => create(); ListNotificationRequest._(); factory ListNotificationRequest.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); factory ListNotificationRequest.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); 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; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ListNotificationRequest create() => ListNotificationRequest._(); @$core.override 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._(); factory ListNotificationResult.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry); factory ListNotificationResult.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry); 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; @$core.override $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') static ListNotificationResult create() => ListNotificationResult._(); @$core.override 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 $core.bool _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names'); const $core.bool _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');