github.com/whoyao/protocol@v0.0.0-20230519045905-2d8ace718ca5/rpc/signal.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.1 4 // protoc v3.21.12 5 // source: rpc/signal.proto 6 7 package rpc 8 9 import ( 10 livekit "github.com/whoyao/protocol/livekit" 11 _ "github.com/livekit/psrpc/protoc-gen-psrpc/options" 12 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 reflect "reflect" 15 sync "sync" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 type RelaySignalRequest struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 StartSession *livekit.StartSession `protobuf:"bytes,1,opt,name=start_session,json=startSession,proto3" json:"start_session,omitempty"` 31 Requests []*livekit.SignalRequest `protobuf:"bytes,3,rep,name=requests,proto3" json:"requests,omitempty"` 32 Seq uint64 `protobuf:"varint,4,opt,name=seq,proto3" json:"seq,omitempty"` 33 Close bool `protobuf:"varint,5,opt,name=close,proto3" json:"close,omitempty"` 34 } 35 36 func (x *RelaySignalRequest) Reset() { 37 *x = RelaySignalRequest{} 38 if protoimpl.UnsafeEnabled { 39 mi := &file_rpc_signal_proto_msgTypes[0] 40 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 41 ms.StoreMessageInfo(mi) 42 } 43 } 44 45 func (x *RelaySignalRequest) String() string { 46 return protoimpl.X.MessageStringOf(x) 47 } 48 49 func (*RelaySignalRequest) ProtoMessage() {} 50 51 func (x *RelaySignalRequest) ProtoReflect() protoreflect.Message { 52 mi := &file_rpc_signal_proto_msgTypes[0] 53 if protoimpl.UnsafeEnabled && x != nil { 54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 55 if ms.LoadMessageInfo() == nil { 56 ms.StoreMessageInfo(mi) 57 } 58 return ms 59 } 60 return mi.MessageOf(x) 61 } 62 63 // Deprecated: Use RelaySignalRequest.ProtoReflect.Descriptor instead. 64 func (*RelaySignalRequest) Descriptor() ([]byte, []int) { 65 return file_rpc_signal_proto_rawDescGZIP(), []int{0} 66 } 67 68 func (x *RelaySignalRequest) GetStartSession() *livekit.StartSession { 69 if x != nil { 70 return x.StartSession 71 } 72 return nil 73 } 74 75 func (x *RelaySignalRequest) GetRequests() []*livekit.SignalRequest { 76 if x != nil { 77 return x.Requests 78 } 79 return nil 80 } 81 82 func (x *RelaySignalRequest) GetSeq() uint64 { 83 if x != nil { 84 return x.Seq 85 } 86 return 0 87 } 88 89 func (x *RelaySignalRequest) GetClose() bool { 90 if x != nil { 91 return x.Close 92 } 93 return false 94 } 95 96 type RelaySignalResponse struct { 97 state protoimpl.MessageState 98 sizeCache protoimpl.SizeCache 99 unknownFields protoimpl.UnknownFields 100 101 Responses []*livekit.SignalResponse `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"` 102 Seq uint64 `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"` 103 Close bool `protobuf:"varint,4,opt,name=close,proto3" json:"close,omitempty"` 104 } 105 106 func (x *RelaySignalResponse) Reset() { 107 *x = RelaySignalResponse{} 108 if protoimpl.UnsafeEnabled { 109 mi := &file_rpc_signal_proto_msgTypes[1] 110 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 111 ms.StoreMessageInfo(mi) 112 } 113 } 114 115 func (x *RelaySignalResponse) String() string { 116 return protoimpl.X.MessageStringOf(x) 117 } 118 119 func (*RelaySignalResponse) ProtoMessage() {} 120 121 func (x *RelaySignalResponse) ProtoReflect() protoreflect.Message { 122 mi := &file_rpc_signal_proto_msgTypes[1] 123 if protoimpl.UnsafeEnabled && x != nil { 124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 125 if ms.LoadMessageInfo() == nil { 126 ms.StoreMessageInfo(mi) 127 } 128 return ms 129 } 130 return mi.MessageOf(x) 131 } 132 133 // Deprecated: Use RelaySignalResponse.ProtoReflect.Descriptor instead. 134 func (*RelaySignalResponse) Descriptor() ([]byte, []int) { 135 return file_rpc_signal_proto_rawDescGZIP(), []int{1} 136 } 137 138 func (x *RelaySignalResponse) GetResponses() []*livekit.SignalResponse { 139 if x != nil { 140 return x.Responses 141 } 142 return nil 143 } 144 145 func (x *RelaySignalResponse) GetSeq() uint64 { 146 if x != nil { 147 return x.Seq 148 } 149 return 0 150 } 151 152 func (x *RelaySignalResponse) GetClose() bool { 153 if x != nil { 154 return x.Close 155 } 156 return false 157 } 158 159 var File_rpc_signal_proto protoreflect.FileDescriptor 160 161 var file_rpc_signal_proto_rawDesc = []byte{ 162 0x0a, 0x10, 0x72, 0x70, 0x63, 0x2f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 163 0x74, 0x6f, 0x12, 0x03, 0x72, 0x70, 0x63, 0x1a, 0x0d, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 164 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x5f, 165 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x11, 166 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x5f, 0x72, 0x74, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 167 0x6f, 0x22, 0xac, 0x01, 0x0a, 0x12, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 168 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3a, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x72, 169 0x74, 0x5f, 0x73, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 170 0x15, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x53, 171 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x72, 0x74, 0x53, 0x65, 0x73, 172 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 173 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 174 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x08, 175 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 176 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 177 0x6f, 0x73, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 178 0x22, 0x74, 0x0a, 0x13, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 179 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 180 0x6e, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x6c, 0x69, 0x76, 181 0x65, 0x6b, 0x69, 0x74, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 182 0x6e, 0x73, 0x65, 0x52, 0x09, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x73, 0x12, 0x10, 183 0x0a, 0x03, 0x73, 0x65, 0x71, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x73, 0x65, 0x71, 184 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 185 0x05, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x32, 0x63, 0x0a, 0x06, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 186 0x12, 0x59, 0x0a, 0x0b, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x12, 187 0x17, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x6c, 0x61, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 188 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x52, 189 0x65, 0x6c, 0x61, 0x79, 0x53, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 190 0x73, 0x65, 0x22, 0x17, 0xb2, 0x89, 0x01, 0x13, 0x18, 0x01, 0x22, 0x0d, 0x12, 0x07, 0x6e, 0x6f, 191 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x30, 0x01, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 192 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 193 0x74, 0x2f, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 194 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 195 0x33, 196 } 197 198 var ( 199 file_rpc_signal_proto_rawDescOnce sync.Once 200 file_rpc_signal_proto_rawDescData = file_rpc_signal_proto_rawDesc 201 ) 202 203 func file_rpc_signal_proto_rawDescGZIP() []byte { 204 file_rpc_signal_proto_rawDescOnce.Do(func() { 205 file_rpc_signal_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpc_signal_proto_rawDescData) 206 }) 207 return file_rpc_signal_proto_rawDescData 208 } 209 210 var file_rpc_signal_proto_msgTypes = make([]protoimpl.MessageInfo, 2) 211 var file_rpc_signal_proto_goTypes = []interface{}{ 212 (*RelaySignalRequest)(nil), // 0: rpc.RelaySignalRequest 213 (*RelaySignalResponse)(nil), // 1: rpc.RelaySignalResponse 214 (*livekit.StartSession)(nil), // 2: livekit.StartSession 215 (*livekit.SignalRequest)(nil), // 3: livekit.SignalRequest 216 (*livekit.SignalResponse)(nil), // 4: livekit.SignalResponse 217 } 218 var file_rpc_signal_proto_depIdxs = []int32{ 219 2, // 0: rpc.RelaySignalRequest.start_session:type_name -> livekit.StartSession 220 3, // 1: rpc.RelaySignalRequest.requests:type_name -> livekit.SignalRequest 221 4, // 2: rpc.RelaySignalResponse.responses:type_name -> livekit.SignalResponse 222 0, // 3: rpc.Signal.RelaySignal:input_type -> rpc.RelaySignalRequest 223 1, // 4: rpc.Signal.RelaySignal:output_type -> rpc.RelaySignalResponse 224 4, // [4:5] is the sub-list for method output_type 225 3, // [3:4] is the sub-list for method input_type 226 3, // [3:3] is the sub-list for extension type_name 227 3, // [3:3] is the sub-list for extension extendee 228 0, // [0:3] is the sub-list for field type_name 229 } 230 231 func init() { file_rpc_signal_proto_init() } 232 func file_rpc_signal_proto_init() { 233 if File_rpc_signal_proto != nil { 234 return 235 } 236 if !protoimpl.UnsafeEnabled { 237 file_rpc_signal_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 238 switch v := v.(*RelaySignalRequest); i { 239 case 0: 240 return &v.state 241 case 1: 242 return &v.sizeCache 243 case 2: 244 return &v.unknownFields 245 default: 246 return nil 247 } 248 } 249 file_rpc_signal_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 250 switch v := v.(*RelaySignalResponse); i { 251 case 0: 252 return &v.state 253 case 1: 254 return &v.sizeCache 255 case 2: 256 return &v.unknownFields 257 default: 258 return nil 259 } 260 } 261 } 262 type x struct{} 263 out := protoimpl.TypeBuilder{ 264 File: protoimpl.DescBuilder{ 265 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 266 RawDescriptor: file_rpc_signal_proto_rawDesc, 267 NumEnums: 0, 268 NumMessages: 2, 269 NumExtensions: 0, 270 NumServices: 1, 271 }, 272 GoTypes: file_rpc_signal_proto_goTypes, 273 DependencyIndexes: file_rpc_signal_proto_depIdxs, 274 MessageInfos: file_rpc_signal_proto_msgTypes, 275 }.Build() 276 File_rpc_signal_proto = out.File 277 file_rpc_signal_proto_rawDesc = nil 278 file_rpc_signal_proto_goTypes = nil 279 file_rpc_signal_proto_depIdxs = nil 280 }