// 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 ResCount struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields MsgType int64 `protobuf:"varint,1,opt,name=msgType,proto3" json:"msgType,omitempty"` // 类型及未读数量 Count int64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // 类型及未读数量 } func (x *ResCount) Reset() { *x = ResCount{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *ResCount) String() string { return protoimpl.X.MessageStringOf(x) } func (*ResCount) ProtoMessage() {} func (x *ResCount) 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 ResCount.ProtoReflect.Descriptor instead. func (*ResCount) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{2} } func (x *ResCount) GetMsgType() int64 { if x != nil { return x.MsgType } return 0 } func (x *ResCount) GetCount() int64 { if x != nil { return x.Count } return 0 } // 删除单一消息 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[3] 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[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 DeleteSingleMessageRequest.ProtoReflect.Descriptor instead. func (*DeleteSingleMessageRequest) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{3} } 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[4] 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[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 DeleteMultipleMessageRequest.ProtoReflect.Descriptor instead. func (*DeleteMultipleMessageRequest) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{4} } 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,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识 } func (x *GetUnreadCountRequest) Reset() { *x = GetUnreadCountRequest{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[5] 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[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 GetUnreadCountRequest.ProtoReflect.Descriptor instead. func (*GetUnreadCountRequest) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{5} } 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[6] 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[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 Response.ProtoReflect.Descriptor instead. func (*Response) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{6} } 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[7] 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[7] 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{7} } 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 } type FindUserMsgReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` //用户id ReceiveUserId string `protobuf:"bytes,2,opt,name=receiveUserId,proto3" json:"receiveUserId,omitempty"` //聊天方用户id Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识 OffSet int64 `protobuf:"varint,4,opt,name=offSet,proto3" json:"offSet,omitempty"` //当前 PageSize int64 `protobuf:"varint,5,opt,name=pageSize,proto3" json:"pageSize,omitempty"` //大小 MsgType int64 `protobuf:"varint,6,opt,name=msgType,proto3" json:"msgType,omitempty"` //是否区分类型 Read int64 `protobuf:"varint,7,opt,name=read,proto3" json:"read,omitempty"` // 是否区分已读未读 -1 不区分已读未读 0 未读 1 已读 } func (x *FindUserMsgReq) Reset() { *x = FindUserMsgReq{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *FindUserMsgReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindUserMsgReq) ProtoMessage() {} func (x *FindUserMsgReq) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[8] 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 FindUserMsgReq.ProtoReflect.Descriptor instead. func (*FindUserMsgReq) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{8} } func (x *FindUserMsgReq) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *FindUserMsgReq) GetReceiveUserId() string { if x != nil { return x.ReceiveUserId } return "" } func (x *FindUserMsgReq) GetAppid() string { if x != nil { return x.Appid } return "" } func (x *FindUserMsgReq) GetOffSet() int64 { if x != nil { return x.OffSet } return 0 } func (x *FindUserMsgReq) GetPageSize() int64 { if x != nil { return x.PageSize } return 0 } func (x *FindUserMsgReq) GetMsgType() int64 { if x != nil { return x.MsgType } return 0 } func (x *FindUserMsgReq) GetRead() int64 { if x != nil { return x.Read } return 0 } type Messages 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 IsRead int64 `protobuf:"varint,10,opt,name=isRead,proto3" json:"isRead,omitempty"` //已读未读 0:未读 1:已读 Createtime string `protobuf:"bytes,11,opt,name=createtime,proto3" json:"createtime,omitempty"` Appid string `protobuf:"bytes,12,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识 Id int64 `protobuf:"varint,13,opt,name=id,proto3" json:"id,omitempty"` //消息id } func (x *Messages) Reset() { *x = Messages{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *Messages) String() string { return protoimpl.X.MessageStringOf(x) } func (*Messages) ProtoMessage() {} func (x *Messages) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[9] 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 Messages.ProtoReflect.Descriptor instead. func (*Messages) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{9} } func (x *Messages) GetReceiveUserId() string { if x != nil { return x.ReceiveUserId } return "" } func (x *Messages) GetReceiveName() string { if x != nil { return x.ReceiveName } return "" } func (x *Messages) GetSendUserId() string { if x != nil { return x.SendUserId } return "" } func (x *Messages) GetSendName() string { if x != nil { return x.SendName } return "" } func (x *Messages) GetTitle() string { if x != nil { return x.Title } return "" } func (x *Messages) GetContent() string { if x != nil { return x.Content } return "" } func (x *Messages) GetMsgType() int64 { if x != nil { return x.MsgType } return 0 } func (x *Messages) GetLink() string { if x != nil { return x.Link } return "" } func (x *Messages) GetCiteId() int64 { if x != nil { return x.CiteId } return 0 } func (x *Messages) GetIsRead() int64 { if x != nil { return x.IsRead } return 0 } func (x *Messages) GetCreatetime() string { if x != nil { return x.Createtime } return "" } func (x *Messages) GetAppid() string { if x != nil { return x.Appid } return "" } func (x *Messages) GetId() int64 { if x != nil { return x.Id } return 0 } type FindUserMsgRes 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"` //响应消息 Data []*Messages `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` //总数 } func (x *FindUserMsgRes) Reset() { *x = FindUserMsgRes{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *FindUserMsgRes) String() string { return protoimpl.X.MessageStringOf(x) } func (*FindUserMsgRes) ProtoMessage() {} func (x *FindUserMsgRes) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[10] 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 FindUserMsgRes.ProtoReflect.Descriptor instead. func (*FindUserMsgRes) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{10} } func (x *FindUserMsgRes) GetCode() int64 { if x != nil { return x.Code } return 0 } func (x *FindUserMsgRes) GetMessage() string { if x != nil { return x.Message } return "" } func (x *FindUserMsgRes) GetData() []*Messages { if x != nil { return x.Data } return nil } func (x *FindUserMsgRes) GetCount() int64 { if x != nil { return x.Count } return 0 } type GetClassUnreadCountReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id MsgType int64 `protobuf:"varint,2,opt,name=msgType,proto3" json:"msgType,omitempty"` //分类 1:客服 2:系统通知 3:营销 4:用户会话 Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识 } func (x *GetClassUnreadCountReq) Reset() { *x = GetClassUnreadCountReq{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetClassUnreadCountReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetClassUnreadCountReq) ProtoMessage() {} func (x *GetClassUnreadCountReq) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[11] 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 GetClassUnreadCountReq.ProtoReflect.Descriptor instead. func (*GetClassUnreadCountReq) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{11} } func (x *GetClassUnreadCountReq) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *GetClassUnreadCountReq) GetMsgType() int64 { if x != nil { return x.MsgType } return 0 } func (x *GetClassUnreadCountReq) GetAppid() string { if x != nil { return x.Appid } return "" } //查看消息内容 type MessageDetailReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //消息id } func (x *MessageDetailReq) Reset() { *x = MessageDetailReq{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MessageDetailReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*MessageDetailReq) ProtoMessage() {} func (x *MessageDetailReq) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[12] 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 MessageDetailReq.ProtoReflect.Descriptor instead. func (*MessageDetailReq) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{12} } func (x *MessageDetailReq) GetId() int64 { if x != nil { return x.Id } return 0 } type MessageDetailResp 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"` //响应消息 Data *Messages `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // } func (x *MessageDetailResp) Reset() { *x = MessageDetailResp{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *MessageDetailResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*MessageDetailResp) ProtoMessage() {} func (x *MessageDetailResp) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[13] 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 MessageDetailResp.ProtoReflect.Descriptor instead. func (*MessageDetailResp) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{13} } func (x *MessageDetailResp) GetCode() int64 { if x != nil { return x.Code } return 0 } func (x *MessageDetailResp) GetMessage() string { if x != nil { return x.Message } return "" } func (x *MessageDetailResp) GetData() *Messages { if x != nil { return x.Data } return nil } type GetLastMessageReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id MsgType int64 `protobuf:"varint,2,opt,name=msgType,proto3" json:"msgType,omitempty"` //分类 1:客服 2:系统通知 3:营销 4:用户会话 Appid string `protobuf:"bytes,3,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识 } func (x *GetLastMessageReq) Reset() { *x = GetLastMessageReq{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetLastMessageReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetLastMessageReq) ProtoMessage() {} func (x *GetLastMessageReq) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[14] 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 GetLastMessageReq.ProtoReflect.Descriptor instead. func (*GetLastMessageReq) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{14} } func (x *GetLastMessageReq) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *GetLastMessageReq) GetMsgType() int64 { if x != nil { return x.MsgType } return 0 } func (x *GetLastMessageReq) GetAppid() string { if x != nil { return x.Appid } return "" } type GetLastMessageRes 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"` //响应消息 Data *Messages `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // } func (x *GetLastMessageRes) Reset() { *x = GetLastMessageRes{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetLastMessageRes) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetLastMessageRes) ProtoMessage() {} func (x *GetLastMessageRes) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[15] 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 GetLastMessageRes.ProtoReflect.Descriptor instead. func (*GetLastMessageRes) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{15} } func (x *GetLastMessageRes) GetCode() int64 { if x != nil { return x.Code } return 0 } func (x *GetLastMessageRes) GetMessage() string { if x != nil { return x.Message } return "" } func (x *GetLastMessageRes) GetData() *Messages { if x != nil { return x.Data } return nil } // 获取用户分类的的未读消息分类及数量 及分类下最新的消息 type GetUnreadClassCountReq 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,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识 } func (x *GetUnreadClassCountReq) Reset() { *x = GetUnreadClassCountReq{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetUnreadClassCountReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetUnreadClassCountReq) ProtoMessage() {} func (x *GetUnreadClassCountReq) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[16] 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 GetUnreadClassCountReq.ProtoReflect.Descriptor instead. func (*GetUnreadClassCountReq) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{16} } func (x *GetUnreadClassCountReq) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *GetUnreadClassCountReq) GetAppid() string { if x != nil { return x.Appid } return "" } type GetUnreadClassCountRes 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"` //响应消息 Data []*ResCount `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` // Info []*Messages `protobuf:"bytes,4,rep,name=info,proto3" json:"info,omitempty"` // 每个类型最新消息列表 } func (x *GetUnreadClassCountRes) Reset() { *x = GetUnreadClassCountRes{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetUnreadClassCountRes) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetUnreadClassCountRes) ProtoMessage() {} func (x *GetUnreadClassCountRes) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[17] 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 GetUnreadClassCountRes.ProtoReflect.Descriptor instead. func (*GetUnreadClassCountRes) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{17} } func (x *GetUnreadClassCountRes) GetCode() int64 { if x != nil { return x.Code } return 0 } func (x *GetUnreadClassCountRes) GetMessage() string { if x != nil { return x.Message } return "" } func (x *GetUnreadClassCountRes) GetData() []*ResCount { if x != nil { return x.Data } return nil } func (x *GetUnreadClassCountRes) GetInfo() []*Messages { if x != nil { return x.Info } return nil } type GetMsgTypeReq 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,2,opt,name=appid,proto3" json:"appid,omitempty"` //应用标识 } func (x *GetMsgTypeReq) Reset() { *x = GetMsgTypeReq{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetMsgTypeReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetMsgTypeReq) ProtoMessage() {} func (x *GetMsgTypeReq) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[18] 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 GetMsgTypeReq.ProtoReflect.Descriptor instead. func (*GetMsgTypeReq) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{18} } func (x *GetMsgTypeReq) GetUserId() string { if x != nil { return x.UserId } return "" } func (x *GetMsgTypeReq) GetAppid() string { if x != nil { return x.Appid } return "" } type GetMsgTypeRes 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"` //响应消息 Data []int64 `protobuf:"varint,3,rep,packed,name=data,proto3" json:"data,omitempty"` // } func (x *GetMsgTypeRes) Reset() { *x = GetMsgTypeRes{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *GetMsgTypeRes) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetMsgTypeRes) ProtoMessage() {} func (x *GetMsgTypeRes) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[19] 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 GetMsgTypeRes.ProtoReflect.Descriptor instead. func (*GetMsgTypeRes) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{19} } func (x *GetMsgTypeRes) GetCode() int64 { if x != nil { return x.Code } return 0 } func (x *GetMsgTypeRes) GetMessage() string { if x != nil { return x.Message } return "" } func (x *GetMsgTypeRes) GetData() []int64 { if x != nil { return x.Data } return nil } //更新分类下消息状态 已读、未读 type UpdateMessageReadReq struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields MsgType int64 `protobuf:"varint,1,opt,name=msgType,proto3" json:"msgType,omitempty"` ReceiveUserid string `protobuf:"bytes,2,opt,name=receiveUserid,proto3" json:"receiveUserid,omitempty"` AppId string `protobuf:"bytes,3,opt,name=appId,proto3" json:"appId,omitempty"` } func (x *UpdateMessageReadReq) Reset() { *x = UpdateMessageReadReq{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UpdateMessageReadReq) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateMessageReadReq) ProtoMessage() {} func (x *UpdateMessageReadReq) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[20] 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 UpdateMessageReadReq.ProtoReflect.Descriptor instead. func (*UpdateMessageReadReq) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{20} } func (x *UpdateMessageReadReq) GetMsgType() int64 { if x != nil { return x.MsgType } return 0 } func (x *UpdateMessageReadReq) GetReceiveUserid() string { if x != nil { return x.ReceiveUserid } return "" } func (x *UpdateMessageReadReq) GetAppId() string { if x != nil { return x.AppId } return "" } type UpdateMessageReadResp 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"` //响应消息 Status int64 `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` } func (x *UpdateMessageReadResp) Reset() { *x = UpdateMessageReadResp{} if protoimpl.UnsafeEnabled { mi := &file_message_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *UpdateMessageReadResp) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateMessageReadResp) ProtoMessage() {} func (x *UpdateMessageReadResp) ProtoReflect() protoreflect.Message { mi := &file_message_proto_msgTypes[21] 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 UpdateMessageReadResp.ProtoReflect.Descriptor instead. func (*UpdateMessageReadResp) Descriptor() ([]byte, []int) { return file_message_proto_rawDescGZIP(), []int{21} } func (x *UpdateMessageReadResp) GetCode() int64 { if x != nil { return x.Code } return 0 } func (x *UpdateMessageReadResp) GetMessage() string { if x != nil { return x.Message } return "" } func (x *UpdateMessageReadResp) GetStatus() int64 { if x != nil { return x.Status } 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, 0x3a, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 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, 0x02, 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, 0x22, 0xc6, 0x01, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 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, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 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, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x53, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x53, 0x65, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x65, 0x61, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x72, 0x65, 0x61, 0x64, 0x22, 0xe2, 0x02, 0x0a, 0x08, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 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, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x69, 0x73, 0x52, 0x65, 0x61, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x7b, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 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, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x60, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 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, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x22, 0x0a, 0x10, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x22, 0x68, 0x0a, 0x11, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 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, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5b, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 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, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x68, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 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, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x46, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x94, 0x01, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 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, 0x25, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x25, 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x3d, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 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, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x22, 0x51, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 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, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x03, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x6c, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x55, 0x73, 0x65, 0x72, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x49, 0x64, 0x22, 0x5d, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 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, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x32, 0x9d, 0x07, 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, 0x51, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1e, 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, 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, 0x12, 0x3f, 0x0a, 0x0b, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x12, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x1a, 0x17, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 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, 0x12, 0x48, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x11, 0x46, 0x69, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x12, 0x19, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x1a, 0x1a, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x12, 0x57, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x1f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x16, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x12, 0x52, 0x0a, 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x12, 0x1d, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x71, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 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, 22) var file_message_proto_goTypes = []interface{}{ (*SendMsgRequest)(nil), // 0: message.SendMsgRequest (*ChangeReadStatusRequest)(nil), // 1: message.ChangeReadStatusRequest (*ResCount)(nil), // 2: message.ResCount (*DeleteSingleMessageRequest)(nil), // 3: message.DeleteSingleMessageRequest (*DeleteMultipleMessageRequest)(nil), // 4: message.DeleteMultipleMessageRequest (*GetUnreadCountRequest)(nil), // 5: message.GetUnreadCountRequest (*Response)(nil), // 6: message.Response (*GetUnreadCountResponse)(nil), // 7: message.GetUnreadCountResponse (*FindUserMsgReq)(nil), // 8: message.FindUserMsgReq (*Messages)(nil), // 9: message.Messages (*FindUserMsgRes)(nil), // 10: message.FindUserMsgRes (*GetClassUnreadCountReq)(nil), // 11: message.GetClassUnreadCountReq (*MessageDetailReq)(nil), // 12: message.MessageDetailReq (*MessageDetailResp)(nil), // 13: message.MessageDetailResp (*GetLastMessageReq)(nil), // 14: message.GetLastMessageReq (*GetLastMessageRes)(nil), // 15: message.GetLastMessageRes (*GetUnreadClassCountReq)(nil), // 16: message.GetUnreadClassCountReq (*GetUnreadClassCountRes)(nil), // 17: message.GetUnreadClassCountRes (*GetMsgTypeReq)(nil), // 18: message.GetMsgTypeReq (*GetMsgTypeRes)(nil), // 19: message.GetMsgTypeRes (*UpdateMessageReadReq)(nil), // 20: message.UpdateMessageReadReq (*UpdateMessageReadResp)(nil), // 21: message.UpdateMessageReadResp } var file_message_proto_depIdxs = []int32{ 9, // 0: message.FindUserMsgRes.data:type_name -> message.Messages 9, // 1: message.MessageDetailResp.data:type_name -> message.Messages 9, // 2: message.GetLastMessageRes.data:type_name -> message.Messages 2, // 3: message.GetUnreadClassCountRes.data:type_name -> message.ResCount 9, // 4: message.GetUnreadClassCountRes.info:type_name -> message.Messages 1, // 5: message.Message.ChangeReadStatus:input_type -> message.ChangeReadStatusRequest 0, // 6: message.Message.SendUserMsg:input_type -> message.SendMsgRequest 3, // 7: message.Message.DeleteSingleMessage:input_type -> message.DeleteSingleMessageRequest 4, // 8: message.Message.DeleteMultipleMessage:input_type -> message.DeleteMultipleMessageRequest 5, // 9: message.Message.GetUnreadCount:input_type -> message.GetUnreadCountRequest 8, // 10: message.Message.FindUserMsg:input_type -> message.FindUserMsgReq 11, // 11: message.Message.GetClassUnreadCount:input_type -> message.GetClassUnreadCountReq 14, // 12: message.Message.GetLastMessage:input_type -> message.GetLastMessageReq 12, // 13: message.Message.FindMessageDetail:input_type -> message.MessageDetailReq 16, // 14: message.Message.GetUnreadClassCount:input_type -> message.GetUnreadClassCountReq 18, // 15: message.Message.GetMsgType:input_type -> message.GetMsgTypeReq 20, // 16: message.Message.UpdateMessageRead:input_type -> message.UpdateMessageReadReq 6, // 17: message.Message.ChangeReadStatus:output_type -> message.Response 6, // 18: message.Message.SendUserMsg:output_type -> message.Response 6, // 19: message.Message.DeleteSingleMessage:output_type -> message.Response 6, // 20: message.Message.DeleteMultipleMessage:output_type -> message.Response 7, // 21: message.Message.GetUnreadCount:output_type -> message.GetUnreadCountResponse 10, // 22: message.Message.FindUserMsg:output_type -> message.FindUserMsgRes 7, // 23: message.Message.GetClassUnreadCount:output_type -> message.GetUnreadCountResponse 15, // 24: message.Message.GetLastMessage:output_type -> message.GetLastMessageRes 13, // 25: message.Message.FindMessageDetail:output_type -> message.MessageDetailResp 17, // 26: message.Message.GetUnreadClassCount:output_type -> message.GetUnreadClassCountRes 19, // 27: message.Message.GetMsgType:output_type -> message.GetMsgTypeRes 21, // 28: message.Message.UpdateMessageRead:output_type -> message.UpdateMessageReadResp 17, // [17:29] is the sub-list for method output_type 5, // [5:17] is the sub-list for method input_type 5, // [5:5] is the sub-list for extension type_name 5, // [5:5] is the sub-list for extension extendee 0, // [0:5] 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.(*ResCount); 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.(*DeleteSingleMessageRequest); 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.(*DeleteMultipleMessageRequest); 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.(*GetUnreadCountRequest); 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.(*Response); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[7].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 } } file_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FindUserMsgReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Messages); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FindUserMsgRes); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetClassUnreadCountReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MessageDetailReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*MessageDetailResp); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetLastMessageReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetLastMessageRes); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetUnreadClassCountReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetUnreadClassCountRes); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetMsgTypeReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*GetMsgTypeRes); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateMessageReadReq); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_message_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UpdateMessageReadResp); 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: 22, 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 *GetUnreadCountRequest, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) // 查询指定用户的历史消息记录 FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error) // 查询指定用户指定分类的未读消息合计 GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) // 获取指定用户指定分类的最新一条未读消息 GetLastMessage(ctx context.Context, in *GetLastMessageReq, opts ...grpc.CallOption) (*GetLastMessageRes, error) //查看详细详情 FindMessageDetail(ctx context.Context, in *MessageDetailReq, opts ...grpc.CallOption) (*MessageDetailResp, error) // 获取指定用户的未读消息分类及数量 及分类的最新消息 GetUnreadClassCount(ctx context.Context, in *GetUnreadClassCountReq, opts ...grpc.CallOption) (*GetUnreadClassCountRes, error) // 获取指定用户收到消息的分类 GetMsgType(ctx context.Context, in *GetMsgTypeReq, opts ...grpc.CallOption) (*GetMsgTypeRes, error) //修改用户指定分类下的消息已读未读 UpdateMessageRead(ctx context.Context, in *UpdateMessageReadReq, opts ...grpc.CallOption) (*UpdateMessageReadResp, 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 *GetUnreadCountRequest, 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 } func (c *messageClient) FindUserMsg(ctx context.Context, in *FindUserMsgReq, opts ...grpc.CallOption) (*FindUserMsgRes, error) { out := new(FindUserMsgRes) err := c.cc.Invoke(ctx, "/message.Message/FindUserMsg", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *messageClient) GetClassUnreadCount(ctx context.Context, in *GetClassUnreadCountReq, opts ...grpc.CallOption) (*GetUnreadCountResponse, error) { out := new(GetUnreadCountResponse) err := c.cc.Invoke(ctx, "/message.Message/GetClassUnreadCount", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *messageClient) GetLastMessage(ctx context.Context, in *GetLastMessageReq, opts ...grpc.CallOption) (*GetLastMessageRes, error) { out := new(GetLastMessageRes) err := c.cc.Invoke(ctx, "/message.Message/GetLastMessage", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *messageClient) FindMessageDetail(ctx context.Context, in *MessageDetailReq, opts ...grpc.CallOption) (*MessageDetailResp, error) { out := new(MessageDetailResp) err := c.cc.Invoke(ctx, "/message.Message/FindMessageDetail", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *messageClient) GetUnreadClassCount(ctx context.Context, in *GetUnreadClassCountReq, opts ...grpc.CallOption) (*GetUnreadClassCountRes, error) { out := new(GetUnreadClassCountRes) err := c.cc.Invoke(ctx, "/message.Message/GetUnreadClassCount", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *messageClient) GetMsgType(ctx context.Context, in *GetMsgTypeReq, opts ...grpc.CallOption) (*GetMsgTypeRes, error) { out := new(GetMsgTypeRes) err := c.cc.Invoke(ctx, "/message.Message/GetMsgType", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *messageClient) UpdateMessageRead(ctx context.Context, in *UpdateMessageReadReq, opts ...grpc.CallOption) (*UpdateMessageReadResp, error) { out := new(UpdateMessageReadResp) err := c.cc.Invoke(ctx, "/message.Message/UpdateMessageRead", 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, *GetUnreadCountRequest) (*GetUnreadCountResponse, error) // 查询指定用户的历史消息记录 FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error) // 查询指定用户指定分类的未读消息合计 GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error) // 获取指定用户指定分类的最新一条未读消息 GetLastMessage(context.Context, *GetLastMessageReq) (*GetLastMessageRes, error) //查看详细详情 FindMessageDetail(context.Context, *MessageDetailReq) (*MessageDetailResp, error) // 获取指定用户的未读消息分类及数量 及分类的最新消息 GetUnreadClassCount(context.Context, *GetUnreadClassCountReq) (*GetUnreadClassCountRes, error) // 获取指定用户收到消息的分类 GetMsgType(context.Context, *GetMsgTypeReq) (*GetMsgTypeRes, error) //修改用户指定分类下的消息已读未读 UpdateMessageRead(context.Context, *UpdateMessageReadReq) (*UpdateMessageReadResp, 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, *GetUnreadCountRequest) (*GetUnreadCountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUnreadCount not implemented") } func (*UnimplementedMessageServer) FindUserMsg(context.Context, *FindUserMsgReq) (*FindUserMsgRes, error) { return nil, status.Errorf(codes.Unimplemented, "method FindUserMsg not implemented") } func (*UnimplementedMessageServer) GetClassUnreadCount(context.Context, *GetClassUnreadCountReq) (*GetUnreadCountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetClassUnreadCount not implemented") } func (*UnimplementedMessageServer) GetLastMessage(context.Context, *GetLastMessageReq) (*GetLastMessageRes, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLastMessage not implemented") } func (*UnimplementedMessageServer) FindMessageDetail(context.Context, *MessageDetailReq) (*MessageDetailResp, error) { return nil, status.Errorf(codes.Unimplemented, "method FindMessageDetail not implemented") } func (*UnimplementedMessageServer) GetUnreadClassCount(context.Context, *GetUnreadClassCountReq) (*GetUnreadClassCountRes, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUnreadClassCount not implemented") } func (*UnimplementedMessageServer) GetMsgType(context.Context, *GetMsgTypeReq) (*GetMsgTypeRes, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMsgType not implemented") } func (*UnimplementedMessageServer) UpdateMessageRead(context.Context, *UpdateMessageReadReq) (*UpdateMessageReadResp, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateMessageRead 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(GetUnreadCountRequest) 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.(*GetUnreadCountRequest)) } return interceptor(ctx, in, info, handler) } func _Message_FindUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FindUserMsgReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MessageServer).FindUserMsg(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/message.Message/FindUserMsg", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MessageServer).FindUserMsg(ctx, req.(*FindUserMsgReq)) } return interceptor(ctx, in, info, handler) } func _Message_GetClassUnreadCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetClassUnreadCountReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MessageServer).GetClassUnreadCount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/message.Message/GetClassUnreadCount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MessageServer).GetClassUnreadCount(ctx, req.(*GetClassUnreadCountReq)) } return interceptor(ctx, in, info, handler) } func _Message_GetLastMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetLastMessageReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MessageServer).GetLastMessage(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/message.Message/GetLastMessage", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MessageServer).GetLastMessage(ctx, req.(*GetLastMessageReq)) } return interceptor(ctx, in, info, handler) } func _Message_FindMessageDetail_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(MessageDetailReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MessageServer).FindMessageDetail(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/message.Message/FindMessageDetail", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MessageServer).FindMessageDetail(ctx, req.(*MessageDetailReq)) } return interceptor(ctx, in, info, handler) } func _Message_GetUnreadClassCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetUnreadClassCountReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MessageServer).GetUnreadClassCount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/message.Message/GetUnreadClassCount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MessageServer).GetUnreadClassCount(ctx, req.(*GetUnreadClassCountReq)) } return interceptor(ctx, in, info, handler) } func _Message_GetMsgType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetMsgTypeReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MessageServer).GetMsgType(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/message.Message/GetMsgType", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MessageServer).GetMsgType(ctx, req.(*GetMsgTypeReq)) } return interceptor(ctx, in, info, handler) } func _Message_UpdateMessageRead_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateMessageReadReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(MessageServer).UpdateMessageRead(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/message.Message/UpdateMessageRead", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(MessageServer).UpdateMessageRead(ctx, req.(*UpdateMessageReadReq)) } 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, }, { MethodName: "FindUserMsg", Handler: _Message_FindUserMsg_Handler, }, { MethodName: "GetClassUnreadCount", Handler: _Message_GetClassUnreadCount_Handler, }, { MethodName: "GetLastMessage", Handler: _Message_GetLastMessage_Handler, }, { MethodName: "FindMessageDetail", Handler: _Message_FindMessageDetail_Handler, }, { MethodName: "GetUnreadClassCount", Handler: _Message_GetUnreadClassCount_Handler, }, { MethodName: "GetMsgType", Handler: _Message_GetMsgType_Handler, }, { MethodName: "UpdateMessageRead", Handler: _Message_UpdateMessageRead_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "message.proto", }