Files
open-im-server/pkg/proto/push/push.pb.go
T

314 lines
11 KiB
Go
Raw Normal View History

2021-05-26 19:58:57 +08:00
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: push/push.proto
2023-02-23 19:15:30 +08:00
package pbPush // import "OpenIM/pkg/proto/push"
2022-10-27 17:15:06 +08:00
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
2023-02-23 19:15:30 +08:00
import sdkws "OpenIM/pkg/proto/sdkws"
2021-05-26 19:58:57 +08:00
import (
2022-10-27 17:15:06 +08:00
context "golang.org/x/net/context"
2021-05-26 19:58:57 +08:00
grpc "google.golang.org/grpc"
)
2022-10-27 17:15:06 +08:00
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
2021-05-26 19:58:57 +08:00
2022-10-27 17:15:06 +08:00
// 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
2021-05-26 19:58:57 +08:00
2022-10-27 17:15:06 +08:00
type PushMsgReq struct {
2023-02-22 19:51:14 +08:00
MsgData *sdkws.MsgData `protobuf:"bytes,1,opt,name=msgData" json:"msgData,omitempty"`
SourceID string `protobuf:"bytes,2,opt,name=sourceID" json:"sourceID,omitempty"`
2023-02-09 20:36:34 +08:00
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
2021-05-26 19:58:57 +08:00
}
2022-09-27 16:59:56 +08:00
2022-10-27 17:15:06 +08:00
func (m *PushMsgReq) Reset() { *m = PushMsgReq{} }
func (m *PushMsgReq) String() string { return proto.CompactTextString(m) }
func (*PushMsgReq) ProtoMessage() {}
func (*PushMsgReq) Descriptor() ([]byte, []int) {
2023-02-28 17:17:21 +08:00
return fileDescriptor_push_8111188de42e41d8, []int{0}
2021-05-26 19:58:57 +08:00
}
2022-10-27 17:15:06 +08:00
func (m *PushMsgReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PushMsgReq.Unmarshal(m, b)
2021-05-26 19:58:57 +08:00
}
2022-10-27 17:15:06 +08:00
func (m *PushMsgReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PushMsgReq.Marshal(b, m, deterministic)
2021-05-26 19:58:57 +08:00
}
2022-10-27 17:15:06 +08:00
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)
2022-09-27 16:59:56 +08:00
}
2021-05-26 19:58:57 +08:00
2022-10-27 17:15:06 +08:00
var xxx_messageInfo_PushMsgReq proto.InternalMessageInfo
2023-02-09 20:36:34 +08:00
func (m *PushMsgReq) GetMsgData() *sdkws.MsgData {
2022-10-27 17:15:06 +08:00
if m != nil {
return m.MsgData
2021-05-26 19:58:57 +08:00
}
2021-12-22 11:14:03 +08:00
return nil
2021-05-26 19:58:57 +08:00
}
2023-02-22 19:51:14 +08:00
func (m *PushMsgReq) GetSourceID() string {
2022-10-27 17:15:06 +08:00
if m != nil {
2023-02-22 19:51:14 +08:00
return m.SourceID
2022-02-08 17:12:47 +08:00
}
return ""
}
2021-05-26 19:58:57 +08:00
type PushMsgResp struct {
2022-10-27 17:15:06 +08:00
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2022-09-27 16:59:56 +08:00
2022-10-27 17:15:06 +08:00
func (m *PushMsgResp) Reset() { *m = PushMsgResp{} }
func (m *PushMsgResp) String() string { return proto.CompactTextString(m) }
func (*PushMsgResp) ProtoMessage() {}
func (*PushMsgResp) Descriptor() ([]byte, []int) {
2023-02-28 17:17:21 +08:00
return fileDescriptor_push_8111188de42e41d8, []int{1}
2022-10-27 17:15:06 +08:00
}
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)
2021-05-26 19:58:57 +08:00
}
2022-10-27 17:15:06 +08:00
var xxx_messageInfo_PushMsgResp proto.InternalMessageInfo
type DelUserPushTokenReq struct {
2023-02-22 19:51:14 +08:00
UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"`
PlatformID int32 `protobuf:"varint,2,opt,name=platformID" json:"platformID,omitempty"`
2022-10-27 17:15:06 +08:00
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DelUserPushTokenReq) Reset() { *m = DelUserPushTokenReq{} }
func (m *DelUserPushTokenReq) String() string { return proto.CompactTextString(m) }
func (*DelUserPushTokenReq) ProtoMessage() {}
func (*DelUserPushTokenReq) Descriptor() ([]byte, []int) {
2023-02-28 17:17:21 +08:00
return fileDescriptor_push_8111188de42e41d8, []int{2}
2022-10-27 17:15:06 +08:00
}
func (m *DelUserPushTokenReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DelUserPushTokenReq.Unmarshal(m, b)
}
func (m *DelUserPushTokenReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DelUserPushTokenReq.Marshal(b, m, deterministic)
}
func (dst *DelUserPushTokenReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_DelUserPushTokenReq.Merge(dst, src)
}
func (m *DelUserPushTokenReq) XXX_Size() int {
return xxx_messageInfo_DelUserPushTokenReq.Size(m)
}
func (m *DelUserPushTokenReq) XXX_DiscardUnknown() {
xxx_messageInfo_DelUserPushTokenReq.DiscardUnknown(m)
2021-05-26 19:58:57 +08:00
}
2022-09-27 16:59:56 +08:00
2022-10-27 17:15:06 +08:00
var xxx_messageInfo_DelUserPushTokenReq proto.InternalMessageInfo
2022-09-27 16:59:56 +08:00
2022-10-27 17:15:06 +08:00
func (m *DelUserPushTokenReq) GetUserID() string {
if m != nil {
return m.UserID
}
return ""
2021-05-26 19:58:57 +08:00
}
2022-09-27 16:59:56 +08:00
2022-10-27 17:15:06 +08:00
func (m *DelUserPushTokenReq) GetPlatformID() int32 {
if m != nil {
return m.PlatformID
2022-09-27 16:59:56 +08:00
}
return 0
2021-05-26 19:58:57 +08:00
}
2022-09-27 16:59:56 +08:00
2022-10-27 17:15:06 +08:00
type DelUserPushTokenResp struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2021-05-26 19:58:57 +08:00
2022-10-27 17:15:06 +08:00
func (m *DelUserPushTokenResp) Reset() { *m = DelUserPushTokenResp{} }
func (m *DelUserPushTokenResp) String() string { return proto.CompactTextString(m) }
func (*DelUserPushTokenResp) ProtoMessage() {}
func (*DelUserPushTokenResp) Descriptor() ([]byte, []int) {
2023-02-28 17:17:21 +08:00
return fileDescriptor_push_8111188de42e41d8, []int{3}
2022-10-27 17:15:06 +08:00
}
func (m *DelUserPushTokenResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DelUserPushTokenResp.Unmarshal(m, b)
}
func (m *DelUserPushTokenResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DelUserPushTokenResp.Marshal(b, m, deterministic)
}
func (dst *DelUserPushTokenResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_DelUserPushTokenResp.Merge(dst, src)
}
func (m *DelUserPushTokenResp) XXX_Size() int {
return xxx_messageInfo_DelUserPushTokenResp.Size(m)
}
func (m *DelUserPushTokenResp) XXX_DiscardUnknown() {
xxx_messageInfo_DelUserPushTokenResp.DiscardUnknown(m)
}
var xxx_messageInfo_DelUserPushTokenResp proto.InternalMessageInfo
func init() {
proto.RegisterType((*PushMsgReq)(nil), "push.PushMsgReq")
proto.RegisterType((*PushMsgResp)(nil), "push.PushMsgResp")
proto.RegisterType((*DelUserPushTokenReq)(nil), "push.DelUserPushTokenReq")
proto.RegisterType((*DelUserPushTokenResp)(nil), "push.DelUserPushTokenResp")
2021-05-26 19:58:57 +08:00
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
2022-10-27 17:15:06 +08:00
var _ grpc.ClientConn
2021-05-26 19:58:57 +08:00
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
2022-10-27 17:15:06 +08:00
const _ = grpc.SupportPackageIsVersion4
// Client API for PushMsgService service
2021-05-26 19:58:57 +08:00
type PushMsgServiceClient interface {
PushMsg(ctx context.Context, in *PushMsgReq, opts ...grpc.CallOption) (*PushMsgResp, error)
2022-10-27 17:15:06 +08:00
DelUserPushToken(ctx context.Context, in *DelUserPushTokenReq, opts ...grpc.CallOption) (*DelUserPushTokenResp, error)
2021-05-26 19:58:57 +08:00
}
type pushMsgServiceClient struct {
2022-10-27 17:15:06 +08:00
cc *grpc.ClientConn
2021-05-26 19:58:57 +08:00
}
2022-10-27 17:15:06 +08:00
func NewPushMsgServiceClient(cc *grpc.ClientConn) PushMsgServiceClient {
2021-05-26 19:58:57 +08:00
return &pushMsgServiceClient{cc}
}
func (c *pushMsgServiceClient) PushMsg(ctx context.Context, in *PushMsgReq, opts ...grpc.CallOption) (*PushMsgResp, error) {
out := new(PushMsgResp)
2022-10-27 17:15:06 +08:00
err := grpc.Invoke(ctx, "/push.PushMsgService/PushMsg", in, out, c.cc, opts...)
2021-05-26 19:58:57 +08:00
if err != nil {
return nil, err
}
return out, nil
}
2022-10-27 17:15:06 +08:00
func (c *pushMsgServiceClient) DelUserPushToken(ctx context.Context, in *DelUserPushTokenReq, opts ...grpc.CallOption) (*DelUserPushTokenResp, error) {
out := new(DelUserPushTokenResp)
err := grpc.Invoke(ctx, "/push.PushMsgService/DelUserPushToken", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
2021-05-26 19:58:57 +08:00
}
2022-10-27 17:15:06 +08:00
// Server API for PushMsgService service
2022-09-27 16:59:56 +08:00
2022-10-27 17:15:06 +08:00
type PushMsgServiceServer interface {
PushMsg(context.Context, *PushMsgReq) (*PushMsgResp, error)
DelUserPushToken(context.Context, *DelUserPushTokenReq) (*DelUserPushTokenResp, error)
2022-09-27 16:59:56 +08:00
}
2021-05-26 19:58:57 +08:00
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)
}
2022-10-27 17:15:06 +08:00
func _PushMsgService_DelUserPushToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DelUserPushTokenReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PushMsgServiceServer).DelUserPushToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/push.PushMsgService/DelUserPushToken",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PushMsgServiceServer).DelUserPushToken(ctx, req.(*DelUserPushTokenReq))
}
return interceptor(ctx, in, info, handler)
}
2021-05-26 19:58:57 +08:00
var _PushMsgService_serviceDesc = grpc.ServiceDesc{
ServiceName: "push.PushMsgService",
HandlerType: (*PushMsgServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "PushMsg",
Handler: _PushMsgService_PushMsg_Handler,
},
2022-10-27 17:15:06 +08:00
{
MethodName: "DelUserPushToken",
Handler: _PushMsgService_DelUserPushToken_Handler,
},
2021-05-26 19:58:57 +08:00
},
Streams: []grpc.StreamDesc{},
Metadata: "push/push.proto",
}
2022-10-27 17:15:06 +08:00
2023-02-28 17:17:21 +08:00
func init() { proto.RegisterFile("push/push.proto", fileDescriptor_push_8111188de42e41d8) }
var fileDescriptor_push_8111188de42e41d8 = []byte{
// 278 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x41, 0x4f, 0xfa, 0x40,
0x10, 0xc5, 0xd3, 0x7f, 0xfe, 0x82, 0x0c, 0x11, 0x71, 0x35, 0x04, 0x1b, 0x43, 0x48, 0x2f, 0xf6,
0x42, 0x9b, 0xe0, 0xd1, 0x9b, 0xe9, 0xa5, 0x87, 0x8d, 0x66, 0xd5, 0x8b, 0xb7, 0x82, 0x63, 0x31,
0x05, 0x76, 0xdc, 0x69, 0xe5, 0x43, 0xf8, 0xa5, 0xcd, 0x6e, 0x2b, 0x12, 0xd4, 0x4b, 0xd3, 0xf9,
0xcd, 0xcb, 0x7b, 0x79, 0xb3, 0x70, 0x4c, 0x15, 0x2f, 0x62, 0xfb, 0x89, 0xc8, 0xe8, 0x52, 0x8b,
0xff, 0xf6, 0xdf, 0xbf, 0xbc, 0x25, 0x5c, 0x4f, 0x52, 0x39, 0xb9, 0x47, 0xf3, 0x8e, 0x26,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