github.com/livekit/protocol@v1.39.3/rpc/egress.pb.go (about)

     1  // Copyright 2023 LiveKit, Inc.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.36.6
    18  // 	protoc        v4.23.4
    19  // source: rpc/egress.proto
    20  
    21  package rpc
    22  
    23  import (
    24  	livekit "github.com/livekit/protocol/livekit"
    25  	_ "github.com/livekit/psrpc/protoc-gen-psrpc/options"
    26  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    27  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    28  	reflect "reflect"
    29  	sync "sync"
    30  	unsafe "unsafe"
    31  )
    32  
    33  const (
    34  	// Verify that this generated code is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    36  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    37  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    38  )
    39  
    40  type StartEgressRequest struct {
    41  	state protoimpl.MessageState `protogen:"open.v1"`
    42  	// request metadata
    43  	EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"`
    44  	// request
    45  	//
    46  	// Types that are valid to be assigned to Request:
    47  	//
    48  	//	*StartEgressRequest_RoomComposite
    49  	//	*StartEgressRequest_Web
    50  	//	*StartEgressRequest_Participant
    51  	//	*StartEgressRequest_TrackComposite
    52  	//	*StartEgressRequest_Track
    53  	Request isStartEgressRequest_Request `protobuf_oneof:"request"`
    54  	// connection info
    55  	RoomId string `protobuf:"bytes,3,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
    56  	Token  string `protobuf:"bytes,8,opt,name=token,proto3" json:"token,omitempty"`
    57  	WsUrl  string `protobuf:"bytes,9,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"`
    58  	// cloud only
    59  	CloudBackupEnabled bool    `protobuf:"varint,10,opt,name=cloud_backup_enabled,json=cloudBackupEnabled,proto3" json:"cloud_backup_enabled,omitempty"`
    60  	EstimatedCpu       float64 `protobuf:"fixed64,14,opt,name=estimated_cpu,json=estimatedCpu,proto3" json:"estimated_cpu,omitempty"`
    61  	unknownFields      protoimpl.UnknownFields
    62  	sizeCache          protoimpl.SizeCache
    63  }
    64  
    65  func (x *StartEgressRequest) Reset() {
    66  	*x = StartEgressRequest{}
    67  	mi := &file_rpc_egress_proto_msgTypes[0]
    68  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    69  	ms.StoreMessageInfo(mi)
    70  }
    71  
    72  func (x *StartEgressRequest) String() string {
    73  	return protoimpl.X.MessageStringOf(x)
    74  }
    75  
    76  func (*StartEgressRequest) ProtoMessage() {}
    77  
    78  func (x *StartEgressRequest) ProtoReflect() protoreflect.Message {
    79  	mi := &file_rpc_egress_proto_msgTypes[0]
    80  	if x != nil {
    81  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    82  		if ms.LoadMessageInfo() == nil {
    83  			ms.StoreMessageInfo(mi)
    84  		}
    85  		return ms
    86  	}
    87  	return mi.MessageOf(x)
    88  }
    89  
    90  // Deprecated: Use StartEgressRequest.ProtoReflect.Descriptor instead.
    91  func (*StartEgressRequest) Descriptor() ([]byte, []int) {
    92  	return file_rpc_egress_proto_rawDescGZIP(), []int{0}
    93  }
    94  
    95  func (x *StartEgressRequest) GetEgressId() string {
    96  	if x != nil {
    97  		return x.EgressId
    98  	}
    99  	return ""
   100  }
   101  
   102  func (x *StartEgressRequest) GetRequest() isStartEgressRequest_Request {
   103  	if x != nil {
   104  		return x.Request
   105  	}
   106  	return nil
   107  }
   108  
   109  func (x *StartEgressRequest) GetRoomComposite() *livekit.RoomCompositeEgressRequest {
   110  	if x != nil {
   111  		if x, ok := x.Request.(*StartEgressRequest_RoomComposite); ok {
   112  			return x.RoomComposite
   113  		}
   114  	}
   115  	return nil
   116  }
   117  
   118  func (x *StartEgressRequest) GetWeb() *livekit.WebEgressRequest {
   119  	if x != nil {
   120  		if x, ok := x.Request.(*StartEgressRequest_Web); ok {
   121  			return x.Web
   122  		}
   123  	}
   124  	return nil
   125  }
   126  
   127  func (x *StartEgressRequest) GetParticipant() *livekit.ParticipantEgressRequest {
   128  	if x != nil {
   129  		if x, ok := x.Request.(*StartEgressRequest_Participant); ok {
   130  			return x.Participant
   131  		}
   132  	}
   133  	return nil
   134  }
   135  
   136  func (x *StartEgressRequest) GetTrackComposite() *livekit.TrackCompositeEgressRequest {
   137  	if x != nil {
   138  		if x, ok := x.Request.(*StartEgressRequest_TrackComposite); ok {
   139  			return x.TrackComposite
   140  		}
   141  	}
   142  	return nil
   143  }
   144  
   145  func (x *StartEgressRequest) GetTrack() *livekit.TrackEgressRequest {
   146  	if x != nil {
   147  		if x, ok := x.Request.(*StartEgressRequest_Track); ok {
   148  			return x.Track
   149  		}
   150  	}
   151  	return nil
   152  }
   153  
   154  func (x *StartEgressRequest) GetRoomId() string {
   155  	if x != nil {
   156  		return x.RoomId
   157  	}
   158  	return ""
   159  }
   160  
   161  func (x *StartEgressRequest) GetToken() string {
   162  	if x != nil {
   163  		return x.Token
   164  	}
   165  	return ""
   166  }
   167  
   168  func (x *StartEgressRequest) GetWsUrl() string {
   169  	if x != nil {
   170  		return x.WsUrl
   171  	}
   172  	return ""
   173  }
   174  
   175  func (x *StartEgressRequest) GetCloudBackupEnabled() bool {
   176  	if x != nil {
   177  		return x.CloudBackupEnabled
   178  	}
   179  	return false
   180  }
   181  
   182  func (x *StartEgressRequest) GetEstimatedCpu() float64 {
   183  	if x != nil {
   184  		return x.EstimatedCpu
   185  	}
   186  	return 0
   187  }
   188  
   189  type isStartEgressRequest_Request interface {
   190  	isStartEgressRequest_Request()
   191  }
   192  
   193  type StartEgressRequest_RoomComposite struct {
   194  	RoomComposite *livekit.RoomCompositeEgressRequest `protobuf:"bytes,5,opt,name=room_composite,json=roomComposite,proto3,oneof"`
   195  }
   196  
   197  type StartEgressRequest_Web struct {
   198  	Web *livekit.WebEgressRequest `protobuf:"bytes,11,opt,name=web,proto3,oneof"`
   199  }
   200  
   201  type StartEgressRequest_Participant struct {
   202  	Participant *livekit.ParticipantEgressRequest `protobuf:"bytes,13,opt,name=participant,proto3,oneof"`
   203  }
   204  
   205  type StartEgressRequest_TrackComposite struct {
   206  	TrackComposite *livekit.TrackCompositeEgressRequest `protobuf:"bytes,6,opt,name=track_composite,json=trackComposite,proto3,oneof"`
   207  }
   208  
   209  type StartEgressRequest_Track struct {
   210  	Track *livekit.TrackEgressRequest `protobuf:"bytes,7,opt,name=track,proto3,oneof"`
   211  }
   212  
   213  func (*StartEgressRequest_RoomComposite) isStartEgressRequest_Request() {}
   214  
   215  func (*StartEgressRequest_Web) isStartEgressRequest_Request() {}
   216  
   217  func (*StartEgressRequest_Participant) isStartEgressRequest_Request() {}
   218  
   219  func (*StartEgressRequest_TrackComposite) isStartEgressRequest_Request() {}
   220  
   221  func (*StartEgressRequest_Track) isStartEgressRequest_Request() {}
   222  
   223  type ListActiveEgressRequest struct {
   224  	state         protoimpl.MessageState `protogen:"open.v1"`
   225  	unknownFields protoimpl.UnknownFields
   226  	sizeCache     protoimpl.SizeCache
   227  }
   228  
   229  func (x *ListActiveEgressRequest) Reset() {
   230  	*x = ListActiveEgressRequest{}
   231  	mi := &file_rpc_egress_proto_msgTypes[1]
   232  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   233  	ms.StoreMessageInfo(mi)
   234  }
   235  
   236  func (x *ListActiveEgressRequest) String() string {
   237  	return protoimpl.X.MessageStringOf(x)
   238  }
   239  
   240  func (*ListActiveEgressRequest) ProtoMessage() {}
   241  
   242  func (x *ListActiveEgressRequest) ProtoReflect() protoreflect.Message {
   243  	mi := &file_rpc_egress_proto_msgTypes[1]
   244  	if x != nil {
   245  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   246  		if ms.LoadMessageInfo() == nil {
   247  			ms.StoreMessageInfo(mi)
   248  		}
   249  		return ms
   250  	}
   251  	return mi.MessageOf(x)
   252  }
   253  
   254  // Deprecated: Use ListActiveEgressRequest.ProtoReflect.Descriptor instead.
   255  func (*ListActiveEgressRequest) Descriptor() ([]byte, []int) {
   256  	return file_rpc_egress_proto_rawDescGZIP(), []int{1}
   257  }
   258  
   259  type ListActiveEgressResponse struct {
   260  	state         protoimpl.MessageState `protogen:"open.v1"`
   261  	EgressIds     []string               `protobuf:"bytes,1,rep,name=egress_ids,json=egressIds,proto3" json:"egress_ids,omitempty"`
   262  	unknownFields protoimpl.UnknownFields
   263  	sizeCache     protoimpl.SizeCache
   264  }
   265  
   266  func (x *ListActiveEgressResponse) Reset() {
   267  	*x = ListActiveEgressResponse{}
   268  	mi := &file_rpc_egress_proto_msgTypes[2]
   269  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   270  	ms.StoreMessageInfo(mi)
   271  }
   272  
   273  func (x *ListActiveEgressResponse) String() string {
   274  	return protoimpl.X.MessageStringOf(x)
   275  }
   276  
   277  func (*ListActiveEgressResponse) ProtoMessage() {}
   278  
   279  func (x *ListActiveEgressResponse) ProtoReflect() protoreflect.Message {
   280  	mi := &file_rpc_egress_proto_msgTypes[2]
   281  	if x != nil {
   282  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   283  		if ms.LoadMessageInfo() == nil {
   284  			ms.StoreMessageInfo(mi)
   285  		}
   286  		return ms
   287  	}
   288  	return mi.MessageOf(x)
   289  }
   290  
   291  // Deprecated: Use ListActiveEgressResponse.ProtoReflect.Descriptor instead.
   292  func (*ListActiveEgressResponse) Descriptor() ([]byte, []int) {
   293  	return file_rpc_egress_proto_rawDescGZIP(), []int{2}
   294  }
   295  
   296  func (x *ListActiveEgressResponse) GetEgressIds() []string {
   297  	if x != nil {
   298  		return x.EgressIds
   299  	}
   300  	return nil
   301  }
   302  
   303  var File_rpc_egress_proto protoreflect.FileDescriptor
   304  
   305  const file_rpc_egress_proto_rawDesc = "" +
   306  	"\n" +
   307  	"\x10rpc/egress.proto\x12\x03rpc\x1a\roptions.proto\x1a\x14livekit_egress.proto\"\xa3\x04\n" +
   308  	"\x12StartEgressRequest\x12\x1b\n" +
   309  	"\tegress_id\x18\x01 \x01(\tR\begressId\x12L\n" +
   310  	"\x0eroom_composite\x18\x05 \x01(\v2#.livekit.RoomCompositeEgressRequestH\x00R\rroomComposite\x12-\n" +
   311  	"\x03web\x18\v \x01(\v2\x19.livekit.WebEgressRequestH\x00R\x03web\x12E\n" +
   312  	"\vparticipant\x18\r \x01(\v2!.livekit.ParticipantEgressRequestH\x00R\vparticipant\x12O\n" +
   313  	"\x0ftrack_composite\x18\x06 \x01(\v2$.livekit.TrackCompositeEgressRequestH\x00R\x0etrackComposite\x123\n" +
   314  	"\x05track\x18\a \x01(\v2\x1b.livekit.TrackEgressRequestH\x00R\x05track\x12\x17\n" +
   315  	"\aroom_id\x18\x03 \x01(\tR\x06roomId\x12\x14\n" +
   316  	"\x05token\x18\b \x01(\tR\x05token\x12\x15\n" +
   317  	"\x06ws_url\x18\t \x01(\tR\x05wsUrl\x120\n" +
   318  	"\x14cloud_backup_enabled\x18\n" +
   319  	" \x01(\bR\x12cloudBackupEnabled\x12#\n" +
   320  	"\restimated_cpu\x18\x0e \x01(\x01R\festimatedCpuB\t\n" +
   321  	"\arequest\"\x19\n" +
   322  	"\x17ListActiveEgressRequest\"9\n" +
   323  	"\x18ListActiveEgressResponse\x12\x1d\n" +
   324  	"\n" +
   325  	"egress_ids\x18\x01 \x03(\tR\tegressIds2\xb2\x01\n" +
   326  	"\x0eEgressInternal\x12E\n" +
   327  	"\vStartEgress\x12\x17.rpc.StartEgressRequest\x1a\x13.livekit.EgressInfo\"\b\xb2\x89\x01\x04\x10\x010\x01\x12Y\n" +
   328  	"\x10ListActiveEgress\x12\x1c.rpc.ListActiveEgressRequest\x1a\x1d.rpc.ListActiveEgressResponse\"\b\xb2\x89\x01\x04\x10\x01(\x012\xa1\x01\n" +
   329  	"\rEgressHandler\x12I\n" +
   330  	"\fUpdateStream\x12\x1c.livekit.UpdateStreamRequest\x1a\x13.livekit.EgressInfo\"\x06\xb2\x89\x01\x02\x10\x01\x12E\n" +
   331  	"\n" +
   332  	"StopEgress\x12\x1a.livekit.StopEgressRequest\x1a\x13.livekit.EgressInfo\"\x06\xb2\x89\x01\x02\x10\x01B!Z\x1fgithub.com/livekit/protocol/rpcb\x06proto3"
   333  
   334  var (
   335  	file_rpc_egress_proto_rawDescOnce sync.Once
   336  	file_rpc_egress_proto_rawDescData []byte
   337  )
   338  
   339  func file_rpc_egress_proto_rawDescGZIP() []byte {
   340  	file_rpc_egress_proto_rawDescOnce.Do(func() {
   341  		file_rpc_egress_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_rpc_egress_proto_rawDesc), len(file_rpc_egress_proto_rawDesc)))
   342  	})
   343  	return file_rpc_egress_proto_rawDescData
   344  }
   345  
   346  var file_rpc_egress_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   347  var file_rpc_egress_proto_goTypes = []any{
   348  	(*StartEgressRequest)(nil),                  // 0: rpc.StartEgressRequest
   349  	(*ListActiveEgressRequest)(nil),             // 1: rpc.ListActiveEgressRequest
   350  	(*ListActiveEgressResponse)(nil),            // 2: rpc.ListActiveEgressResponse
   351  	(*livekit.RoomCompositeEgressRequest)(nil),  // 3: livekit.RoomCompositeEgressRequest
   352  	(*livekit.WebEgressRequest)(nil),            // 4: livekit.WebEgressRequest
   353  	(*livekit.ParticipantEgressRequest)(nil),    // 5: livekit.ParticipantEgressRequest
   354  	(*livekit.TrackCompositeEgressRequest)(nil), // 6: livekit.TrackCompositeEgressRequest
   355  	(*livekit.TrackEgressRequest)(nil),          // 7: livekit.TrackEgressRequest
   356  	(*livekit.UpdateStreamRequest)(nil),         // 8: livekit.UpdateStreamRequest
   357  	(*livekit.StopEgressRequest)(nil),           // 9: livekit.StopEgressRequest
   358  	(*livekit.EgressInfo)(nil),                  // 10: livekit.EgressInfo
   359  }
   360  var file_rpc_egress_proto_depIdxs = []int32{
   361  	3,  // 0: rpc.StartEgressRequest.room_composite:type_name -> livekit.RoomCompositeEgressRequest
   362  	4,  // 1: rpc.StartEgressRequest.web:type_name -> livekit.WebEgressRequest
   363  	5,  // 2: rpc.StartEgressRequest.participant:type_name -> livekit.ParticipantEgressRequest
   364  	6,  // 3: rpc.StartEgressRequest.track_composite:type_name -> livekit.TrackCompositeEgressRequest
   365  	7,  // 4: rpc.StartEgressRequest.track:type_name -> livekit.TrackEgressRequest
   366  	0,  // 5: rpc.EgressInternal.StartEgress:input_type -> rpc.StartEgressRequest
   367  	1,  // 6: rpc.EgressInternal.ListActiveEgress:input_type -> rpc.ListActiveEgressRequest
   368  	8,  // 7: rpc.EgressHandler.UpdateStream:input_type -> livekit.UpdateStreamRequest
   369  	9,  // 8: rpc.EgressHandler.StopEgress:input_type -> livekit.StopEgressRequest
   370  	10, // 9: rpc.EgressInternal.StartEgress:output_type -> livekit.EgressInfo
   371  	2,  // 10: rpc.EgressInternal.ListActiveEgress:output_type -> rpc.ListActiveEgressResponse
   372  	10, // 11: rpc.EgressHandler.UpdateStream:output_type -> livekit.EgressInfo
   373  	10, // 12: rpc.EgressHandler.StopEgress:output_type -> livekit.EgressInfo
   374  	9,  // [9:13] is the sub-list for method output_type
   375  	5,  // [5:9] is the sub-list for method input_type
   376  	5,  // [5:5] is the sub-list for extension type_name
   377  	5,  // [5:5] is the sub-list for extension extendee
   378  	0,  // [0:5] is the sub-list for field type_name
   379  }
   380  
   381  func init() { file_rpc_egress_proto_init() }
   382  func file_rpc_egress_proto_init() {
   383  	if File_rpc_egress_proto != nil {
   384  		return
   385  	}
   386  	file_rpc_egress_proto_msgTypes[0].OneofWrappers = []any{
   387  		(*StartEgressRequest_RoomComposite)(nil),
   388  		(*StartEgressRequest_Web)(nil),
   389  		(*StartEgressRequest_Participant)(nil),
   390  		(*StartEgressRequest_TrackComposite)(nil),
   391  		(*StartEgressRequest_Track)(nil),
   392  	}
   393  	type x struct{}
   394  	out := protoimpl.TypeBuilder{
   395  		File: protoimpl.DescBuilder{
   396  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   397  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_rpc_egress_proto_rawDesc), len(file_rpc_egress_proto_rawDesc)),
   398  			NumEnums:      0,
   399  			NumMessages:   3,
   400  			NumExtensions: 0,
   401  			NumServices:   2,
   402  		},
   403  		GoTypes:           file_rpc_egress_proto_goTypes,
   404  		DependencyIndexes: file_rpc_egress_proto_depIdxs,
   405  		MessageInfos:      file_rpc_egress_proto_msgTypes,
   406  	}.Build()
   407  	File_rpc_egress_proto = out.File
   408  	file_rpc_egress_proto_goTypes = nil
   409  	file_rpc_egress_proto_depIdxs = nil
   410  }