You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/pkg/proto/message_cms/message_cms.pb.go

1084 lines
39 KiB

3 years ago
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
3 years ago
// protoc-gen-go v1.27.1
// protoc v3.15.5
// source: message_cms/message_cms.proto
3 years ago
3 years ago
package message_cms
3 years ago
import (
3 years ago
sdk_ws "Open_IM/pkg/proto/sdk_ws"
3 years ago
context "context"
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)
)
type BoradcastMessageReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
OperationID string `protobuf:"bytes,2,opt,name=OperationID,proto3" json:"OperationID,omitempty"`
}
func (x *BoradcastMessageReq) Reset() {
*x = BoradcastMessageReq{}
if protoimpl.UnsafeEnabled {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[0]
3 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BoradcastMessageReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BoradcastMessageReq) ProtoMessage() {}
func (x *BoradcastMessageReq) ProtoReflect() protoreflect.Message {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[0]
3 years ago
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 BoradcastMessageReq.ProtoReflect.Descriptor instead.
func (*BoradcastMessageReq) Descriptor() ([]byte, []int) {
3 years ago
return file_message_cms_message_cms_proto_rawDescGZIP(), []int{0}
3 years ago
}
func (x *BoradcastMessageReq) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *BoradcastMessageReq) GetOperationID() string {
if x != nil {
return x.OperationID
}
return ""
}
type BoradcastMessageResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *BoradcastMessageResp) Reset() {
*x = BoradcastMessageResp{}
if protoimpl.UnsafeEnabled {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[1]
3 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BoradcastMessageResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BoradcastMessageResp) ProtoMessage() {}
func (x *BoradcastMessageResp) ProtoReflect() protoreflect.Message {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[1]
3 years ago
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 BoradcastMessageResp.ProtoReflect.Descriptor instead.
func (*BoradcastMessageResp) Descriptor() ([]byte, []int) {
3 years ago
return file_message_cms_message_cms_proto_rawDescGZIP(), []int{1}
3 years ago
}
type MassSendMessageReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
UserIds []string `protobuf:"bytes,2,rep,name=UserIds,proto3" json:"UserIds,omitempty"`
OperationID string `protobuf:"bytes,3,opt,name=OperationID,proto3" json:"OperationID,omitempty"`
}
func (x *MassSendMessageReq) Reset() {
*x = MassSendMessageReq{}
if protoimpl.UnsafeEnabled {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[2]
3 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MassSendMessageReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MassSendMessageReq) ProtoMessage() {}
func (x *MassSendMessageReq) ProtoReflect() protoreflect.Message {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[2]
3 years ago
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 MassSendMessageReq.ProtoReflect.Descriptor instead.
func (*MassSendMessageReq) Descriptor() ([]byte, []int) {
3 years ago
return file_message_cms_message_cms_proto_rawDescGZIP(), []int{2}
3 years ago
}
func (x *MassSendMessageReq) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *MassSendMessageReq) GetUserIds() []string {
if x != nil {
return x.UserIds
}
return nil
}
func (x *MassSendMessageReq) GetOperationID() string {
if x != nil {
return x.OperationID
}
return ""
}
type MassSendMessageResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MassSendMessageResp) Reset() {
*x = MassSendMessageResp{}
if protoimpl.UnsafeEnabled {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[3]
3 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MassSendMessageResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MassSendMessageResp) ProtoMessage() {}
func (x *MassSendMessageResp) ProtoReflect() protoreflect.Message {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[3]
3 years ago
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 MassSendMessageResp.ProtoReflect.Descriptor instead.
func (*MassSendMessageResp) Descriptor() ([]byte, []int) {
3 years ago
return file_message_cms_message_cms_proto_rawDescGZIP(), []int{3}
3 years ago
}
type GetChatLogsReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
3 years ago
Content string `protobuf:"bytes,1,opt,name=Content,proto3" json:"Content,omitempty"`
UserId string `protobuf:"bytes,2,opt,name=UserId,proto3" json:"UserId,omitempty"`
GroupId string `protobuf:"bytes,3,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
Date string `protobuf:"bytes,4,opt,name=Date,proto3" json:"Date,omitempty"`
SessionType int32 `protobuf:"varint,5,opt,name=SessionType,proto3" json:"SessionType,omitempty"`
ContentType int32 `protobuf:"varint,6,opt,name=ContentType,proto3" json:"ContentType,omitempty"`
Pagination *sdk_ws.RequestPagination `protobuf:"bytes,7,opt,name=Pagination,proto3" json:"Pagination,omitempty"`
OperationID string `protobuf:"bytes,8,opt,name=OperationID,proto3" json:"OperationID,omitempty"`
3 years ago
}
func (x *GetChatLogsReq) Reset() {
*x = GetChatLogsReq{}
if protoimpl.UnsafeEnabled {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[4]
3 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetChatLogsReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetChatLogsReq) ProtoMessage() {}
func (x *GetChatLogsReq) ProtoReflect() protoreflect.Message {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[4]
3 years ago
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 GetChatLogsReq.ProtoReflect.Descriptor instead.
func (*GetChatLogsReq) Descriptor() ([]byte, []int) {
3 years ago
return file_message_cms_message_cms_proto_rawDescGZIP(), []int{4}
3 years ago
}
func (x *GetChatLogsReq) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
func (x *GetChatLogsReq) GetUserId() string {
if x != nil {
return x.UserId
}
return ""
}
3 years ago
func (x *GetChatLogsReq) GetGroupId() string {
if x != nil {
return x.GroupId
}
return ""
}
3 years ago
func (x *GetChatLogsReq) GetDate() string {
if x != nil {
return x.Date
}
return ""
}
func (x *GetChatLogsReq) GetSessionType() int32 {
if x != nil {
return x.SessionType
}
return 0
}
func (x *GetChatLogsReq) GetContentType() int32 {
if x != nil {
return x.ContentType
}
return 0
}
3 years ago
func (x *GetChatLogsReq) GetPagination() *sdk_ws.RequestPagination {
if x != nil {
return x.Pagination
}
return nil
}
3 years ago
func (x *GetChatLogsReq) GetOperationID() string {
if x != nil {
return x.OperationID
}
return ""
}
3 years ago
type ChatLogs struct {
3 years ago
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
SessionType int32 `protobuf:"varint,1,opt,name=SessionType,proto3" json:"SessionType,omitempty"`
ContentType int32 `protobuf:"varint,2,opt,name=ContentType,proto3" json:"ContentType,omitempty"`
SenderNickName string `protobuf:"bytes,3,opt,name=SenderNickName,proto3" json:"SenderNickName,omitempty"`
3 years ago
SenderId string `protobuf:"bytes,4,opt,name=SenderId,proto3" json:"SenderId,omitempty"`
ReciverNickName string `protobuf:"bytes,5,opt,name=ReciverNickName,proto3" json:"ReciverNickName,omitempty"`
ReciverId string `protobuf:"bytes,6,opt,name=ReciverId,proto3" json:"ReciverId,omitempty"`
SearchContent string `protobuf:"bytes,7,opt,name=SearchContent,proto3" json:"SearchContent,omitempty"`
WholeContent string `protobuf:"bytes,8,opt,name=WholeContent,proto3" json:"WholeContent,omitempty"`
GroupId string `protobuf:"bytes,9,opt,name=GroupId,proto3" json:"GroupId,omitempty"`
GroupName string `protobuf:"bytes,10,opt,name=GroupName,proto3" json:"GroupName,omitempty"`
Date string `protobuf:"bytes,11,opt,name=Date,proto3" json:"Date,omitempty"`
}
func (x *ChatLogs) Reset() {
*x = ChatLogs{}
3 years ago
if protoimpl.UnsafeEnabled {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[5]
3 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
3 years ago
func (x *ChatLogs) String() string {
3 years ago
return protoimpl.X.MessageStringOf(x)
}
3 years ago
func (*ChatLogs) ProtoMessage() {}
3 years ago
3 years ago
func (x *ChatLogs) ProtoReflect() protoreflect.Message {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[5]
3 years ago
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)
}
3 years ago
// Deprecated: Use ChatLogs.ProtoReflect.Descriptor instead.
func (*ChatLogs) Descriptor() ([]byte, []int) {
3 years ago
return file_message_cms_message_cms_proto_rawDescGZIP(), []int{5}
3 years ago
}
3 years ago
func (x *ChatLogs) GetSessionType() int32 {
3 years ago
if x != nil {
return x.SessionType
}
return 0
}
3 years ago
func (x *ChatLogs) GetContentType() int32 {
3 years ago
if x != nil {
return x.ContentType
}
return 0
}
3 years ago
func (x *ChatLogs) GetSenderNickName() string {
3 years ago
if x != nil {
return x.SenderNickName
}
return ""
}
3 years ago
func (x *ChatLogs) GetSenderId() string {
if x != nil {
return x.SenderId
}
return ""
}
func (x *ChatLogs) GetReciverNickName() string {
3 years ago
if x != nil {
return x.ReciverNickName
}
return ""
}
3 years ago
func (x *ChatLogs) GetReciverId() string {
if x != nil {
return x.ReciverId
}
return ""
}
func (x *ChatLogs) GetSearchContent() string {
3 years ago
if x != nil {
return x.SearchContent
}
return ""
}
3 years ago
func (x *ChatLogs) GetWholeContent() string {
3 years ago
if x != nil {
3 years ago
return x.WholeContent
}
return ""
}
func (x *ChatLogs) GetGroupId() string {
if x != nil {
return x.GroupId
}
return ""
}
func (x *ChatLogs) GetGroupName() string {
if x != nil {
return x.GroupName
3 years ago
}
return ""
}
3 years ago
func (x *ChatLogs) GetDate() string {
3 years ago
if x != nil {
return x.Date
}
return ""
}
3 years ago
type GetChatLogsResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
3 years ago
ChatLogs []*ChatLogs `protobuf:"bytes,1,rep,name=ChatLogs,proto3" json:"ChatLogs,omitempty"`
Pagination *sdk_ws.ResponsePagination `protobuf:"bytes,2,opt,name=Pagination,proto3" json:"Pagination,omitempty"`
ChatLogsNum int32 `protobuf:"varint,3,opt,name=ChatLogsNum,proto3" json:"ChatLogsNum,omitempty"`
3 years ago
}
func (x *GetChatLogsResp) Reset() {
*x = GetChatLogsResp{}
if protoimpl.UnsafeEnabled {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[6]
3 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetChatLogsResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetChatLogsResp) ProtoMessage() {}
func (x *GetChatLogsResp) ProtoReflect() protoreflect.Message {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[6]
3 years ago
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 GetChatLogsResp.ProtoReflect.Descriptor instead.
func (*GetChatLogsResp) Descriptor() ([]byte, []int) {
3 years ago
return file_message_cms_message_cms_proto_rawDescGZIP(), []int{6}
3 years ago
}
func (x *GetChatLogsResp) GetChatLogs() []*ChatLogs {
if x != nil {
return x.ChatLogs
}
return nil
}
func (x *GetChatLogsResp) GetPagination() *sdk_ws.ResponsePagination {
if x != nil {
return x.Pagination
}
return nil
}
3 years ago
func (x *GetChatLogsResp) GetChatLogsNum() int32 {
if x != nil {
return x.ChatLogsNum
}
return 0
}
3 years ago
type WithdrawMessageReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ServerMsgId string `protobuf:"bytes,1,opt,name=ServerMsgId,proto3" json:"ServerMsgId,omitempty"`
OperationID string `protobuf:"bytes,2,opt,name=OperationID,proto3" json:"OperationID,omitempty"`
}
func (x *WithdrawMessageReq) Reset() {
*x = WithdrawMessageReq{}
if protoimpl.UnsafeEnabled {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[7]
3 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WithdrawMessageReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WithdrawMessageReq) ProtoMessage() {}
func (x *WithdrawMessageReq) ProtoReflect() protoreflect.Message {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[7]
3 years ago
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 WithdrawMessageReq.ProtoReflect.Descriptor instead.
func (*WithdrawMessageReq) Descriptor() ([]byte, []int) {
3 years ago
return file_message_cms_message_cms_proto_rawDescGZIP(), []int{7}
3 years ago
}
func (x *WithdrawMessageReq) GetServerMsgId() string {
if x != nil {
return x.ServerMsgId
}
return ""
}
func (x *WithdrawMessageReq) GetOperationID() string {
if x != nil {
return x.OperationID
}
return ""
}
type WithdrawMessageResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *WithdrawMessageResp) Reset() {
*x = WithdrawMessageResp{}
if protoimpl.UnsafeEnabled {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[8]
3 years ago
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WithdrawMessageResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WithdrawMessageResp) ProtoMessage() {}
func (x *WithdrawMessageResp) ProtoReflect() protoreflect.Message {
3 years ago
mi := &file_message_cms_message_cms_proto_msgTypes[8]
3 years ago
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 WithdrawMessageResp.ProtoReflect.Descriptor instead.
func (*WithdrawMessageResp) Descriptor() ([]byte, []int) {
3 years ago
return file_message_cms_message_cms_proto_rawDescGZIP(), []int{8}
}
var File_message_cms_message_cms_proto protoreflect.FileDescriptor
var file_message_cms_message_cms_proto_rawDesc = []byte{
0x0a, 0x1d, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6d, 0x73, 0x2f, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x0b, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6d, 0x73, 0x1a, 0x21, 0x4f, 0x70,
0x65, 0x6e, 0x5f, 0x49, 0x4d, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
0x73, 0x64, 0x6b, 0x5f, 0x77, 0x73, 0x2f, 0x77, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0x51, 0x0a, 0x13, 0x42, 0x6f, 0x72, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x49, 0x44, 0x22, 0x16, 0x0a, 0x14, 0x42, 0x6f, 0x72, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x4d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x6a, 0x0a, 0x12, 0x4d, 0x61,
0x73, 0x73, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71,
0x12, 0x18, 0x0a, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x55, 0x73,
0x65, 0x72, 0x49, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x55, 0x73, 0x65,
0x72, 0x49, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0x15, 0x0a, 0x13, 0x4d, 0x61, 0x73, 0x73, 0x53, 0x65,
0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x22, 0x9c, 0x02,
0x0a, 0x0e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71,
0x12, 0x18, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x07, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x73,
0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72,
0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04,
0x44, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x44, 0x61, 0x74, 0x65,
0x12, 0x20, 0x0a, 0x0b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18,
0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79,
0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70,
0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
0x54, 0x79, 0x70, 0x65, 0x12, 0x44, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x65,
0x72, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a,
0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x70,
0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0xf0, 0x02, 0x0a,
0x08, 0x43, 0x68, 0x61, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x53, 0x65, 0x73,
0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b,
0x53, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x43,
0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
0x52, 0x0b, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a,
0x0e, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18,
0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x4e, 0x69, 0x63,
0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x49,
0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x53, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x49,
0x64, 0x12, 0x28, 0x0a, 0x0f, 0x52, 0x65, 0x63, 0x69, 0x76, 0x65, 0x72, 0x4e, 0x69, 0x63, 0x6b,
0x4e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x52, 0x65, 0x63, 0x69,
0x76, 0x65, 0x72, 0x4e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x52,
0x65, 0x63, 0x69, 0x76, 0x65, 0x72, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
0x52, 0x65, 0x63, 0x69, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0d, 0x53, 0x65, 0x61,
0x72, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09,
0x52, 0x0d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12,
0x22, 0x0a, 0x0c, 0x57, 0x68, 0x6f, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18,
0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x57, 0x68, 0x6f, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74,
0x65, 0x6e, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x18, 0x09,
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x12, 0x1c, 0x0a,
0x09, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09,
0x52, 0x09, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x44,
0x61, 0x74, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x44, 0x61, 0x74, 0x65, 0x22,
3 years ago
0xad, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52,
3 years ago
0x65, 0x73, 0x70, 0x12, 0x31, 0x0a, 0x08, 0x43, 0x68, 0x61, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f,
0x63, 0x6d, 0x73, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x08, 0x43, 0x68,
0x61, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x45, 0x0a, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x73, 0x65, 0x72,
0x76, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x69, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x2e, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f,
3 years ago
0x6e, 0x52, 0x0a, 0x50, 0x61, 0x67, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a,
0x0b, 0x43, 0x68, 0x61, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01,
0x28, 0x05, 0x52, 0x0b, 0x43, 0x68, 0x61, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x4e, 0x75, 0x6d, 0x22,
0x58, 0x0a, 0x12, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72, 0x61, 0x77, 0x4d, 0x65, 0x73, 0x73, 0x61,
0x67, 0x65, 0x52, 0x65, 0x71, 0x12, 0x20, 0x0a, 0x0b, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d,
0x73, 0x67, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x53, 0x65, 0x72, 0x76,
0x65, 0x72, 0x4d, 0x73, 0x67, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x70, 0x65, 0x72, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x70,
0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0x15, 0x0a, 0x13, 0x57, 0x69, 0x74,
0x68, 0x64, 0x72, 0x61, 0x77, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70,
0x32, 0xdb, 0x02, 0x0a, 0x0a, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x43, 0x4d, 0x53, 0x12,
0x57, 0x0a, 0x10, 0x42, 0x6f, 0x72, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73,
0x61, 0x67, 0x65, 0x12, 0x20, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6d,
3 years ago
0x73, 0x2e, 0x42, 0x6f, 0x72, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61,
3 years ago
0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f,
0x63, 0x6d, 0x73, 0x2e, 0x42, 0x6f, 0x72, 0x61, 0x64, 0x63, 0x61, 0x73, 0x74, 0x4d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x54, 0x0a, 0x0f, 0x4d, 0x61, 0x73, 0x73,
0x53, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x2e, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6d, 0x73, 0x2e, 0x4d, 0x61, 0x73, 0x73, 0x53, 0x65,
0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x20, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6d, 0x73, 0x2e, 0x4d, 0x61, 0x73, 0x73, 0x53,
0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x48,
0x0a, 0x0b, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x1b, 0x2e,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6d, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x43,
0x68, 0x61, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x1c, 0x2e, 0x6d, 0x65, 0x73,
0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6d, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x68, 0x61, 0x74,
0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x12, 0x54, 0x0a, 0x0f, 0x57, 0x69, 0x74, 0x68,
0x64, 0x72, 0x61, 0x77, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x2e, 0x6d, 0x65,
0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6d, 0x73, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64, 0x72,
0x61, 0x77, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x20, 0x2e, 0x6d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6d, 0x73, 0x2e, 0x57, 0x69, 0x74, 0x68, 0x64,
0x72, 0x61, 0x77, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x73, 0x70, 0x42, 0x1b,
0x5a, 0x19, 0x2e, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6d, 0x73, 0x3b,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6d, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
3 years ago
}
var (
3 years ago
file_message_cms_message_cms_proto_rawDescOnce sync.Once
file_message_cms_message_cms_proto_rawDescData = file_message_cms_message_cms_proto_rawDesc
3 years ago
)
3 years ago
func file_message_cms_message_cms_proto_rawDescGZIP() []byte {
file_message_cms_message_cms_proto_rawDescOnce.Do(func() {
file_message_cms_message_cms_proto_rawDescData = protoimpl.X.CompressGZIP(file_message_cms_message_cms_proto_rawDescData)
3 years ago
})
3 years ago
return file_message_cms_message_cms_proto_rawDescData
}
var file_message_cms_message_cms_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_message_cms_message_cms_proto_goTypes = []interface{}{
(*BoradcastMessageReq)(nil), // 0: message_cms.BoradcastMessageReq
(*BoradcastMessageResp)(nil), // 1: message_cms.BoradcastMessageResp
(*MassSendMessageReq)(nil), // 2: message_cms.MassSendMessageReq
(*MassSendMessageResp)(nil), // 3: message_cms.MassSendMessageResp
(*GetChatLogsReq)(nil), // 4: message_cms.GetChatLogsReq
(*ChatLogs)(nil), // 5: message_cms.ChatLogs
(*GetChatLogsResp)(nil), // 6: message_cms.GetChatLogsResp
(*WithdrawMessageReq)(nil), // 7: message_cms.WithdrawMessageReq
(*WithdrawMessageResp)(nil), // 8: message_cms.WithdrawMessageResp
3 years ago
(*sdk_ws.RequestPagination)(nil), // 9: server_api_params.RequestPagination
(*sdk_ws.ResponsePagination)(nil), // 10: server_api_params.ResponsePagination
}
3 years ago
var file_message_cms_message_cms_proto_depIdxs = []int32{
9, // 0: message_cms.GetChatLogsReq.Pagination:type_name -> server_api_params.RequestPagination
5, // 1: message_cms.GetChatLogsResp.ChatLogs:type_name -> message_cms.ChatLogs
10, // 2: message_cms.GetChatLogsResp.Pagination:type_name -> server_api_params.ResponsePagination
0, // 3: message_cms.messageCMS.BoradcastMessage:input_type -> message_cms.BoradcastMessageReq
2, // 4: message_cms.messageCMS.MassSendMessage:input_type -> message_cms.MassSendMessageReq
4, // 5: message_cms.messageCMS.GetChatLogs:input_type -> message_cms.GetChatLogsReq
7, // 6: message_cms.messageCMS.WithdrawMessage:input_type -> message_cms.WithdrawMessageReq
1, // 7: message_cms.messageCMS.BoradcastMessage:output_type -> message_cms.BoradcastMessageResp
3, // 8: message_cms.messageCMS.MassSendMessage:output_type -> message_cms.MassSendMessageResp
6, // 9: message_cms.messageCMS.GetChatLogs:output_type -> message_cms.GetChatLogsResp
8, // 10: message_cms.messageCMS.WithdrawMessage:output_type -> message_cms.WithdrawMessageResp
3 years ago
7, // [7:11] is the sub-list for method output_type
3, // [3:7] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
3 years ago
func init() { file_message_cms_message_cms_proto_init() }
func file_message_cms_message_cms_proto_init() {
if File_message_cms_message_cms_proto != nil {
3 years ago
return
}
if !protoimpl.UnsafeEnabled {
3 years ago
file_message_cms_message_cms_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
3 years ago
switch v := v.(*BoradcastMessageReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
3 years ago
file_message_cms_message_cms_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
3 years ago
switch v := v.(*BoradcastMessageResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
3 years ago
file_message_cms_message_cms_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
3 years ago
switch v := v.(*MassSendMessageReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
3 years ago
file_message_cms_message_cms_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
3 years ago
switch v := v.(*MassSendMessageResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
3 years ago
file_message_cms_message_cms_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
3 years ago
switch v := v.(*GetChatLogsReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
3 years ago
file_message_cms_message_cms_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
3 years ago
switch v := v.(*ChatLogs); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
3 years ago
file_message_cms_message_cms_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
3 years ago
switch v := v.(*GetChatLogsResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
3 years ago
file_message_cms_message_cms_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
3 years ago
switch v := v.(*WithdrawMessageReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
3 years ago
file_message_cms_message_cms_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
3 years ago
switch v := v.(*WithdrawMessageResp); 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(),
3 years ago
RawDescriptor: file_message_cms_message_cms_proto_rawDesc,
3 years ago
NumEnums: 0,
3 years ago
NumMessages: 9,
3 years ago
NumExtensions: 0,
NumServices: 1,
},
3 years ago
GoTypes: file_message_cms_message_cms_proto_goTypes,
DependencyIndexes: file_message_cms_message_cms_proto_depIdxs,
MessageInfos: file_message_cms_message_cms_proto_msgTypes,
3 years ago
}.Build()
3 years ago
File_message_cms_message_cms_proto = out.File
file_message_cms_message_cms_proto_rawDesc = nil
file_message_cms_message_cms_proto_goTypes = nil
file_message_cms_message_cms_proto_depIdxs = nil
3 years ago
}
// 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
3 years ago
// MessageCMSClient is the client API for MessageCMS service.
3 years ago
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
3 years ago
type MessageCMSClient interface {
3 years ago
BoradcastMessage(ctx context.Context, in *BoradcastMessageReq, opts ...grpc.CallOption) (*BoradcastMessageResp, error)
MassSendMessage(ctx context.Context, in *MassSendMessageReq, opts ...grpc.CallOption) (*MassSendMessageResp, error)
GetChatLogs(ctx context.Context, in *GetChatLogsReq, opts ...grpc.CallOption) (*GetChatLogsResp, error)
WithdrawMessage(ctx context.Context, in *WithdrawMessageReq, opts ...grpc.CallOption) (*WithdrawMessageResp, error)
}
3 years ago
type messageCMSClient struct {
3 years ago
cc grpc.ClientConnInterface
}
3 years ago
func NewMessageCMSClient(cc grpc.ClientConnInterface) MessageCMSClient {
return &messageCMSClient{cc}
3 years ago
}
3 years ago
func (c *messageCMSClient) BoradcastMessage(ctx context.Context, in *BoradcastMessageReq, opts ...grpc.CallOption) (*BoradcastMessageResp, error) {
3 years ago
out := new(BoradcastMessageResp)
3 years ago
err := c.cc.Invoke(ctx, "/message_cms.messageCMS/BoradcastMessage", in, out, opts...)
3 years ago
if err != nil {
return nil, err
}
return out, nil
}
3 years ago
func (c *messageCMSClient) MassSendMessage(ctx context.Context, in *MassSendMessageReq, opts ...grpc.CallOption) (*MassSendMessageResp, error) {
3 years ago
out := new(MassSendMessageResp)
3 years ago
err := c.cc.Invoke(ctx, "/message_cms.messageCMS/MassSendMessage", in, out, opts...)
3 years ago
if err != nil {
return nil, err
}
return out, nil
}
3 years ago
func (c *messageCMSClient) GetChatLogs(ctx context.Context, in *GetChatLogsReq, opts ...grpc.CallOption) (*GetChatLogsResp, error) {
3 years ago
out := new(GetChatLogsResp)
3 years ago
err := c.cc.Invoke(ctx, "/message_cms.messageCMS/GetChatLogs", in, out, opts...)
3 years ago
if err != nil {
return nil, err
}
return out, nil
}
3 years ago
func (c *messageCMSClient) WithdrawMessage(ctx context.Context, in *WithdrawMessageReq, opts ...grpc.CallOption) (*WithdrawMessageResp, error) {
3 years ago
out := new(WithdrawMessageResp)
3 years ago
err := c.cc.Invoke(ctx, "/message_cms.messageCMS/WithdrawMessage", in, out, opts...)
3 years ago
if err != nil {
return nil, err
}
return out, nil
}
3 years ago
// MessageCMSServer is the server API for MessageCMS service.
type MessageCMSServer interface {
3 years ago
BoradcastMessage(context.Context, *BoradcastMessageReq) (*BoradcastMessageResp, error)
MassSendMessage(context.Context, *MassSendMessageReq) (*MassSendMessageResp, error)
GetChatLogs(context.Context, *GetChatLogsReq) (*GetChatLogsResp, error)
WithdrawMessage(context.Context, *WithdrawMessageReq) (*WithdrawMessageResp, error)
}
3 years ago
// UnimplementedMessageCMSServer can be embedded to have forward compatible implementations.
type UnimplementedMessageCMSServer struct {
3 years ago
}
3 years ago
func (*UnimplementedMessageCMSServer) BoradcastMessage(context.Context, *BoradcastMessageReq) (*BoradcastMessageResp, error) {
3 years ago
return nil, status.Errorf(codes.Unimplemented, "method BoradcastMessage not implemented")
}
3 years ago
func (*UnimplementedMessageCMSServer) MassSendMessage(context.Context, *MassSendMessageReq) (*MassSendMessageResp, error) {
3 years ago
return nil, status.Errorf(codes.Unimplemented, "method MassSendMessage not implemented")
}
3 years ago
func (*UnimplementedMessageCMSServer) GetChatLogs(context.Context, *GetChatLogsReq) (*GetChatLogsResp, error) {
3 years ago
return nil, status.Errorf(codes.Unimplemented, "method GetChatLogs not implemented")
}
3 years ago
func (*UnimplementedMessageCMSServer) WithdrawMessage(context.Context, *WithdrawMessageReq) (*WithdrawMessageResp, error) {
3 years ago
return nil, status.Errorf(codes.Unimplemented, "method WithdrawMessage not implemented")
}
3 years ago
func RegisterMessageCMSServer(s *grpc.Server, srv MessageCMSServer) {
s.RegisterService(&_MessageCMS_serviceDesc, srv)
3 years ago
}
3 years ago
func _MessageCMS_BoradcastMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
3 years ago
in := new(BoradcastMessageReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
3 years ago
return srv.(MessageCMSServer).BoradcastMessage(ctx, in)
3 years ago
}
info := &grpc.UnaryServerInfo{
Server: srv,
3 years ago
FullMethod: "/message_cms.messageCMS/BoradcastMessage",
3 years ago
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
3 years ago
return srv.(MessageCMSServer).BoradcastMessage(ctx, req.(*BoradcastMessageReq))
3 years ago
}
return interceptor(ctx, in, info, handler)
}
3 years ago
func _MessageCMS_MassSendMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
3 years ago
in := new(MassSendMessageReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
3 years ago
return srv.(MessageCMSServer).MassSendMessage(ctx, in)
3 years ago
}
info := &grpc.UnaryServerInfo{
Server: srv,
3 years ago
FullMethod: "/message_cms.messageCMS/MassSendMessage",
3 years ago
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
3 years ago
return srv.(MessageCMSServer).MassSendMessage(ctx, req.(*MassSendMessageReq))
3 years ago
}
return interceptor(ctx, in, info, handler)
}
3 years ago
func _MessageCMS_GetChatLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
3 years ago
in := new(GetChatLogsReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
3 years ago
return srv.(MessageCMSServer).GetChatLogs(ctx, in)
3 years ago
}
info := &grpc.UnaryServerInfo{
Server: srv,
3 years ago
FullMethod: "/message_cms.messageCMS/GetChatLogs",
3 years ago
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
3 years ago
return srv.(MessageCMSServer).GetChatLogs(ctx, req.(*GetChatLogsReq))
3 years ago
}
return interceptor(ctx, in, info, handler)
}
3 years ago
func _MessageCMS_WithdrawMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
3 years ago
in := new(WithdrawMessageReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
3 years ago
return srv.(MessageCMSServer).WithdrawMessage(ctx, in)
3 years ago
}
info := &grpc.UnaryServerInfo{
Server: srv,
3 years ago
FullMethod: "/message_cms.messageCMS/WithdrawMessage",
3 years ago
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
3 years ago
return srv.(MessageCMSServer).WithdrawMessage(ctx, req.(*WithdrawMessageReq))
3 years ago
}
return interceptor(ctx, in, info, handler)
}
3 years ago
var _MessageCMS_serviceDesc = grpc.ServiceDesc{
ServiceName: "message_cms.messageCMS",
HandlerType: (*MessageCMSServer)(nil),
3 years ago
Methods: []grpc.MethodDesc{
{
MethodName: "BoradcastMessage",
3 years ago
Handler: _MessageCMS_BoradcastMessage_Handler,
3 years ago
},
{
MethodName: "MassSendMessage",
3 years ago
Handler: _MessageCMS_MassSendMessage_Handler,
3 years ago
},
{
MethodName: "GetChatLogs",
3 years ago
Handler: _MessageCMS_GetChatLogs_Handler,
3 years ago
},
{
MethodName: "WithdrawMessage",
3 years ago
Handler: _MessageCMS_WithdrawMessage_Handler,
3 years ago
},
},
Streams: []grpc.StreamDesc{},
3 years ago
Metadata: "message_cms/message_cms.proto",
3 years ago
}