github.com/whoyao/protocol@v0.0.0-20230519045905-2d8ace718ca5/rpc/io.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/io.proto 6 7 package rpc 8 9 import ( 10 livekit "github.com/whoyao/protocol/livekit" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 emptypb "google.golang.org/protobuf/types/known/emptypb" 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 // Query an ingress info from an ingress ID or stream key 26 type GetIngressInfoRequest struct { 27 state protoimpl.MessageState 28 sizeCache protoimpl.SizeCache 29 unknownFields protoimpl.UnknownFields 30 31 IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` 32 StreamKey string `protobuf:"bytes,2,opt,name=stream_key,json=streamKey,proto3" json:"stream_key,omitempty"` 33 } 34 35 func (x *GetIngressInfoRequest) Reset() { 36 *x = GetIngressInfoRequest{} 37 if protoimpl.UnsafeEnabled { 38 mi := &file_rpc_io_proto_msgTypes[0] 39 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 40 ms.StoreMessageInfo(mi) 41 } 42 } 43 44 func (x *GetIngressInfoRequest) String() string { 45 return protoimpl.X.MessageStringOf(x) 46 } 47 48 func (*GetIngressInfoRequest) ProtoMessage() {} 49 50 func (x *GetIngressInfoRequest) ProtoReflect() protoreflect.Message { 51 mi := &file_rpc_io_proto_msgTypes[0] 52 if protoimpl.UnsafeEnabled && x != nil { 53 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 54 if ms.LoadMessageInfo() == nil { 55 ms.StoreMessageInfo(mi) 56 } 57 return ms 58 } 59 return mi.MessageOf(x) 60 } 61 62 // Deprecated: Use GetIngressInfoRequest.ProtoReflect.Descriptor instead. 63 func (*GetIngressInfoRequest) Descriptor() ([]byte, []int) { 64 return file_rpc_io_proto_rawDescGZIP(), []int{0} 65 } 66 67 func (x *GetIngressInfoRequest) GetIngressId() string { 68 if x != nil { 69 return x.IngressId 70 } 71 return "" 72 } 73 74 func (x *GetIngressInfoRequest) GetStreamKey() string { 75 if x != nil { 76 return x.StreamKey 77 } 78 return "" 79 } 80 81 type GetIngressInfoResponse struct { 82 state protoimpl.MessageState 83 sizeCache protoimpl.SizeCache 84 unknownFields protoimpl.UnknownFields 85 86 Info *livekit.IngressInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` 87 Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` 88 WsUrl string `protobuf:"bytes,3,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"` 89 } 90 91 func (x *GetIngressInfoResponse) Reset() { 92 *x = GetIngressInfoResponse{} 93 if protoimpl.UnsafeEnabled { 94 mi := &file_rpc_io_proto_msgTypes[1] 95 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 96 ms.StoreMessageInfo(mi) 97 } 98 } 99 100 func (x *GetIngressInfoResponse) String() string { 101 return protoimpl.X.MessageStringOf(x) 102 } 103 104 func (*GetIngressInfoResponse) ProtoMessage() {} 105 106 func (x *GetIngressInfoResponse) ProtoReflect() protoreflect.Message { 107 mi := &file_rpc_io_proto_msgTypes[1] 108 if protoimpl.UnsafeEnabled && x != nil { 109 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 110 if ms.LoadMessageInfo() == nil { 111 ms.StoreMessageInfo(mi) 112 } 113 return ms 114 } 115 return mi.MessageOf(x) 116 } 117 118 // Deprecated: Use GetIngressInfoResponse.ProtoReflect.Descriptor instead. 119 func (*GetIngressInfoResponse) Descriptor() ([]byte, []int) { 120 return file_rpc_io_proto_rawDescGZIP(), []int{1} 121 } 122 123 func (x *GetIngressInfoResponse) GetInfo() *livekit.IngressInfo { 124 if x != nil { 125 return x.Info 126 } 127 return nil 128 } 129 130 func (x *GetIngressInfoResponse) GetToken() string { 131 if x != nil { 132 return x.Token 133 } 134 return "" 135 } 136 137 func (x *GetIngressInfoResponse) GetWsUrl() string { 138 if x != nil { 139 return x.WsUrl 140 } 141 return "" 142 } 143 144 // Request to store an update to the ingress state ingress -> service 145 type UpdateIngressStateRequest struct { 146 state protoimpl.MessageState 147 sizeCache protoimpl.SizeCache 148 unknownFields protoimpl.UnknownFields 149 150 IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` 151 State *livekit.IngressState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` 152 } 153 154 func (x *UpdateIngressStateRequest) Reset() { 155 *x = UpdateIngressStateRequest{} 156 if protoimpl.UnsafeEnabled { 157 mi := &file_rpc_io_proto_msgTypes[2] 158 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 159 ms.StoreMessageInfo(mi) 160 } 161 } 162 163 func (x *UpdateIngressStateRequest) String() string { 164 return protoimpl.X.MessageStringOf(x) 165 } 166 167 func (*UpdateIngressStateRequest) ProtoMessage() {} 168 169 func (x *UpdateIngressStateRequest) ProtoReflect() protoreflect.Message { 170 mi := &file_rpc_io_proto_msgTypes[2] 171 if protoimpl.UnsafeEnabled && x != nil { 172 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 173 if ms.LoadMessageInfo() == nil { 174 ms.StoreMessageInfo(mi) 175 } 176 return ms 177 } 178 return mi.MessageOf(x) 179 } 180 181 // Deprecated: Use UpdateIngressStateRequest.ProtoReflect.Descriptor instead. 182 func (*UpdateIngressStateRequest) Descriptor() ([]byte, []int) { 183 return file_rpc_io_proto_rawDescGZIP(), []int{2} 184 } 185 186 func (x *UpdateIngressStateRequest) GetIngressId() string { 187 if x != nil { 188 return x.IngressId 189 } 190 return "" 191 } 192 193 func (x *UpdateIngressStateRequest) GetState() *livekit.IngressState { 194 if x != nil { 195 return x.State 196 } 197 return nil 198 } 199 200 var File_rpc_io_proto protoreflect.FileDescriptor 201 202 var file_rpc_io_proto_rawDesc = []byte{ 203 0x0a, 0x0c, 0x72, 0x70, 0x63, 0x2f, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 204 0x72, 0x70, 0x63, 0x1a, 0x14, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x5f, 0x65, 0x67, 0x72, 205 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x6c, 0x69, 0x76, 0x65, 0x6b, 206 0x69, 0x74, 0x5f, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 207 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 208 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x55, 0x0a, 209 0x15, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 210 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 211 0x73, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x67, 0x72, 212 0x65, 0x73, 0x73, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 213 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x72, 0x65, 0x61, 214 0x6d, 0x4b, 0x65, 0x79, 0x22, 0x6f, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x67, 0x72, 0x65, 215 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 216 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 217 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 218 0x66, 0x6f, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 219 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x15, 220 0x0a, 0x06, 0x77, 0x73, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 221 0x77, 0x73, 0x55, 0x72, 0x6c, 0x22, 0x67, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 222 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 223 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x64, 224 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 225 0x64, 0x12, 0x2b, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 226 0x32, 0x15, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2e, 0x49, 0x6e, 0x67, 0x72, 0x65, 227 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x32, 0xe2, 228 0x01, 0x0a, 0x06, 0x49, 0x4f, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3f, 0x0a, 0x10, 0x55, 0x70, 0x64, 229 0x61, 0x74, 0x65, 0x45, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x13, 0x2e, 230 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2e, 0x45, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 231 0x66, 0x6f, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 232 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x49, 0x0a, 0x0e, 0x47, 0x65, 233 0x74, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x2e, 0x72, 234 0x70, 0x63, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 235 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x72, 0x70, 0x63, 0x2e, 0x47, 236 0x65, 0x74, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 237 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 238 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x2e, 0x72, 0x70, 239 0x63, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x53, 240 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 241 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 242 0x70, 0x74, 0x79, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 243 0x6d, 0x2f, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2f, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 244 0x74, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2f, 0x72, 0x70, 245 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 246 } 247 248 var ( 249 file_rpc_io_proto_rawDescOnce sync.Once 250 file_rpc_io_proto_rawDescData = file_rpc_io_proto_rawDesc 251 ) 252 253 func file_rpc_io_proto_rawDescGZIP() []byte { 254 file_rpc_io_proto_rawDescOnce.Do(func() { 255 file_rpc_io_proto_rawDescData = protoimpl.X.CompressGZIP(file_rpc_io_proto_rawDescData) 256 }) 257 return file_rpc_io_proto_rawDescData 258 } 259 260 var file_rpc_io_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 261 var file_rpc_io_proto_goTypes = []interface{}{ 262 (*GetIngressInfoRequest)(nil), // 0: rpc.GetIngressInfoRequest 263 (*GetIngressInfoResponse)(nil), // 1: rpc.GetIngressInfoResponse 264 (*UpdateIngressStateRequest)(nil), // 2: rpc.UpdateIngressStateRequest 265 (*livekit.IngressInfo)(nil), // 3: livekit.IngressInfo 266 (*livekit.IngressState)(nil), // 4: livekit.IngressState 267 (*livekit.EgressInfo)(nil), // 5: livekit.EgressInfo 268 (*emptypb.Empty)(nil), // 6: google.protobuf.Empty 269 } 270 var file_rpc_io_proto_depIdxs = []int32{ 271 3, // 0: rpc.GetIngressInfoResponse.info:type_name -> livekit.IngressInfo 272 4, // 1: rpc.UpdateIngressStateRequest.state:type_name -> livekit.IngressState 273 5, // 2: rpc.IOInfo.UpdateEgressInfo:input_type -> livekit.EgressInfo 274 0, // 3: rpc.IOInfo.GetIngressInfo:input_type -> rpc.GetIngressInfoRequest 275 2, // 4: rpc.IOInfo.UpdateIngressState:input_type -> rpc.UpdateIngressStateRequest 276 6, // 5: rpc.IOInfo.UpdateEgressInfo:output_type -> google.protobuf.Empty 277 1, // 6: rpc.IOInfo.GetIngressInfo:output_type -> rpc.GetIngressInfoResponse 278 6, // 7: rpc.IOInfo.UpdateIngressState:output_type -> google.protobuf.Empty 279 5, // [5:8] is the sub-list for method output_type 280 2, // [2:5] is the sub-list for method input_type 281 2, // [2:2] is the sub-list for extension type_name 282 2, // [2:2] is the sub-list for extension extendee 283 0, // [0:2] is the sub-list for field type_name 284 } 285 286 func init() { file_rpc_io_proto_init() } 287 func file_rpc_io_proto_init() { 288 if File_rpc_io_proto != nil { 289 return 290 } 291 if !protoimpl.UnsafeEnabled { 292 file_rpc_io_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 293 switch v := v.(*GetIngressInfoRequest); i { 294 case 0: 295 return &v.state 296 case 1: 297 return &v.sizeCache 298 case 2: 299 return &v.unknownFields 300 default: 301 return nil 302 } 303 } 304 file_rpc_io_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 305 switch v := v.(*GetIngressInfoResponse); i { 306 case 0: 307 return &v.state 308 case 1: 309 return &v.sizeCache 310 case 2: 311 return &v.unknownFields 312 default: 313 return nil 314 } 315 } 316 file_rpc_io_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 317 switch v := v.(*UpdateIngressStateRequest); i { 318 case 0: 319 return &v.state 320 case 1: 321 return &v.sizeCache 322 case 2: 323 return &v.unknownFields 324 default: 325 return nil 326 } 327 } 328 } 329 type x struct{} 330 out := protoimpl.TypeBuilder{ 331 File: protoimpl.DescBuilder{ 332 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 333 RawDescriptor: file_rpc_io_proto_rawDesc, 334 NumEnums: 0, 335 NumMessages: 3, 336 NumExtensions: 0, 337 NumServices: 1, 338 }, 339 GoTypes: file_rpc_io_proto_goTypes, 340 DependencyIndexes: file_rpc_io_proto_depIdxs, 341 MessageInfos: file_rpc_io_proto_msgTypes, 342 }.Build() 343 File_rpc_io_proto = out.File 344 file_rpc_io_proto_rawDesc = nil 345 file_rpc_io_proto_goTypes = nil 346 file_rpc_io_proto_depIdxs = nil 347 }