chore: auto-generate protobuf files [skip ci]
This commit is contained in:
@@ -1474,6 +1474,102 @@ func (x *MarkAsReadResponse) GetSuccess() bool {
|
||||
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 = "" +
|
||||
@@ -1581,7 +1677,12 @@ const file_chat_chat_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"message_id\x18\x03 \x01(\tR\tmessageId\".\n" +
|
||||
"\x12MarkAsReadResponse\x12\x18\n" +
|
||||
"\asuccess\x18\x01 \x01(\bR\asuccess2\xea\x06\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" +
|
||||
@@ -1596,7 +1697,8 @@ const file_chat_chat_proto_rawDesc = "" +
|
||||
"\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.MarkAsReadResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
|
||||
"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
|
||||
@@ -1610,33 +1712,35 @@ func file_chat_chat_proto_rawDescGZIP() []byte {
|
||||
return file_chat_chat_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_chat_chat_proto_msgTypes = make([]protoimpl.MessageInfo, 25)
|
||||
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
|
||||
(*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
|
||||
@@ -1657,20 +1761,22 @@ var file_chat_chat_proto_depIdxs = []int32{
|
||||
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
|
||||
4, // 18: chat.v1.ChatService.CreateChat:output_type -> chat.v1.CreateChatResponse
|
||||
6, // 19: chat.v1.ChatService.GetUserChats:output_type -> chat.v1.GetUserChatsResponse
|
||||
8, // 20: chat.v1.ChatService.GetChatDetails:output_type -> chat.v1.GetChatDetailsResponse
|
||||
10, // 21: chat.v1.ChatService.JoinChat:output_type -> chat.v1.JoinChatResponse
|
||||
12, // 22: chat.v1.ChatService.LeaveChat:output_type -> chat.v1.LeaveChatResponse
|
||||
14, // 23: chat.v1.ChatService.RemoveMember:output_type -> chat.v1.RemoveMemberResponse
|
||||
16, // 24: chat.v1.ChatService.MuteChat:output_type -> chat.v1.MuteChatResponse
|
||||
18, // 25: chat.v1.ChatService.GetMessages:output_type -> chat.v1.GetMessagesResponse
|
||||
0, // 26: chat.v1.ChatService.SendMessage:output_type -> chat.v1.MessageDto
|
||||
0, // 27: chat.v1.ChatService.EditMessage:output_type -> chat.v1.MessageDto
|
||||
22, // 28: chat.v1.ChatService.DeleteMessage:output_type -> chat.v1.DeleteMessageResponse
|
||||
24, // 29: chat.v1.ChatService.MarkAsRead:output_type -> chat.v1.MarkAsReadResponse
|
||||
18, // [18:30] is the sub-list for method output_type
|
||||
6, // [6:18] is the sub-list for method input_type
|
||||
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
|
||||
@@ -1687,7 +1793,7 @@ func file_chat_chat_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_chat_chat_proto_rawDesc), len(file_chat_chat_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 25,
|
||||
NumMessages: 27,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user