mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 11:22:10 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			328 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			328 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			Go
		
	
	
	
	
	
// Code generated by protoc-gen-go. DO NOT EDIT.
 | 
						|
// source: push/push.proto
 | 
						|
 | 
						|
package pbPush // import "./push"
 | 
						|
 | 
						|
import proto "github.com/golang/protobuf/proto"
 | 
						|
import fmt "fmt"
 | 
						|
import math "math"
 | 
						|
 | 
						|
import (
 | 
						|
	context "golang.org/x/net/context"
 | 
						|
	grpc "google.golang.org/grpc"
 | 
						|
)
 | 
						|
 | 
						|
// Reference imports to suppress errors if they are not otherwise used.
 | 
						|
var _ = proto.Marshal
 | 
						|
var _ = fmt.Errorf
 | 
						|
var _ = math.Inf
 | 
						|
 | 
						|
// This is a compile-time assertion to ensure that this generated file
 | 
						|
// is compatible with the proto package it is being compiled against.
 | 
						|
// A compilation error at this line likely means your copy of the
 | 
						|
// proto package needs to be updated.
 | 
						|
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
 | 
						|
 | 
						|
type PushMsgReq struct {
 | 
						|
	SendID               string   `protobuf:"bytes,1,opt,name=SendID" json:"SendID,omitempty"`
 | 
						|
	RecvID               string   `protobuf:"bytes,2,opt,name=RecvID" json:"RecvID,omitempty"`
 | 
						|
	Content              string   `protobuf:"bytes,3,opt,name=Content" json:"Content,omitempty"`
 | 
						|
	RecvSeq              int64    `protobuf:"varint,4,opt,name=RecvSeq" json:"RecvSeq,omitempty"`
 | 
						|
	SendTime             int64    `protobuf:"varint,5,opt,name=SendTime" json:"SendTime,omitempty"`
 | 
						|
	MsgFrom              int32    `protobuf:"varint,6,opt,name=MsgFrom" json:"MsgFrom,omitempty"`
 | 
						|
	ContentType          int32    `protobuf:"varint,7,opt,name=ContentType" json:"ContentType,omitempty"`
 | 
						|
	SessionType          int32    `protobuf:"varint,8,opt,name=SessionType" json:"SessionType,omitempty"`
 | 
						|
	OperationID          string   `protobuf:"bytes,9,opt,name=OperationID" json:"OperationID,omitempty"`
 | 
						|
	MsgID                string   `protobuf:"bytes,10,opt,name=MsgID" json:"MsgID,omitempty"`
 | 
						|
	OfflineInfo          string   `protobuf:"bytes,11,opt,name=OfflineInfo" json:"OfflineInfo,omitempty"`
 | 
						|
	Options              string   `protobuf:"bytes,12,opt,name=Options" json:"Options,omitempty"`
 | 
						|
	PlatformID           int32    `protobuf:"varint,13,opt,name=PlatformID" json:"PlatformID,omitempty"`
 | 
						|
	SenderNickName       string   `protobuf:"bytes,14,opt,name=SenderNickName" json:"SenderNickName,omitempty"`
 | 
						|
	SenderFaceURL        string   `protobuf:"bytes,15,opt,name=SenderFaceURL" json:"SenderFaceURL,omitempty"`
 | 
						|
	ClientMsgID          string   `protobuf:"bytes,16,opt,name=ClientMsgID" json:"ClientMsgID,omitempty"`
 | 
						|
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 | 
						|
	XXX_unrecognized     []byte   `json:"-"`
 | 
						|
	XXX_sizecache        int32    `json:"-"`
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) Reset()         { *m = PushMsgReq{} }
 | 
						|
func (m *PushMsgReq) String() string { return proto.CompactTextString(m) }
 | 
						|
func (*PushMsgReq) ProtoMessage()    {}
 | 
						|
func (*PushMsgReq) Descriptor() ([]byte, []int) {
 | 
						|
	return fileDescriptor_push_4f08d2ff54ba8af2, []int{0}
 | 
						|
}
 | 
						|
func (m *PushMsgReq) XXX_Unmarshal(b []byte) error {
 | 
						|
	return xxx_messageInfo_PushMsgReq.Unmarshal(m, b)
 | 
						|
}
 | 
						|
func (m *PushMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | 
						|
	return xxx_messageInfo_PushMsgReq.Marshal(b, m, deterministic)
 | 
						|
}
 | 
						|
func (dst *PushMsgReq) XXX_Merge(src proto.Message) {
 | 
						|
	xxx_messageInfo_PushMsgReq.Merge(dst, src)
 | 
						|
}
 | 
						|
func (m *PushMsgReq) XXX_Size() int {
 | 
						|
	return xxx_messageInfo_PushMsgReq.Size(m)
 | 
						|
}
 | 
						|
func (m *PushMsgReq) XXX_DiscardUnknown() {
 | 
						|
	xxx_messageInfo_PushMsgReq.DiscardUnknown(m)
 | 
						|
}
 | 
						|
 | 
						|
var xxx_messageInfo_PushMsgReq proto.InternalMessageInfo
 | 
						|
 | 
						|
func (m *PushMsgReq) GetSendID() string {
 | 
						|
	if m != nil {
 | 
						|
		return m.SendID
 | 
						|
	}
 | 
						|
	return ""
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetRecvID() string {
 | 
						|
	if m != nil {
 | 
						|
		return m.RecvID
 | 
						|
	}
 | 
						|
	return ""
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetContent() string {
 | 
						|
	if m != nil {
 | 
						|
		return m.Content
 | 
						|
	}
 | 
						|
	return ""
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetRecvSeq() int64 {
 | 
						|
	if m != nil {
 | 
						|
		return m.RecvSeq
 | 
						|
	}
 | 
						|
	return 0
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetSendTime() int64 {
 | 
						|
	if m != nil {
 | 
						|
		return m.SendTime
 | 
						|
	}
 | 
						|
	return 0
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetMsgFrom() int32 {
 | 
						|
	if m != nil {
 | 
						|
		return m.MsgFrom
 | 
						|
	}
 | 
						|
	return 0
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetContentType() int32 {
 | 
						|
	if m != nil {
 | 
						|
		return m.ContentType
 | 
						|
	}
 | 
						|
	return 0
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetSessionType() int32 {
 | 
						|
	if m != nil {
 | 
						|
		return m.SessionType
 | 
						|
	}
 | 
						|
	return 0
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetOperationID() string {
 | 
						|
	if m != nil {
 | 
						|
		return m.OperationID
 | 
						|
	}
 | 
						|
	return ""
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetMsgID() string {
 | 
						|
	if m != nil {
 | 
						|
		return m.MsgID
 | 
						|
	}
 | 
						|
	return ""
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetOfflineInfo() string {
 | 
						|
	if m != nil {
 | 
						|
		return m.OfflineInfo
 | 
						|
	}
 | 
						|
	return ""
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetOptions() string {
 | 
						|
	if m != nil {
 | 
						|
		return m.Options
 | 
						|
	}
 | 
						|
	return ""
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetPlatformID() int32 {
 | 
						|
	if m != nil {
 | 
						|
		return m.PlatformID
 | 
						|
	}
 | 
						|
	return 0
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetSenderNickName() string {
 | 
						|
	if m != nil {
 | 
						|
		return m.SenderNickName
 | 
						|
	}
 | 
						|
	return ""
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetSenderFaceURL() string {
 | 
						|
	if m != nil {
 | 
						|
		return m.SenderFaceURL
 | 
						|
	}
 | 
						|
	return ""
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgReq) GetClientMsgID() string {
 | 
						|
	if m != nil {
 | 
						|
		return m.ClientMsgID
 | 
						|
	}
 | 
						|
	return ""
 | 
						|
}
 | 
						|
 | 
						|
type PushMsgResp struct {
 | 
						|
	ResultCode           int32    `protobuf:"varint,1,opt,name=ResultCode" json:"ResultCode,omitempty"`
 | 
						|
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
 | 
						|
	XXX_unrecognized     []byte   `json:"-"`
 | 
						|
	XXX_sizecache        int32    `json:"-"`
 | 
						|
}
 | 
						|
 | 
						|
func (m *PushMsgResp) Reset()         { *m = PushMsgResp{} }
 | 
						|
func (m *PushMsgResp) String() string { return proto.CompactTextString(m) }
 | 
						|
func (*PushMsgResp) ProtoMessage()    {}
 | 
						|
func (*PushMsgResp) Descriptor() ([]byte, []int) {
 | 
						|
	return fileDescriptor_push_4f08d2ff54ba8af2, []int{1}
 | 
						|
}
 | 
						|
func (m *PushMsgResp) XXX_Unmarshal(b []byte) error {
 | 
						|
	return xxx_messageInfo_PushMsgResp.Unmarshal(m, b)
 | 
						|
}
 | 
						|
func (m *PushMsgResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
 | 
						|
	return xxx_messageInfo_PushMsgResp.Marshal(b, m, deterministic)
 | 
						|
}
 | 
						|
func (dst *PushMsgResp) XXX_Merge(src proto.Message) {
 | 
						|
	xxx_messageInfo_PushMsgResp.Merge(dst, src)
 | 
						|
}
 | 
						|
func (m *PushMsgResp) XXX_Size() int {
 | 
						|
	return xxx_messageInfo_PushMsgResp.Size(m)
 | 
						|
}
 | 
						|
func (m *PushMsgResp) XXX_DiscardUnknown() {
 | 
						|
	xxx_messageInfo_PushMsgResp.DiscardUnknown(m)
 | 
						|
}
 | 
						|
 | 
						|
var xxx_messageInfo_PushMsgResp proto.InternalMessageInfo
 | 
						|
 | 
						|
func (m *PushMsgResp) GetResultCode() int32 {
 | 
						|
	if m != nil {
 | 
						|
		return m.ResultCode
 | 
						|
	}
 | 
						|
	return 0
 | 
						|
}
 | 
						|
 | 
						|
func init() {
 | 
						|
	proto.RegisterType((*PushMsgReq)(nil), "push.PushMsgReq")
 | 
						|
	proto.RegisterType((*PushMsgResp)(nil), "push.PushMsgResp")
 | 
						|
}
 | 
						|
 | 
						|
// Reference imports to suppress errors if they are not otherwise used.
 | 
						|
var _ context.Context
 | 
						|
var _ grpc.ClientConn
 | 
						|
 | 
						|
// 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.SupportPackageIsVersion4
 | 
						|
 | 
						|
// Client API for PushMsgService service
 | 
						|
 | 
						|
type PushMsgServiceClient interface {
 | 
						|
	PushMsg(ctx context.Context, in *PushMsgReq, opts ...grpc.CallOption) (*PushMsgResp, error)
 | 
						|
}
 | 
						|
 | 
						|
type pushMsgServiceClient struct {
 | 
						|
	cc *grpc.ClientConn
 | 
						|
}
 | 
						|
 | 
						|
func NewPushMsgServiceClient(cc *grpc.ClientConn) PushMsgServiceClient {
 | 
						|
	return &pushMsgServiceClient{cc}
 | 
						|
}
 | 
						|
 | 
						|
func (c *pushMsgServiceClient) PushMsg(ctx context.Context, in *PushMsgReq, opts ...grpc.CallOption) (*PushMsgResp, error) {
 | 
						|
	out := new(PushMsgResp)
 | 
						|
	err := grpc.Invoke(ctx, "/push.PushMsgService/PushMsg", in, out, c.cc, opts...)
 | 
						|
	if err != nil {
 | 
						|
		return nil, err
 | 
						|
	}
 | 
						|
	return out, nil
 | 
						|
}
 | 
						|
 | 
						|
// Server API for PushMsgService service
 | 
						|
 | 
						|
type PushMsgServiceServer interface {
 | 
						|
	PushMsg(context.Context, *PushMsgReq) (*PushMsgResp, error)
 | 
						|
}
 | 
						|
 | 
						|
func RegisterPushMsgServiceServer(s *grpc.Server, srv PushMsgServiceServer) {
 | 
						|
	s.RegisterService(&_PushMsgService_serviceDesc, srv)
 | 
						|
}
 | 
						|
 | 
						|
func _PushMsgService_PushMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 | 
						|
	in := new(PushMsgReq)
 | 
						|
	if err := dec(in); err != nil {
 | 
						|
		return nil, err
 | 
						|
	}
 | 
						|
	if interceptor == nil {
 | 
						|
		return srv.(PushMsgServiceServer).PushMsg(ctx, in)
 | 
						|
	}
 | 
						|
	info := &grpc.UnaryServerInfo{
 | 
						|
		Server:     srv,
 | 
						|
		FullMethod: "/push.PushMsgService/PushMsg",
 | 
						|
	}
 | 
						|
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
 | 
						|
		return srv.(PushMsgServiceServer).PushMsg(ctx, req.(*PushMsgReq))
 | 
						|
	}
 | 
						|
	return interceptor(ctx, in, info, handler)
 | 
						|
}
 | 
						|
 | 
						|
var _PushMsgService_serviceDesc = grpc.ServiceDesc{
 | 
						|
	ServiceName: "push.PushMsgService",
 | 
						|
	HandlerType: (*PushMsgServiceServer)(nil),
 | 
						|
	Methods: []grpc.MethodDesc{
 | 
						|
		{
 | 
						|
			MethodName: "PushMsg",
 | 
						|
			Handler:    _PushMsgService_PushMsg_Handler,
 | 
						|
		},
 | 
						|
	},
 | 
						|
	Streams:  []grpc.StreamDesc{},
 | 
						|
	Metadata: "push/push.proto",
 | 
						|
}
 | 
						|
 | 
						|
func init() { proto.RegisterFile("push/push.proto", fileDescriptor_push_4f08d2ff54ba8af2) }
 | 
						|
 | 
						|
var fileDescriptor_push_4f08d2ff54ba8af2 = []byte{
 | 
						|
	// 378 bytes of a gzipped FileDescriptorProto
 | 
						|
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x92, 0x5d, 0xeb, 0xda, 0x30,
 | 
						|
	0x14, 0xc6, 0xe9, 0xb4, 0xbe, 0x1c, 0xe7, 0xcb, 0xc2, 0x18, 0xc1, 0x8b, 0x51, 0x64, 0x0c, 0x6f,
 | 
						|
	0xd6, 0xc1, 0x76, 0xb9, 0x9b, 0x31, 0x8b, 0x50, 0x98, 0x2f, 0xa4, 0xee, 0x66, 0x77, 0xb5, 0x9e,
 | 
						|
	0x6a, 0x59, 0x9b, 0xc4, 0xa6, 0x0a, 0xfb, 0xd2, 0xfb, 0x0c, 0x23, 0x49, 0xd5, 0xfe, 0xbd, 0x29,
 | 
						|
	0x7d, 0x7e, 0xe7, 0x39, 0x87, 0x27, 0xc9, 0x81, 0xb1, 0xbc, 0xa8, 0xd3, 0x67, 0xfd, 0xf1, 0x65,
 | 
						|
	0x29, 0x2a, 0x41, 0xda, 0xfa, 0x7f, 0xf6, 0xaf, 0x05, 0xb0, 0xbd, 0xa8, 0xd3, 0x4a, 0x1d, 0x19,
 | 
						|
	0x9e, 0xc9, 0x3b, 0xe8, 0x44, 0xc8, 0x0f, 0x61, 0x40, 0x1d, 0xcf, 0x99, 0xf7, 0x59, 0xad, 0x34,
 | 
						|
	0x67, 0x98, 0x5c, 0xc3, 0x80, 0xbe, 0xb2, 0xdc, 0x2a, 0x42, 0xa1, 0xbb, 0x10, 0xbc, 0x42, 0x5e,
 | 
						|
	0xd1, 0x96, 0x29, 0xdc, 0xa4, 0xae, 0x68, 0x4f, 0x84, 0x67, 0xda, 0xf6, 0x9c, 0x79, 0x8b, 0xdd,
 | 
						|
	0x24, 0x99, 0x42, 0x4f, 0x4f, 0xdd, 0x65, 0x05, 0x52, 0xd7, 0x94, 0xee, 0x5a, 0x77, 0xad, 0xd4,
 | 
						|
	0x71, 0x59, 0x8a, 0x82, 0x76, 0x3c, 0x67, 0xee, 0xb2, 0x9b, 0x24, 0x1e, 0x0c, 0xea, 0xd1, 0xbb,
 | 
						|
	0xbf, 0x12, 0x69, 0xd7, 0x54, 0x9b, 0x48, 0x3b, 0x22, 0x54, 0x2a, 0x13, 0xdc, 0x38, 0x7a, 0xd6,
 | 
						|
	0xd1, 0x40, 0xda, 0xb1, 0x91, 0x58, 0xc6, 0x55, 0x26, 0x78, 0x18, 0xd0, 0xbe, 0x49, 0xdc, 0x44,
 | 
						|
	0xe4, 0x2d, 0xb8, 0x2b, 0x75, 0x0c, 0x03, 0x0a, 0xa6, 0x66, 0x85, 0xe9, 0x4b, 0xd3, 0x3c, 0xe3,
 | 
						|
	0x18, 0xf2, 0x54, 0xd0, 0x41, 0xdd, 0xf7, 0x40, 0x3a, 0xf7, 0x46, 0xea, 0x19, 0x8a, 0xbe, 0xb6,
 | 
						|
	0xf7, 0x50, 0x4b, 0xf2, 0x1e, 0x60, 0x9b, 0xc7, 0x55, 0x2a, 0xca, 0x22, 0x0c, 0xe8, 0xd0, 0x84,
 | 
						|
	0x6a, 0x10, 0xf2, 0x11, 0x46, 0xfa, 0xf4, 0x58, 0xae, 0xb3, 0xe4, 0xcf, 0x3a, 0x2e, 0x90, 0x8e,
 | 
						|
	0xcc, 0x80, 0x27, 0x4a, 0x3e, 0xc0, 0xd0, 0x92, 0x65, 0x9c, 0xe0, 0x2f, 0xf6, 0x93, 0x8e, 0x8d,
 | 
						|
	0xed, 0x25, 0x34, 0xb7, 0x94, 0x67, 0xc8, 0x2b, 0x7b, 0x8a, 0x89, 0x4d, 0xda, 0x40, 0xb3, 0x4f,
 | 
						|
	0x30, 0xb8, 0xbf, 0xb7, 0x92, 0x3a, 0x1e, 0x43, 0x75, 0xc9, 0xab, 0x85, 0x38, 0xa0, 0x79, 0x74,
 | 
						|
	0x97, 0x35, 0xc8, 0x97, 0xef, 0x30, 0xaa, 0xed, 0x11, 0x96, 0xd7, 0x2c, 0x41, 0xe2, 0x43, 0xb7,
 | 
						|
	0x26, 0x64, 0xe2, 0x9b, 0x7d, 0x7a, 0xec, 0xcf, 0xf4, 0xcd, 0x13, 0x51, 0xf2, 0xc7, 0xf8, 0xf7,
 | 
						|
	0xd0, 0x37, 0x7b, 0xf7, 0x4d, 0xee, 0x35, 0xdf, 0x77, 0xcc, 0xfe, 0x7d, 0xfd, 0x1f, 0x00, 0x00,
 | 
						|
	0xff, 0xff, 0x6b, 0x53, 0xf4, 0xd4, 0x92, 0x02, 0x00, 0x00,
 | 
						|
}
 |