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.
343 lines
13 KiB
343 lines
13 KiB
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: rtc/rtc.proto
|
|
|
|
package rtc // import "OpenIM/pkg/proto/rtc"
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
import sdkws "OpenIM/pkg/proto/sdkws"
|
|
|
|
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 SignalMessageAssembleReq struct {
|
|
SignalReq *sdkws.SignalReq `protobuf:"bytes,1,opt,name=signalReq" json:"signalReq,omitempty"`
|
|
OperationID string `protobuf:"bytes,2,opt,name=operationID" json:"operationID,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SignalMessageAssembleReq) Reset() { *m = SignalMessageAssembleReq{} }
|
|
func (m *SignalMessageAssembleReq) String() string { return proto.CompactTextString(m) }
|
|
func (*SignalMessageAssembleReq) ProtoMessage() {}
|
|
func (*SignalMessageAssembleReq) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_rtc_ffe277e59422062f, []int{0}
|
|
}
|
|
func (m *SignalMessageAssembleReq) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SignalMessageAssembleReq.Unmarshal(m, b)
|
|
}
|
|
func (m *SignalMessageAssembleReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SignalMessageAssembleReq.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *SignalMessageAssembleReq) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SignalMessageAssembleReq.Merge(dst, src)
|
|
}
|
|
func (m *SignalMessageAssembleReq) XXX_Size() int {
|
|
return xxx_messageInfo_SignalMessageAssembleReq.Size(m)
|
|
}
|
|
func (m *SignalMessageAssembleReq) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SignalMessageAssembleReq.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SignalMessageAssembleReq proto.InternalMessageInfo
|
|
|
|
func (m *SignalMessageAssembleReq) GetSignalReq() *sdkws.SignalReq {
|
|
if m != nil {
|
|
return m.SignalReq
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SignalMessageAssembleReq) GetOperationID() string {
|
|
if m != nil {
|
|
return m.OperationID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SignalMessageAssembleResp struct {
|
|
IsPass bool `protobuf:"varint,1,opt,name=isPass" json:"isPass,omitempty"`
|
|
SignalResp *sdkws.SignalResp `protobuf:"bytes,2,opt,name=signalResp" json:"signalResp,omitempty"`
|
|
MsgData *sdkws.MsgData `protobuf:"bytes,3,opt,name=msgData" json:"msgData,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SignalMessageAssembleResp) Reset() { *m = SignalMessageAssembleResp{} }
|
|
func (m *SignalMessageAssembleResp) String() string { return proto.CompactTextString(m) }
|
|
func (*SignalMessageAssembleResp) ProtoMessage() {}
|
|
func (*SignalMessageAssembleResp) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_rtc_ffe277e59422062f, []int{1}
|
|
}
|
|
func (m *SignalMessageAssembleResp) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SignalMessageAssembleResp.Unmarshal(m, b)
|
|
}
|
|
func (m *SignalMessageAssembleResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SignalMessageAssembleResp.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *SignalMessageAssembleResp) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SignalMessageAssembleResp.Merge(dst, src)
|
|
}
|
|
func (m *SignalMessageAssembleResp) XXX_Size() int {
|
|
return xxx_messageInfo_SignalMessageAssembleResp.Size(m)
|
|
}
|
|
func (m *SignalMessageAssembleResp) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SignalMessageAssembleResp.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SignalMessageAssembleResp proto.InternalMessageInfo
|
|
|
|
func (m *SignalMessageAssembleResp) GetIsPass() bool {
|
|
if m != nil {
|
|
return m.IsPass
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *SignalMessageAssembleResp) GetSignalResp() *sdkws.SignalResp {
|
|
if m != nil {
|
|
return m.SignalResp
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *SignalMessageAssembleResp) GetMsgData() *sdkws.MsgData {
|
|
if m != nil {
|
|
return m.MsgData
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SignalGetRoomsReq struct {
|
|
RoomID string `protobuf:"bytes,1,opt,name=roomID" json:"roomID,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SignalGetRoomsReq) Reset() { *m = SignalGetRoomsReq{} }
|
|
func (m *SignalGetRoomsReq) String() string { return proto.CompactTextString(m) }
|
|
func (*SignalGetRoomsReq) ProtoMessage() {}
|
|
func (*SignalGetRoomsReq) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_rtc_ffe277e59422062f, []int{2}
|
|
}
|
|
func (m *SignalGetRoomsReq) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SignalGetRoomsReq.Unmarshal(m, b)
|
|
}
|
|
func (m *SignalGetRoomsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SignalGetRoomsReq.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *SignalGetRoomsReq) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SignalGetRoomsReq.Merge(dst, src)
|
|
}
|
|
func (m *SignalGetRoomsReq) XXX_Size() int {
|
|
return xxx_messageInfo_SignalGetRoomsReq.Size(m)
|
|
}
|
|
func (m *SignalGetRoomsReq) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SignalGetRoomsReq.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SignalGetRoomsReq proto.InternalMessageInfo
|
|
|
|
func (m *SignalGetRoomsReq) GetRoomID() string {
|
|
if m != nil {
|
|
return m.RoomID
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type SignalGetRoomsResp struct {
|
|
Rooms []*sdkws.SignalGetRoomByGroupIDReply `protobuf:"bytes,1,rep,name=rooms" json:"rooms,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *SignalGetRoomsResp) Reset() { *m = SignalGetRoomsResp{} }
|
|
func (m *SignalGetRoomsResp) String() string { return proto.CompactTextString(m) }
|
|
func (*SignalGetRoomsResp) ProtoMessage() {}
|
|
func (*SignalGetRoomsResp) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_rtc_ffe277e59422062f, []int{3}
|
|
}
|
|
func (m *SignalGetRoomsResp) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_SignalGetRoomsResp.Unmarshal(m, b)
|
|
}
|
|
func (m *SignalGetRoomsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_SignalGetRoomsResp.Marshal(b, m, deterministic)
|
|
}
|
|
func (dst *SignalGetRoomsResp) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_SignalGetRoomsResp.Merge(dst, src)
|
|
}
|
|
func (m *SignalGetRoomsResp) XXX_Size() int {
|
|
return xxx_messageInfo_SignalGetRoomsResp.Size(m)
|
|
}
|
|
func (m *SignalGetRoomsResp) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_SignalGetRoomsResp.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_SignalGetRoomsResp proto.InternalMessageInfo
|
|
|
|
func (m *SignalGetRoomsResp) GetRooms() []*sdkws.SignalGetRoomByGroupIDReply {
|
|
if m != nil {
|
|
return m.Rooms
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*SignalMessageAssembleReq)(nil), "proto.SignalMessageAssembleReq")
|
|
proto.RegisterType((*SignalMessageAssembleResp)(nil), "proto.SignalMessageAssembleResp")
|
|
proto.RegisterType((*SignalGetRoomsReq)(nil), "proto.SignalGetRoomsReq")
|
|
proto.RegisterType((*SignalGetRoomsResp)(nil), "proto.SignalGetRoomsResp")
|
|
}
|
|
|
|
// 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 RtcService service
|
|
|
|
type RtcServiceClient interface {
|
|
SignalMessageAssemble(ctx context.Context, in *SignalMessageAssembleReq, opts ...grpc.CallOption) (*SignalMessageAssembleResp, error)
|
|
SignalGetRooms(ctx context.Context, in *SignalGetRoomsReq, opts ...grpc.CallOption) (*SignalGetRoomsResp, error)
|
|
}
|
|
|
|
type rtcServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewRtcServiceClient(cc *grpc.ClientConn) RtcServiceClient {
|
|
return &rtcServiceClient{cc}
|
|
}
|
|
|
|
func (c *rtcServiceClient) SignalMessageAssemble(ctx context.Context, in *SignalMessageAssembleReq, opts ...grpc.CallOption) (*SignalMessageAssembleResp, error) {
|
|
out := new(SignalMessageAssembleResp)
|
|
err := grpc.Invoke(ctx, "/proto.RtcService/SignalMessageAssemble", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *rtcServiceClient) SignalGetRooms(ctx context.Context, in *SignalGetRoomsReq, opts ...grpc.CallOption) (*SignalGetRoomsResp, error) {
|
|
out := new(SignalGetRoomsResp)
|
|
err := grpc.Invoke(ctx, "/proto.RtcService/SignalGetRooms", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// Server API for RtcService service
|
|
|
|
type RtcServiceServer interface {
|
|
SignalMessageAssemble(context.Context, *SignalMessageAssembleReq) (*SignalMessageAssembleResp, error)
|
|
SignalGetRooms(context.Context, *SignalGetRoomsReq) (*SignalGetRoomsResp, error)
|
|
}
|
|
|
|
func RegisterRtcServiceServer(s *grpc.Server, srv RtcServiceServer) {
|
|
s.RegisterService(&_RtcService_serviceDesc, srv)
|
|
}
|
|
|
|
func _RtcService_SignalMessageAssemble_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SignalMessageAssembleReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RtcServiceServer).SignalMessageAssemble(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.RtcService/SignalMessageAssemble",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RtcServiceServer).SignalMessageAssemble(ctx, req.(*SignalMessageAssembleReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RtcService_SignalGetRooms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(SignalGetRoomsReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RtcServiceServer).SignalGetRooms(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.RtcService/SignalGetRooms",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RtcServiceServer).SignalGetRooms(ctx, req.(*SignalGetRoomsReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _RtcService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "proto.RtcService",
|
|
HandlerType: (*RtcServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "SignalMessageAssemble",
|
|
Handler: _RtcService_SignalMessageAssemble_Handler,
|
|
},
|
|
{
|
|
MethodName: "SignalGetRooms",
|
|
Handler: _RtcService_SignalGetRooms_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "rtc/rtc.proto",
|
|
}
|
|
|
|
func init() { proto.RegisterFile("rtc/rtc.proto", fileDescriptor_rtc_ffe277e59422062f) }
|
|
|
|
var fileDescriptor_rtc_ffe277e59422062f = []byte{
|
|
// 357 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0x51, 0x6b, 0xa3, 0x40,
|
|
0x10, 0xc7, 0xf1, 0x42, 0x72, 0x97, 0x91, 0x0b, 0x97, 0x85, 0x0b, 0xc6, 0x97, 0x13, 0x5f, 0x4e,
|
|
0x38, 0xa2, 0x9c, 0x7d, 0x29, 0xf4, 0xa9, 0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