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.
207 lines
7.1 KiB
207 lines
7.1 KiB
// 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 sdk_ws "Open_IM/pkg/proto/sdk_ws"
|
|
|
|
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 {
|
|
OperationID string `protobuf:"bytes,1,opt,name=operationID" json:"operationID,omitempty"`
|
|
MsgData *sdk_ws.MsgData `protobuf:"bytes,2,opt,name=msgData" json:"msgData,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_e9dec9fedbbc6360, []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) GetOperationID() string {
|
|
if m != nil {
|
|
return m.OperationID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PushMsgReq) GetMsgData() *sdk_ws.MsgData {
|
|
if m != nil {
|
|
return m.MsgData
|
|
}
|
|
return nil
|
|
}
|
|
|
|
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_e9dec9fedbbc6360, []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_e9dec9fedbbc6360) }
|
|
|
|
var fileDescriptor_push_e9dec9fedbbc6360 = []byte{
|
|
// 221 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x2f, 0x28, 0x2d, 0xce,
|
|
0xd0, 0x07, 0x11, 0x7a, 0x05, 0x45, 0xf9, 0x25, 0xf9, 0x42, 0x2c, 0x20, 0xb6, 0x94, 0xa2, 0x7f,
|
|
0x41, 0x6a, 0x5e, 0xbc, 0xa7, 0xaf, 0x7e, 0x41, 0x76, 0xba, 0x3e, 0x58, 0x42, 0xbf, 0x38, 0x25,
|
|
0x3b, 0xbe, 0xbc, 0x58, 0xbf, 0xbc, 0x18, 0xa2, 0x50, 0x29, 0x8e, 0x8b, 0x2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