// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.25.0 // protoc v3.15.1 // source: message.proto package message import ( context "context" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) 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) ) // This is a compile-time assertion that a sufficiently up-to-date version // of the legacy proto package is being used. const _ = proto.ProtoPackageIsVersion4 type SendMsgRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields ReceiveUserId string `protobuf:"bytes,1,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //接收方用户ID ReceiveName string `protobuf:"bytes,2,opt,name=receiveName,proto3" json:"receiveName,omitempty"` //接收方用户名 SendUserId string `protobuf:"bytes,3,opt,name=sendUserId,proto3" json:"sendUserId,omitempty"` //发送方用户ID SendName string `protobuf:"bytes,4,opt,name=sendName,proto3" json:"sendName,omitempty"` //发送方用户名 Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"` //主题 Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"` //内容 MsgType int64 `protobuf:"varint,7,opt,name=msgType,proto3" json:"msgType,omitempty"` //消息类型 1:客服 2:系统通知 3:营销 4:用户会话 Link string `protobuf:"bytes,8,opt,name=link,proto3" json:"link,omitempty"` //跳转链接 CiteId int64 `protobuf:"varint,9,opt,name=citeId,proto3" json:"citeId,omitempty"` //引用id Appid string `protobuf:"bytes,10,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识 } func (x *SendMsgRequest) Reset() { *x = SendMsgRequest{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *SendMsgRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SendMsgRequest) ProtoMessage() {} func (x *SendMsgRequest) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SendMsgRequest.ProtoReflect.Descriptor instead. func (*SendMsgRequest) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{0} } func (x *SendMsgRequest) GetReceiveUserId() string { if x != nil { return x.ReceiveUserId } return "" } func (x *SendMsgRequest) GetReceiveName() string { if x != nil { return x.ReceiveName } return "" } func (x *SendMsgRequest) GetSendUserId() string { if x != nil { return x.SendUserId } return "" } func (x *SendMsgRequest) GetSendName() string { if x != nil { return x.SendName } return "" } func (x *SendMsgRequest) GetTitle() string { if x != nil { return x.Title } return "" } func (x *SendMsgRequest) GetContent() string { if x != nil { return x.Content } return "" } func (x *SendMsgRequest) GetMsgType() int64 { if x != nil { return x.MsgType } return 0 } func (x *SendMsgRequest) GetLink() string { if x != nil { return x.Link } return "" } func (x *SendMsgRequest) GetCiteId() int64 { if x != nil { return x.CiteId } return 0 } func (x *SendMsgRequest) GetAppid() string { if x != nil { return x.Appid } return "" } type ChangeReadStatusRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id ReadStatus int64 `protobuf:"varint,2,opt,name=readStatus,proto3" json:"readStatus,omitempty"` // 阅读状态 0-未读 1-已读 Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识 } func (x *ChangeReadStatusRequest) Reset() { *x = ChangeReadStatusRequest{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ChangeReadStatusRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ChangeReadStatusRequest) ProtoMessage() {} func (x *ChangeReadStatusRequest) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ChangeReadStatusRequest.ProtoReflect.Descriptor instead. func (*ChangeReadStatusRequest) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{1} } func (x *ChangeReadStatusRequest) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *ChangeReadStatusRequest) GetReadStatus() int64 { if x != nil { return x.ReadStatus } return 0 } func (x *ChangeReadStatusRequest) GetAppid() string { if x != nil { return x.Appid } return "" } // 删除单一消息 type DeleteSingleMessageRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 消息id Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识 } func (x *DeleteSingleMessageRequest) Reset() { *x = DeleteSingleMessageRequest{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DeleteSingleMessageRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeleteSingleMessageRequest) ProtoMessage() {} func (x *DeleteSingleMessageRequest) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use DeleteSingleMessageRequest.ProtoReflect.Descriptor instead. func (*DeleteSingleMessageRequest) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{2} } func (x *DeleteSingleMessageRequest) GetId() int64 { if x != nil { return x.Id } return 0 } func (x *DeleteSingleMessageRequest) GetAppid() string { if x != nil { return x.Appid } return "" } // 批量删除消息 type DeleteMultipleMessageRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // 多条消息id, 逗号分隔 Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识 } func (x *DeleteMultipleMessageRequest) Reset() { *x = DeleteMultipleMessageRequest{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *DeleteMultipleMessageRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*DeleteMultipleMessageRequest) ProtoMessage() {} func (x *DeleteMultipleMessageRequest) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use DeleteMultipleMessageRequest.ProtoReflect.Descriptor instead. func (*DeleteMultipleMessageRequest) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{3} } func (x *DeleteMultipleMessageRequest) GetId() string { if x != nil { return x.Id } return "" } func (x *DeleteMultipleMessageRequest) GetAppid() string { if x != nil { return x.Appid } return "" } // 查询指定用户未读消息合计 type GetUnreadCountRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识 } func (x *GetUnreadCountRequest) Reset() { *x = GetUnreadCountRequest{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[4] 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_message_proto_msgTypes[4] if protoimpl.UnsafeEnabled && 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_message_proto_rawDescGZIP(), []int{4} } func (x *GetUnreadCountRequest) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *GetUnreadCountRequest) GetAppid() string { if x != nil { return x.Appid } return "" } type Response struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息 } func (x *Response) Reset() { *x = Response{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Response) String() string { return protoimpl.X.MessageStringOf(x) } func (*Response) ProtoMessage() {} func (x *Response) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use Response.ProtoReflect.Descriptor instead. func (*Response) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{5} } func (x *Response) GetCode() int64 { if x != nil { return x.Code } return 0 } func (x *Response) GetMessage() string { if x != nil { return x.Message } return "" } type GetUnreadCountResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` //状态码 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` //响应消息 Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // } func (x *GetUnreadCountResponse) Reset() { *x = GetUnreadCountResponse{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[6] 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_message_proto_msgTypes[6] if protoimpl.UnsafeEnabled && 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_message_proto_rawDescGZIP(), []int{6} } func (x *GetUnreadCountResponse) GetCode() int64 { if x != nil { return x.Code } return 0 } func (x *GetUnreadCountResponse) GetMessage() string { if x != nil { return x.Message } return "" } func (x *GetUnreadCountResponse) GetCount() int64 { if x != nil { return x.Count } return 0 } var File_message_proto protoreflect.FileDescriptor var file_message_proto_rawDesc = []byte{ 0x0a, 0x0d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0xa0, 0x02, 0x0a, 0x0e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x6e, 0x64, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x63, 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x5f, 0x0a, 0x17, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x42, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x44, 0x0a, 0x1c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x45, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x38, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x5c, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0x89, 0x03, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x47, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0b, 0x53, 0x65, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x23, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_message_proto_rawDescOnce sync.Once file_message_proto_rawDescData = file_message_proto_rawDesc ) func file_message_proto_rawDescGZIP() []byte { file_message_proto_rawDescOnce.Do(func() { file_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_proto_rawDescData) }) return file_message_proto_rawDescData } var file_message_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_message_proto_goTypes = []interface{}{ (*SendMsgRequest)(nil), // 0: message.SendMsgRequest (*ChangeReadStatusRequest)(nil), // 1: message.ChangeReadStatusRequest (*DeleteSingleMessageRequest)(nil), // 2: message.DeleteSingleMessageRequest (*DeleteMultipleMessageRequest)(nil), // 3: message.DeleteMultipleMessageRequest (*GetUnreadCountRequest)(nil), // 4: message.GetUnreadCountRequest (*Response)(nil), // 5: message.Response (*GetUnreadCountResponse)(nil), // 6: message.GetUnreadCountResponse } var file_message_proto_depIdxs = []int32{ 1, // 0: message.Message.ChangeReadStatus:input_type -> message.ChangeReadStatusRequest 0, // 1: message.Message.SendUserMsg:input_type -> message.SendMsgRequest 2, // 2: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest 3, // 3: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest 3, // 4: message.Message.GetUnreadCount:input_type -> message.DeleteMultipleMessageRequest 5, // 5: message.Message.ChangeReadStatus:output_type -> message.Response 5, // 6: message.Message.SendUserMsg:output_type -> message.Response 5, // 7: message.Message.DeleteSingleMessage:output_type -> message.Response 5, // 8: message.Message.DeleteMultipleMessage:output_type -> message.Response 6, // 9: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse 5, // [5:10] is the sub-list for method output_type 0, // [0:5] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name 0, // [0:0] is the sub-list for extension extendee 0, // [0:0] is the sub-list for field type_name } func init() { file_message_proto_init() } func file_message_proto_init() { if File_message_proto != nil { return } if !protoimpl.UnsafeEnabled { file_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SendMsgRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ChangeReadStatusRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteSingleMessageRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DeleteMultipleMessageRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetUnreadCountRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Response); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetUnreadCountResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_message_proto_rawDesc, NumEnums: 0, NumMessages: 7, NumExtensions: 0, NumServices: 1, }, GoTypes: file_message_proto_goTypes, DependencyIndexes: file_message_proto_depIdxs, MessageInfos: file_message_proto_msgTypes, }.Build() File_message_proto = out.File file_message_proto_rawDesc = nil file_message_proto_goTypes = nil file_message_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion6 // MessageClient is the client API for Message service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type MessageClient interface { // 修改消息阅读状态 ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error) //指定用户发消息 SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error) // 删除单一消息 DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error) // 删除多条消息 DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error) // 查询指定用户未读消息合计 GetUnreadCount(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) } type messageClient struct { cc grpc.ClientConnInterface } func NewMessageClient(cc grpc.ClientConnInterface) MessageClient { return &messageClient{cc} } func (c *messageClient) ChangeReadStatus(ctx context.Context, in *ChangeReadStatusRequest, opts ...grpc.CallOption) (*Response, error) { out := new(Response) err := c.cc.Invoke(ctx, "/message.Message/ChangeReadStatus", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *messageClient) SendUserMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*Response, error) { out := new(Response) err := c.cc.Invoke(ctx, "/message.Message/SendUserMsg", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *messageClient) DeleteSingleMessage(ctx context.Context, in *DeleteSingleMessageRequest, opts ...grpc.CallOption) (*Response, error) { out := new(Response) err := c.cc.Invoke(ctx, "/message.Message/DeleteSingleMessage", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *messageClient) DeleteMultipleMessage(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*Response, error) { out := new(Response) err := c.cc.Invoke(ctx, "/message.Message/DeleteMultipleMessage", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *messageClient) GetUnreadCount(ctx context.Context, in *DeleteMultipleMessageRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) { out := new(GetUnreadCountResponse) err := c.cc.Invoke(ctx, "/message.Message/GetUnreadCount", in, out, opts...) if err != nil { return nil, err } return out, nil } // MessageServer is the server API for Message service. type MessageServer interface { // 修改消息阅读状态 ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error) //指定用户发消息 SendUserMsg(context.Context, *SendMsgRequest) (*Response, error) // 删除单一消息 DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error) // 删除多条消息 DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error) // 查询指定用户未读消息合计 GetUnreadCount(context.Context, *DeleteMultipleMessageRequest) (*GetUnreadCountResponse, error) } // UnimplementedMessageServer can be embedded to have forward compatible implementations. type UnimplementedMessageServer struct { } func (*UnimplementedMessageServer) ChangeReadStatus(context.Context, *ChangeReadStatusRequest) (*Response, error) { return nil, status.Errorf(codes.Unimplemented, "method ChangeReadStatus not implemented") } func (*UnimplementedMessageServer) SendUserMsg(context.Context, *SendMsgRequest) (*Response, error) { return nil, status.Errorf(codes.Unimplemented, "method SendUserMsg not implemented") } func (*UnimplementedMessageServer) DeleteSingleMessage(context.Context, *DeleteSingleMessageRequest) (*Response, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteSingleMessage not implemented") } func (*UnimplementedMessageServer) DeleteMultipleMessage(context.Context, *DeleteMultipleMessageRequest) (*Response, error) { return nil, status.Errorf(codes.Unimplemented, "method DeleteMultipleMessage not implemented") } func (*UnimplementedMessageServer) GetUnreadCount(context.Context, *DeleteMultipleMessageRequest) (*GetUnreadCountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUnreadCount not implemented") } func RegisterMessageServer(s *grpc.Server, srv MessageServer) { s.RegisterService(&_Message_serviceDesc, srv) } func _Message_ChangeReadStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ChangeReadStatusRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MessageServer).ChangeReadStatus(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/message.Message/ChangeReadStatus", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MessageServer).ChangeReadStatus(ctx, req.(*ChangeReadStatusRequest)) } return interceptor(ctx, in, info, handler) } func _Message_SendUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SendMsgRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MessageServer).SendUserMsg(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/message.Message/SendUserMsg", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MessageServer).SendUserMsg(ctx, req.(*SendMsgRequest)) } return interceptor(ctx, in, info, handler) } func _Message_DeleteSingleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteSingleMessageRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MessageServer).DeleteSingleMessage(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/message.Message/DeleteSingleMessage", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MessageServer).DeleteSingleMessage(ctx, req.(*DeleteSingleMessageRequest)) } return interceptor(ctx, in, info, handler) } func _Message_DeleteMultipleMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteMultipleMessageRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MessageServer).DeleteMultipleMessage(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/message.Message/DeleteMultipleMessage", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MessageServer).DeleteMultipleMessage(ctx, req.(*DeleteMultipleMessageRequest)) } return interceptor(ctx, in, info, handler) } func _Message_GetUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteMultipleMessageRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MessageServer).GetUnreadCount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/message.Message/GetUnreadCount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MessageServer).GetUnreadCount(ctx, req.(*DeleteMultipleMessageRequest)) } return interceptor(ctx, in, info, handler) } var _Message_serviceDesc = grpc.ServiceDesc{ ServiceName: "message.Message", HandlerType: (*MessageServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ChangeReadStatus", Handler: _Message_ChangeReadStatus_Handler, }, { MethodName: "SendUserMsg", Handler: _Message_SendUserMsg_Handler, }, { MethodName: "DeleteSingleMessage", Handler: _Message_DeleteSingleMessage_Handler, }, { MethodName: "DeleteMultipleMessage", Handler: _Message_DeleteMultipleMessage_Handler, }, { MethodName: "GetUnreadCount", Handler: _Message_GetUnreadCount_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "message.proto", }