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.
380 lines
13 KiB
380 lines
13 KiB
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: relay/relay.proto
|
|
|
|
package pbRelay // import "./relay"
|
|
|
|
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 MsgToUserReq 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,5,opt,name=Content" json:"Content,omitempty"`
|
|
RecvSeq int64 `protobuf:"varint,6,opt,name=RecvSeq" json:"RecvSeq,omitempty"`
|
|
SendTime int64 `protobuf:"varint,7,opt,name=SendTime" json:"SendTime,omitempty"`
|
|
MsgFrom int32 `protobuf:"varint,8,opt,name=MsgFrom" json:"MsgFrom,omitempty"`
|
|
ContentType int32 `protobuf:"varint,9,opt,name=ContentType" json:"ContentType,omitempty"`
|
|
SessionType int32 `protobuf:"varint,10,opt,name=SessionType" json:"SessionType,omitempty"`
|
|
OperationID string `protobuf:"bytes,11,opt,name=OperationID" json:"OperationID,omitempty"`
|
|
ServerMsgID string `protobuf:"bytes,12,opt,name=ServerMsgID" json:"ServerMsgID,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 *MsgToUserReq) Reset() { *m = MsgToUserReq{} }
|
|
func (m *MsgToUserReq) String() string { return proto.CompactTextString(m) }
|
|
func (*MsgToUserReq) ProtoMessage() {}
|
|
func (*MsgToUserReq) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_relay_ff2396ffa84abfa7, []int{0}
|
|
}
|
|
func (m *MsgToUserReq) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_MsgToUserReq.Unmarshal(m, b)
|
|
}
|
|
func (m *MsgToUserReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_MsgToUserReq.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *MsgToUserReq) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MsgToUserReq.Merge(dst, src)
|
|
}
|
|
func (m *MsgToUserReq) XXX_Size() int {
|
|
return xxx_messageInfo_MsgToUserReq.Size(m)
|
|
}
|
|
func (m *MsgToUserReq) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MsgToUserReq.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MsgToUserReq proto.InternalMessageInfo
|
|
|
|
func (m *MsgToUserReq) GetSendID() string {
|
|
if m != nil {
|
|
return m.SendID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgToUserReq) GetRecvID() string {
|
|
if m != nil {
|
|
return m.RecvID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgToUserReq) GetContent() string {
|
|
if m != nil {
|
|
return m.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgToUserReq) GetRecvSeq() int64 {
|
|
if m != nil {
|
|
return m.RecvSeq
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgToUserReq) GetSendTime() int64 {
|
|
if m != nil {
|
|
return m.SendTime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgToUserReq) GetMsgFrom() int32 {
|
|
if m != nil {
|
|
return m.MsgFrom
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgToUserReq) GetContentType() int32 {
|
|
if m != nil {
|
|
return m.ContentType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgToUserReq) GetSessionType() int32 {
|
|
if m != nil {
|
|
return m.SessionType
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgToUserReq) GetOperationID() string {
|
|
if m != nil {
|
|
return m.OperationID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgToUserReq) GetServerMsgID() string {
|
|
if m != nil {
|
|
return m.ServerMsgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgToUserReq) GetPlatformID() int32 {
|
|
if m != nil {
|
|
return m.PlatformID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *MsgToUserReq) GetSenderNickName() string {
|
|
if m != nil {
|
|
return m.SenderNickName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgToUserReq) GetSenderFaceURL() string {
|
|
if m != nil {
|
|
return m.SenderFaceURL
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *MsgToUserReq) GetClientMsgID() string {
|
|
if m != nil {
|
|
return m.ClientMsgID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type MsgToUserResp struct {
|
|
Resp []*SingleMsgToUser `protobuf:"bytes,1,rep,name=resp" json:"resp,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *MsgToUserResp) Reset() { *m = MsgToUserResp{} }
|
|
func (m *MsgToUserResp) String() string { return proto.CompactTextString(m) }
|
|
func (*MsgToUserResp) ProtoMessage() {}
|
|
func (*MsgToUserResp) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_relay_ff2396ffa84abfa7, []int{1}
|
|
}
|
|
func (m *MsgToUserResp) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_MsgToUserResp.Unmarshal(m, b)
|
|
}
|
|
func (m *MsgToUserResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_MsgToUserResp.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *MsgToUserResp) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_MsgToUserResp.Merge(dst, src)
|
|
}
|
|
func (m *MsgToUserResp) XXX_Size() int {
|
|
return xxx_messageInfo_MsgToUserResp.Size(m)
|
|
}
|
|
func (m *MsgToUserResp) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_MsgToUserResp.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_MsgToUserResp proto.InternalMessageInfo
|
|
|
|
func (m *MsgToUserResp) GetResp() []*SingleMsgToUser {
|
|
if m != nil {
|
|
return m.Resp
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// message SendMsgByWSReq{
|
|
// string SendID = 1;
|
|
// string RecvID = 2;
|
|
// string Content = 3;
|
|
// int64 SendTime = 4;
|
|
// int64 MsgFrom = 5;
|
|
// int64 ContentType = 6;
|
|
// int64 SessionType = 7;
|
|
// string OperationID = 8;
|
|
// int64 PlatformID = 9;
|
|
// }
|
|
type SingleMsgToUser struct {
|
|
ResultCode int64 `protobuf:"varint,1,opt,name=ResultCode" json:"ResultCode,omitempty"`
|
|
RecvID string `protobuf:"bytes,2,opt,name=RecvID" json:"RecvID,omitempty"`
|
|
RecvPlatFormID int32 `protobuf:"varint,3,opt,name=RecvPlatFormID" json:"RecvPlatFormID,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SingleMsgToUser) Reset() { *m = SingleMsgToUser{} }
|
|
func (m *SingleMsgToUser) String() string { return proto.CompactTextString(m) }
|
|
func (*SingleMsgToUser) ProtoMessage() {}
|
|
func (*SingleMsgToUser) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_relay_ff2396ffa84abfa7, []int{2}
|
|
}
|
|
func (m *SingleMsgToUser) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SingleMsgToUser.Unmarshal(m, b)
|
|
}
|
|
func (m *SingleMsgToUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SingleMsgToUser.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *SingleMsgToUser) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SingleMsgToUser.Merge(dst, src)
|
|
}
|
|
func (m *SingleMsgToUser) XXX_Size() int {
|
|
return xxx_messageInfo_SingleMsgToUser.Size(m)
|
|
}
|
|
func (m *SingleMsgToUser) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SingleMsgToUser.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SingleMsgToUser proto.InternalMessageInfo
|
|
|
|
func (m *SingleMsgToUser) GetResultCode() int64 {
|
|
if m != nil {
|
|
return m.ResultCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *SingleMsgToUser) GetRecvID() string {
|
|
if m != nil {
|
|
return m.RecvID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *SingleMsgToUser) GetRecvPlatFormID() int32 {
|
|
if m != nil {
|
|
return m.RecvPlatFormID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*MsgToUserReq)(nil), "relay.MsgToUserReq")
|
|
proto.RegisterType((*MsgToUserResp)(nil), "relay.MsgToUserResp")
|
|
proto.RegisterType((*SingleMsgToUser)(nil), "relay.SingleMsgToUser")
|
|
}
|
|
|
|
// 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 OnlineMessageRelayService service
|
|
|
|
type OnlineMessageRelayServiceClient interface {
|
|
MsgToUser(ctx context.Context, in *MsgToUserReq, opts ...grpc.CallOption) (*MsgToUserResp, error)
|
|
}
|
|
|
|
type onlineMessageRelayServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewOnlineMessageRelayServiceClient(cc *grpc.ClientConn) OnlineMessageRelayServiceClient {
|
|
return &onlineMessageRelayServiceClient{cc}
|
|
}
|
|
|
|
func (c *onlineMessageRelayServiceClient) MsgToUser(ctx context.Context, in *MsgToUserReq, opts ...grpc.CallOption) (*MsgToUserResp, error) {
|
|
out := new(MsgToUserResp)
|
|
err := grpc.Invoke(ctx, "/relay.OnlineMessageRelayService/MsgToUser", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// Server API for OnlineMessageRelayService service
|
|
|
|
type OnlineMessageRelayServiceServer interface {
|
|
MsgToUser(context.Context, *MsgToUserReq) (*MsgToUserResp, error)
|
|
}
|
|
|
|
func RegisterOnlineMessageRelayServiceServer(s *grpc.Server, srv OnlineMessageRelayServiceServer) {
|
|
s.RegisterService(&_OnlineMessageRelayService_serviceDesc, srv)
|
|
}
|
|
|
|
func _OnlineMessageRelayService_MsgToUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(MsgToUserReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OnlineMessageRelayServiceServer).MsgToUser(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/relay.OnlineMessageRelayService/MsgToUser",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OnlineMessageRelayServiceServer).MsgToUser(ctx, req.(*MsgToUserReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _OnlineMessageRelayService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "relay.OnlineMessageRelayService",
|
|
HandlerType: (*OnlineMessageRelayServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "MsgToUser",
|
|
Handler: _OnlineMessageRelayService_MsgToUser_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "relay/relay.proto",
|
|
}
|
|
|
|
func init() { proto.RegisterFile("relay/relay.proto", fileDescriptor_relay_ff2396ffa84abfa7) }
|
|
|
|
var fileDescriptor_relay_ff2396ffa84abfa7 = []byte{
|
|
// 414 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6b, 0xdb, 0x30,
|
|
0x14, 0xc6, 0xf1, 0xbc, 0xa4, 0xcd, 0x4b, 0x93, 0xac, 0xda, 0x28, 0x5a, 0x0f, 0xc3, 0x84, 0x51,
|
|
0xc2, 0x0e, 0x19, 0x74, 0xb0, 0x4b, 0x6f, 0xab, 0x09, 0x18, 0xe6, 0x76, 0xc8, 0xe9, 0x65, 0x37,
|
|
0xd7, 0x7d, 0x33, 0x62, 0xb6, 0xe4, 0x48, 0x5e, 0xa1, 0xff, 0xdd, 0xfe, 0xb4, 0xa1, 0xa7, 0x64,
|
|
0xd1, 0x32, 0x7a, 0x31, 0xfe, 0x7e, 0xef, 0xf3, 0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