// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v4.25.9 // source: notifications/notifications.proto // Указываем пакет для логической изоляции package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang.org/protobuf/types/known/structpb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // Структура самого уведомления type Notification struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` // Например: "SYSTEM_ALERT", "NEW_MESSAGE", "TASK_ASSIGNED" Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` // Заголовок (опционально) Text string `protobuf:"bytes,5,opt,name=text,proto3" json:"text,omitempty"` // Текст уведомления Payload *structpb.Struct `protobuf:"bytes,6,opt,name=payload,proto3" json:"payload,omitempty"` // Любая динамическая JSON-нагрузка (например, { "task_id": 123 }) IsRead bool `protobuf:"varint,7,opt,name=is_read,json=isRead,proto3" json:"is_read,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Notification) Reset() { *x = Notification{} mi := &file_notifications_notifications_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Notification) String() string { return protoimpl.X.MessageStringOf(x) } func (*Notification) ProtoMessage() {} func (x *Notification) ProtoReflect() protoreflect.Message { mi := &file_notifications_notifications_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Notification.ProtoReflect.Descriptor instead. func (*Notification) Descriptor() ([]byte, []int) { return file_notifications_notifications_proto_rawDescGZIP(), []int{0} } func (x *Notification) GetId() string { if x != nil { return x.Id } return "" } func (x *Notification) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *Notification) GetType() string { if x != nil { return x.Type } return "" } func (x *Notification) GetTitle() string { if x != nil { return x.Title } return "" } func (x *Notification) GetText() string { if x != nil { return x.Text } return "" } func (x *Notification) GetPayload() *structpb.Struct { if x != nil { return x.Payload } return nil } func (x *Notification) GetIsRead() bool { if x != nil { return x.IsRead } return false } func (x *Notification) GetCreatedAt() *timestamppb.Timestamp { if x != nil { return x.CreatedAt } return nil } type GetNotificationsRequest struct { state protoimpl.MessageState `protogen:"open.v1"` UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // ID пользователя запрашивающего данные (Gateway берет это из JWT) Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // Для пагинации (например, 20) Offset int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` // Для пагинации (например, 0) UnreadOnly *bool `protobuf:"varint,4,opt,name=unread_only,json=unreadOnly,proto3,oneof" json:"unread_only,omitempty"` // Фильтр: получить только непрочитанные unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetNotificationsRequest) Reset() { *x = GetNotificationsRequest{} mi := &file_notifications_notifications_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetNotificationsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetNotificationsRequest) ProtoMessage() {} func (x *GetNotificationsRequest) ProtoReflect() protoreflect.Message { mi := &file_notifications_notifications_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetNotificationsRequest.ProtoReflect.Descriptor instead. func (*GetNotificationsRequest) Descriptor() ([]byte, []int) { return file_notifications_notifications_proto_rawDescGZIP(), []int{1} } func (x *GetNotificationsRequest) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *GetNotificationsRequest) GetLimit() int32 { if x != nil { return x.Limit } return 0 } func (x *GetNotificationsRequest) GetOffset() int32 { if x != nil { return x.Offset } return 0 } func (x *GetNotificationsRequest) GetUnreadOnly() bool { if x != nil && x.UnreadOnly != nil { return *x.UnreadOnly } return false } type GetNotificationsResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` // Массив уведомлений TotalCount int32 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // Общее количество (для UI пагинации) unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetNotificationsResponse) Reset() { *x = GetNotificationsResponse{} mi := &file_notifications_notifications_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetNotificationsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetNotificationsResponse) ProtoMessage() {} func (x *GetNotificationsResponse) ProtoReflect() protoreflect.Message { mi := &file_notifications_notifications_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetNotificationsResponse.ProtoReflect.Descriptor instead. func (*GetNotificationsResponse) Descriptor() ([]byte, []int) { return file_notifications_notifications_proto_rawDescGZIP(), []int{2} } func (x *GetNotificationsResponse) GetNotifications() []*Notification { if x != nil { return x.Notifications } return nil } func (x *GetNotificationsResponse) GetTotalCount() int32 { if x != nil { return x.TotalCount } return 0 } type GetUnreadCountRequest struct { state protoimpl.MessageState `protogen:"open.v1"` UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetUnreadCountRequest) Reset() { *x = GetUnreadCountRequest{} mi := &file_notifications_notifications_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetUnreadCountRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetUnreadCountRequest) ProtoMessage() {} func (x *GetUnreadCountRequest) ProtoReflect() protoreflect.Message { mi := &file_notifications_notifications_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetUnreadCountRequest.ProtoReflect.Descriptor instead. func (*GetUnreadCountRequest) Descriptor() ([]byte, []int) { return file_notifications_notifications_proto_rawDescGZIP(), []int{3} } func (x *GetUnreadCountRequest) GetUserId() string { if x != nil { return x.UserId } return "" } type GetUnreadCountResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetUnreadCountResponse) Reset() { *x = GetUnreadCountResponse{} mi := &file_notifications_notifications_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetUnreadCountResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetUnreadCountResponse) ProtoMessage() {} func (x *GetUnreadCountResponse) ProtoReflect() protoreflect.Message { mi := &file_notifications_notifications_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetUnreadCountResponse.ProtoReflect.Descriptor instead. func (*GetUnreadCountResponse) Descriptor() ([]byte, []int) { return file_notifications_notifications_proto_rawDescGZIP(), []int{4} } func (x *GetUnreadCountResponse) GetCount() int32 { if x != nil { return x.Count } return 0 } type MarkAsReadRequest struct { state protoimpl.MessageState `protogen:"open.v1"` UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` NotificationId string `protobuf:"bytes,2,opt,name=notification_id,json=notificationId,proto3" json:"notification_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MarkAsReadRequest) Reset() { *x = MarkAsReadRequest{} mi := &file_notifications_notifications_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MarkAsReadRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*MarkAsReadRequest) ProtoMessage() {} func (x *MarkAsReadRequest) ProtoReflect() protoreflect.Message { mi := &file_notifications_notifications_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MarkAsReadRequest.ProtoReflect.Descriptor instead. func (*MarkAsReadRequest) Descriptor() ([]byte, []int) { return file_notifications_notifications_proto_rawDescGZIP(), []int{5} } func (x *MarkAsReadRequest) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *MarkAsReadRequest) GetNotificationId() string { if x != nil { return x.NotificationId } return "" } type MarkAsReadResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MarkAsReadResponse) Reset() { *x = MarkAsReadResponse{} mi := &file_notifications_notifications_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MarkAsReadResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*MarkAsReadResponse) ProtoMessage() {} func (x *MarkAsReadResponse) ProtoReflect() protoreflect.Message { mi := &file_notifications_notifications_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MarkAsReadResponse.ProtoReflect.Descriptor instead. func (*MarkAsReadResponse) Descriptor() ([]byte, []int) { return file_notifications_notifications_proto_rawDescGZIP(), []int{6} } func (x *MarkAsReadResponse) GetSuccess() bool { if x != nil { return x.Success } return false } type MarkAllAsReadRequest struct { state protoimpl.MessageState `protogen:"open.v1"` UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MarkAllAsReadRequest) Reset() { *x = MarkAllAsReadRequest{} mi := &file_notifications_notifications_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MarkAllAsReadRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*MarkAllAsReadRequest) ProtoMessage() {} func (x *MarkAllAsReadRequest) ProtoReflect() protoreflect.Message { mi := &file_notifications_notifications_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MarkAllAsReadRequest.ProtoReflect.Descriptor instead. func (*MarkAllAsReadRequest) Descriptor() ([]byte, []int) { return file_notifications_notifications_proto_rawDescGZIP(), []int{7} } func (x *MarkAllAsReadRequest) GetUserId() string { if x != nil { return x.UserId } return "" } type MarkAllAsReadResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` UpdatedCount int32 `protobuf:"varint,2,opt,name=updated_count,json=updatedCount,proto3" json:"updated_count,omitempty"` // Сколько уведомлений было обновлено unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MarkAllAsReadResponse) Reset() { *x = MarkAllAsReadResponse{} mi := &file_notifications_notifications_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MarkAllAsReadResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*MarkAllAsReadResponse) ProtoMessage() {} func (x *MarkAllAsReadResponse) ProtoReflect() protoreflect.Message { mi := &file_notifications_notifications_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MarkAllAsReadResponse.ProtoReflect.Descriptor instead. func (*MarkAllAsReadResponse) Descriptor() ([]byte, []int) { return file_notifications_notifications_proto_rawDescGZIP(), []int{8} } func (x *MarkAllAsReadResponse) GetSuccess() bool { if x != nil { return x.Success } return false } func (x *MarkAllAsReadResponse) GetUpdatedCount() int32 { if x != nil { return x.UpdatedCount } return 0 } type SendNotificationRequest struct { state protoimpl.MessageState `protogen:"open.v1"` UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // Кому отправляем (если пусто — можно сделать бродкаст, но лучше отдельный метод) Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` Payload *structpb.Struct `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"` // Метаданные для UI (ссылки, ID сущностей) unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SendNotificationRequest) Reset() { *x = SendNotificationRequest{} mi := &file_notifications_notifications_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SendNotificationRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SendNotificationRequest) ProtoMessage() {} func (x *SendNotificationRequest) ProtoReflect() protoreflect.Message { mi := &file_notifications_notifications_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SendNotificationRequest.ProtoReflect.Descriptor instead. func (*SendNotificationRequest) Descriptor() ([]byte, []int) { return file_notifications_notifications_proto_rawDescGZIP(), []int{9} } func (x *SendNotificationRequest) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *SendNotificationRequest) GetType() string { if x != nil { return x.Type } return "" } func (x *SendNotificationRequest) GetTitle() string { if x != nil { return x.Title } return "" } func (x *SendNotificationRequest) GetText() string { if x != nil { return x.Text } return "" } func (x *SendNotificationRequest) GetPayload() *structpb.Struct { if x != nil { return x.Payload } return nil } type SendNotificationResponse struct { state protoimpl.MessageState `protogen:"open.v1"` Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` NotificationId string `protobuf:"bytes,2,opt,name=notification_id,json=notificationId,proto3" json:"notification_id,omitempty"` // ID созданного уведомления в Postgres unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SendNotificationResponse) Reset() { *x = SendNotificationResponse{} mi := &file_notifications_notifications_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SendNotificationResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SendNotificationResponse) ProtoMessage() {} func (x *SendNotificationResponse) ProtoReflect() protoreflect.Message { mi := &file_notifications_notifications_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SendNotificationResponse.ProtoReflect.Descriptor instead. func (*SendNotificationResponse) Descriptor() ([]byte, []int) { return file_notifications_notifications_proto_rawDescGZIP(), []int{10} } func (x *SendNotificationResponse) GetSuccess() bool { if x != nil { return x.Success } return false } func (x *SendNotificationResponse) GetNotificationId() string { if x != nil { return x.NotificationId } return "" } var File_notifications_notifications_proto protoreflect.FileDescriptor const file_notifications_notifications_proto_rawDesc = "" + "\n" + "!notifications/notifications.proto\x12\x10notifications.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xfc\x01\n" + "\fNotification\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" + "\auser_id\x18\x02 \x01(\tR\x06userId\x12\x12\n" + "\x04type\x18\x03 \x01(\tR\x04type\x12\x14\n" + "\x05title\x18\x04 \x01(\tR\x05title\x12\x12\n" + "\x04text\x18\x05 \x01(\tR\x04text\x121\n" + "\apayload\x18\x06 \x01(\v2\x17.google.protobuf.StructR\apayload\x12\x17\n" + "\ais_read\x18\a \x01(\bR\x06isRead\x129\n" + "\n" + "created_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\"\x96\x01\n" + "\x17GetNotificationsRequest\x12\x17\n" + "\auser_id\x18\x01 \x01(\tR\x06userId\x12\x14\n" + "\x05limit\x18\x02 \x01(\x05R\x05limit\x12\x16\n" + "\x06offset\x18\x03 \x01(\x05R\x06offset\x12$\n" + "\vunread_only\x18\x04 \x01(\bH\x00R\n" + "unreadOnly\x88\x01\x01B\x0e\n" + "\f_unread_only\"\x81\x01\n" + "\x18GetNotificationsResponse\x12D\n" + "\rnotifications\x18\x01 \x03(\v2\x1e.notifications.v1.NotificationR\rnotifications\x12\x1f\n" + "\vtotal_count\x18\x02 \x01(\x05R\n" + "totalCount\"0\n" + "\x15GetUnreadCountRequest\x12\x17\n" + "\auser_id\x18\x01 \x01(\tR\x06userId\".\n" + "\x16GetUnreadCountResponse\x12\x14\n" + "\x05count\x18\x01 \x01(\x05R\x05count\"U\n" + "\x11MarkAsReadRequest\x12\x17\n" + "\auser_id\x18\x01 \x01(\tR\x06userId\x12'\n" + "\x0fnotification_id\x18\x02 \x01(\tR\x0enotificationId\".\n" + "\x12MarkAsReadResponse\x12\x18\n" + "\asuccess\x18\x01 \x01(\bR\asuccess\"/\n" + "\x14MarkAllAsReadRequest\x12\x17\n" + "\auser_id\x18\x01 \x01(\tR\x06userId\"V\n" + "\x15MarkAllAsReadResponse\x12\x18\n" + "\asuccess\x18\x01 \x01(\bR\asuccess\x12#\n" + "\rupdated_count\x18\x02 \x01(\x05R\fupdatedCount\"\xa3\x01\n" + "\x17SendNotificationRequest\x12\x17\n" + "\auser_id\x18\x01 \x01(\tR\x06userId\x12\x12\n" + "\x04type\x18\x02 \x01(\tR\x04type\x12\x14\n" + "\x05title\x18\x03 \x01(\tR\x05title\x12\x12\n" + "\x04text\x18\x04 \x01(\tR\x04text\x121\n" + "\apayload\x18\x05 \x01(\v2\x17.google.protobuf.StructR\apayload\"]\n" + "\x18SendNotificationResponse\x12\x18\n" + "\asuccess\x18\x01 \x01(\bR\asuccess\x12'\n" + "\x0fnotification_id\x18\x02 \x01(\tR\x0enotificationId2\x8f\x04\n" + "\x13NotificationService\x12m\n" + "\x14GetUserNotifications\x12).notifications.v1.GetNotificationsRequest\x1a*.notifications.v1.GetNotificationsResponse\x12c\n" + "\x0eGetUnreadCount\x12'.notifications.v1.GetUnreadCountRequest\x1a(.notifications.v1.GetUnreadCountResponse\x12W\n" + "\n" + "MarkAsRead\x12#.notifications.v1.MarkAsReadRequest\x1a$.notifications.v1.MarkAsReadResponse\x12`\n" + "\rMarkAllAsRead\x12&.notifications.v1.MarkAllAsReadRequest\x1a'.notifications.v1.MarkAllAsReadResponse\x12i\n" + "\x10SendNotification\x12).notifications.v1.SendNotificationRequest\x1a*.notifications.v1.SendNotificationResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3" var ( file_notifications_notifications_proto_rawDescOnce sync.Once file_notifications_notifications_proto_rawDescData []byte ) func file_notifications_notifications_proto_rawDescGZIP() []byte { file_notifications_notifications_proto_rawDescOnce.Do(func() { file_notifications_notifications_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_notifications_notifications_proto_rawDesc), len(file_notifications_notifications_proto_rawDesc))) }) return file_notifications_notifications_proto_rawDescData } var file_notifications_notifications_proto_msgTypes = make([]protoimpl.MessageInfo, 11) var file_notifications_notifications_proto_goTypes = []any{ (*Notification)(nil), // 0: notifications.v1.Notification (*GetNotificationsRequest)(nil), // 1: notifications.v1.GetNotificationsRequest (*GetNotificationsResponse)(nil), // 2: notifications.v1.GetNotificationsResponse (*GetUnreadCountRequest)(nil), // 3: notifications.v1.GetUnreadCountRequest (*GetUnreadCountResponse)(nil), // 4: notifications.v1.GetUnreadCountResponse (*MarkAsReadRequest)(nil), // 5: notifications.v1.MarkAsReadRequest (*MarkAsReadResponse)(nil), // 6: notifications.v1.MarkAsReadResponse (*MarkAllAsReadRequest)(nil), // 7: notifications.v1.MarkAllAsReadRequest (*MarkAllAsReadResponse)(nil), // 8: notifications.v1.MarkAllAsReadResponse (*SendNotificationRequest)(nil), // 9: notifications.v1.SendNotificationRequest (*SendNotificationResponse)(nil), // 10: notifications.v1.SendNotificationResponse (*structpb.Struct)(nil), // 11: google.protobuf.Struct (*timestamppb.Timestamp)(nil), // 12: google.protobuf.Timestamp } var file_notifications_notifications_proto_depIdxs = []int32{ 11, // 0: notifications.v1.Notification.payload:type_name -> google.protobuf.Struct 12, // 1: notifications.v1.Notification.created_at:type_name -> google.protobuf.Timestamp 0, // 2: notifications.v1.GetNotificationsResponse.notifications:type_name -> notifications.v1.Notification 11, // 3: notifications.v1.SendNotificationRequest.payload:type_name -> google.protobuf.Struct 1, // 4: notifications.v1.NotificationService.GetUserNotifications:input_type -> notifications.v1.GetNotificationsRequest 3, // 5: notifications.v1.NotificationService.GetUnreadCount:input_type -> notifications.v1.GetUnreadCountRequest 5, // 6: notifications.v1.NotificationService.MarkAsRead:input_type -> notifications.v1.MarkAsReadRequest 7, // 7: notifications.v1.NotificationService.MarkAllAsRead:input_type -> notifications.v1.MarkAllAsReadRequest 9, // 8: notifications.v1.NotificationService.SendNotification:input_type -> notifications.v1.SendNotificationRequest 2, // 9: notifications.v1.NotificationService.GetUserNotifications:output_type -> notifications.v1.GetNotificationsResponse 4, // 10: notifications.v1.NotificationService.GetUnreadCount:output_type -> notifications.v1.GetUnreadCountResponse 6, // 11: notifications.v1.NotificationService.MarkAsRead:output_type -> notifications.v1.MarkAsReadResponse 8, // 12: notifications.v1.NotificationService.MarkAllAsRead:output_type -> notifications.v1.MarkAllAsReadResponse 10, // 13: notifications.v1.NotificationService.SendNotification:output_type -> notifications.v1.SendNotificationResponse 9, // [9:14] is the sub-list for method output_type 4, // [4:9] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name 4, // [4:4] is the sub-list for extension extendee 0, // [0:4] is the sub-list for field type_name } func init() { file_notifications_notifications_proto_init() } func file_notifications_notifications_proto_init() { if File_notifications_notifications_proto != nil { return } file_notifications_notifications_proto_msgTypes[1].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_notifications_notifications_proto_rawDesc), len(file_notifications_notifications_proto_rawDesc)), NumEnums: 0, NumMessages: 11, NumExtensions: 0, NumServices: 1, }, GoTypes: file_notifications_notifications_proto_goTypes, DependencyIndexes: file_notifications_notifications_proto_depIdxs, MessageInfos: file_notifications_notifications_proto_msgTypes, }.Build() File_notifications_notifications_proto = out.File file_notifications_notifications_proto_goTypes = nil file_notifications_notifications_proto_depIdxs = nil }