1808 lines
55 KiB
Go
1808 lines
55 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.11
|
||
// protoc v4.25.9
|
||
// source: chat/chat.proto
|
||
|
||
package pb
|
||
|
||
import (
|
||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
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 MessageDto struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||
ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
||
SenderId string `protobuf:"bytes,3,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
|
||
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // TEXT, VOICE, VIDEO_NOTE, STICKER, IMAGE
|
||
Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` // Для текста - сам текст. Для медиа - URL S3!
|
||
Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` // Ширина/высота картинки, длительность войса (JSON string)
|
||
ReplyToId string `protobuf:"bytes,7,opt,name=reply_to_id,json=replyToId,proto3" json:"reply_to_id,omitempty"`
|
||
IsEdited bool `protobuf:"varint,8,opt,name=is_edited,json=isEdited,proto3" json:"is_edited,omitempty"`
|
||
CreatedAt string `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *MessageDto) Reset() {
|
||
*x = MessageDto{}
|
||
mi := &file_chat_chat_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *MessageDto) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*MessageDto) ProtoMessage() {}
|
||
|
||
func (x *MessageDto) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_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 MessageDto.ProtoReflect.Descriptor instead.
|
||
func (*MessageDto) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *MessageDto) GetId() string {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *MessageDto) GetChatId() string {
|
||
if x != nil {
|
||
return x.ChatId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *MessageDto) GetSenderId() string {
|
||
if x != nil {
|
||
return x.SenderId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *MessageDto) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *MessageDto) GetContent() string {
|
||
if x != nil {
|
||
return x.Content
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *MessageDto) GetMetadata() string {
|
||
if x != nil {
|
||
return x.Metadata
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *MessageDto) GetReplyToId() string {
|
||
if x != nil {
|
||
return x.ReplyToId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *MessageDto) GetIsEdited() bool {
|
||
if x != nil {
|
||
return x.IsEdited
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *MessageDto) GetCreatedAt() string {
|
||
if x != nil {
|
||
return x.CreatedAt
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type ChatMemberDto struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AccountId string `protobuf:"bytes,1,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
|
||
Role string `protobuf:"bytes,2,opt,name=role,proto3" json:"role,omitempty"` // OWNER, ADMIN, MEMBER
|
||
IsMuted bool `protobuf:"varint,3,opt,name=is_muted,json=isMuted,proto3" json:"is_muted,omitempty"`
|
||
JoinedAt string `protobuf:"bytes,4,opt,name=joined_at,json=joinedAt,proto3" json:"joined_at,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ChatMemberDto) Reset() {
|
||
*x = ChatMemberDto{}
|
||
mi := &file_chat_chat_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ChatMemberDto) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ChatMemberDto) ProtoMessage() {}
|
||
|
||
func (x *ChatMemberDto) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_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 ChatMemberDto.ProtoReflect.Descriptor instead.
|
||
func (*ChatMemberDto) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *ChatMemberDto) GetAccountId() string {
|
||
if x != nil {
|
||
return x.AccountId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChatMemberDto) GetRole() string {
|
||
if x != nil {
|
||
return x.Role
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChatMemberDto) GetIsMuted() bool {
|
||
if x != nil {
|
||
return x.IsMuted
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *ChatMemberDto) GetJoinedAt() string {
|
||
if x != nil {
|
||
return x.JoinedAt
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type ChatDto struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // DIRECT, GROUP, CHANNEL
|
||
Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
|
||
AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"`
|
||
UnreadCount int32 `protobuf:"varint,5,opt,name=unread_count,json=unreadCount,proto3" json:"unread_count,omitempty"`
|
||
LastMessage *MessageDto `protobuf:"bytes,6,opt,name=last_message,json=lastMessage,proto3" json:"last_message,omitempty"`
|
||
IsMuted bool `protobuf:"varint,7,opt,name=is_muted,json=isMuted,proto3" json:"is_muted,omitempty"` // Полезно для рендера иконки перечеркнутого колокольчика
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ChatDto) Reset() {
|
||
*x = ChatDto{}
|
||
mi := &file_chat_chat_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ChatDto) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ChatDto) ProtoMessage() {}
|
||
|
||
func (x *ChatDto) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_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 ChatDto.ProtoReflect.Descriptor instead.
|
||
func (*ChatDto) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *ChatDto) GetId() string {
|
||
if x != nil {
|
||
return x.Id
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChatDto) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChatDto) GetTitle() string {
|
||
if x != nil {
|
||
return x.Title
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChatDto) GetAvatarUrl() string {
|
||
if x != nil {
|
||
return x.AvatarUrl
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ChatDto) GetUnreadCount() int32 {
|
||
if x != nil {
|
||
return x.UnreadCount
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ChatDto) GetLastMessage() *MessageDto {
|
||
if x != nil {
|
||
return x.LastMessage
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ChatDto) GetIsMuted() bool {
|
||
if x != nil {
|
||
return x.IsMuted
|
||
}
|
||
return false
|
||
}
|
||
|
||
type CreateChatRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
CreatorId string `protobuf:"bytes,1,opt,name=creator_id,json=creatorId,proto3" json:"creator_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"`
|
||
ParticipantIds []string `protobuf:"bytes,4,rep,name=participant_ids,json=participantIds,proto3" json:"participant_ids,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateChatRequest) Reset() {
|
||
*x = CreateChatRequest{}
|
||
mi := &file_chat_chat_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateChatRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateChatRequest) ProtoMessage() {}
|
||
|
||
func (x *CreateChatRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_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 CreateChatRequest.ProtoReflect.Descriptor instead.
|
||
func (*CreateChatRequest) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *CreateChatRequest) GetCreatorId() string {
|
||
if x != nil {
|
||
return x.CreatorId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateChatRequest) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateChatRequest) GetTitle() string {
|
||
if x != nil {
|
||
return x.Title
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateChatRequest) GetParticipantIds() []string {
|
||
if x != nil {
|
||
return x.ParticipantIds
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type CreateChatResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Chat *ChatDto `protobuf:"bytes,1,opt,name=chat,proto3" json:"chat,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateChatResponse) Reset() {
|
||
*x = CreateChatResponse{}
|
||
mi := &file_chat_chat_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateChatResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateChatResponse) ProtoMessage() {}
|
||
|
||
func (x *CreateChatResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_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 CreateChatResponse.ProtoReflect.Descriptor instead.
|
||
func (*CreateChatResponse) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *CreateChatResponse) GetChat() *ChatDto {
|
||
if x != nil {
|
||
return x.Chat
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type GetUserChatsRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
Offset int32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
|
||
Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetUserChatsRequest) Reset() {
|
||
*x = GetUserChatsRequest{}
|
||
mi := &file_chat_chat_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetUserChatsRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetUserChatsRequest) ProtoMessage() {}
|
||
|
||
func (x *GetUserChatsRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_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 GetUserChatsRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetUserChatsRequest) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *GetUserChatsRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetUserChatsRequest) GetOffset() int32 {
|
||
if x != nil {
|
||
return x.Offset
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetUserChatsRequest) GetLimit() int32 {
|
||
if x != nil {
|
||
return x.Limit
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type GetUserChatsResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Chats []*ChatDto `protobuf:"bytes,1,rep,name=chats,proto3" json:"chats,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetUserChatsResponse) Reset() {
|
||
*x = GetUserChatsResponse{}
|
||
mi := &file_chat_chat_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetUserChatsResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetUserChatsResponse) ProtoMessage() {}
|
||
|
||
func (x *GetUserChatsResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_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 GetUserChatsResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetUserChatsResponse) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *GetUserChatsResponse) GetChats() []*ChatDto {
|
||
if x != nil {
|
||
return x.Chats
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// Получаем профили всех участников и ссылку-приглашение (join_hash)
|
||
type GetChatDetailsRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetChatDetailsRequest) Reset() {
|
||
*x = GetChatDetailsRequest{}
|
||
mi := &file_chat_chat_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetChatDetailsRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetChatDetailsRequest) ProtoMessage() {}
|
||
|
||
func (x *GetChatDetailsRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_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 GetChatDetailsRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetChatDetailsRequest) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
func (x *GetChatDetailsRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetChatDetailsRequest) GetChatId() string {
|
||
if x != nil {
|
||
return x.ChatId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type GetChatDetailsResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Chat *ChatDto `protobuf:"bytes,1,opt,name=chat,proto3" json:"chat,omitempty"`
|
||
JoinHash string `protobuf:"bytes,2,opt,name=join_hash,json=joinHash,proto3" json:"join_hash,omitempty"` // Для ссылки-приглашения (t.me/join/...)
|
||
Members []*ChatMemberDto `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetChatDetailsResponse) Reset() {
|
||
*x = GetChatDetailsResponse{}
|
||
mi := &file_chat_chat_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetChatDetailsResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetChatDetailsResponse) ProtoMessage() {}
|
||
|
||
func (x *GetChatDetailsResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_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 GetChatDetailsResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetChatDetailsResponse) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
func (x *GetChatDetailsResponse) GetChat() *ChatDto {
|
||
if x != nil {
|
||
return x.Chat
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *GetChatDetailsResponse) GetJoinHash() string {
|
||
if x != nil {
|
||
return x.JoinHash
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetChatDetailsResponse) GetMembers() []*ChatMemberDto {
|
||
if x != nil {
|
||
return x.Members
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type JoinChatRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"` // Передаем либо chat_id, либо вытаскиваем его из join_hash
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *JoinChatRequest) Reset() {
|
||
*x = JoinChatRequest{}
|
||
mi := &file_chat_chat_proto_msgTypes[9]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *JoinChatRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*JoinChatRequest) ProtoMessage() {}
|
||
|
||
func (x *JoinChatRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_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 JoinChatRequest.ProtoReflect.Descriptor instead.
|
||
func (*JoinChatRequest) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{9}
|
||
}
|
||
|
||
func (x *JoinChatRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *JoinChatRequest) GetChatId() string {
|
||
if x != nil {
|
||
return x.ChatId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type JoinChatResponse 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 *JoinChatResponse) Reset() {
|
||
*x = JoinChatResponse{}
|
||
mi := &file_chat_chat_proto_msgTypes[10]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *JoinChatResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*JoinChatResponse) ProtoMessage() {}
|
||
|
||
func (x *JoinChatResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_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 JoinChatResponse.ProtoReflect.Descriptor instead.
|
||
func (*JoinChatResponse) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{10}
|
||
}
|
||
|
||
func (x *JoinChatResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
type LeaveChatRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LeaveChatRequest) Reset() {
|
||
*x = LeaveChatRequest{}
|
||
mi := &file_chat_chat_proto_msgTypes[11]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LeaveChatRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LeaveChatRequest) ProtoMessage() {}
|
||
|
||
func (x *LeaveChatRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_proto_msgTypes[11]
|
||
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 LeaveChatRequest.ProtoReflect.Descriptor instead.
|
||
func (*LeaveChatRequest) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{11}
|
||
}
|
||
|
||
func (x *LeaveChatRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LeaveChatRequest) GetChatId() string {
|
||
if x != nil {
|
||
return x.ChatId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type LeaveChatResponse 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 *LeaveChatResponse) Reset() {
|
||
*x = LeaveChatResponse{}
|
||
mi := &file_chat_chat_proto_msgTypes[12]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LeaveChatResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LeaveChatResponse) ProtoMessage() {}
|
||
|
||
func (x *LeaveChatResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_proto_msgTypes[12]
|
||
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 LeaveChatResponse.ProtoReflect.Descriptor instead.
|
||
func (*LeaveChatResponse) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{12}
|
||
}
|
||
|
||
func (x *LeaveChatResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
type RemoveMemberRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdminId string `protobuf:"bytes,1,opt,name=admin_id,json=adminId,proto3" json:"admin_id,omitempty"` // Кто кикает (нужно проверить права)
|
||
TargetUserId string `protobuf:"bytes,2,opt,name=target_user_id,json=targetUserId,proto3" json:"target_user_id,omitempty"` // Кого кикают
|
||
ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *RemoveMemberRequest) Reset() {
|
||
*x = RemoveMemberRequest{}
|
||
mi := &file_chat_chat_proto_msgTypes[13]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RemoveMemberRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RemoveMemberRequest) ProtoMessage() {}
|
||
|
||
func (x *RemoveMemberRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_proto_msgTypes[13]
|
||
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 RemoveMemberRequest.ProtoReflect.Descriptor instead.
|
||
func (*RemoveMemberRequest) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{13}
|
||
}
|
||
|
||
func (x *RemoveMemberRequest) GetAdminId() string {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RemoveMemberRequest) GetTargetUserId() string {
|
||
if x != nil {
|
||
return x.TargetUserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *RemoveMemberRequest) GetChatId() string {
|
||
if x != nil {
|
||
return x.ChatId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type RemoveMemberResponse 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 *RemoveMemberResponse) Reset() {
|
||
*x = RemoveMemberResponse{}
|
||
mi := &file_chat_chat_proto_msgTypes[14]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *RemoveMemberResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*RemoveMemberResponse) ProtoMessage() {}
|
||
|
||
func (x *RemoveMemberResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_proto_msgTypes[14]
|
||
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 RemoveMemberResponse.ProtoReflect.Descriptor instead.
|
||
func (*RemoveMemberResponse) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{14}
|
||
}
|
||
|
||
func (x *RemoveMemberResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
type MuteChatRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
||
IsMuted bool `protobuf:"varint,3,opt,name=is_muted,json=isMuted,proto3" json:"is_muted,omitempty"` // true = выключить звук, false = включить
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *MuteChatRequest) Reset() {
|
||
*x = MuteChatRequest{}
|
||
mi := &file_chat_chat_proto_msgTypes[15]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *MuteChatRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*MuteChatRequest) ProtoMessage() {}
|
||
|
||
func (x *MuteChatRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_proto_msgTypes[15]
|
||
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 MuteChatRequest.ProtoReflect.Descriptor instead.
|
||
func (*MuteChatRequest) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{15}
|
||
}
|
||
|
||
func (x *MuteChatRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *MuteChatRequest) GetChatId() string {
|
||
if x != nil {
|
||
return x.ChatId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *MuteChatRequest) GetIsMuted() bool {
|
||
if x != nil {
|
||
return x.IsMuted
|
||
}
|
||
return false
|
||
}
|
||
|
||
type MuteChatResponse 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 *MuteChatResponse) Reset() {
|
||
*x = MuteChatResponse{}
|
||
mi := &file_chat_chat_proto_msgTypes[16]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *MuteChatResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*MuteChatResponse) ProtoMessage() {}
|
||
|
||
func (x *MuteChatResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_proto_msgTypes[16]
|
||
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 MuteChatResponse.ProtoReflect.Descriptor instead.
|
||
func (*MuteChatResponse) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{16}
|
||
}
|
||
|
||
func (x *MuteChatResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
type GetMessagesRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
||
Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
|
||
BeforeMsgId string `protobuf:"bytes,4,opt,name=before_msg_id,json=beforeMsgId,proto3" json:"before_msg_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetMessagesRequest) Reset() {
|
||
*x = GetMessagesRequest{}
|
||
mi := &file_chat_chat_proto_msgTypes[17]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetMessagesRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetMessagesRequest) ProtoMessage() {}
|
||
|
||
func (x *GetMessagesRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_proto_msgTypes[17]
|
||
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 GetMessagesRequest.ProtoReflect.Descriptor instead.
|
||
func (*GetMessagesRequest) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{17}
|
||
}
|
||
|
||
func (x *GetMessagesRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetMessagesRequest) GetChatId() string {
|
||
if x != nil {
|
||
return x.ChatId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *GetMessagesRequest) GetLimit() int32 {
|
||
if x != nil {
|
||
return x.Limit
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *GetMessagesRequest) GetBeforeMsgId() string {
|
||
if x != nil {
|
||
return x.BeforeMsgId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type GetMessagesResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Messages []*MessageDto `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *GetMessagesResponse) Reset() {
|
||
*x = GetMessagesResponse{}
|
||
mi := &file_chat_chat_proto_msgTypes[18]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *GetMessagesResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*GetMessagesResponse) ProtoMessage() {}
|
||
|
||
func (x *GetMessagesResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_proto_msgTypes[18]
|
||
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 GetMessagesResponse.ProtoReflect.Descriptor instead.
|
||
func (*GetMessagesResponse) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{18}
|
||
}
|
||
|
||
func (x *GetMessagesResponse) GetMessages() []*MessageDto {
|
||
if x != nil {
|
||
return x.Messages
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type SendMessageRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
ChatId string `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
||
SenderId string `protobuf:"bytes,2,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"`
|
||
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
||
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
|
||
ReplyToId string `protobuf:"bytes,5,opt,name=reply_to_id,json=replyToId,proto3" json:"reply_to_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *SendMessageRequest) Reset() {
|
||
*x = SendMessageRequest{}
|
||
mi := &file_chat_chat_proto_msgTypes[19]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *SendMessageRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*SendMessageRequest) ProtoMessage() {}
|
||
|
||
func (x *SendMessageRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_proto_msgTypes[19]
|
||
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 SendMessageRequest.ProtoReflect.Descriptor instead.
|
||
func (*SendMessageRequest) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{19}
|
||
}
|
||
|
||
func (x *SendMessageRequest) GetChatId() string {
|
||
if x != nil {
|
||
return x.ChatId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendMessageRequest) GetSenderId() string {
|
||
if x != nil {
|
||
return x.SenderId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendMessageRequest) GetType() string {
|
||
if x != nil {
|
||
return x.Type
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendMessageRequest) GetContent() string {
|
||
if x != nil {
|
||
return x.Content
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *SendMessageRequest) GetReplyToId() string {
|
||
if x != nil {
|
||
return x.ReplyToId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type EditMessageRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
||
NewContent string `protobuf:"bytes,3,opt,name=new_content,json=newContent,proto3" json:"new_content,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *EditMessageRequest) Reset() {
|
||
*x = EditMessageRequest{}
|
||
mi := &file_chat_chat_proto_msgTypes[20]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *EditMessageRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*EditMessageRequest) ProtoMessage() {}
|
||
|
||
func (x *EditMessageRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_proto_msgTypes[20]
|
||
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 EditMessageRequest.ProtoReflect.Descriptor instead.
|
||
func (*EditMessageRequest) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{20}
|
||
}
|
||
|
||
func (x *EditMessageRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *EditMessageRequest) GetMessageId() string {
|
||
if x != nil {
|
||
return x.MessageId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *EditMessageRequest) GetNewContent() string {
|
||
if x != nil {
|
||
return x.NewContent
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type DeleteMessageRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
MessageId string `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
|
||
ForEveryone bool `protobuf:"varint,3,opt,name=for_everyone,json=forEveryone,proto3" json:"for_everyone,omitempty"` // "Удалить только у себя" или "Удалить для всех"
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteMessageRequest) Reset() {
|
||
*x = DeleteMessageRequest{}
|
||
mi := &file_chat_chat_proto_msgTypes[21]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteMessageRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteMessageRequest) ProtoMessage() {}
|
||
|
||
func (x *DeleteMessageRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_proto_msgTypes[21]
|
||
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 DeleteMessageRequest.ProtoReflect.Descriptor instead.
|
||
func (*DeleteMessageRequest) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{21}
|
||
}
|
||
|
||
func (x *DeleteMessageRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *DeleteMessageRequest) GetMessageId() string {
|
||
if x != nil {
|
||
return x.MessageId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *DeleteMessageRequest) GetForEveryone() bool {
|
||
if x != nil {
|
||
return x.ForEveryone
|
||
}
|
||
return false
|
||
}
|
||
|
||
type DeleteMessageResponse 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 *DeleteMessageResponse) Reset() {
|
||
*x = DeleteMessageResponse{}
|
||
mi := &file_chat_chat_proto_msgTypes[22]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteMessageResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteMessageResponse) ProtoMessage() {}
|
||
|
||
func (x *DeleteMessageResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_proto_msgTypes[22]
|
||
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 DeleteMessageResponse.ProtoReflect.Descriptor instead.
|
||
func (*DeleteMessageResponse) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{22}
|
||
}
|
||
|
||
func (x *DeleteMessageResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
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"`
|
||
ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
||
MessageId string `protobuf:"bytes,3,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"` // ID последнего видимого сообщения
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *MarkAsReadRequest) Reset() {
|
||
*x = MarkAsReadRequest{}
|
||
mi := &file_chat_chat_proto_msgTypes[23]
|
||
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_chat_chat_proto_msgTypes[23]
|
||
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_chat_chat_proto_rawDescGZIP(), []int{23}
|
||
}
|
||
|
||
func (x *MarkAsReadRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *MarkAsReadRequest) GetChatId() string {
|
||
if x != nil {
|
||
return x.ChatId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *MarkAsReadRequest) GetMessageId() string {
|
||
if x != nil {
|
||
return x.MessageId
|
||
}
|
||
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_chat_chat_proto_msgTypes[24]
|
||
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_chat_chat_proto_msgTypes[24]
|
||
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_chat_chat_proto_rawDescGZIP(), []int{24}
|
||
}
|
||
|
||
func (x *MarkAsReadResponse) GetSuccess() bool {
|
||
if x != nil {
|
||
return x.Success
|
||
}
|
||
return false
|
||
}
|
||
|
||
type CheckChatMembershipRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||
ChatId string `protobuf:"bytes,2,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckChatMembershipRequest) Reset() {
|
||
*x = CheckChatMembershipRequest{}
|
||
mi := &file_chat_chat_proto_msgTypes[25]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckChatMembershipRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckChatMembershipRequest) ProtoMessage() {}
|
||
|
||
func (x *CheckChatMembershipRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_proto_msgTypes[25]
|
||
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 CheckChatMembershipRequest.ProtoReflect.Descriptor instead.
|
||
func (*CheckChatMembershipRequest) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{25}
|
||
}
|
||
|
||
func (x *CheckChatMembershipRequest) GetUserId() string {
|
||
if x != nil {
|
||
return x.UserId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CheckChatMembershipRequest) GetChatId() string {
|
||
if x != nil {
|
||
return x.ChatId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type CheckChatMembershipResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IsMember bool `protobuf:"varint,1,opt,name=is_member,json=isMember,proto3" json:"is_member,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckChatMembershipResponse) Reset() {
|
||
*x = CheckChatMembershipResponse{}
|
||
mi := &file_chat_chat_proto_msgTypes[26]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckChatMembershipResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckChatMembershipResponse) ProtoMessage() {}
|
||
|
||
func (x *CheckChatMembershipResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_chat_chat_proto_msgTypes[26]
|
||
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 CheckChatMembershipResponse.ProtoReflect.Descriptor instead.
|
||
func (*CheckChatMembershipResponse) Descriptor() ([]byte, []int) {
|
||
return file_chat_chat_proto_rawDescGZIP(), []int{26}
|
||
}
|
||
|
||
func (x *CheckChatMembershipResponse) GetIsMember() bool {
|
||
if x != nil {
|
||
return x.IsMember
|
||
}
|
||
return false
|
||
}
|
||
|
||
var File_chat_chat_proto protoreflect.FileDescriptor
|
||
|
||
const file_chat_chat_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x0fchat/chat.proto\x12\achat.v1\"\xf8\x01\n" +
|
||
"\n" +
|
||
"MessageDto\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x17\n" +
|
||
"\achat_id\x18\x02 \x01(\tR\x06chatId\x12\x1b\n" +
|
||
"\tsender_id\x18\x03 \x01(\tR\bsenderId\x12\x12\n" +
|
||
"\x04type\x18\x04 \x01(\tR\x04type\x12\x18\n" +
|
||
"\acontent\x18\x05 \x01(\tR\acontent\x12\x1a\n" +
|
||
"\bmetadata\x18\x06 \x01(\tR\bmetadata\x12\x1e\n" +
|
||
"\vreply_to_id\x18\a \x01(\tR\treplyToId\x12\x1b\n" +
|
||
"\tis_edited\x18\b \x01(\bR\bisEdited\x12\x1d\n" +
|
||
"\n" +
|
||
"created_at\x18\t \x01(\tR\tcreatedAt\"z\n" +
|
||
"\rChatMemberDto\x12\x1d\n" +
|
||
"\n" +
|
||
"account_id\x18\x01 \x01(\tR\taccountId\x12\x12\n" +
|
||
"\x04role\x18\x02 \x01(\tR\x04role\x12\x19\n" +
|
||
"\bis_muted\x18\x03 \x01(\bR\aisMuted\x12\x1b\n" +
|
||
"\tjoined_at\x18\x04 \x01(\tR\bjoinedAt\"\xd8\x01\n" +
|
||
"\aChatDto\x12\x0e\n" +
|
||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" +
|
||
"\x04type\x18\x02 \x01(\tR\x04type\x12\x14\n" +
|
||
"\x05title\x18\x03 \x01(\tR\x05title\x12\x1d\n" +
|
||
"\n" +
|
||
"avatar_url\x18\x04 \x01(\tR\tavatarUrl\x12!\n" +
|
||
"\funread_count\x18\x05 \x01(\x05R\vunreadCount\x126\n" +
|
||
"\flast_message\x18\x06 \x01(\v2\x13.chat.v1.MessageDtoR\vlastMessage\x12\x19\n" +
|
||
"\bis_muted\x18\a \x01(\bR\aisMuted\"\x85\x01\n" +
|
||
"\x11CreateChatRequest\x12\x1d\n" +
|
||
"\n" +
|
||
"creator_id\x18\x01 \x01(\tR\tcreatorId\x12\x12\n" +
|
||
"\x04type\x18\x02 \x01(\tR\x04type\x12\x14\n" +
|
||
"\x05title\x18\x03 \x01(\tR\x05title\x12'\n" +
|
||
"\x0fparticipant_ids\x18\x04 \x03(\tR\x0eparticipantIds\":\n" +
|
||
"\x12CreateChatResponse\x12$\n" +
|
||
"\x04chat\x18\x01 \x01(\v2\x10.chat.v1.ChatDtoR\x04chat\"\\\n" +
|
||
"\x13GetUserChatsRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x16\n" +
|
||
"\x06offset\x18\x02 \x01(\x05R\x06offset\x12\x14\n" +
|
||
"\x05limit\x18\x03 \x01(\x05R\x05limit\">\n" +
|
||
"\x14GetUserChatsResponse\x12&\n" +
|
||
"\x05chats\x18\x01 \x03(\v2\x10.chat.v1.ChatDtoR\x05chats\"I\n" +
|
||
"\x15GetChatDetailsRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x17\n" +
|
||
"\achat_id\x18\x02 \x01(\tR\x06chatId\"\x8d\x01\n" +
|
||
"\x16GetChatDetailsResponse\x12$\n" +
|
||
"\x04chat\x18\x01 \x01(\v2\x10.chat.v1.ChatDtoR\x04chat\x12\x1b\n" +
|
||
"\tjoin_hash\x18\x02 \x01(\tR\bjoinHash\x120\n" +
|
||
"\amembers\x18\x03 \x03(\v2\x16.chat.v1.ChatMemberDtoR\amembers\"C\n" +
|
||
"\x0fJoinChatRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x17\n" +
|
||
"\achat_id\x18\x02 \x01(\tR\x06chatId\",\n" +
|
||
"\x10JoinChatResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\"D\n" +
|
||
"\x10LeaveChatRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x17\n" +
|
||
"\achat_id\x18\x02 \x01(\tR\x06chatId\"-\n" +
|
||
"\x11LeaveChatResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\"o\n" +
|
||
"\x13RemoveMemberRequest\x12\x19\n" +
|
||
"\badmin_id\x18\x01 \x01(\tR\aadminId\x12$\n" +
|
||
"\x0etarget_user_id\x18\x02 \x01(\tR\ftargetUserId\x12\x17\n" +
|
||
"\achat_id\x18\x03 \x01(\tR\x06chatId\"0\n" +
|
||
"\x14RemoveMemberResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\"^\n" +
|
||
"\x0fMuteChatRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x17\n" +
|
||
"\achat_id\x18\x02 \x01(\tR\x06chatId\x12\x19\n" +
|
||
"\bis_muted\x18\x03 \x01(\bR\aisMuted\",\n" +
|
||
"\x10MuteChatResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\"\x80\x01\n" +
|
||
"\x12GetMessagesRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x17\n" +
|
||
"\achat_id\x18\x02 \x01(\tR\x06chatId\x12\x14\n" +
|
||
"\x05limit\x18\x03 \x01(\x05R\x05limit\x12\"\n" +
|
||
"\rbefore_msg_id\x18\x04 \x01(\tR\vbeforeMsgId\"F\n" +
|
||
"\x13GetMessagesResponse\x12/\n" +
|
||
"\bmessages\x18\x01 \x03(\v2\x13.chat.v1.MessageDtoR\bmessages\"\x98\x01\n" +
|
||
"\x12SendMessageRequest\x12\x17\n" +
|
||
"\achat_id\x18\x01 \x01(\tR\x06chatId\x12\x1b\n" +
|
||
"\tsender_id\x18\x02 \x01(\tR\bsenderId\x12\x12\n" +
|
||
"\x04type\x18\x03 \x01(\tR\x04type\x12\x18\n" +
|
||
"\acontent\x18\x04 \x01(\tR\acontent\x12\x1e\n" +
|
||
"\vreply_to_id\x18\x05 \x01(\tR\treplyToId\"m\n" +
|
||
"\x12EditMessageRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
|
||
"\n" +
|
||
"message_id\x18\x02 \x01(\tR\tmessageId\x12\x1f\n" +
|
||
"\vnew_content\x18\x03 \x01(\tR\n" +
|
||
"newContent\"q\n" +
|
||
"\x14DeleteMessageRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1d\n" +
|
||
"\n" +
|
||
"message_id\x18\x02 \x01(\tR\tmessageId\x12!\n" +
|
||
"\ffor_everyone\x18\x03 \x01(\bR\vforEveryone\"1\n" +
|
||
"\x15DeleteMessageResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\"d\n" +
|
||
"\x11MarkAsReadRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x17\n" +
|
||
"\achat_id\x18\x02 \x01(\tR\x06chatId\x12\x1d\n" +
|
||
"\n" +
|
||
"message_id\x18\x03 \x01(\tR\tmessageId\".\n" +
|
||
"\x12MarkAsReadResponse\x12\x18\n" +
|
||
"\asuccess\x18\x01 \x01(\bR\asuccess\"N\n" +
|
||
"\x1aCheckChatMembershipRequest\x12\x17\n" +
|
||
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x17\n" +
|
||
"\achat_id\x18\x02 \x01(\tR\x06chatId\":\n" +
|
||
"\x1bCheckChatMembershipResponse\x12\x1b\n" +
|
||
"\tis_member\x18\x01 \x01(\bR\bisMember2\xcc\a\n" +
|
||
"\vChatService\x12E\n" +
|
||
"\n" +
|
||
"CreateChat\x12\x1a.chat.v1.CreateChatRequest\x1a\x1b.chat.v1.CreateChatResponse\x12K\n" +
|
||
"\fGetUserChats\x12\x1c.chat.v1.GetUserChatsRequest\x1a\x1d.chat.v1.GetUserChatsResponse\x12Q\n" +
|
||
"\x0eGetChatDetails\x12\x1e.chat.v1.GetChatDetailsRequest\x1a\x1f.chat.v1.GetChatDetailsResponse\x12?\n" +
|
||
"\bJoinChat\x12\x18.chat.v1.JoinChatRequest\x1a\x19.chat.v1.JoinChatResponse\x12B\n" +
|
||
"\tLeaveChat\x12\x19.chat.v1.LeaveChatRequest\x1a\x1a.chat.v1.LeaveChatResponse\x12K\n" +
|
||
"\fRemoveMember\x12\x1c.chat.v1.RemoveMemberRequest\x1a\x1d.chat.v1.RemoveMemberResponse\x12?\n" +
|
||
"\bMuteChat\x12\x18.chat.v1.MuteChatRequest\x1a\x19.chat.v1.MuteChatResponse\x12H\n" +
|
||
"\vGetMessages\x12\x1b.chat.v1.GetMessagesRequest\x1a\x1c.chat.v1.GetMessagesResponse\x12?\n" +
|
||
"\vSendMessage\x12\x1b.chat.v1.SendMessageRequest\x1a\x13.chat.v1.MessageDto\x12?\n" +
|
||
"\vEditMessage\x12\x1b.chat.v1.EditMessageRequest\x1a\x13.chat.v1.MessageDto\x12N\n" +
|
||
"\rDeleteMessage\x12\x1d.chat.v1.DeleteMessageRequest\x1a\x1e.chat.v1.DeleteMessageResponse\x12E\n" +
|
||
"\n" +
|
||
"MarkAsRead\x12\x1a.chat.v1.MarkAsReadRequest\x1a\x1b.chat.v1.MarkAsReadResponse\x12`\n" +
|
||
"\x13CheckChatMembership\x12#.chat.v1.CheckChatMembershipRequest\x1a$.chat.v1.CheckChatMembershipResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
|
||
|
||
var (
|
||
file_chat_chat_proto_rawDescOnce sync.Once
|
||
file_chat_chat_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_chat_chat_proto_rawDescGZIP() []byte {
|
||
file_chat_chat_proto_rawDescOnce.Do(func() {
|
||
file_chat_chat_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_chat_chat_proto_rawDesc), len(file_chat_chat_proto_rawDesc)))
|
||
})
|
||
return file_chat_chat_proto_rawDescData
|
||
}
|
||
|
||
var file_chat_chat_proto_msgTypes = make([]protoimpl.MessageInfo, 27)
|
||
var file_chat_chat_proto_goTypes = []any{
|
||
(*MessageDto)(nil), // 0: chat.v1.MessageDto
|
||
(*ChatMemberDto)(nil), // 1: chat.v1.ChatMemberDto
|
||
(*ChatDto)(nil), // 2: chat.v1.ChatDto
|
||
(*CreateChatRequest)(nil), // 3: chat.v1.CreateChatRequest
|
||
(*CreateChatResponse)(nil), // 4: chat.v1.CreateChatResponse
|
||
(*GetUserChatsRequest)(nil), // 5: chat.v1.GetUserChatsRequest
|
||
(*GetUserChatsResponse)(nil), // 6: chat.v1.GetUserChatsResponse
|
||
(*GetChatDetailsRequest)(nil), // 7: chat.v1.GetChatDetailsRequest
|
||
(*GetChatDetailsResponse)(nil), // 8: chat.v1.GetChatDetailsResponse
|
||
(*JoinChatRequest)(nil), // 9: chat.v1.JoinChatRequest
|
||
(*JoinChatResponse)(nil), // 10: chat.v1.JoinChatResponse
|
||
(*LeaveChatRequest)(nil), // 11: chat.v1.LeaveChatRequest
|
||
(*LeaveChatResponse)(nil), // 12: chat.v1.LeaveChatResponse
|
||
(*RemoveMemberRequest)(nil), // 13: chat.v1.RemoveMemberRequest
|
||
(*RemoveMemberResponse)(nil), // 14: chat.v1.RemoveMemberResponse
|
||
(*MuteChatRequest)(nil), // 15: chat.v1.MuteChatRequest
|
||
(*MuteChatResponse)(nil), // 16: chat.v1.MuteChatResponse
|
||
(*GetMessagesRequest)(nil), // 17: chat.v1.GetMessagesRequest
|
||
(*GetMessagesResponse)(nil), // 18: chat.v1.GetMessagesResponse
|
||
(*SendMessageRequest)(nil), // 19: chat.v1.SendMessageRequest
|
||
(*EditMessageRequest)(nil), // 20: chat.v1.EditMessageRequest
|
||
(*DeleteMessageRequest)(nil), // 21: chat.v1.DeleteMessageRequest
|
||
(*DeleteMessageResponse)(nil), // 22: chat.v1.DeleteMessageResponse
|
||
(*MarkAsReadRequest)(nil), // 23: chat.v1.MarkAsReadRequest
|
||
(*MarkAsReadResponse)(nil), // 24: chat.v1.MarkAsReadResponse
|
||
(*CheckChatMembershipRequest)(nil), // 25: chat.v1.CheckChatMembershipRequest
|
||
(*CheckChatMembershipResponse)(nil), // 26: chat.v1.CheckChatMembershipResponse
|
||
}
|
||
var file_chat_chat_proto_depIdxs = []int32{
|
||
0, // 0: chat.v1.ChatDto.last_message:type_name -> chat.v1.MessageDto
|
||
2, // 1: chat.v1.CreateChatResponse.chat:type_name -> chat.v1.ChatDto
|
||
2, // 2: chat.v1.GetUserChatsResponse.chats:type_name -> chat.v1.ChatDto
|
||
2, // 3: chat.v1.GetChatDetailsResponse.chat:type_name -> chat.v1.ChatDto
|
||
1, // 4: chat.v1.GetChatDetailsResponse.members:type_name -> chat.v1.ChatMemberDto
|
||
0, // 5: chat.v1.GetMessagesResponse.messages:type_name -> chat.v1.MessageDto
|
||
3, // 6: chat.v1.ChatService.CreateChat:input_type -> chat.v1.CreateChatRequest
|
||
5, // 7: chat.v1.ChatService.GetUserChats:input_type -> chat.v1.GetUserChatsRequest
|
||
7, // 8: chat.v1.ChatService.GetChatDetails:input_type -> chat.v1.GetChatDetailsRequest
|
||
9, // 9: chat.v1.ChatService.JoinChat:input_type -> chat.v1.JoinChatRequest
|
||
11, // 10: chat.v1.ChatService.LeaveChat:input_type -> chat.v1.LeaveChatRequest
|
||
13, // 11: chat.v1.ChatService.RemoveMember:input_type -> chat.v1.RemoveMemberRequest
|
||
15, // 12: chat.v1.ChatService.MuteChat:input_type -> chat.v1.MuteChatRequest
|
||
17, // 13: chat.v1.ChatService.GetMessages:input_type -> chat.v1.GetMessagesRequest
|
||
19, // 14: chat.v1.ChatService.SendMessage:input_type -> chat.v1.SendMessageRequest
|
||
20, // 15: chat.v1.ChatService.EditMessage:input_type -> chat.v1.EditMessageRequest
|
||
21, // 16: chat.v1.ChatService.DeleteMessage:input_type -> chat.v1.DeleteMessageRequest
|
||
23, // 17: chat.v1.ChatService.MarkAsRead:input_type -> chat.v1.MarkAsReadRequest
|
||
25, // 18: chat.v1.ChatService.CheckChatMembership:input_type -> chat.v1.CheckChatMembershipRequest
|
||
4, // 19: chat.v1.ChatService.CreateChat:output_type -> chat.v1.CreateChatResponse
|
||
6, // 20: chat.v1.ChatService.GetUserChats:output_type -> chat.v1.GetUserChatsResponse
|
||
8, // 21: chat.v1.ChatService.GetChatDetails:output_type -> chat.v1.GetChatDetailsResponse
|
||
10, // 22: chat.v1.ChatService.JoinChat:output_type -> chat.v1.JoinChatResponse
|
||
12, // 23: chat.v1.ChatService.LeaveChat:output_type -> chat.v1.LeaveChatResponse
|
||
14, // 24: chat.v1.ChatService.RemoveMember:output_type -> chat.v1.RemoveMemberResponse
|
||
16, // 25: chat.v1.ChatService.MuteChat:output_type -> chat.v1.MuteChatResponse
|
||
18, // 26: chat.v1.ChatService.GetMessages:output_type -> chat.v1.GetMessagesResponse
|
||
0, // 27: chat.v1.ChatService.SendMessage:output_type -> chat.v1.MessageDto
|
||
0, // 28: chat.v1.ChatService.EditMessage:output_type -> chat.v1.MessageDto
|
||
22, // 29: chat.v1.ChatService.DeleteMessage:output_type -> chat.v1.DeleteMessageResponse
|
||
24, // 30: chat.v1.ChatService.MarkAsRead:output_type -> chat.v1.MarkAsReadResponse
|
||
26, // 31: chat.v1.ChatService.CheckChatMembership:output_type -> chat.v1.CheckChatMembershipResponse
|
||
19, // [19:32] is the sub-list for method output_type
|
||
6, // [6:19] is the sub-list for method input_type
|
||
6, // [6:6] is the sub-list for extension type_name
|
||
6, // [6:6] is the sub-list for extension extendee
|
||
0, // [0:6] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_chat_chat_proto_init() }
|
||
func file_chat_chat_proto_init() {
|
||
if File_chat_chat_proto != nil {
|
||
return
|
||
}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_chat_chat_proto_rawDesc), len(file_chat_chat_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 27,
|
||
NumExtensions: 0,
|
||
NumServices: 1,
|
||
},
|
||
GoTypes: file_chat_chat_proto_goTypes,
|
||
DependencyIndexes: file_chat_chat_proto_depIdxs,
|
||
MessageInfos: file_chat_chat_proto_msgTypes,
|
||
}.Build()
|
||
File_chat_chat_proto = out.File
|
||
file_chat_chat_proto_goTypes = nil
|
||
file_chat_chat_proto_depIdxs = nil
|
||
}
|