| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // versions:
- // protoc-gen-go v1.26.0-devel
- // protoc v3.15.8
- // source: websocket.proto
- package websocket
- import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- emptypb "google.golang.org/protobuf/types/known/emptypb"
- reflect "reflect"
- sync "sync"
- )
- const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
- )
- type SendMsgRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
- Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method"`
- Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data"`
- Code int32 `protobuf:"varint,4,opt,name=code,proto3" json:"code"`
- Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message"`
- WebsocketTag string `protobuf:"bytes,6,opt,name=websocketTag,proto3" json:"websocketTag"`
- }
- func (x *SendMsgRequest) Reset() {
- *x = SendMsgRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_websocket_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *SendMsgRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SendMsgRequest) ProtoMessage() {}
- func (x *SendMsgRequest) ProtoReflect() protoreflect.Message {
- mi := &file_websocket_proto_msgTypes[0]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use SendMsgRequest.ProtoReflect.Descriptor instead.
- func (*SendMsgRequest) Descriptor() ([]byte, []int) {
- return file_websocket_proto_rawDescGZIP(), []int{0}
- }
- func (x *SendMsgRequest) GetId() string {
- if x != nil {
- return x.Id
- }
- return ""
- }
- func (x *SendMsgRequest) GetMethod() string {
- if x != nil {
- return x.Method
- }
- return ""
- }
- func (x *SendMsgRequest) GetData() []byte {
- if x != nil {
- return x.Data
- }
- return nil
- }
- func (x *SendMsgRequest) GetCode() int32 {
- if x != nil {
- return x.Code
- }
- return 0
- }
- func (x *SendMsgRequest) GetMessage() string {
- if x != nil {
- return x.Message
- }
- return ""
- }
- func (x *SendMsgRequest) GetWebsocketTag() string {
- if x != nil {
- return x.WebsocketTag
- }
- return ""
- }
- type SendMsgReply struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *SendMsgReply) Reset() {
- *x = SendMsgReply{}
- if protoimpl.UnsafeEnabled {
- mi := &file_websocket_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *SendMsgReply) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*SendMsgReply) ProtoMessage() {}
- func (x *SendMsgReply) ProtoReflect() protoreflect.Message {
- mi := &file_websocket_proto_msgTypes[1]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use SendMsgReply.ProtoReflect.Descriptor instead.
- func (*SendMsgReply) Descriptor() ([]byte, []int) {
- return file_websocket_proto_rawDescGZIP(), []int{1}
- }
- type FindOnlinePersonReply struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *FindOnlinePersonReply) Reset() {
- *x = FindOnlinePersonReply{}
- if protoimpl.UnsafeEnabled {
- mi := &file_websocket_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *FindOnlinePersonReply) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*FindOnlinePersonReply) ProtoMessage() {}
- func (x *FindOnlinePersonReply) ProtoReflect() protoreflect.Message {
- mi := &file_websocket_proto_msgTypes[2]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use FindOnlinePersonReply.ProtoReflect.Descriptor instead.
- func (*FindOnlinePersonReply) Descriptor() ([]byte, []int) {
- return file_websocket_proto_rawDescGZIP(), []int{2}
- }
- type TransmitMessageRequest struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *TransmitMessageRequest) Reset() {
- *x = TransmitMessageRequest{}
- if protoimpl.UnsafeEnabled {
- mi := &file_websocket_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *TransmitMessageRequest) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TransmitMessageRequest) ProtoMessage() {}
- func (x *TransmitMessageRequest) ProtoReflect() protoreflect.Message {
- mi := &file_websocket_proto_msgTypes[3]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TransmitMessageRequest.ProtoReflect.Descriptor instead.
- func (*TransmitMessageRequest) Descriptor() ([]byte, []int) {
- return file_websocket_proto_rawDescGZIP(), []int{3}
- }
- type TransmitMessageReply struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
- }
- func (x *TransmitMessageReply) Reset() {
- *x = TransmitMessageReply{}
- if protoimpl.UnsafeEnabled {
- mi := &file_websocket_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
- }
- func (x *TransmitMessageReply) String() string {
- return protoimpl.X.MessageStringOf(x)
- }
- func (*TransmitMessageReply) ProtoMessage() {}
- func (x *TransmitMessageReply) ProtoReflect() protoreflect.Message {
- mi := &file_websocket_proto_msgTypes[4]
- if protoimpl.UnsafeEnabled && x != nil {
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- if ms.LoadMessageInfo() == nil {
- ms.StoreMessageInfo(mi)
- }
- return ms
- }
- return mi.MessageOf(x)
- }
- // Deprecated: Use TransmitMessageReply.ProtoReflect.Descriptor instead.
- func (*TransmitMessageReply) Descriptor() ([]byte, []int) {
- return file_websocket_proto_rawDescGZIP(), []int{4}
- }
- var File_websocket_proto protoreflect.FileDescriptor
- var file_websocket_proto_rawDesc = []byte{
- 0x0a, 0x0f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x12, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
- 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
- 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9e, 0x01,
- 0x0a, 0x0e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
- 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
- 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
- 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04,
- 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65,
- 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
- 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x65,
- 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
- 0x52, 0x0c, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x67, 0x22, 0x0e,
- 0x0a, 0x0c, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x17,
- 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73,
- 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x18, 0x0a, 0x16, 0x54, 0x72, 0x61, 0x6e, 0x73,
- 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x22, 0x16, 0x0a, 0x14, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73,
- 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x32, 0x85, 0x02, 0x0a, 0x09, 0x57, 0x65,
- 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x5d, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73,
- 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x25, 0x2e, 0x61, 0x70, 0x69,
- 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73,
- 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
- 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65,
- 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x6d, 0x69, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
- 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x50, 0x0a, 0x10, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e,
- 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f,
- 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70,
- 0x74, 0x79, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b,
- 0x65, 0x74, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72,
- 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x47, 0x0a, 0x07, 0x53, 0x65, 0x6e, 0x64,
- 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63,
- 0x6b, 0x65, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
- 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b,
- 0x65, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22,
- 0x00, 0x42, 0x4c, 0x0a, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b,
- 0x65, 0x74, 0x50, 0x01, 0x5a, 0x39, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e,
- 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70,
- 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x77, 0x65, 0x62, 0x73,
- 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x3b, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x62,
- 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
- }
- var (
- file_websocket_proto_rawDescOnce sync.Once
- file_websocket_proto_rawDescData = file_websocket_proto_rawDesc
- )
- func file_websocket_proto_rawDescGZIP() []byte {
- file_websocket_proto_rawDescOnce.Do(func() {
- file_websocket_proto_rawDescData = protoimpl.X.CompressGZIP(file_websocket_proto_rawDescData)
- })
- return file_websocket_proto_rawDescData
- }
- var file_websocket_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
- var file_websocket_proto_goTypes = []interface{}{
- (*SendMsgRequest)(nil), // 0: api.websocket.SendMsgRequest
- (*SendMsgReply)(nil), // 1: api.websocket.SendMsgReply
- (*FindOnlinePersonReply)(nil), // 2: api.websocket.FindOnlinePersonReply
- (*TransmitMessageRequest)(nil), // 3: api.websocket.TransmitMessageRequest
- (*TransmitMessageReply)(nil), // 4: api.websocket.TransmitMessageReply
- (*emptypb.Empty)(nil), // 5: google.protobuf.Empty
- }
- var file_websocket_proto_depIdxs = []int32{
- 3, // 0: api.websocket.Websocket.TransmitMessage:input_type -> api.websocket.TransmitMessageRequest
- 5, // 1: api.websocket.Websocket.FindOnlinePerson:input_type -> google.protobuf.Empty
- 0, // 2: api.websocket.Websocket.SendMsg:input_type -> api.websocket.SendMsgRequest
- 4, // 3: api.websocket.Websocket.TransmitMessage:output_type -> api.websocket.TransmitMessageReply
- 2, // 4: api.websocket.Websocket.FindOnlinePerson:output_type -> api.websocket.FindOnlinePersonReply
- 1, // 5: api.websocket.Websocket.SendMsg:output_type -> api.websocket.SendMsgReply
- 3, // [3:6] is the sub-list for method output_type
- 0, // [0:3] is the sub-list for method input_type
- 0, // [0:0] is the sub-list for extension type_name
- 0, // [0:0] is the sub-list for extension extendee
- 0, // [0:0] is the sub-list for field type_name
- }
- func init() { file_websocket_proto_init() }
- func file_websocket_proto_init() {
- if File_websocket_proto != nil {
- return
- }
- if !protoimpl.UnsafeEnabled {
- file_websocket_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SendMsgRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_websocket_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*SendMsgReply); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_websocket_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*FindOnlinePersonReply); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_websocket_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*TransmitMessageRequest); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_websocket_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*TransmitMessageReply); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_websocket_proto_rawDesc,
- NumEnums: 0,
- NumMessages: 5,
- NumExtensions: 0,
- NumServices: 1,
- },
- GoTypes: file_websocket_proto_goTypes,
- DependencyIndexes: file_websocket_proto_depIdxs,
- MessageInfos: file_websocket_proto_msgTypes,
- }.Build()
- File_websocket_proto = out.File
- file_websocket_proto_rawDesc = nil
- file_websocket_proto_goTypes = nil
- file_websocket_proto_depIdxs = nil
- }
|