From bc388341b9f2787a807db6d902f24a3acc45456a Mon Sep 17 00:00:00 2001 From: cnderrauber Date: Tue, 17 Dec 2024 09:33:17 +0800 Subject: [PATCH] Check element cound in parallel execute (#924) * Check element cound in parallel execute * generated protobuf --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- infra/link.pb.go | 48 +- livekit/livekit_agent.pb.go | 282 ++++----- livekit/livekit_agent_dispatch.pb.go | 77 ++- livekit/livekit_analytics.pb.go | 102 ++-- livekit/livekit_egress.pb.go | 863 +++++++++++++++------------ livekit/livekit_ingress.pb.go | 213 ++++--- livekit/livekit_internal.pb.go | 59 +- livekit/livekit_metrics.pb.go | 36 +- livekit/livekit_models.pb.go | 635 ++++++++++---------- livekit/livekit_room.pb.go | 170 +++--- livekit/livekit_rtc.pb.go | 728 +++++++++++----------- livekit/livekit_sip.pb.go | 350 +++++------ livekit/livekit_webhook.pb.go | 13 +- rpc/agent.pb.go | 44 +- rpc/agent_dispatch.pb.go | 2 +- rpc/analytics.pb.go | 2 +- rpc/egress.pb.go | 58 +- rpc/ingress.pb.go | 75 ++- rpc/io.pb.go | 104 ++-- rpc/keepalive.pb.go | 9 +- rpc/participant.pb.go | 2 +- rpc/room.pb.go | 2 +- rpc/roommanager.pb.go | 2 +- rpc/signal.pb.go | 26 +- rpc/sip.pb.go | 43 +- utils/parallel.go | 3 + 26 files changed, 1992 insertions(+), 1956 deletions(-) diff --git a/infra/link.pb.go b/infra/link.pb.go index 6b48b7e1..0fddb172 100644 --- a/infra/link.pb.go +++ b/infra/link.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: infra/link.proto @@ -36,9 +36,9 @@ const ( ) type WatchLocalLinksRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *WatchLocalLinksRequest) Reset() { @@ -72,17 +72,16 @@ func (*WatchLocalLinksRequest) Descriptor() ([]byte, []int) { } type WatchLocalLinksResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LocalRegion string `protobuf:"bytes,1,opt,name=local_region,json=localRegion,proto3" json:"local_region,omitempty"` + RemoteRegion string `protobuf:"bytes,2,opt,name=remote_region,json=remoteRegion,proto3" json:"remote_region,omitempty"` + Rtt int64 `protobuf:"varint,3,opt,name=rtt,proto3" json:"rtt,omitempty"` + Jitter int64 `protobuf:"varint,4,opt,name=jitter,proto3" json:"jitter,omitempty"` + PacketLoss float64 `protobuf:"fixed64,5,opt,name=packet_loss,json=packetLoss,proto3" json:"packet_loss,omitempty"` + Disabled bool `protobuf:"varint,6,opt,name=disabled,proto3" json:"disabled,omitempty"` + LastRead *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_read,json=lastRead,proto3" json:"last_read,omitempty"` unknownFields protoimpl.UnknownFields - - LocalRegion string `protobuf:"bytes,1,opt,name=local_region,json=localRegion,proto3" json:"local_region,omitempty"` - RemoteRegion string `protobuf:"bytes,2,opt,name=remote_region,json=remoteRegion,proto3" json:"remote_region,omitempty"` - Rtt int64 `protobuf:"varint,3,opt,name=rtt,proto3" json:"rtt,omitempty"` - Jitter int64 `protobuf:"varint,4,opt,name=jitter,proto3" json:"jitter,omitempty"` - PacketLoss float64 `protobuf:"fixed64,5,opt,name=packet_loss,json=packetLoss,proto3" json:"packet_loss,omitempty"` - Disabled bool `protobuf:"varint,6,opt,name=disabled,proto3" json:"disabled,omitempty"` - LastRead *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_read,json=lastRead,proto3" json:"last_read,omitempty"` + sizeCache protoimpl.SizeCache } func (x *WatchLocalLinksResponse) Reset() { @@ -165,17 +164,16 @@ func (x *WatchLocalLinksResponse) GetLastRead() *timestamppb.Timestamp { } type SimulateLinkStateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LocalRegion string `protobuf:"bytes,1,opt,name=local_region,json=localRegion,proto3" json:"local_region,omitempty"` + RemoteRegion string `protobuf:"bytes,2,opt,name=remote_region,json=remoteRegion,proto3" json:"remote_region,omitempty"` + Rtt *int64 `protobuf:"varint,3,opt,name=rtt,proto3,oneof" json:"rtt,omitempty"` + Jitter *int64 `protobuf:"varint,4,opt,name=jitter,proto3,oneof" json:"jitter,omitempty"` + PacketLoss *float64 `protobuf:"fixed64,5,opt,name=packet_loss,json=packetLoss,proto3,oneof" json:"packet_loss,omitempty"` + Disabled *bool `protobuf:"varint,6,opt,name=disabled,proto3,oneof" json:"disabled,omitempty"` + Timeout int64 `protobuf:"varint,7,opt,name=timeout,proto3" json:"timeout,omitempty"` unknownFields protoimpl.UnknownFields - - LocalRegion string `protobuf:"bytes,1,opt,name=local_region,json=localRegion,proto3" json:"local_region,omitempty"` - RemoteRegion string `protobuf:"bytes,2,opt,name=remote_region,json=remoteRegion,proto3" json:"remote_region,omitempty"` - Rtt *int64 `protobuf:"varint,3,opt,name=rtt,proto3,oneof" json:"rtt,omitempty"` - Jitter *int64 `protobuf:"varint,4,opt,name=jitter,proto3,oneof" json:"jitter,omitempty"` - PacketLoss *float64 `protobuf:"fixed64,5,opt,name=packet_loss,json=packetLoss,proto3,oneof" json:"packet_loss,omitempty"` - Disabled *bool `protobuf:"varint,6,opt,name=disabled,proto3,oneof" json:"disabled,omitempty"` - Timeout int64 `protobuf:"varint,7,opt,name=timeout,proto3" json:"timeout,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SimulateLinkStateRequest) Reset() { @@ -258,9 +256,9 @@ func (x *SimulateLinkStateRequest) GetTimeout() int64 { } type SimulateLinkStateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SimulateLinkStateResponse) Reset() { diff --git a/livekit/livekit_agent.pb.go b/livekit/livekit_agent.pb.go index cc2314b4..2710faf7 100644 --- a/livekit/livekit_agent.pb.go +++ b/livekit/livekit_agent.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: livekit_agent.proto @@ -179,20 +179,19 @@ func (JobStatus) EnumDescriptor() ([]byte, []int) { } type Job struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - DispatchId string `protobuf:"bytes,9,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"` - Type JobType `protobuf:"varint,2,opt,name=type,proto3,enum=livekit.JobType" json:"type,omitempty"` - Room *Room `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"` - Participant *ParticipantInfo `protobuf:"bytes,4,opt,name=participant,proto3,oneof" json:"participant,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + DispatchId string `protobuf:"bytes,9,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"` + Type JobType `protobuf:"varint,2,opt,name=type,proto3,enum=livekit.JobType" json:"type,omitempty"` + Room *Room `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"` + Participant *ParticipantInfo `protobuf:"bytes,4,opt,name=participant,proto3,oneof" json:"participant,omitempty"` // Deprecated: Marked as deprecated in livekit_agent.proto. - Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"` - Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` - AgentName string `protobuf:"bytes,7,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` - State *JobState `protobuf:"bytes,8,opt,name=state,proto3" json:"state,omitempty"` + Namespace string `protobuf:"bytes,5,opt,name=namespace,proto3" json:"namespace,omitempty"` + Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` + AgentName string `protobuf:"bytes,7,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` + State *JobState `protobuf:"bytes,8,opt,name=state,proto3" json:"state,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Job) Reset() { @@ -290,16 +289,15 @@ func (x *Job) GetState() *JobState { } type JobState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status JobStatus `protobuf:"varint,1,opt,name=status,proto3,enum=livekit.JobStatus" json:"status,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` - StartedAt int64 `protobuf:"varint,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - EndedAt int64 `protobuf:"varint,4,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` - UpdatedAt int64 `protobuf:"varint,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - ParticipantIdentity string `protobuf:"bytes,6,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Status JobStatus `protobuf:"varint,1,opt,name=status,proto3,enum=livekit.JobStatus" json:"status,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` + StartedAt int64 `protobuf:"varint,3,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + EndedAt int64 `protobuf:"varint,4,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` + UpdatedAt int64 `protobuf:"varint,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + ParticipantIdentity string `protobuf:"bytes,6,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *JobState) Reset() { @@ -376,11 +374,8 @@ func (x *JobState) GetParticipantIdentity() string { // from Worker to Server type WorkerMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Message: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Message: // // *WorkerMessage_Register // *WorkerMessage_Availability @@ -389,7 +384,9 @@ type WorkerMessage struct { // *WorkerMessage_Ping // *WorkerMessage_SimulateJob // *WorkerMessage_MigrateJob - Message isWorkerMessage_Message `protobuf_oneof:"message"` + Message isWorkerMessage_Message `protobuf_oneof:"message"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *WorkerMessage) Reset() { @@ -422,58 +419,72 @@ func (*WorkerMessage) Descriptor() ([]byte, []int) { return file_livekit_agent_proto_rawDescGZIP(), []int{2} } -func (m *WorkerMessage) GetMessage() isWorkerMessage_Message { - if m != nil { - return m.Message +func (x *WorkerMessage) GetMessage() isWorkerMessage_Message { + if x != nil { + return x.Message } return nil } func (x *WorkerMessage) GetRegister() *RegisterWorkerRequest { - if x, ok := x.GetMessage().(*WorkerMessage_Register); ok { - return x.Register + if x != nil { + if x, ok := x.Message.(*WorkerMessage_Register); ok { + return x.Register + } } return nil } func (x *WorkerMessage) GetAvailability() *AvailabilityResponse { - if x, ok := x.GetMessage().(*WorkerMessage_Availability); ok { - return x.Availability + if x != nil { + if x, ok := x.Message.(*WorkerMessage_Availability); ok { + return x.Availability + } } return nil } func (x *WorkerMessage) GetUpdateWorker() *UpdateWorkerStatus { - if x, ok := x.GetMessage().(*WorkerMessage_UpdateWorker); ok { - return x.UpdateWorker + if x != nil { + if x, ok := x.Message.(*WorkerMessage_UpdateWorker); ok { + return x.UpdateWorker + } } return nil } func (x *WorkerMessage) GetUpdateJob() *UpdateJobStatus { - if x, ok := x.GetMessage().(*WorkerMessage_UpdateJob); ok { - return x.UpdateJob + if x != nil { + if x, ok := x.Message.(*WorkerMessage_UpdateJob); ok { + return x.UpdateJob + } } return nil } func (x *WorkerMessage) GetPing() *WorkerPing { - if x, ok := x.GetMessage().(*WorkerMessage_Ping); ok { - return x.Ping + if x != nil { + if x, ok := x.Message.(*WorkerMessage_Ping); ok { + return x.Ping + } } return nil } func (x *WorkerMessage) GetSimulateJob() *SimulateJobRequest { - if x, ok := x.GetMessage().(*WorkerMessage_SimulateJob); ok { - return x.SimulateJob + if x != nil { + if x, ok := x.Message.(*WorkerMessage_SimulateJob); ok { + return x.SimulateJob + } } return nil } func (x *WorkerMessage) GetMigrateJob() *MigrateJobRequest { - if x, ok := x.GetMessage().(*WorkerMessage_MigrateJob); ok { - return x.MigrateJob + if x != nil { + if x, ok := x.Message.(*WorkerMessage_MigrateJob); ok { + return x.MigrateJob + } } return nil } @@ -530,18 +541,17 @@ func (*WorkerMessage_MigrateJob) isWorkerMessage_Message() {} // from Server to Worker type ServerMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Message: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Message: // // *ServerMessage_Register // *ServerMessage_Availability // *ServerMessage_Assignment // *ServerMessage_Termination // *ServerMessage_Pong - Message isServerMessage_Message `protobuf_oneof:"message"` + Message isServerMessage_Message `protobuf_oneof:"message"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ServerMessage) Reset() { @@ -574,44 +584,54 @@ func (*ServerMessage) Descriptor() ([]byte, []int) { return file_livekit_agent_proto_rawDescGZIP(), []int{3} } -func (m *ServerMessage) GetMessage() isServerMessage_Message { - if m != nil { - return m.Message +func (x *ServerMessage) GetMessage() isServerMessage_Message { + if x != nil { + return x.Message } return nil } func (x *ServerMessage) GetRegister() *RegisterWorkerResponse { - if x, ok := x.GetMessage().(*ServerMessage_Register); ok { - return x.Register + if x != nil { + if x, ok := x.Message.(*ServerMessage_Register); ok { + return x.Register + } } return nil } func (x *ServerMessage) GetAvailability() *AvailabilityRequest { - if x, ok := x.GetMessage().(*ServerMessage_Availability); ok { - return x.Availability + if x != nil { + if x, ok := x.Message.(*ServerMessage_Availability); ok { + return x.Availability + } } return nil } func (x *ServerMessage) GetAssignment() *JobAssignment { - if x, ok := x.GetMessage().(*ServerMessage_Assignment); ok { - return x.Assignment + if x != nil { + if x, ok := x.Message.(*ServerMessage_Assignment); ok { + return x.Assignment + } } return nil } func (x *ServerMessage) GetTermination() *JobTermination { - if x, ok := x.GetMessage().(*ServerMessage_Termination); ok { - return x.Termination + if x != nil { + if x, ok := x.Message.(*ServerMessage_Termination); ok { + return x.Termination + } } return nil } func (x *ServerMessage) GetPong() *WorkerPong { - if x, ok := x.GetMessage().(*ServerMessage_Pong); ok { - return x.Pong + if x != nil { + if x, ok := x.Message.(*ServerMessage_Pong); ok { + return x.Pong + } } return nil } @@ -653,13 +673,12 @@ func (*ServerMessage_Termination) isServerMessage_Message() {} func (*ServerMessage_Pong) isServerMessage_Message() {} type SimulateJobRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type JobType `protobuf:"varint,1,opt,name=type,proto3,enum=livekit.JobType" json:"type,omitempty"` + Room *Room `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"` + Participant *ParticipantInfo `protobuf:"bytes,3,opt,name=participant,proto3" json:"participant,omitempty"` unknownFields protoimpl.UnknownFields - - Type JobType `protobuf:"varint,1,opt,name=type,proto3,enum=livekit.JobType" json:"type,omitempty"` - Room *Room `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"` - Participant *ParticipantInfo `protobuf:"bytes,3,opt,name=participant,proto3" json:"participant,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SimulateJobRequest) Reset() { @@ -714,11 +733,10 @@ func (x *SimulateJobRequest) GetParticipant() *ParticipantInfo { } type WorkerPing struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *WorkerPing) Reset() { @@ -759,12 +777,11 @@ func (x *WorkerPing) GetTimestamp() int64 { } type WorkerPong struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + LastTimestamp int64 `protobuf:"varint,1,opt,name=last_timestamp,json=lastTimestamp,proto3" json:"last_timestamp,omitempty"` + Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - LastTimestamp int64 `protobuf:"varint,1,opt,name=last_timestamp,json=lastTimestamp,proto3" json:"last_timestamp,omitempty"` - Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *WorkerPong) Reset() { @@ -812,18 +829,17 @@ func (x *WorkerPong) GetTimestamp() int64 { } type RegisterWorkerRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type JobType `protobuf:"varint,1,opt,name=type,proto3,enum=livekit.JobType" json:"type,omitempty"` - AgentName string `protobuf:"bytes,8,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Type JobType `protobuf:"varint,1,opt,name=type,proto3,enum=livekit.JobType" json:"type,omitempty"` + AgentName string `protobuf:"bytes,8,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` // string worker_id = 2; Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // string name = 4 [deprecated = true]; PingInterval uint32 `protobuf:"varint,5,opt,name=ping_interval,json=pingInterval,proto3" json:"ping_interval,omitempty"` Namespace *string `protobuf:"bytes,6,opt,name=namespace,proto3,oneof" json:"namespace,omitempty"` AllowedPermissions *ParticipantPermission `protobuf:"bytes,7,opt,name=allowed_permissions,json=allowedPermissions,proto3" json:"allowed_permissions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RegisterWorkerRequest) Reset() { @@ -899,12 +915,11 @@ func (x *RegisterWorkerRequest) GetAllowedPermissions() *ParticipantPermission { } type RegisterWorkerResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + WorkerId string `protobuf:"bytes,1,opt,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty"` + ServerInfo *ServerInfo `protobuf:"bytes,3,opt,name=server_info,json=serverInfo,proto3" json:"server_info,omitempty"` unknownFields protoimpl.UnknownFields - - WorkerId string `protobuf:"bytes,1,opt,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty"` - ServerInfo *ServerInfo `protobuf:"bytes,3,opt,name=server_info,json=serverInfo,proto3" json:"server_info,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RegisterWorkerResponse) Reset() { @@ -952,12 +967,11 @@ func (x *RegisterWorkerResponse) GetServerInfo() *ServerInfo { } type MigrateJobRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // string job_id = 1 [deprecated = true]; - JobIds []string `protobuf:"bytes,2,rep,name=job_ids,json=jobIds,proto3" json:"job_ids,omitempty"` + JobIds []string `protobuf:"bytes,2,rep,name=job_ids,json=jobIds,proto3" json:"job_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MigrateJobRequest) Reset() { @@ -998,14 +1012,13 @@ func (x *MigrateJobRequest) GetJobIds() []string { } type AvailabilityRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` // True when the job was previously assigned to another worker but has been // migrated due to different reasons (e.g. worker failure, job migration) - Resuming bool `protobuf:"varint,2,opt,name=resuming,proto3" json:"resuming,omitempty"` + Resuming bool `protobuf:"varint,2,opt,name=resuming,proto3" json:"resuming,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AvailabilityRequest) Reset() { @@ -1053,17 +1066,16 @@ func (x *AvailabilityRequest) GetResuming() bool { } type AvailabilityResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` - Available bool `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"` - SupportsResume bool `protobuf:"varint,3,opt,name=supports_resume,json=supportsResume,proto3" json:"supports_resume,omitempty"` - ParticipantName string `protobuf:"bytes,4,opt,name=participant_name,json=participantName,proto3" json:"participant_name,omitempty"` - ParticipantIdentity string `protobuf:"bytes,5,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` - ParticipantMetadata string `protobuf:"bytes,6,opt,name=participant_metadata,json=participantMetadata,proto3" json:"participant_metadata,omitempty"` - ParticipantAttributes map[string]string `protobuf:"bytes,7,rep,name=participant_attributes,json=participantAttributes,proto3" json:"participant_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + Available bool `protobuf:"varint,2,opt,name=available,proto3" json:"available,omitempty"` + SupportsResume bool `protobuf:"varint,3,opt,name=supports_resume,json=supportsResume,proto3" json:"supports_resume,omitempty"` + ParticipantName string `protobuf:"bytes,4,opt,name=participant_name,json=participantName,proto3" json:"participant_name,omitempty"` + ParticipantIdentity string `protobuf:"bytes,5,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` + ParticipantMetadata string `protobuf:"bytes,6,opt,name=participant_metadata,json=participantMetadata,proto3" json:"participant_metadata,omitempty"` + ParticipantAttributes map[string]string `protobuf:"bytes,7,rep,name=participant_attributes,json=participantAttributes,proto3" json:"participant_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AvailabilityResponse) Reset() { @@ -1146,15 +1158,14 @@ func (x *AvailabilityResponse) GetParticipantAttributes() map[string]string { } type UpdateJobStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` // The worker can indicate the job end by either specifying SUCCESS or FAILED Status JobStatus `protobuf:"varint,2,opt,name=status,proto3,enum=livekit.JobStatus" json:"status,omitempty"` // metadata shown on the dashboard, useful for debugging - Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateJobStatus) Reset() { @@ -1209,14 +1220,13 @@ func (x *UpdateJobStatus) GetError() string { } type UpdateWorkerStatus struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status *WorkerStatus `protobuf:"varint,1,opt,name=status,proto3,enum=livekit.WorkerStatus,oneof" json:"status,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Status *WorkerStatus `protobuf:"varint,1,opt,name=status,proto3,enum=livekit.WorkerStatus,oneof" json:"status,omitempty"` // optional string metadata = 2 [deprecated=true]; - Load float32 `protobuf:"fixed32,3,opt,name=load,proto3" json:"load,omitempty"` - JobCount uint32 `protobuf:"varint,4,opt,name=job_count,json=jobCount,proto3" json:"job_count,omitempty"` + Load float32 `protobuf:"fixed32,3,opt,name=load,proto3" json:"load,omitempty"` + JobCount uint32 `protobuf:"varint,4,opt,name=job_count,json=jobCount,proto3" json:"job_count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateWorkerStatus) Reset() { @@ -1271,13 +1281,12 @@ func (x *UpdateWorkerStatus) GetJobCount() uint32 { } type JobAssignment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` + Url *string `protobuf:"bytes,2,opt,name=url,proto3,oneof" json:"url,omitempty"` + Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` unknownFields protoimpl.UnknownFields - - Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` - Url *string `protobuf:"bytes,2,opt,name=url,proto3,oneof" json:"url,omitempty"` - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` + sizeCache protoimpl.SizeCache } func (x *JobAssignment) Reset() { @@ -1332,11 +1341,10 @@ func (x *JobAssignment) GetToken() string { } type JobTermination struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` unknownFields protoimpl.UnknownFields - - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *JobTermination) Reset() { diff --git a/livekit/livekit_agent_dispatch.pb.go b/livekit/livekit_agent_dispatch.pb.go index 3da9c78d..0aba0c29 100644 --- a/livekit/livekit_agent_dispatch.pb.go +++ b/livekit/livekit_agent_dispatch.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: livekit_agent_dispatch.proto @@ -35,13 +35,12 @@ const ( ) type CreateAgentDispatchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AgentName string `protobuf:"bytes,1,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` + Room string `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"` + Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` unknownFields protoimpl.UnknownFields - - AgentName string `protobuf:"bytes,1,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` - Room string `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"` - Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + sizeCache protoimpl.SizeCache } func (x *CreateAgentDispatchRequest) Reset() { @@ -96,12 +95,11 @@ func (x *CreateAgentDispatchRequest) GetMetadata() string { } type RoomAgentDispatch struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AgentName string `protobuf:"bytes,1,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` + Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` unknownFields protoimpl.UnknownFields - - AgentName string `protobuf:"bytes,1,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` - Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RoomAgentDispatch) Reset() { @@ -149,12 +147,11 @@ func (x *RoomAgentDispatch) GetMetadata() string { } type DeleteAgentDispatchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DispatchId string `protobuf:"bytes,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"` + Room string `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"` unknownFields protoimpl.UnknownFields - - DispatchId string `protobuf:"bytes,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"` - Room string `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteAgentDispatchRequest) Reset() { @@ -202,12 +199,11 @@ func (x *DeleteAgentDispatchRequest) GetRoom() string { } type ListAgentDispatchRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + DispatchId string `protobuf:"bytes,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"` // if set, only the dispatch whose id is given will be returned + Room string `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"` // name of the room to list agents for. Must be set. unknownFields protoimpl.UnknownFields - - DispatchId string `protobuf:"bytes,1,opt,name=dispatch_id,json=dispatchId,proto3" json:"dispatch_id,omitempty"` // if set, only the dispatch whose id is given will be returned - Room string `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"` // name of the room to list agents for. Must be set. + sizeCache protoimpl.SizeCache } func (x *ListAgentDispatchRequest) Reset() { @@ -255,11 +251,10 @@ func (x *ListAgentDispatchRequest) GetRoom() string { } type ListAgentDispatchResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AgentDispatches []*AgentDispatch `protobuf:"bytes,1,rep,name=agent_dispatches,json=agentDispatches,proto3" json:"agent_dispatches,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + AgentDispatches []*AgentDispatch `protobuf:"bytes,1,rep,name=agent_dispatches,json=agentDispatches,proto3" json:"agent_dispatches,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListAgentDispatchResponse) Reset() { @@ -300,15 +295,14 @@ func (x *ListAgentDispatchResponse) GetAgentDispatches() []*AgentDispatch { } type AgentDispatch struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + AgentName string `protobuf:"bytes,2,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` + Room string `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"` + Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + State *AgentDispatchState `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - AgentName string `protobuf:"bytes,2,opt,name=agent_name,json=agentName,proto3" json:"agent_name,omitempty"` - Room string `protobuf:"bytes,3,opt,name=room,proto3" json:"room,omitempty"` - Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` - State *AgentDispatchState `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AgentDispatch) Reset() { @@ -377,15 +371,14 @@ func (x *AgentDispatch) GetState() *AgentDispatchState { } type AgentDispatchState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // For dispatches of tyoe JT_ROOM, there will be at most 1 job. // For dispatches of type JT_PUBLISHER, there will be 1 per publisher. - Jobs []*Job `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"` - CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - DeletedAt int64 `protobuf:"varint,3,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` + Jobs []*Job `protobuf:"bytes,1,rep,name=jobs,proto3" json:"jobs,omitempty"` + CreatedAt int64 `protobuf:"varint,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + DeletedAt int64 `protobuf:"varint,3,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AgentDispatchState) Reset() { diff --git a/livekit/livekit_analytics.pb.go b/livekit/livekit_analytics.pb.go index c958eb2c..478606ed 100644 --- a/livekit/livekit_analytics.pb.go +++ b/livekit/livekit_analytics.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: livekit_analytics.proto @@ -236,14 +236,13 @@ func (AnalyticsEventType) EnumDescriptor() ([]byte, []int) { } type AnalyticsVideoLayer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Layer int32 `protobuf:"varint,1,opt,name=layer,proto3" json:"layer,omitempty"` + Packets uint32 `protobuf:"varint,2,opt,name=packets,proto3" json:"packets,omitempty"` + Bytes uint64 `protobuf:"varint,3,opt,name=bytes,proto3" json:"bytes,omitempty"` + Frames uint32 `protobuf:"varint,4,opt,name=frames,proto3" json:"frames,omitempty"` unknownFields protoimpl.UnknownFields - - Layer int32 `protobuf:"varint,1,opt,name=layer,proto3" json:"layer,omitempty"` - Packets uint32 `protobuf:"varint,2,opt,name=packets,proto3" json:"packets,omitempty"` - Bytes uint64 `protobuf:"varint,3,opt,name=bytes,proto3" json:"bytes,omitempty"` - Frames uint32 `protobuf:"varint,4,opt,name=frames,proto3" json:"frames,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AnalyticsVideoLayer) Reset() { @@ -305,10 +304,7 @@ func (x *AnalyticsVideoLayer) GetFrames() uint32 { } type AnalyticsStream struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Ssrc uint32 `protobuf:"varint,1,opt,name=ssrc,proto3" json:"ssrc,omitempty"` PrimaryPackets uint32 `protobuf:"varint,2,opt,name=primary_packets,json=primaryPackets,proto3" json:"primary_packets,omitempty"` PrimaryBytes uint64 `protobuf:"varint,3,opt,name=primary_bytes,json=primaryBytes,proto3" json:"primary_bytes,omitempty"` @@ -327,6 +323,8 @@ type AnalyticsStream struct { StartTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` PacketsOutOfOrder uint32 `protobuf:"varint,19,opt,name=packets_out_of_order,json=packetsOutOfOrder,proto3" json:"packets_out_of_order,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AnalyticsStream) Reset() { @@ -486,10 +484,7 @@ func (x *AnalyticsStream) GetPacketsOutOfOrder() uint32 { } type AnalyticsStat struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // unique id for this stat Id string `protobuf:"bytes,14,opt,name=id,proto3" json:"id,omitempty"` AnalyticsKey string `protobuf:"bytes,1,opt,name=analytics_key,json=analyticsKey,proto3" json:"analytics_key,omitempty"` @@ -505,6 +500,8 @@ type AnalyticsStat struct { Mime string `protobuf:"bytes,11,opt,name=mime,proto3" json:"mime,omitempty"` MinScore float32 `protobuf:"fixed32,12,opt,name=min_score,json=minScore,proto3" json:"min_score,omitempty"` MedianScore float32 `protobuf:"fixed32,13,opt,name=median_score,json=medianScore,proto3" json:"median_score,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AnalyticsStat) Reset() { @@ -636,11 +633,10 @@ func (x *AnalyticsStat) GetMedianScore() float32 { } type AnalyticsStats struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Stats []*AnalyticsStat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` unknownFields protoimpl.UnknownFields - - Stats []*AnalyticsStat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AnalyticsStats) Reset() { @@ -681,20 +677,19 @@ func (x *AnalyticsStats) GetStats() []*AnalyticsStat { } type AnalyticsClientMeta struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` - Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` - ClientAddr string `protobuf:"bytes,3,opt,name=client_addr,json=clientAddr,proto3" json:"client_addr,omitempty"` - ClientConnectTime uint32 `protobuf:"varint,4,opt,name=client_connect_time,json=clientConnectTime,proto3" json:"client_connect_time,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` + ClientAddr string `protobuf:"bytes,3,opt,name=client_addr,json=clientAddr,proto3" json:"client_addr,omitempty"` + ClientConnectTime uint32 `protobuf:"varint,4,opt,name=client_connect_time,json=clientConnectTime,proto3" json:"client_connect_time,omitempty"` // udp, tcp, turn ConnectionType string `protobuf:"bytes,5,opt,name=connection_type,json=connectionType,proto3" json:"connection_type,omitempty"` ReconnectReason ReconnectReason `protobuf:"varint,6,opt,name=reconnect_reason,json=reconnectReason,proto3,enum=livekit.ReconnectReason" json:"reconnect_reason,omitempty"` GeoHash *string `protobuf:"bytes,7,opt,name=geo_hash,json=geoHash,proto3,oneof" json:"geo_hash,omitempty"` Country *string `protobuf:"bytes,8,opt,name=country,proto3,oneof" json:"country,omitempty"` IspAsn *uint32 `protobuf:"varint,9,opt,name=isp_asn,json=ispAsn,proto3,oneof" json:"isp_asn,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AnalyticsClientMeta) Reset() { @@ -791,10 +786,7 @@ func (x *AnalyticsClientMeta) GetIspAsn() uint32 { } type AnalyticsEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // unique id for this event Id string `protobuf:"bytes,25,opt,name=id,proto3" json:"id,omitempty"` Type AnalyticsEventType `protobuf:"varint,1,opt,name=type,proto3,enum=livekit.AnalyticsEventType" json:"type,omitempty"` @@ -826,6 +818,8 @@ type AnalyticsEvent struct { SipOutboundTrunk *SIPOutboundTrunkInfo `protobuf:"bytes,30,opt,name=sip_outbound_trunk,json=sipOutboundTrunk,proto3" json:"sip_outbound_trunk,omitempty"` SipDispatchRuleId string `protobuf:"bytes,31,opt,name=sip_dispatch_rule_id,json=sipDispatchRuleId,proto3" json:"sip_dispatch_rule_id,omitempty"` SipDispatchRule *SIPDispatchRuleInfo `protobuf:"bytes,32,opt,name=sip_dispatch_rule,json=sipDispatchRule,proto3" json:"sip_dispatch_rule,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AnalyticsEvent) Reset() { @@ -1069,11 +1063,10 @@ func (x *AnalyticsEvent) GetSipDispatchRule() *SIPDispatchRuleInfo { } type AnalyticsEvents struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Events []*AnalyticsEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` unknownFields protoimpl.UnknownFields - - Events []*AnalyticsEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AnalyticsEvents) Reset() { @@ -1114,15 +1107,14 @@ func (x *AnalyticsEvents) GetEvents() []*AnalyticsEvent { } type AnalyticsRoomParticipant struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + State ParticipantInfo_State `protobuf:"varint,4,opt,name=state,proto3,enum=livekit.ParticipantInfo_State" json:"state,omitempty"` + JoinedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=joined_at,json=joinedAt,proto3" json:"joined_at,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - State ParticipantInfo_State `protobuf:"varint,4,opt,name=state,proto3,enum=livekit.ParticipantInfo_State" json:"state,omitempty"` - JoinedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=joined_at,json=joinedAt,proto3" json:"joined_at,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AnalyticsRoomParticipant) Reset() { @@ -1191,15 +1183,14 @@ func (x *AnalyticsRoomParticipant) GetJoinedAt() *timestamppb.Timestamp { } type AnalyticsRoom struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + Participants []*AnalyticsRoomParticipant `protobuf:"bytes,4,rep,name=participants,proto3" json:"participants,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - Participants []*AnalyticsRoomParticipant `protobuf:"bytes,4,rep,name=participants,proto3" json:"participants,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AnalyticsRoom) Reset() { @@ -1268,14 +1259,13 @@ func (x *AnalyticsRoom) GetParticipants() []*AnalyticsRoomParticipant { } type AnalyticsNodeRooms struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` SequenceNumber uint64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber,proto3" json:"sequence_number,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Rooms []*AnalyticsRoom `protobuf:"bytes,4,rep,name=rooms,proto3" json:"rooms,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AnalyticsNodeRooms) Reset() { diff --git a/livekit/livekit_egress.pb.go b/livekit/livekit_egress.pb.go index a6ce6b9a..2ea46a65 100644 --- a/livekit/livekit_egress.pb.go +++ b/livekit/livekit_egress.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: livekit_egress.proto @@ -446,22 +446,19 @@ func (StreamInfo_Status) EnumDescriptor() ([]byte, []int) { // composite using a web browser type RoomCompositeEgressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // required - Layout string `protobuf:"bytes,2,opt,name=layout,proto3" json:"layout,omitempty"` // (optional) - AudioOnly bool `protobuf:"varint,3,opt,name=audio_only,json=audioOnly,proto3" json:"audio_only,omitempty"` // (default false) - VideoOnly bool `protobuf:"varint,4,opt,name=video_only,json=videoOnly,proto3" json:"video_only,omitempty"` // (default false) - CustomBaseUrl string `protobuf:"bytes,5,opt,name=custom_base_url,json=customBaseUrl,proto3" json:"custom_base_url,omitempty"` // template base url (default https://recorder.livekit.io) - // Types that are assignable to Output: + state protoimpl.MessageState `protogen:"open.v1"` + RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // required + Layout string `protobuf:"bytes,2,opt,name=layout,proto3" json:"layout,omitempty"` // (optional) + AudioOnly bool `protobuf:"varint,3,opt,name=audio_only,json=audioOnly,proto3" json:"audio_only,omitempty"` // (default false) + VideoOnly bool `protobuf:"varint,4,opt,name=video_only,json=videoOnly,proto3" json:"video_only,omitempty"` // (default false) + CustomBaseUrl string `protobuf:"bytes,5,opt,name=custom_base_url,json=customBaseUrl,proto3" json:"custom_base_url,omitempty"` // template base url (default https://recorder.livekit.io) + // Types that are valid to be assigned to Output: // // *RoomCompositeEgressRequest_File // *RoomCompositeEgressRequest_Stream // *RoomCompositeEgressRequest_Segments Output isRoomCompositeEgressRequest_Output `protobuf_oneof:"output"` - // Types that are assignable to Options: + // Types that are valid to be assigned to Options: // // *RoomCompositeEgressRequest_Preset // *RoomCompositeEgressRequest_Advanced @@ -470,6 +467,8 @@ type RoomCompositeEgressRequest struct { StreamOutputs []*StreamOutput `protobuf:"bytes,12,rep,name=stream_outputs,json=streamOutputs,proto3" json:"stream_outputs,omitempty"` SegmentOutputs []*SegmentedFileOutput `protobuf:"bytes,13,rep,name=segment_outputs,json=segmentOutputs,proto3" json:"segment_outputs,omitempty"` ImageOutputs []*ImageOutput `protobuf:"bytes,14,rep,name=image_outputs,json=imageOutputs,proto3" json:"image_outputs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RoomCompositeEgressRequest) Reset() { @@ -537,54 +536,64 @@ func (x *RoomCompositeEgressRequest) GetCustomBaseUrl() string { return "" } -func (m *RoomCompositeEgressRequest) GetOutput() isRoomCompositeEgressRequest_Output { - if m != nil { - return m.Output +func (x *RoomCompositeEgressRequest) GetOutput() isRoomCompositeEgressRequest_Output { + if x != nil { + return x.Output } return nil } // Deprecated: Marked as deprecated in livekit_egress.proto. func (x *RoomCompositeEgressRequest) GetFile() *EncodedFileOutput { - if x, ok := x.GetOutput().(*RoomCompositeEgressRequest_File); ok { - return x.File + if x != nil { + if x, ok := x.Output.(*RoomCompositeEgressRequest_File); ok { + return x.File + } } return nil } // Deprecated: Marked as deprecated in livekit_egress.proto. func (x *RoomCompositeEgressRequest) GetStream() *StreamOutput { - if x, ok := x.GetOutput().(*RoomCompositeEgressRequest_Stream); ok { - return x.Stream + if x != nil { + if x, ok := x.Output.(*RoomCompositeEgressRequest_Stream); ok { + return x.Stream + } } return nil } // Deprecated: Marked as deprecated in livekit_egress.proto. func (x *RoomCompositeEgressRequest) GetSegments() *SegmentedFileOutput { - if x, ok := x.GetOutput().(*RoomCompositeEgressRequest_Segments); ok { - return x.Segments + if x != nil { + if x, ok := x.Output.(*RoomCompositeEgressRequest_Segments); ok { + return x.Segments + } } return nil } -func (m *RoomCompositeEgressRequest) GetOptions() isRoomCompositeEgressRequest_Options { - if m != nil { - return m.Options +func (x *RoomCompositeEgressRequest) GetOptions() isRoomCompositeEgressRequest_Options { + if x != nil { + return x.Options } return nil } func (x *RoomCompositeEgressRequest) GetPreset() EncodingOptionsPreset { - if x, ok := x.GetOptions().(*RoomCompositeEgressRequest_Preset); ok { - return x.Preset + if x != nil { + if x, ok := x.Options.(*RoomCompositeEgressRequest_Preset); ok { + return x.Preset + } } return EncodingOptionsPreset_H264_720P_30 } func (x *RoomCompositeEgressRequest) GetAdvanced() *EncodingOptions { - if x, ok := x.GetOptions().(*RoomCompositeEgressRequest_Advanced); ok { - return x.Advanced + if x != nil { + if x, ok := x.Options.(*RoomCompositeEgressRequest_Advanced); ok { + return x.Advanced + } } return nil } @@ -660,21 +669,18 @@ func (*RoomCompositeEgressRequest_Advanced) isRoomCompositeEgressRequest_Options // record any website type WebEgressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - AudioOnly bool `protobuf:"varint,2,opt,name=audio_only,json=audioOnly,proto3" json:"audio_only,omitempty"` - VideoOnly bool `protobuf:"varint,3,opt,name=video_only,json=videoOnly,proto3" json:"video_only,omitempty"` - AwaitStartSignal bool `protobuf:"varint,12,opt,name=await_start_signal,json=awaitStartSignal,proto3" json:"await_start_signal,omitempty"` - // Types that are assignable to Output: + state protoimpl.MessageState `protogen:"open.v1"` + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + AudioOnly bool `protobuf:"varint,2,opt,name=audio_only,json=audioOnly,proto3" json:"audio_only,omitempty"` + VideoOnly bool `protobuf:"varint,3,opt,name=video_only,json=videoOnly,proto3" json:"video_only,omitempty"` + AwaitStartSignal bool `protobuf:"varint,12,opt,name=await_start_signal,json=awaitStartSignal,proto3" json:"await_start_signal,omitempty"` + // Types that are valid to be assigned to Output: // // *WebEgressRequest_File // *WebEgressRequest_Stream // *WebEgressRequest_Segments Output isWebEgressRequest_Output `protobuf_oneof:"output"` - // Types that are assignable to Options: + // Types that are valid to be assigned to Options: // // *WebEgressRequest_Preset // *WebEgressRequest_Advanced @@ -683,6 +689,8 @@ type WebEgressRequest struct { StreamOutputs []*StreamOutput `protobuf:"bytes,10,rep,name=stream_outputs,json=streamOutputs,proto3" json:"stream_outputs,omitempty"` SegmentOutputs []*SegmentedFileOutput `protobuf:"bytes,11,rep,name=segment_outputs,json=segmentOutputs,proto3" json:"segment_outputs,omitempty"` ImageOutputs []*ImageOutput `protobuf:"bytes,13,rep,name=image_outputs,json=imageOutputs,proto3" json:"image_outputs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *WebEgressRequest) Reset() { @@ -743,54 +751,64 @@ func (x *WebEgressRequest) GetAwaitStartSignal() bool { return false } -func (m *WebEgressRequest) GetOutput() isWebEgressRequest_Output { - if m != nil { - return m.Output +func (x *WebEgressRequest) GetOutput() isWebEgressRequest_Output { + if x != nil { + return x.Output } return nil } // Deprecated: Marked as deprecated in livekit_egress.proto. func (x *WebEgressRequest) GetFile() *EncodedFileOutput { - if x, ok := x.GetOutput().(*WebEgressRequest_File); ok { - return x.File + if x != nil { + if x, ok := x.Output.(*WebEgressRequest_File); ok { + return x.File + } } return nil } // Deprecated: Marked as deprecated in livekit_egress.proto. func (x *WebEgressRequest) GetStream() *StreamOutput { - if x, ok := x.GetOutput().(*WebEgressRequest_Stream); ok { - return x.Stream + if x != nil { + if x, ok := x.Output.(*WebEgressRequest_Stream); ok { + return x.Stream + } } return nil } // Deprecated: Marked as deprecated in livekit_egress.proto. func (x *WebEgressRequest) GetSegments() *SegmentedFileOutput { - if x, ok := x.GetOutput().(*WebEgressRequest_Segments); ok { - return x.Segments + if x != nil { + if x, ok := x.Output.(*WebEgressRequest_Segments); ok { + return x.Segments + } } return nil } -func (m *WebEgressRequest) GetOptions() isWebEgressRequest_Options { - if m != nil { - return m.Options +func (x *WebEgressRequest) GetOptions() isWebEgressRequest_Options { + if x != nil { + return x.Options } return nil } func (x *WebEgressRequest) GetPreset() EncodingOptionsPreset { - if x, ok := x.GetOptions().(*WebEgressRequest_Preset); ok { - return x.Preset + if x != nil { + if x, ok := x.Options.(*WebEgressRequest_Preset); ok { + return x.Preset + } } return EncodingOptionsPreset_H264_720P_30 } func (x *WebEgressRequest) GetAdvanced() *EncodingOptions { - if x, ok := x.GetOptions().(*WebEgressRequest_Advanced); ok { - return x.Advanced + if x != nil { + if x, ok := x.Options.(*WebEgressRequest_Advanced); ok { + return x.Advanced + } } return nil } @@ -866,14 +884,11 @@ func (*WebEgressRequest_Advanced) isWebEgressRequest_Options() {} // record audio and video from a single participant type ParticipantEgressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // required - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // required - ScreenShare bool `protobuf:"varint,3,opt,name=screen_share,json=screenShare,proto3" json:"screen_share,omitempty"` // (default false) - // Types that are assignable to Options: + state protoimpl.MessageState `protogen:"open.v1"` + RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // required + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // required + ScreenShare bool `protobuf:"varint,3,opt,name=screen_share,json=screenShare,proto3" json:"screen_share,omitempty"` // (default false) + // Types that are valid to be assigned to Options: // // *ParticipantEgressRequest_Preset // *ParticipantEgressRequest_Advanced @@ -882,6 +897,8 @@ type ParticipantEgressRequest struct { StreamOutputs []*StreamOutput `protobuf:"bytes,7,rep,name=stream_outputs,json=streamOutputs,proto3" json:"stream_outputs,omitempty"` SegmentOutputs []*SegmentedFileOutput `protobuf:"bytes,8,rep,name=segment_outputs,json=segmentOutputs,proto3" json:"segment_outputs,omitempty"` ImageOutputs []*ImageOutput `protobuf:"bytes,9,rep,name=image_outputs,json=imageOutputs,proto3" json:"image_outputs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ParticipantEgressRequest) Reset() { @@ -935,23 +952,27 @@ func (x *ParticipantEgressRequest) GetScreenShare() bool { return false } -func (m *ParticipantEgressRequest) GetOptions() isParticipantEgressRequest_Options { - if m != nil { - return m.Options +func (x *ParticipantEgressRequest) GetOptions() isParticipantEgressRequest_Options { + if x != nil { + return x.Options } return nil } func (x *ParticipantEgressRequest) GetPreset() EncodingOptionsPreset { - if x, ok := x.GetOptions().(*ParticipantEgressRequest_Preset); ok { - return x.Preset + if x != nil { + if x, ok := x.Options.(*ParticipantEgressRequest_Preset); ok { + return x.Preset + } } return EncodingOptionsPreset_H264_720P_30 } func (x *ParticipantEgressRequest) GetAdvanced() *EncodingOptions { - if x, ok := x.GetOptions().(*ParticipantEgressRequest_Advanced); ok { - return x.Advanced + if x != nil { + if x, ok := x.Options.(*ParticipantEgressRequest_Advanced); ok { + return x.Advanced + } } return nil } @@ -1002,20 +1023,17 @@ func (*ParticipantEgressRequest_Advanced) isParticipantEgressRequest_Options() { // containerize up to one audio and one video track type TrackCompositeEgressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // required - AudioTrackId string `protobuf:"bytes,2,opt,name=audio_track_id,json=audioTrackId,proto3" json:"audio_track_id,omitempty"` // (optional) - VideoTrackId string `protobuf:"bytes,3,opt,name=video_track_id,json=videoTrackId,proto3" json:"video_track_id,omitempty"` // (optional) - // Types that are assignable to Output: + state protoimpl.MessageState `protogen:"open.v1"` + RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // required + AudioTrackId string `protobuf:"bytes,2,opt,name=audio_track_id,json=audioTrackId,proto3" json:"audio_track_id,omitempty"` // (optional) + VideoTrackId string `protobuf:"bytes,3,opt,name=video_track_id,json=videoTrackId,proto3" json:"video_track_id,omitempty"` // (optional) + // Types that are valid to be assigned to Output: // // *TrackCompositeEgressRequest_File // *TrackCompositeEgressRequest_Stream // *TrackCompositeEgressRequest_Segments Output isTrackCompositeEgressRequest_Output `protobuf_oneof:"output"` - // Types that are assignable to Options: + // Types that are valid to be assigned to Options: // // *TrackCompositeEgressRequest_Preset // *TrackCompositeEgressRequest_Advanced @@ -1024,6 +1042,8 @@ type TrackCompositeEgressRequest struct { StreamOutputs []*StreamOutput `protobuf:"bytes,12,rep,name=stream_outputs,json=streamOutputs,proto3" json:"stream_outputs,omitempty"` SegmentOutputs []*SegmentedFileOutput `protobuf:"bytes,13,rep,name=segment_outputs,json=segmentOutputs,proto3" json:"segment_outputs,omitempty"` ImageOutputs []*ImageOutput `protobuf:"bytes,14,rep,name=image_outputs,json=imageOutputs,proto3" json:"image_outputs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TrackCompositeEgressRequest) Reset() { @@ -1077,54 +1097,64 @@ func (x *TrackCompositeEgressRequest) GetVideoTrackId() string { return "" } -func (m *TrackCompositeEgressRequest) GetOutput() isTrackCompositeEgressRequest_Output { - if m != nil { - return m.Output +func (x *TrackCompositeEgressRequest) GetOutput() isTrackCompositeEgressRequest_Output { + if x != nil { + return x.Output } return nil } // Deprecated: Marked as deprecated in livekit_egress.proto. func (x *TrackCompositeEgressRequest) GetFile() *EncodedFileOutput { - if x, ok := x.GetOutput().(*TrackCompositeEgressRequest_File); ok { - return x.File + if x != nil { + if x, ok := x.Output.(*TrackCompositeEgressRequest_File); ok { + return x.File + } } return nil } // Deprecated: Marked as deprecated in livekit_egress.proto. func (x *TrackCompositeEgressRequest) GetStream() *StreamOutput { - if x, ok := x.GetOutput().(*TrackCompositeEgressRequest_Stream); ok { - return x.Stream + if x != nil { + if x, ok := x.Output.(*TrackCompositeEgressRequest_Stream); ok { + return x.Stream + } } return nil } // Deprecated: Marked as deprecated in livekit_egress.proto. func (x *TrackCompositeEgressRequest) GetSegments() *SegmentedFileOutput { - if x, ok := x.GetOutput().(*TrackCompositeEgressRequest_Segments); ok { - return x.Segments + if x != nil { + if x, ok := x.Output.(*TrackCompositeEgressRequest_Segments); ok { + return x.Segments + } } return nil } -func (m *TrackCompositeEgressRequest) GetOptions() isTrackCompositeEgressRequest_Options { - if m != nil { - return m.Options +func (x *TrackCompositeEgressRequest) GetOptions() isTrackCompositeEgressRequest_Options { + if x != nil { + return x.Options } return nil } func (x *TrackCompositeEgressRequest) GetPreset() EncodingOptionsPreset { - if x, ok := x.GetOptions().(*TrackCompositeEgressRequest_Preset); ok { - return x.Preset + if x != nil { + if x, ok := x.Options.(*TrackCompositeEgressRequest_Preset); ok { + return x.Preset + } } return EncodingOptionsPreset_H264_720P_30 } func (x *TrackCompositeEgressRequest) GetAdvanced() *EncodingOptions { - if x, ok := x.GetOptions().(*TrackCompositeEgressRequest_Advanced); ok { - return x.Advanced + if x != nil { + if x, ok := x.Options.(*TrackCompositeEgressRequest_Advanced); ok { + return x.Advanced + } } return nil } @@ -1200,17 +1230,16 @@ func (*TrackCompositeEgressRequest_Advanced) isTrackCompositeEgressRequest_Optio // record tracks individually, without transcoding type TrackEgressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // required - TrackId string `protobuf:"bytes,2,opt,name=track_id,json=trackId,proto3" json:"track_id,omitempty"` // required - // Types that are assignable to Output: + state protoimpl.MessageState `protogen:"open.v1"` + RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // required + TrackId string `protobuf:"bytes,2,opt,name=track_id,json=trackId,proto3" json:"track_id,omitempty"` // required + // Types that are valid to be assigned to Output: // // *TrackEgressRequest_File // *TrackEgressRequest_WebsocketUrl - Output isTrackEgressRequest_Output `protobuf_oneof:"output"` + Output isTrackEgressRequest_Output `protobuf_oneof:"output"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TrackEgressRequest) Reset() { @@ -1257,23 +1286,27 @@ func (x *TrackEgressRequest) GetTrackId() string { return "" } -func (m *TrackEgressRequest) GetOutput() isTrackEgressRequest_Output { - if m != nil { - return m.Output +func (x *TrackEgressRequest) GetOutput() isTrackEgressRequest_Output { + if x != nil { + return x.Output } return nil } func (x *TrackEgressRequest) GetFile() *DirectFileOutput { - if x, ok := x.GetOutput().(*TrackEgressRequest_File); ok { - return x.File + if x != nil { + if x, ok := x.Output.(*TrackEgressRequest_File); ok { + return x.File + } } return nil } func (x *TrackEgressRequest) GetWebsocketUrl() string { - if x, ok := x.GetOutput().(*TrackEgressRequest_WebsocketUrl); ok { - return x.WebsocketUrl + if x != nil { + if x, ok := x.Output.(*TrackEgressRequest_WebsocketUrl); ok { + return x.WebsocketUrl + } } return "" } @@ -1295,20 +1328,19 @@ func (*TrackEgressRequest_File) isTrackEgressRequest_Output() {} func (*TrackEgressRequest_WebsocketUrl) isTrackEgressRequest_Output() {} type EncodedFileOutput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FileType EncodedFileType `protobuf:"varint,1,opt,name=file_type,json=fileType,proto3,enum=livekit.EncodedFileType" json:"file_type,omitempty"` // (optional) - Filepath string `protobuf:"bytes,2,opt,name=filepath,proto3" json:"filepath,omitempty"` // see egress docs for templating (default {room_name}-{time}) - DisableManifest bool `protobuf:"varint,6,opt,name=disable_manifest,json=disableManifest,proto3" json:"disable_manifest,omitempty"` // disable upload of manifest file (default false) - // Types that are assignable to Output: + state protoimpl.MessageState `protogen:"open.v1"` + FileType EncodedFileType `protobuf:"varint,1,opt,name=file_type,json=fileType,proto3,enum=livekit.EncodedFileType" json:"file_type,omitempty"` // (optional) + Filepath string `protobuf:"bytes,2,opt,name=filepath,proto3" json:"filepath,omitempty"` // see egress docs for templating (default {room_name}-{time}) + DisableManifest bool `protobuf:"varint,6,opt,name=disable_manifest,json=disableManifest,proto3" json:"disable_manifest,omitempty"` // disable upload of manifest file (default false) + // Types that are valid to be assigned to Output: // // *EncodedFileOutput_S3 // *EncodedFileOutput_Gcp // *EncodedFileOutput_Azure // *EncodedFileOutput_AliOSS - Output isEncodedFileOutput_Output `protobuf_oneof:"output"` + Output isEncodedFileOutput_Output `protobuf_oneof:"output"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EncodedFileOutput) Reset() { @@ -1362,37 +1394,45 @@ func (x *EncodedFileOutput) GetDisableManifest() bool { return false } -func (m *EncodedFileOutput) GetOutput() isEncodedFileOutput_Output { - if m != nil { - return m.Output +func (x *EncodedFileOutput) GetOutput() isEncodedFileOutput_Output { + if x != nil { + return x.Output } return nil } func (x *EncodedFileOutput) GetS3() *S3Upload { - if x, ok := x.GetOutput().(*EncodedFileOutput_S3); ok { - return x.S3 + if x != nil { + if x, ok := x.Output.(*EncodedFileOutput_S3); ok { + return x.S3 + } } return nil } func (x *EncodedFileOutput) GetGcp() *GCPUpload { - if x, ok := x.GetOutput().(*EncodedFileOutput_Gcp); ok { - return x.Gcp + if x != nil { + if x, ok := x.Output.(*EncodedFileOutput_Gcp); ok { + return x.Gcp + } } return nil } func (x *EncodedFileOutput) GetAzure() *AzureBlobUpload { - if x, ok := x.GetOutput().(*EncodedFileOutput_Azure); ok { - return x.Azure + if x != nil { + if x, ok := x.Output.(*EncodedFileOutput_Azure); ok { + return x.Azure + } } return nil } func (x *EncodedFileOutput) GetAliOSS() *AliOSSUpload { - if x, ok := x.GetOutput().(*EncodedFileOutput_AliOSS); ok { - return x.AliOSS + if x != nil { + if x, ok := x.Output.(*EncodedFileOutput_AliOSS); ok { + return x.AliOSS + } } return nil } @@ -1427,24 +1467,23 @@ func (*EncodedFileOutput_AliOSS) isEncodedFileOutput_Output() {} // Used to generate HLS segments or other kind of segmented output type SegmentedFileOutput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Protocol SegmentedFileProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=livekit.SegmentedFileProtocol" json:"protocol,omitempty"` // (optional) - FilenamePrefix string `protobuf:"bytes,2,opt,name=filename_prefix,json=filenamePrefix,proto3" json:"filename_prefix,omitempty"` // (optional) - PlaylistName string `protobuf:"bytes,3,opt,name=playlist_name,json=playlistName,proto3" json:"playlist_name,omitempty"` // (optional) - LivePlaylistName string `protobuf:"bytes,11,opt,name=live_playlist_name,json=livePlaylistName,proto3" json:"live_playlist_name,omitempty"` // (optional, disabled if not provided). Path of a live playlist - SegmentDuration uint32 `protobuf:"varint,4,opt,name=segment_duration,json=segmentDuration,proto3" json:"segment_duration,omitempty"` // in seconds (optional) - FilenameSuffix SegmentedFileSuffix `protobuf:"varint,10,opt,name=filename_suffix,json=filenameSuffix,proto3,enum=livekit.SegmentedFileSuffix" json:"filename_suffix,omitempty"` // (optional, default INDEX) - DisableManifest bool `protobuf:"varint,8,opt,name=disable_manifest,json=disableManifest,proto3" json:"disable_manifest,omitempty"` // disable upload of manifest file (default false) - // Types that are assignable to Output: + state protoimpl.MessageState `protogen:"open.v1"` + Protocol SegmentedFileProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=livekit.SegmentedFileProtocol" json:"protocol,omitempty"` // (optional) + FilenamePrefix string `protobuf:"bytes,2,opt,name=filename_prefix,json=filenamePrefix,proto3" json:"filename_prefix,omitempty"` // (optional) + PlaylistName string `protobuf:"bytes,3,opt,name=playlist_name,json=playlistName,proto3" json:"playlist_name,omitempty"` // (optional) + LivePlaylistName string `protobuf:"bytes,11,opt,name=live_playlist_name,json=livePlaylistName,proto3" json:"live_playlist_name,omitempty"` // (optional, disabled if not provided). Path of a live playlist + SegmentDuration uint32 `protobuf:"varint,4,opt,name=segment_duration,json=segmentDuration,proto3" json:"segment_duration,omitempty"` // in seconds (optional) + FilenameSuffix SegmentedFileSuffix `protobuf:"varint,10,opt,name=filename_suffix,json=filenameSuffix,proto3,enum=livekit.SegmentedFileSuffix" json:"filename_suffix,omitempty"` // (optional, default INDEX) + DisableManifest bool `protobuf:"varint,8,opt,name=disable_manifest,json=disableManifest,proto3" json:"disable_manifest,omitempty"` // disable upload of manifest file (default false) + // Types that are valid to be assigned to Output: // // *SegmentedFileOutput_S3 // *SegmentedFileOutput_Gcp // *SegmentedFileOutput_Azure // *SegmentedFileOutput_AliOSS - Output isSegmentedFileOutput_Output `protobuf_oneof:"output"` + Output isSegmentedFileOutput_Output `protobuf_oneof:"output"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SegmentedFileOutput) Reset() { @@ -1526,37 +1565,45 @@ func (x *SegmentedFileOutput) GetDisableManifest() bool { return false } -func (m *SegmentedFileOutput) GetOutput() isSegmentedFileOutput_Output { - if m != nil { - return m.Output +func (x *SegmentedFileOutput) GetOutput() isSegmentedFileOutput_Output { + if x != nil { + return x.Output } return nil } func (x *SegmentedFileOutput) GetS3() *S3Upload { - if x, ok := x.GetOutput().(*SegmentedFileOutput_S3); ok { - return x.S3 + if x != nil { + if x, ok := x.Output.(*SegmentedFileOutput_S3); ok { + return x.S3 + } } return nil } func (x *SegmentedFileOutput) GetGcp() *GCPUpload { - if x, ok := x.GetOutput().(*SegmentedFileOutput_Gcp); ok { - return x.Gcp + if x != nil { + if x, ok := x.Output.(*SegmentedFileOutput_Gcp); ok { + return x.Gcp + } } return nil } func (x *SegmentedFileOutput) GetAzure() *AzureBlobUpload { - if x, ok := x.GetOutput().(*SegmentedFileOutput_Azure); ok { - return x.Azure + if x != nil { + if x, ok := x.Output.(*SegmentedFileOutput_Azure); ok { + return x.Azure + } } return nil } func (x *SegmentedFileOutput) GetAliOSS() *AliOSSUpload { - if x, ok := x.GetOutput().(*SegmentedFileOutput_AliOSS); ok { - return x.AliOSS + if x != nil { + if x, ok := x.Output.(*SegmentedFileOutput_AliOSS); ok { + return x.AliOSS + } } return nil } @@ -1590,19 +1637,18 @@ func (*SegmentedFileOutput_Azure) isSegmentedFileOutput_Output() {} func (*SegmentedFileOutput_AliOSS) isSegmentedFileOutput_Output() {} type DirectFileOutput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Filepath string `protobuf:"bytes,1,opt,name=filepath,proto3" json:"filepath,omitempty"` // see egress docs for templating (default {track_id}-{time}) - DisableManifest bool `protobuf:"varint,5,opt,name=disable_manifest,json=disableManifest,proto3" json:"disable_manifest,omitempty"` // disable upload of manifest file (default false) - // Types that are assignable to Output: + state protoimpl.MessageState `protogen:"open.v1"` + Filepath string `protobuf:"bytes,1,opt,name=filepath,proto3" json:"filepath,omitempty"` // see egress docs for templating (default {track_id}-{time}) + DisableManifest bool `protobuf:"varint,5,opt,name=disable_manifest,json=disableManifest,proto3" json:"disable_manifest,omitempty"` // disable upload of manifest file (default false) + // Types that are valid to be assigned to Output: // // *DirectFileOutput_S3 // *DirectFileOutput_Gcp // *DirectFileOutput_Azure // *DirectFileOutput_AliOSS - Output isDirectFileOutput_Output `protobuf_oneof:"output"` + Output isDirectFileOutput_Output `protobuf_oneof:"output"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DirectFileOutput) Reset() { @@ -1649,37 +1695,45 @@ func (x *DirectFileOutput) GetDisableManifest() bool { return false } -func (m *DirectFileOutput) GetOutput() isDirectFileOutput_Output { - if m != nil { - return m.Output +func (x *DirectFileOutput) GetOutput() isDirectFileOutput_Output { + if x != nil { + return x.Output } return nil } func (x *DirectFileOutput) GetS3() *S3Upload { - if x, ok := x.GetOutput().(*DirectFileOutput_S3); ok { - return x.S3 + if x != nil { + if x, ok := x.Output.(*DirectFileOutput_S3); ok { + return x.S3 + } } return nil } func (x *DirectFileOutput) GetGcp() *GCPUpload { - if x, ok := x.GetOutput().(*DirectFileOutput_Gcp); ok { - return x.Gcp + if x != nil { + if x, ok := x.Output.(*DirectFileOutput_Gcp); ok { + return x.Gcp + } } return nil } func (x *DirectFileOutput) GetAzure() *AzureBlobUpload { - if x, ok := x.GetOutput().(*DirectFileOutput_Azure); ok { - return x.Azure + if x != nil { + if x, ok := x.Output.(*DirectFileOutput_Azure); ok { + return x.Azure + } } return nil } func (x *DirectFileOutput) GetAliOSS() *AliOSSUpload { - if x, ok := x.GetOutput().(*DirectFileOutput_AliOSS); ok { - return x.AliOSS + if x != nil { + if x, ok := x.Output.(*DirectFileOutput_AliOSS); ok { + return x.AliOSS + } } return nil } @@ -1713,24 +1767,23 @@ func (*DirectFileOutput_Azure) isDirectFileOutput_Output() {} func (*DirectFileOutput_AliOSS) isDirectFileOutput_Output() {} type ImageOutput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CaptureInterval uint32 `protobuf:"varint,1,opt,name=capture_interval,json=captureInterval,proto3" json:"capture_interval,omitempty"` // in seconds (required) - Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` // (optional, defaults to track width) - Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` // (optional, defaults to track height) - FilenamePrefix string `protobuf:"bytes,4,opt,name=filename_prefix,json=filenamePrefix,proto3" json:"filename_prefix,omitempty"` // (optional) - FilenameSuffix ImageFileSuffix `protobuf:"varint,5,opt,name=filename_suffix,json=filenameSuffix,proto3,enum=livekit.ImageFileSuffix" json:"filename_suffix,omitempty"` // (optional, default INDEX) - ImageCodec ImageCodec `protobuf:"varint,6,opt,name=image_codec,json=imageCodec,proto3,enum=livekit.ImageCodec" json:"image_codec,omitempty"` // (optional) - DisableManifest bool `protobuf:"varint,7,opt,name=disable_manifest,json=disableManifest,proto3" json:"disable_manifest,omitempty"` // disable upload of manifest file (default false) - // Types that are assignable to Output: + state protoimpl.MessageState `protogen:"open.v1"` + CaptureInterval uint32 `protobuf:"varint,1,opt,name=capture_interval,json=captureInterval,proto3" json:"capture_interval,omitempty"` // in seconds (required) + Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` // (optional, defaults to track width) + Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` // (optional, defaults to track height) + FilenamePrefix string `protobuf:"bytes,4,opt,name=filename_prefix,json=filenamePrefix,proto3" json:"filename_prefix,omitempty"` // (optional) + FilenameSuffix ImageFileSuffix `protobuf:"varint,5,opt,name=filename_suffix,json=filenameSuffix,proto3,enum=livekit.ImageFileSuffix" json:"filename_suffix,omitempty"` // (optional, default INDEX) + ImageCodec ImageCodec `protobuf:"varint,6,opt,name=image_codec,json=imageCodec,proto3,enum=livekit.ImageCodec" json:"image_codec,omitempty"` // (optional) + DisableManifest bool `protobuf:"varint,7,opt,name=disable_manifest,json=disableManifest,proto3" json:"disable_manifest,omitempty"` // disable upload of manifest file (default false) + // Types that are valid to be assigned to Output: // // *ImageOutput_S3 // *ImageOutput_Gcp // *ImageOutput_Azure // *ImageOutput_AliOSS - Output isImageOutput_Output `protobuf_oneof:"output"` + Output isImageOutput_Output `protobuf_oneof:"output"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ImageOutput) Reset() { @@ -1812,37 +1865,45 @@ func (x *ImageOutput) GetDisableManifest() bool { return false } -func (m *ImageOutput) GetOutput() isImageOutput_Output { - if m != nil { - return m.Output +func (x *ImageOutput) GetOutput() isImageOutput_Output { + if x != nil { + return x.Output } return nil } func (x *ImageOutput) GetS3() *S3Upload { - if x, ok := x.GetOutput().(*ImageOutput_S3); ok { - return x.S3 + if x != nil { + if x, ok := x.Output.(*ImageOutput_S3); ok { + return x.S3 + } } return nil } func (x *ImageOutput) GetGcp() *GCPUpload { - if x, ok := x.GetOutput().(*ImageOutput_Gcp); ok { - return x.Gcp + if x != nil { + if x, ok := x.Output.(*ImageOutput_Gcp); ok { + return x.Gcp + } } return nil } func (x *ImageOutput) GetAzure() *AzureBlobUpload { - if x, ok := x.GetOutput().(*ImageOutput_Azure); ok { - return x.Azure + if x != nil { + if x, ok := x.Output.(*ImageOutput_Azure); ok { + return x.Azure + } } return nil } func (x *ImageOutput) GetAliOSS() *AliOSSUpload { - if x, ok := x.GetOutput().(*ImageOutput_AliOSS); ok { - return x.AliOSS + if x != nil { + if x, ok := x.Output.(*ImageOutput_AliOSS); ok { + return x.AliOSS + } } return nil } @@ -1876,21 +1937,20 @@ func (*ImageOutput_Azure) isImageOutput_Output() {} func (*ImageOutput_AliOSS) isImageOutput_Output() {} type S3Upload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` - Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` - SessionToken string `protobuf:"bytes,11,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` - Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` - Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - Bucket string `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"` - ForcePathStyle bool `protobuf:"varint,6,opt,name=force_path_style,json=forcePathStyle,proto3" json:"force_path_style,omitempty"` - Metadata map[string]string `protobuf:"bytes,7,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Tagging string `protobuf:"bytes,8,opt,name=tagging,proto3" json:"tagging,omitempty"` - ContentDisposition string `protobuf:"bytes,9,opt,name=content_disposition,json=contentDisposition,proto3" json:"content_disposition,omitempty"` // Content-Disposition header - Proxy *ProxyConfig `protobuf:"bytes,10,opt,name=proxy,proto3" json:"proxy,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` + Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` + SessionToken string `protobuf:"bytes,11,opt,name=session_token,json=sessionToken,proto3" json:"session_token,omitempty"` + Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` + Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + Bucket string `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"` + ForcePathStyle bool `protobuf:"varint,6,opt,name=force_path_style,json=forcePathStyle,proto3" json:"force_path_style,omitempty"` + Metadata map[string]string `protobuf:"bytes,7,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Tagging string `protobuf:"bytes,8,opt,name=tagging,proto3" json:"tagging,omitempty"` + ContentDisposition string `protobuf:"bytes,9,opt,name=content_disposition,json=contentDisposition,proto3" json:"content_disposition,omitempty"` // Content-Disposition header + Proxy *ProxyConfig `protobuf:"bytes,10,opt,name=proxy,proto3" json:"proxy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *S3Upload) Reset() { @@ -2001,14 +2061,13 @@ func (x *S3Upload) GetProxy() *ProxyConfig { } type GCPUpload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // service account credentials serialized in JSON "credentials.json" - Credentials string `protobuf:"bytes,1,opt,name=credentials,proto3" json:"credentials,omitempty"` - Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` - Proxy *ProxyConfig `protobuf:"bytes,3,opt,name=proxy,proto3" json:"proxy,omitempty"` + Credentials string `protobuf:"bytes,1,opt,name=credentials,proto3" json:"credentials,omitempty"` + Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` + Proxy *ProxyConfig `protobuf:"bytes,3,opt,name=proxy,proto3" json:"proxy,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GCPUpload) Reset() { @@ -2063,13 +2122,12 @@ func (x *GCPUpload) GetProxy() *ProxyConfig { } type AzureBlobUpload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccountName string `protobuf:"bytes,1,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` + AccountKey string `protobuf:"bytes,2,opt,name=account_key,json=accountKey,proto3" json:"account_key,omitempty"` + ContainerName string `protobuf:"bytes,3,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"` unknownFields protoimpl.UnknownFields - - AccountName string `protobuf:"bytes,1,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"` - AccountKey string `protobuf:"bytes,2,opt,name=account_key,json=accountKey,proto3" json:"account_key,omitempty"` - ContainerName string `protobuf:"bytes,3,opt,name=container_name,json=containerName,proto3" json:"container_name,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AzureBlobUpload) Reset() { @@ -2124,15 +2182,14 @@ func (x *AzureBlobUpload) GetContainerName() string { } type AliOSSUpload struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` + Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` + Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` + Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` + Bucket string `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"` unknownFields protoimpl.UnknownFields - - AccessKey string `protobuf:"bytes,1,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` - Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` - Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` - Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` - Bucket string `protobuf:"bytes,5,opt,name=bucket,proto3" json:"bucket,omitempty"` + sizeCache protoimpl.SizeCache } func (x *AliOSSUpload) Reset() { @@ -2201,13 +2258,12 @@ func (x *AliOSSUpload) GetBucket() string { } type ProxyConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` + Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` unknownFields protoimpl.UnknownFields - - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` - Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ProxyConfig) Reset() { @@ -2262,12 +2318,11 @@ func (x *ProxyConfig) GetPassword() string { } type StreamOutput struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Protocol StreamProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=livekit.StreamProtocol" json:"protocol,omitempty"` // required + Urls []string `protobuf:"bytes,2,rep,name=urls,proto3" json:"urls,omitempty"` // required unknownFields protoimpl.UnknownFields - - Protocol StreamProtocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=livekit.StreamProtocol" json:"protocol,omitempty"` // required - Urls []string `protobuf:"bytes,2,rep,name=urls,proto3" json:"urls,omitempty"` // required + sizeCache protoimpl.SizeCache } func (x *StreamOutput) Reset() { @@ -2315,22 +2370,21 @@ func (x *StreamOutput) GetUrls() []string { } type EncodingOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Width int32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` // (default 1920) - Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // (default 1080) - Depth int32 `protobuf:"varint,3,opt,name=depth,proto3" json:"depth,omitempty"` // (default 24) - Framerate int32 `protobuf:"varint,4,opt,name=framerate,proto3" json:"framerate,omitempty"` // (default 30) - AudioCodec AudioCodec `protobuf:"varint,5,opt,name=audio_codec,json=audioCodec,proto3,enum=livekit.AudioCodec" json:"audio_codec,omitempty"` // (default OPUS) - AudioBitrate int32 `protobuf:"varint,6,opt,name=audio_bitrate,json=audioBitrate,proto3" json:"audio_bitrate,omitempty"` // (default 128) - AudioQuality int32 `protobuf:"varint,11,opt,name=audio_quality,json=audioQuality,proto3" json:"audio_quality,omitempty"` // quality setting on audio encoder - AudioFrequency int32 `protobuf:"varint,7,opt,name=audio_frequency,json=audioFrequency,proto3" json:"audio_frequency,omitempty"` // (default 44100) - VideoCodec VideoCodec `protobuf:"varint,8,opt,name=video_codec,json=videoCodec,proto3,enum=livekit.VideoCodec" json:"video_codec,omitempty"` // (default H264_MAIN) - VideoBitrate int32 `protobuf:"varint,9,opt,name=video_bitrate,json=videoBitrate,proto3" json:"video_bitrate,omitempty"` // (default 4500) - VideoQuality int32 `protobuf:"varint,12,opt,name=video_quality,json=videoQuality,proto3" json:"video_quality,omitempty"` // quality setting on video encoder - KeyFrameInterval float64 `protobuf:"fixed64,10,opt,name=key_frame_interval,json=keyFrameInterval,proto3" json:"key_frame_interval,omitempty"` // in seconds (default 4s for streaming, segment duration for segmented output, encoder default for files) + state protoimpl.MessageState `protogen:"open.v1"` + Width int32 `protobuf:"varint,1,opt,name=width,proto3" json:"width,omitempty"` // (default 1920) + Height int32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // (default 1080) + Depth int32 `protobuf:"varint,3,opt,name=depth,proto3" json:"depth,omitempty"` // (default 24) + Framerate int32 `protobuf:"varint,4,opt,name=framerate,proto3" json:"framerate,omitempty"` // (default 30) + AudioCodec AudioCodec `protobuf:"varint,5,opt,name=audio_codec,json=audioCodec,proto3,enum=livekit.AudioCodec" json:"audio_codec,omitempty"` // (default OPUS) + AudioBitrate int32 `protobuf:"varint,6,opt,name=audio_bitrate,json=audioBitrate,proto3" json:"audio_bitrate,omitempty"` // (default 128) + AudioQuality int32 `protobuf:"varint,11,opt,name=audio_quality,json=audioQuality,proto3" json:"audio_quality,omitempty"` // quality setting on audio encoder + AudioFrequency int32 `protobuf:"varint,7,opt,name=audio_frequency,json=audioFrequency,proto3" json:"audio_frequency,omitempty"` // (default 44100) + VideoCodec VideoCodec `protobuf:"varint,8,opt,name=video_codec,json=videoCodec,proto3,enum=livekit.VideoCodec" json:"video_codec,omitempty"` // (default H264_MAIN) + VideoBitrate int32 `protobuf:"varint,9,opt,name=video_bitrate,json=videoBitrate,proto3" json:"video_bitrate,omitempty"` // (default 4500) + VideoQuality int32 `protobuf:"varint,12,opt,name=video_quality,json=videoQuality,proto3" json:"video_quality,omitempty"` // quality setting on video encoder + KeyFrameInterval float64 `protobuf:"fixed64,10,opt,name=key_frame_interval,json=keyFrameInterval,proto3" json:"key_frame_interval,omitempty"` // in seconds (default 4s for streaming, segment duration for segmented output, encoder default for files) + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EncodingOptions) Reset() { @@ -2448,12 +2502,11 @@ func (x *EncodingOptions) GetKeyFrameInterval() float64 { } type UpdateLayoutRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"` + Layout string `protobuf:"bytes,2,opt,name=layout,proto3" json:"layout,omitempty"` unknownFields protoimpl.UnknownFields - - EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"` - Layout string `protobuf:"bytes,2,opt,name=layout,proto3" json:"layout,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateLayoutRequest) Reset() { @@ -2501,13 +2554,12 @@ func (x *UpdateLayoutRequest) GetLayout() string { } type UpdateStreamRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"` - AddOutputUrls []string `protobuf:"bytes,2,rep,name=add_output_urls,json=addOutputUrls,proto3" json:"add_output_urls,omitempty"` - RemoveOutputUrls []string `protobuf:"bytes,3,rep,name=remove_output_urls,json=removeOutputUrls,proto3" json:"remove_output_urls,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"` + AddOutputUrls []string `protobuf:"bytes,2,rep,name=add_output_urls,json=addOutputUrls,proto3" json:"add_output_urls,omitempty"` + RemoveOutputUrls []string `protobuf:"bytes,3,rep,name=remove_output_urls,json=removeOutputUrls,proto3" json:"remove_output_urls,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateStreamRequest) Reset() { @@ -2562,13 +2614,12 @@ func (x *UpdateStreamRequest) GetRemoveOutputUrls() []string { } type ListEgressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // (optional, filter by room name) + EgressId string `protobuf:"bytes,2,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"` // (optional, filter by egress ID) + Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"` // (optional, list active egress only) unknownFields protoimpl.UnknownFields - - RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // (optional, filter by room name) - EgressId string `protobuf:"bytes,2,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"` // (optional, filter by egress ID) - Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"` // (optional, list active egress only) + sizeCache protoimpl.SizeCache } func (x *ListEgressRequest) Reset() { @@ -2623,11 +2674,10 @@ func (x *ListEgressRequest) GetActive() bool { } type ListEgressResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Items []*EgressInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields - - Items []*EgressInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListEgressResponse) Reset() { @@ -2668,11 +2718,10 @@ func (x *ListEgressResponse) GetItems() []*EgressInfo { } type StopEgressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"` unknownFields protoimpl.UnknownFields - - EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StopEgressRequest) Reset() { @@ -2713,21 +2762,18 @@ func (x *StopEgressRequest) GetEgressId() string { } type EgressInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"` - RoomId string `protobuf:"bytes,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` - RoomName string `protobuf:"bytes,13,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` - Status EgressStatus `protobuf:"varint,3,opt,name=status,proto3,enum=livekit.EgressStatus" json:"status,omitempty"` - StartedAt int64 `protobuf:"varint,10,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - EndedAt int64 `protobuf:"varint,11,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` - UpdatedAt int64 `protobuf:"varint,18,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - Details string `protobuf:"bytes,21,opt,name=details,proto3" json:"details,omitempty"` - Error string `protobuf:"bytes,9,opt,name=error,proto3" json:"error,omitempty"` - ErrorCode int32 `protobuf:"varint,22,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` - // Types that are assignable to Request: + state protoimpl.MessageState `protogen:"open.v1"` + EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"` + RoomId string `protobuf:"bytes,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` + RoomName string `protobuf:"bytes,13,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` + Status EgressStatus `protobuf:"varint,3,opt,name=status,proto3,enum=livekit.EgressStatus" json:"status,omitempty"` + StartedAt int64 `protobuf:"varint,10,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + EndedAt int64 `protobuf:"varint,11,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` + UpdatedAt int64 `protobuf:"varint,18,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + Details string `protobuf:"bytes,21,opt,name=details,proto3" json:"details,omitempty"` + Error string `protobuf:"bytes,9,opt,name=error,proto3" json:"error,omitempty"` + ErrorCode int32 `protobuf:"varint,22,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"` + // Types that are valid to be assigned to Request: // // *EgressInfo_RoomComposite // *EgressInfo_Web @@ -2735,7 +2781,7 @@ type EgressInfo struct { // *EgressInfo_TrackComposite // *EgressInfo_Track Request isEgressInfo_Request `protobuf_oneof:"request"` - // Types that are assignable to Result: + // Types that are valid to be assigned to Result: // // *EgressInfo_Stream // *EgressInfo_File @@ -2747,6 +2793,8 @@ type EgressInfo struct { ImageResults []*ImagesInfo `protobuf:"bytes,20,rep,name=image_results,json=imageResults,proto3" json:"image_results,omitempty"` ManifestLocation string `protobuf:"bytes,23,opt,name=manifest_location,json=manifestLocation,proto3" json:"manifest_location,omitempty"` BackupStorageUsed bool `protobuf:"varint,25,opt,name=backup_storage_used,json=backupStorageUsed,proto3" json:"backup_storage_used,omitempty"` // next ID: 26 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EgressInfo) Reset() { @@ -2849,75 +2897,91 @@ func (x *EgressInfo) GetErrorCode() int32 { return 0 } -func (m *EgressInfo) GetRequest() isEgressInfo_Request { - if m != nil { - return m.Request +func (x *EgressInfo) GetRequest() isEgressInfo_Request { + if x != nil { + return x.Request } return nil } func (x *EgressInfo) GetRoomComposite() *RoomCompositeEgressRequest { - if x, ok := x.GetRequest().(*EgressInfo_RoomComposite); ok { - return x.RoomComposite + if x != nil { + if x, ok := x.Request.(*EgressInfo_RoomComposite); ok { + return x.RoomComposite + } } return nil } func (x *EgressInfo) GetWeb() *WebEgressRequest { - if x, ok := x.GetRequest().(*EgressInfo_Web); ok { - return x.Web + if x != nil { + if x, ok := x.Request.(*EgressInfo_Web); ok { + return x.Web + } } return nil } func (x *EgressInfo) GetParticipant() *ParticipantEgressRequest { - if x, ok := x.GetRequest().(*EgressInfo_Participant); ok { - return x.Participant + if x != nil { + if x, ok := x.Request.(*EgressInfo_Participant); ok { + return x.Participant + } } return nil } func (x *EgressInfo) GetTrackComposite() *TrackCompositeEgressRequest { - if x, ok := x.GetRequest().(*EgressInfo_TrackComposite); ok { - return x.TrackComposite + if x != nil { + if x, ok := x.Request.(*EgressInfo_TrackComposite); ok { + return x.TrackComposite + } } return nil } func (x *EgressInfo) GetTrack() *TrackEgressRequest { - if x, ok := x.GetRequest().(*EgressInfo_Track); ok { - return x.Track + if x != nil { + if x, ok := x.Request.(*EgressInfo_Track); ok { + return x.Track + } } return nil } -func (m *EgressInfo) GetResult() isEgressInfo_Result { - if m != nil { - return m.Result +func (x *EgressInfo) GetResult() isEgressInfo_Result { + if x != nil { + return x.Result } return nil } // Deprecated: Marked as deprecated in livekit_egress.proto. func (x *EgressInfo) GetStream() *StreamInfoList { - if x, ok := x.GetResult().(*EgressInfo_Stream); ok { - return x.Stream + if x != nil { + if x, ok := x.Result.(*EgressInfo_Stream); ok { + return x.Stream + } } return nil } // Deprecated: Marked as deprecated in livekit_egress.proto. func (x *EgressInfo) GetFile() *FileInfo { - if x, ok := x.GetResult().(*EgressInfo_File); ok { - return x.File + if x != nil { + if x, ok := x.Result.(*EgressInfo_File); ok { + return x.File + } } return nil } // Deprecated: Marked as deprecated in livekit_egress.proto. func (x *EgressInfo) GetSegments() *SegmentsInfo { - if x, ok := x.GetResult().(*EgressInfo_Segments); ok { - return x.Segments + if x != nil { + if x, ok := x.Result.(*EgressInfo_Segments); ok { + return x.Segments + } } return nil } @@ -3025,11 +3089,10 @@ func (*EgressInfo_Segments) isEgressInfo_Result() {} // Deprecated: Marked as deprecated in livekit_egress.proto. type StreamInfoList struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Info []*StreamInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"` unknownFields protoimpl.UnknownFields - - Info []*StreamInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StreamInfoList) Reset() { @@ -3070,16 +3133,15 @@ func (x *StreamInfoList) GetInfo() []*StreamInfo { } type StreamInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` + StartedAt int64 `protobuf:"varint,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + EndedAt int64 `protobuf:"varint,3,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` + Duration int64 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"` + Status StreamInfo_Status `protobuf:"varint,5,opt,name=status,proto3,enum=livekit.StreamInfo_Status" json:"status,omitempty"` + Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields - - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - StartedAt int64 `protobuf:"varint,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - EndedAt int64 `protobuf:"varint,3,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` - Duration int64 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"` - Status StreamInfo_Status `protobuf:"varint,5,opt,name=status,proto3,enum=livekit.StreamInfo_Status" json:"status,omitempty"` - Error string `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StreamInfo) Reset() { @@ -3155,16 +3217,15 @@ func (x *StreamInfo) GetError() string { } type FileInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` + StartedAt int64 `protobuf:"varint,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + EndedAt int64 `protobuf:"varint,3,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` + Duration int64 `protobuf:"varint,6,opt,name=duration,proto3" json:"duration,omitempty"` + Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` + Location string `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"` unknownFields protoimpl.UnknownFields - - Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` - StartedAt int64 `protobuf:"varint,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - EndedAt int64 `protobuf:"varint,3,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` - Duration int64 `protobuf:"varint,6,opt,name=duration,proto3" json:"duration,omitempty"` - Size int64 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` - Location string `protobuf:"bytes,5,opt,name=location,proto3" json:"location,omitempty"` + sizeCache protoimpl.SizeCache } func (x *FileInfo) Reset() { @@ -3240,19 +3301,18 @@ func (x *FileInfo) GetLocation() string { } type SegmentsInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PlaylistName string `protobuf:"bytes,1,opt,name=playlist_name,json=playlistName,proto3" json:"playlist_name,omitempty"` - LivePlaylistName string `protobuf:"bytes,8,opt,name=live_playlist_name,json=livePlaylistName,proto3" json:"live_playlist_name,omitempty"` - Duration int64 `protobuf:"varint,2,opt,name=duration,proto3" json:"duration,omitempty"` - Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` - PlaylistLocation string `protobuf:"bytes,4,opt,name=playlist_location,json=playlistLocation,proto3" json:"playlist_location,omitempty"` - LivePlaylistLocation string `protobuf:"bytes,9,opt,name=live_playlist_location,json=livePlaylistLocation,proto3" json:"live_playlist_location,omitempty"` - SegmentCount int64 `protobuf:"varint,5,opt,name=segment_count,json=segmentCount,proto3" json:"segment_count,omitempty"` - StartedAt int64 `protobuf:"varint,6,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - EndedAt int64 `protobuf:"varint,7,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PlaylistName string `protobuf:"bytes,1,opt,name=playlist_name,json=playlistName,proto3" json:"playlist_name,omitempty"` + LivePlaylistName string `protobuf:"bytes,8,opt,name=live_playlist_name,json=livePlaylistName,proto3" json:"live_playlist_name,omitempty"` + Duration int64 `protobuf:"varint,2,opt,name=duration,proto3" json:"duration,omitempty"` + Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` + PlaylistLocation string `protobuf:"bytes,4,opt,name=playlist_location,json=playlistLocation,proto3" json:"playlist_location,omitempty"` + LivePlaylistLocation string `protobuf:"bytes,9,opt,name=live_playlist_location,json=livePlaylistLocation,proto3" json:"live_playlist_location,omitempty"` + SegmentCount int64 `protobuf:"varint,5,opt,name=segment_count,json=segmentCount,proto3" json:"segment_count,omitempty"` + StartedAt int64 `protobuf:"varint,6,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + EndedAt int64 `protobuf:"varint,7,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SegmentsInfo) Reset() { @@ -3349,14 +3409,13 @@ func (x *SegmentsInfo) GetEndedAt() int64 { } type ImagesInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FilenamePrefix string `protobuf:"bytes,4,opt,name=filename_prefix,json=filenamePrefix,proto3" json:"filename_prefix,omitempty"` - ImageCount int64 `protobuf:"varint,1,opt,name=image_count,json=imageCount,proto3" json:"image_count,omitempty"` - StartedAt int64 `protobuf:"varint,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - EndedAt int64 `protobuf:"varint,3,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + FilenamePrefix string `protobuf:"bytes,4,opt,name=filename_prefix,json=filenamePrefix,proto3" json:"filename_prefix,omitempty"` + ImageCount int64 `protobuf:"varint,1,opt,name=image_count,json=imageCount,proto3" json:"image_count,omitempty"` + StartedAt int64 `protobuf:"varint,2,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + EndedAt int64 `protobuf:"varint,3,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ImagesInfo) Reset() { @@ -3418,17 +3477,16 @@ func (x *ImagesInfo) GetEndedAt() int64 { } type AutoParticipantEgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Options: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Options: // // *AutoParticipantEgress_Preset // *AutoParticipantEgress_Advanced Options isAutoParticipantEgress_Options `protobuf_oneof:"options"` FileOutputs []*EncodedFileOutput `protobuf:"bytes,3,rep,name=file_outputs,json=fileOutputs,proto3" json:"file_outputs,omitempty"` SegmentOutputs []*SegmentedFileOutput `protobuf:"bytes,4,rep,name=segment_outputs,json=segmentOutputs,proto3" json:"segment_outputs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AutoParticipantEgress) Reset() { @@ -3461,23 +3519,27 @@ func (*AutoParticipantEgress) Descriptor() ([]byte, []int) { return file_livekit_egress_proto_rawDescGZIP(), []int{27} } -func (m *AutoParticipantEgress) GetOptions() isAutoParticipantEgress_Options { - if m != nil { - return m.Options +func (x *AutoParticipantEgress) GetOptions() isAutoParticipantEgress_Options { + if x != nil { + return x.Options } return nil } func (x *AutoParticipantEgress) GetPreset() EncodingOptionsPreset { - if x, ok := x.GetOptions().(*AutoParticipantEgress_Preset); ok { - return x.Preset + if x != nil { + if x, ok := x.Options.(*AutoParticipantEgress_Preset); ok { + return x.Preset + } } return EncodingOptionsPreset_H264_720P_30 } func (x *AutoParticipantEgress) GetAdvanced() *EncodingOptions { - if x, ok := x.GetOptions().(*AutoParticipantEgress_Advanced); ok { - return x.Advanced + if x != nil { + if x, ok := x.Options.(*AutoParticipantEgress_Advanced); ok { + return x.Advanced + } } return nil } @@ -3513,19 +3575,18 @@ func (*AutoParticipantEgress_Preset) isAutoParticipantEgress_Options() {} func (*AutoParticipantEgress_Advanced) isAutoParticipantEgress_Options() {} type AutoTrackEgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Filepath string `protobuf:"bytes,1,opt,name=filepath,proto3" json:"filepath,omitempty"` // see docs for templating (default {track_id}-{time}) - DisableManifest bool `protobuf:"varint,5,opt,name=disable_manifest,json=disableManifest,proto3" json:"disable_manifest,omitempty"` // disables upload of json manifest file (default false) - // Types that are assignable to Output: + state protoimpl.MessageState `protogen:"open.v1"` + Filepath string `protobuf:"bytes,1,opt,name=filepath,proto3" json:"filepath,omitempty"` // see docs for templating (default {track_id}-{time}) + DisableManifest bool `protobuf:"varint,5,opt,name=disable_manifest,json=disableManifest,proto3" json:"disable_manifest,omitempty"` // disables upload of json manifest file (default false) + // Types that are valid to be assigned to Output: // // *AutoTrackEgress_S3 // *AutoTrackEgress_Gcp // *AutoTrackEgress_Azure // *AutoTrackEgress_AliOSS - Output isAutoTrackEgress_Output `protobuf_oneof:"output"` + Output isAutoTrackEgress_Output `protobuf_oneof:"output"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AutoTrackEgress) Reset() { @@ -3572,37 +3633,45 @@ func (x *AutoTrackEgress) GetDisableManifest() bool { return false } -func (m *AutoTrackEgress) GetOutput() isAutoTrackEgress_Output { - if m != nil { - return m.Output +func (x *AutoTrackEgress) GetOutput() isAutoTrackEgress_Output { + if x != nil { + return x.Output } return nil } func (x *AutoTrackEgress) GetS3() *S3Upload { - if x, ok := x.GetOutput().(*AutoTrackEgress_S3); ok { - return x.S3 + if x != nil { + if x, ok := x.Output.(*AutoTrackEgress_S3); ok { + return x.S3 + } } return nil } func (x *AutoTrackEgress) GetGcp() *GCPUpload { - if x, ok := x.GetOutput().(*AutoTrackEgress_Gcp); ok { - return x.Gcp + if x != nil { + if x, ok := x.Output.(*AutoTrackEgress_Gcp); ok { + return x.Gcp + } } return nil } func (x *AutoTrackEgress) GetAzure() *AzureBlobUpload { - if x, ok := x.GetOutput().(*AutoTrackEgress_Azure); ok { - return x.Azure + if x != nil { + if x, ok := x.Output.(*AutoTrackEgress_Azure); ok { + return x.Azure + } } return nil } func (x *AutoTrackEgress) GetAliOSS() *AliOSSUpload { - if x, ok := x.GetOutput().(*AutoTrackEgress_AliOSS); ok { - return x.AliOSS + if x != nil { + if x, ok := x.Output.(*AutoTrackEgress_AliOSS); ok { + return x.AliOSS + } } return nil } diff --git a/livekit/livekit_ingress.pb.go b/livekit/livekit_ingress.pb.go index 89f888c1..26b9e44e 100644 --- a/livekit/livekit_ingress.pb.go +++ b/livekit/livekit_ingress.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: livekit_ingress.proto @@ -255,11 +255,8 @@ func (IngressState_Status) EnumDescriptor() ([]byte, []int) { } type CreateIngressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - InputType IngressInput `protobuf:"varint,1,opt,name=input_type,json=inputType,proto3,enum=livekit.IngressInput" json:"input_type,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + InputType IngressInput `protobuf:"varint,1,opt,name=input_type,json=inputType,proto3,enum=livekit.IngressInput" json:"input_type,omitempty"` // Where to pull media from, only for URL input type Url string `protobuf:"bytes,9,opt,name=url,proto3" json:"url,omitempty"` // User provided identifier for the ingress @@ -280,6 +277,8 @@ type CreateIngressRequest struct { EnableTranscoding *bool `protobuf:"varint,11,opt,name=enable_transcoding,json=enableTranscoding,proto3,oneof" json:"enable_transcoding,omitempty"` Audio *IngressAudioOptions `protobuf:"bytes,6,opt,name=audio,proto3" json:"audio,omitempty"` Video *IngressVideoOptions `protobuf:"bytes,7,opt,name=video,proto3" json:"video,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateIngressRequest) Reset() { @@ -391,17 +390,16 @@ func (x *CreateIngressRequest) GetVideo() *IngressVideoOptions { } type IngressAudioOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Source TrackSource `protobuf:"varint,2,opt,name=source,proto3,enum=livekit.TrackSource" json:"source,omitempty"` - // Types that are assignable to EncodingOptions: + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Source TrackSource `protobuf:"varint,2,opt,name=source,proto3,enum=livekit.TrackSource" json:"source,omitempty"` + // Types that are valid to be assigned to EncodingOptions: // // *IngressAudioOptions_Preset // *IngressAudioOptions_Options EncodingOptions isIngressAudioOptions_EncodingOptions `protobuf_oneof:"encoding_options"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *IngressAudioOptions) Reset() { @@ -448,23 +446,27 @@ func (x *IngressAudioOptions) GetSource() TrackSource { return TrackSource_UNKNOWN } -func (m *IngressAudioOptions) GetEncodingOptions() isIngressAudioOptions_EncodingOptions { - if m != nil { - return m.EncodingOptions +func (x *IngressAudioOptions) GetEncodingOptions() isIngressAudioOptions_EncodingOptions { + if x != nil { + return x.EncodingOptions } return nil } func (x *IngressAudioOptions) GetPreset() IngressAudioEncodingPreset { - if x, ok := x.GetEncodingOptions().(*IngressAudioOptions_Preset); ok { - return x.Preset + if x != nil { + if x, ok := x.EncodingOptions.(*IngressAudioOptions_Preset); ok { + return x.Preset + } } return IngressAudioEncodingPreset_OPUS_STEREO_96KBPS } func (x *IngressAudioOptions) GetOptions() *IngressAudioEncodingOptions { - if x, ok := x.GetEncodingOptions().(*IngressAudioOptions_Options); ok { - return x.Options + if x != nil { + if x, ok := x.EncodingOptions.(*IngressAudioOptions_Options); ok { + return x.Options + } } return nil } @@ -486,17 +488,16 @@ func (*IngressAudioOptions_Preset) isIngressAudioOptions_EncodingOptions() {} func (*IngressAudioOptions_Options) isIngressAudioOptions_EncodingOptions() {} type IngressVideoOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Source TrackSource `protobuf:"varint,2,opt,name=source,proto3,enum=livekit.TrackSource" json:"source,omitempty"` - // Types that are assignable to EncodingOptions: + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Source TrackSource `protobuf:"varint,2,opt,name=source,proto3,enum=livekit.TrackSource" json:"source,omitempty"` + // Types that are valid to be assigned to EncodingOptions: // // *IngressVideoOptions_Preset // *IngressVideoOptions_Options EncodingOptions isIngressVideoOptions_EncodingOptions `protobuf_oneof:"encoding_options"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *IngressVideoOptions) Reset() { @@ -543,23 +544,27 @@ func (x *IngressVideoOptions) GetSource() TrackSource { return TrackSource_UNKNOWN } -func (m *IngressVideoOptions) GetEncodingOptions() isIngressVideoOptions_EncodingOptions { - if m != nil { - return m.EncodingOptions +func (x *IngressVideoOptions) GetEncodingOptions() isIngressVideoOptions_EncodingOptions { + if x != nil { + return x.EncodingOptions } return nil } func (x *IngressVideoOptions) GetPreset() IngressVideoEncodingPreset { - if x, ok := x.GetEncodingOptions().(*IngressVideoOptions_Preset); ok { - return x.Preset + if x != nil { + if x, ok := x.EncodingOptions.(*IngressVideoOptions_Preset); ok { + return x.Preset + } } return IngressVideoEncodingPreset_H264_720P_30FPS_3_LAYERS } func (x *IngressVideoOptions) GetOptions() *IngressVideoEncodingOptions { - if x, ok := x.GetEncodingOptions().(*IngressVideoOptions_Options); ok { - return x.Options + if x != nil { + if x, ok := x.EncodingOptions.(*IngressVideoOptions_Options); ok { + return x.Options + } } return nil } @@ -581,15 +586,14 @@ func (*IngressVideoOptions_Preset) isIngressVideoOptions_EncodingOptions() {} func (*IngressVideoOptions_Options) isIngressVideoOptions_EncodingOptions() {} type IngressAudioEncodingOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // desired audio codec to publish to room - AudioCodec AudioCodec `protobuf:"varint,1,opt,name=audio_codec,json=audioCodec,proto3,enum=livekit.AudioCodec" json:"audio_codec,omitempty"` - Bitrate uint32 `protobuf:"varint,2,opt,name=bitrate,proto3" json:"bitrate,omitempty"` - DisableDtx bool `protobuf:"varint,3,opt,name=disable_dtx,json=disableDtx,proto3" json:"disable_dtx,omitempty"` - Channels uint32 `protobuf:"varint,4,opt,name=channels,proto3" json:"channels,omitempty"` + AudioCodec AudioCodec `protobuf:"varint,1,opt,name=audio_codec,json=audioCodec,proto3,enum=livekit.AudioCodec" json:"audio_codec,omitempty"` + Bitrate uint32 `protobuf:"varint,2,opt,name=bitrate,proto3" json:"bitrate,omitempty"` + DisableDtx bool `protobuf:"varint,3,opt,name=disable_dtx,json=disableDtx,proto3" json:"disable_dtx,omitempty"` + Channels uint32 `protobuf:"varint,4,opt,name=channels,proto3" json:"channels,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *IngressAudioEncodingOptions) Reset() { @@ -651,15 +655,14 @@ func (x *IngressAudioEncodingOptions) GetChannels() uint32 { } type IngressVideoEncodingOptions struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // desired codec to publish to room VideoCodec VideoCodec `protobuf:"varint,1,opt,name=video_codec,json=videoCodec,proto3,enum=livekit.VideoCodec" json:"video_codec,omitempty"` FrameRate float64 `protobuf:"fixed64,2,opt,name=frame_rate,json=frameRate,proto3" json:"frame_rate,omitempty"` // simulcast layers to publish, when empty, should usually be set to layers at 1/2 and 1/4 of the dimensions - Layers []*VideoLayer `protobuf:"bytes,3,rep,name=layers,proto3" json:"layers,omitempty"` + Layers []*VideoLayer `protobuf:"bytes,3,rep,name=layers,proto3" json:"layers,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *IngressVideoEncodingOptions) Reset() { @@ -714,14 +717,11 @@ func (x *IngressVideoEncodingOptions) GetLayers() []*VideoLayer { } type IngressInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - StreamKey string `protobuf:"bytes,3,opt,name=stream_key,json=streamKey,proto3" json:"stream_key,omitempty"` - Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // URL to point the encoder to for push (RTMP, WHIP), or location to pull media from for pull (URL) + state protoimpl.MessageState `protogen:"open.v1"` + IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + StreamKey string `protobuf:"bytes,3,opt,name=stream_key,json=streamKey,proto3" json:"stream_key,omitempty"` + Url string `protobuf:"bytes,4,opt,name=url,proto3" json:"url,omitempty"` // URL to point the encoder to for push (RTMP, WHIP), or location to pull media from for pull (URL) // for RTMP input, it'll be a rtmp:// URL // for FILE input, it'll be a http:// URL // for SRT input, it'll be a srt:// URL @@ -737,6 +737,8 @@ type IngressInfo struct { ParticipantMetadata string `protobuf:"bytes,14,opt,name=participant_metadata,json=participantMetadata,proto3" json:"participant_metadata,omitempty"` Reusable bool `protobuf:"varint,11,opt,name=reusable,proto3" json:"reusable,omitempty"` State *IngressState `protobuf:"bytes,12,opt,name=state,proto3" json:"state,omitempty"` // Description of error/stream non compliance and debug info for publisher otherwise (received bitrate, resolution, bandwidth) + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *IngressInfo) Reset() { @@ -876,20 +878,19 @@ func (x *IngressInfo) GetState() *IngressState { } type IngressState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Status IngressState_Status `protobuf:"varint,1,opt,name=status,proto3,enum=livekit.IngressState_Status" json:"status,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // Error/non compliance description if any + Video *InputVideoState `protobuf:"bytes,3,opt,name=video,proto3" json:"video,omitempty"` + Audio *InputAudioState `protobuf:"bytes,4,opt,name=audio,proto3" json:"audio,omitempty"` + RoomId string `protobuf:"bytes,5,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` // ID of the current/previous room published to + StartedAt int64 `protobuf:"varint,7,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + EndedAt int64 `protobuf:"varint,8,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` + UpdatedAt int64 `protobuf:"varint,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + ResourceId string `protobuf:"bytes,9,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + Tracks []*TrackInfo `protobuf:"bytes,6,rep,name=tracks,proto3" json:"tracks,omitempty"` unknownFields protoimpl.UnknownFields - - Status IngressState_Status `protobuf:"varint,1,opt,name=status,proto3,enum=livekit.IngressState_Status" json:"status,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // Error/non compliance description if any - Video *InputVideoState `protobuf:"bytes,3,opt,name=video,proto3" json:"video,omitempty"` - Audio *InputAudioState `protobuf:"bytes,4,opt,name=audio,proto3" json:"audio,omitempty"` - RoomId string `protobuf:"bytes,5,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` // ID of the current/previous room published to - StartedAt int64 `protobuf:"varint,7,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - EndedAt int64 `protobuf:"varint,8,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` - UpdatedAt int64 `protobuf:"varint,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - ResourceId string `protobuf:"bytes,9,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` - Tracks []*TrackInfo `protobuf:"bytes,6,rep,name=tracks,proto3" json:"tracks,omitempty"` + sizeCache protoimpl.SizeCache } func (x *IngressState) Reset() { @@ -993,15 +994,14 @@ func (x *IngressState) GetTracks() []*TrackInfo { } type InputVideoState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` - AverageBitrate uint32 `protobuf:"varint,2,opt,name=average_bitrate,json=averageBitrate,proto3" json:"average_bitrate,omitempty"` - Width uint32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` - Height uint32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` - Framerate float64 `protobuf:"fixed64,5,opt,name=framerate,proto3" json:"framerate,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` + AverageBitrate uint32 `protobuf:"varint,2,opt,name=average_bitrate,json=averageBitrate,proto3" json:"average_bitrate,omitempty"` + Width uint32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` + Height uint32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` + Framerate float64 `protobuf:"fixed64,5,opt,name=framerate,proto3" json:"framerate,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *InputVideoState) Reset() { @@ -1070,14 +1070,13 @@ func (x *InputVideoState) GetFramerate() float64 { } type InputAudioState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` - AverageBitrate uint32 `protobuf:"varint,2,opt,name=average_bitrate,json=averageBitrate,proto3" json:"average_bitrate,omitempty"` - Channels uint32 `protobuf:"varint,3,opt,name=channels,proto3" json:"channels,omitempty"` - SampleRate uint32 `protobuf:"varint,4,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` + AverageBitrate uint32 `protobuf:"varint,2,opt,name=average_bitrate,json=averageBitrate,proto3" json:"average_bitrate,omitempty"` + Channels uint32 `protobuf:"varint,3,opt,name=channels,proto3" json:"channels,omitempty"` + SampleRate uint32 `protobuf:"varint,4,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *InputAudioState) Reset() { @@ -1139,21 +1138,20 @@ func (x *InputAudioState) GetSampleRate() uint32 { } type UpdateIngressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - RoomName string `protobuf:"bytes,3,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` - ParticipantIdentity string `protobuf:"bytes,4,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` - ParticipantName string `protobuf:"bytes,5,opt,name=participant_name,json=participantName,proto3" json:"participant_name,omitempty"` - ParticipantMetadata string `protobuf:"bytes,9,opt,name=participant_metadata,json=participantMetadata,proto3" json:"participant_metadata,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + RoomName string `protobuf:"bytes,3,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` + ParticipantIdentity string `protobuf:"bytes,4,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` + ParticipantName string `protobuf:"bytes,5,opt,name=participant_name,json=participantName,proto3" json:"participant_name,omitempty"` + ParticipantMetadata string `protobuf:"bytes,9,opt,name=participant_metadata,json=participantMetadata,proto3" json:"participant_metadata,omitempty"` // Deprecated: Marked as deprecated in livekit_ingress.proto. BypassTranscoding *bool `protobuf:"varint,8,opt,name=bypass_transcoding,json=bypassTranscoding,proto3,oneof" json:"bypass_transcoding,omitempty"` EnableTranscoding *bool `protobuf:"varint,10,opt,name=enable_transcoding,json=enableTranscoding,proto3,oneof" json:"enable_transcoding,omitempty"` Audio *IngressAudioOptions `protobuf:"bytes,6,opt,name=audio,proto3" json:"audio,omitempty"` Video *IngressVideoOptions `protobuf:"bytes,7,opt,name=video,proto3" json:"video,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateIngressRequest) Reset() { @@ -1258,13 +1256,12 @@ func (x *UpdateIngressRequest) GetVideo() *IngressVideoOptions { } type ListIngressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // when blank, lists all ingress endpoints - RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // (optional, filter by room name) - IngressId string `protobuf:"bytes,2,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` // (optional, filter by ingress ID) + RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // (optional, filter by room name) + IngressId string `protobuf:"bytes,2,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` // (optional, filter by ingress ID) + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListIngressRequest) Reset() { @@ -1312,11 +1309,10 @@ func (x *ListIngressRequest) GetIngressId() string { } type ListIngressResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Items []*IngressInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields - - Items []*IngressInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListIngressResponse) Reset() { @@ -1357,11 +1353,10 @@ func (x *ListIngressResponse) GetItems() []*IngressInfo { } type DeleteIngressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` unknownFields protoimpl.UnknownFields - - IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteIngressRequest) Reset() { diff --git a/livekit/livekit_internal.pb.go b/livekit/livekit_internal.pb.go index aa37a000..5ce2a8d4 100644 --- a/livekit/livekit_internal.pb.go +++ b/livekit/livekit_internal.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: livekit_internal.proto @@ -191,17 +191,16 @@ func (ICECandidateType) EnumDescriptor() ([]byte, []int) { } type Node struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` + NumCpus uint32 `protobuf:"varint,3,opt,name=num_cpus,json=numCpus,proto3" json:"num_cpus,omitempty"` + Stats *NodeStats `protobuf:"bytes,4,opt,name=stats,proto3" json:"stats,omitempty"` + Type NodeType `protobuf:"varint,5,opt,name=type,proto3,enum=livekit.NodeType" json:"type,omitempty"` + State NodeState `protobuf:"varint,6,opt,name=state,proto3,enum=livekit.NodeState" json:"state,omitempty"` + Region string `protobuf:"bytes,7,opt,name=region,proto3" json:"region,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Ip string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` - NumCpus uint32 `protobuf:"varint,3,opt,name=num_cpus,json=numCpus,proto3" json:"num_cpus,omitempty"` - Stats *NodeStats `protobuf:"bytes,4,opt,name=stats,proto3" json:"stats,omitempty"` - Type NodeType `protobuf:"varint,5,opt,name=type,proto3,enum=livekit.NodeType" json:"type,omitempty"` - State NodeState `protobuf:"varint,6,opt,name=state,proto3,enum=livekit.NodeState" json:"state,omitempty"` - Region string `protobuf:"bytes,7,opt,name=region,proto3" json:"region,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Node) Reset() { @@ -284,10 +283,7 @@ func (x *Node) GetRegion() string { } type NodeStats struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // when server was started StartedAt int64 `protobuf:"varint,1,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` // when server last reported its status @@ -345,6 +341,8 @@ type NodeStats struct { // forward metrics ForwardLatency uint32 `protobuf:"varint,48,opt,name=forward_latency,json=forwardLatency,proto3" json:"forward_latency,omitempty"` ForwardJitter uint32 `protobuf:"varint,49,opt,name=forward_jitter,json=forwardJitter,proto3" json:"forward_jitter,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *NodeStats) Reset() { @@ -721,13 +719,10 @@ func (x *NodeStats) GetForwardJitter() uint32 { } type StartSession struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - ConnectionId string `protobuf:"bytes,3,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + ConnectionId string `protobuf:"bytes,3,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` // if a client is reconnecting (i.e. resume instead of restart) Reconnect bool `protobuf:"varint,4,opt,name=reconnect,proto3" json:"reconnect,omitempty"` AutoSubscribe bool `protobuf:"varint,9,opt,name=auto_subscribe,json=autoSubscribe,proto3" json:"auto_subscribe,omitempty"` @@ -744,6 +739,8 @@ type StartSession struct { SubscriberAllowPause *bool `protobuf:"varint,18,opt,name=subscriber_allow_pause,json=subscriberAllowPause,proto3,oneof" json:"subscriber_allow_pause,omitempty"` DisableIceLite bool `protobuf:"varint,19,opt,name=disable_ice_lite,json=disableIceLite,proto3" json:"disable_ice_lite,omitempty"` CreateRoom *CreateRoomRequest `protobuf:"bytes,20,opt,name=create_room,json=createRoom,proto3" json:"create_room,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StartSession) Reset() { @@ -890,16 +887,15 @@ func (x *StartSession) GetCreateRoom() *CreateRoomRequest { // room info that should not be returned to clients type RoomInternal struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` TrackEgress *AutoTrackEgress `protobuf:"bytes,1,opt,name=track_egress,json=trackEgress,proto3" json:"track_egress,omitempty"` ParticipantEgress *AutoParticipantEgress `protobuf:"bytes,2,opt,name=participant_egress,json=participantEgress,proto3" json:"participant_egress,omitempty"` PlayoutDelay *PlayoutDelay `protobuf:"bytes,3,opt,name=playout_delay,json=playoutDelay,proto3" json:"playout_delay,omitempty"` AgentDispatches []*RoomAgentDispatch `protobuf:"bytes,5,rep,name=agent_dispatches,json=agentDispatches,proto3" json:"agent_dispatches,omitempty"` SyncStreams bool `protobuf:"varint,4,opt,name=sync_streams,json=syncStreams,proto3" json:"sync_streams,omitempty"` ReplayEnabled bool `protobuf:"varint,6,opt,name=replay_enabled,json=replayEnabled,proto3" json:"replay_enabled,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RoomInternal) Reset() { @@ -975,12 +971,11 @@ func (x *RoomInternal) GetReplayEnabled() bool { } type ICEConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - PreferenceSubscriber ICECandidateType `protobuf:"varint,1,opt,name=preference_subscriber,json=preferenceSubscriber,proto3,enum=livekit.ICECandidateType" json:"preference_subscriber,omitempty"` - PreferencePublisher ICECandidateType `protobuf:"varint,2,opt,name=preference_publisher,json=preferencePublisher,proto3,enum=livekit.ICECandidateType" json:"preference_publisher,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + PreferenceSubscriber ICECandidateType `protobuf:"varint,1,opt,name=preference_subscriber,json=preferenceSubscriber,proto3,enum=livekit.ICECandidateType" json:"preference_subscriber,omitempty"` + PreferencePublisher ICECandidateType `protobuf:"varint,2,opt,name=preference_publisher,json=preferencePublisher,proto3,enum=livekit.ICECandidateType" json:"preference_publisher,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ICEConfig) Reset() { diff --git a/livekit/livekit_metrics.pb.go b/livekit/livekit_metrics.pb.go index 1f3437f0..93bd3645 100644 --- a/livekit/livekit_metrics.pb.go +++ b/livekit/livekit_metrics.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: livekit_metrics.proto @@ -126,10 +126,7 @@ func (MetricLabel) EnumDescriptor() ([]byte, []int) { } type MetricsBatch struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` TimestampMs int64 `protobuf:"varint,1,opt,name=timestamp_ms,json=timestampMs,proto3" json:"timestamp_ms,omitempty"` // time at which this batch is sent based on a monotonic clock (millisecond resolution) NormalizedTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=normalized_timestamp,json=normalizedTimestamp,proto3" json:"normalized_timestamp,omitempty"` // To avoid repeating string values, we store them in a separate list and reference them by index @@ -138,9 +135,11 @@ type MetricsBatch struct { // They have reserved indices from 0 to (METRIC_LABEL_PREDEFINED_MAX_VALUE - 1). // Indexes pointing at str_data should start from METRIC_LABEL_PREDEFINED_MAX_VALUE, // such that str_data[0] == index of METRIC_LABEL_PREDEFINED_MAX_VALUE. - StrData []string `protobuf:"bytes,3,rep,name=str_data,json=strData,proto3" json:"str_data,omitempty"` - TimeSeries []*TimeSeriesMetric `protobuf:"bytes,4,rep,name=time_series,json=timeSeries,proto3" json:"time_series,omitempty"` - Events []*EventMetric `protobuf:"bytes,5,rep,name=events,proto3" json:"events,omitempty"` + StrData []string `protobuf:"bytes,3,rep,name=str_data,json=strData,proto3" json:"str_data,omitempty"` + TimeSeries []*TimeSeriesMetric `protobuf:"bytes,4,rep,name=time_series,json=timeSeries,proto3" json:"time_series,omitempty"` + Events []*EventMetric `protobuf:"bytes,5,rep,name=events,proto3" json:"events,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MetricsBatch) Reset() { @@ -209,10 +208,7 @@ func (x *MetricsBatch) GetEvents() []*EventMetric { } type TimeSeriesMetric struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Metric name e.g "speech_probablity". The string value is not directly stored in the message, but referenced by index // in the `str_data` field of `MetricsBatch` Label uint32 `protobuf:"varint,1,opt,name=label,proto3" json:"label,omitempty"` @@ -220,6 +216,8 @@ type TimeSeriesMetric struct { TrackSid uint32 `protobuf:"varint,3,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` // index into `str_data` Samples []*MetricSample `protobuf:"bytes,4,rep,name=samples,proto3" json:"samples,omitempty"` Rid uint32 `protobuf:"varint,5,opt,name=rid,proto3" json:"rid,omitempty"` // index into 'str_data' + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TimeSeriesMetric) Reset() { @@ -288,13 +286,12 @@ func (x *TimeSeriesMetric) GetRid() uint32 { } type MetricSample struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` TimestampMs int64 `protobuf:"varint,1,opt,name=timestamp_ms,json=timestampMs,proto3" json:"timestamp_ms,omitempty"` // time of metric based on a monotonic clock (in milliseconds) NormalizedTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=normalized_timestamp,json=normalizedTimestamp,proto3" json:"normalized_timestamp,omitempty"` Value float32 `protobuf:"fixed32,3,opt,name=value,proto3" json:"value,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MetricSample) Reset() { @@ -349,10 +346,7 @@ func (x *MetricSample) GetValue() float32 { } type EventMetric struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` Label uint32 `protobuf:"varint,1,opt,name=label,proto3" json:"label,omitempty"` ParticipantIdentity uint32 `protobuf:"varint,2,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` // index into `str_data` TrackSid uint32 `protobuf:"varint,3,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` // index into `str_data` @@ -362,6 +356,8 @@ type EventMetric struct { NormalizedEndTimestamp *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=normalized_end_timestamp,json=normalizedEndTimestamp,proto3,oneof" json:"normalized_end_timestamp,omitempty"` Metadata string `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"` Rid uint32 `protobuf:"varint,9,opt,name=rid,proto3" json:"rid,omitempty"` // index into 'str_data' + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EventMetric) Reset() { diff --git a/livekit/livekit_models.pb.go b/livekit/livekit_models.pb.go index b56c1a24..c068414d 100644 --- a/livekit/livekit_models.pb.go +++ b/livekit/livekit_models.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: livekit_models.proto @@ -1089,23 +1089,22 @@ func (DataStream_OperationType) EnumDescriptor() ([]byte, []int) { } type Room struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - EmptyTimeout uint32 `protobuf:"varint,3,opt,name=empty_timeout,json=emptyTimeout,proto3" json:"empty_timeout,omitempty"` - DepartureTimeout uint32 `protobuf:"varint,14,opt,name=departure_timeout,json=departureTimeout,proto3" json:"departure_timeout,omitempty"` - MaxParticipants uint32 `protobuf:"varint,4,opt,name=max_participants,json=maxParticipants,proto3" json:"max_participants,omitempty"` - CreationTime int64 `protobuf:"varint,5,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` - TurnPassword string `protobuf:"bytes,6,opt,name=turn_password,json=turnPassword,proto3" json:"turn_password,omitempty"` - EnabledCodecs []*Codec `protobuf:"bytes,7,rep,name=enabled_codecs,json=enabledCodecs,proto3" json:"enabled_codecs,omitempty"` - Metadata string `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"` - NumParticipants uint32 `protobuf:"varint,9,opt,name=num_participants,json=numParticipants,proto3" json:"num_participants,omitempty"` - NumPublishers uint32 `protobuf:"varint,11,opt,name=num_publishers,json=numPublishers,proto3" json:"num_publishers,omitempty"` - ActiveRecording bool `protobuf:"varint,10,opt,name=active_recording,json=activeRecording,proto3" json:"active_recording,omitempty"` - Version *TimedVersion `protobuf:"bytes,13,opt,name=version,proto3" json:"version,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + EmptyTimeout uint32 `protobuf:"varint,3,opt,name=empty_timeout,json=emptyTimeout,proto3" json:"empty_timeout,omitempty"` + DepartureTimeout uint32 `protobuf:"varint,14,opt,name=departure_timeout,json=departureTimeout,proto3" json:"departure_timeout,omitempty"` + MaxParticipants uint32 `protobuf:"varint,4,opt,name=max_participants,json=maxParticipants,proto3" json:"max_participants,omitempty"` + CreationTime int64 `protobuf:"varint,5,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"` + TurnPassword string `protobuf:"bytes,6,opt,name=turn_password,json=turnPassword,proto3" json:"turn_password,omitempty"` + EnabledCodecs []*Codec `protobuf:"bytes,7,rep,name=enabled_codecs,json=enabledCodecs,proto3" json:"enabled_codecs,omitempty"` + Metadata string `protobuf:"bytes,8,opt,name=metadata,proto3" json:"metadata,omitempty"` + NumParticipants uint32 `protobuf:"varint,9,opt,name=num_participants,json=numParticipants,proto3" json:"num_participants,omitempty"` + NumPublishers uint32 `protobuf:"varint,11,opt,name=num_publishers,json=numPublishers,proto3" json:"num_publishers,omitempty"` + ActiveRecording bool `protobuf:"varint,10,opt,name=active_recording,json=activeRecording,proto3" json:"active_recording,omitempty"` + Version *TimedVersion `protobuf:"bytes,13,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Room) Reset() { @@ -1230,12 +1229,11 @@ func (x *Room) GetVersion() *TimedVersion { } type Codec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Mime string `protobuf:"bytes,1,opt,name=mime,proto3" json:"mime,omitempty"` + FmtpLine string `protobuf:"bytes,2,opt,name=fmtp_line,json=fmtpLine,proto3" json:"fmtp_line,omitempty"` unknownFields protoimpl.UnknownFields - - Mime string `protobuf:"bytes,1,opt,name=mime,proto3" json:"mime,omitempty"` - FmtpLine string `protobuf:"bytes,2,opt,name=fmtp_line,json=fmtpLine,proto3" json:"fmtp_line,omitempty"` + sizeCache protoimpl.SizeCache } func (x *Codec) Reset() { @@ -1283,13 +1281,12 @@ func (x *Codec) GetFmtpLine() string { } type PlayoutDelay struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` + Min uint32 `protobuf:"varint,2,opt,name=min,proto3" json:"min,omitempty"` + Max uint32 `protobuf:"varint,3,opt,name=max,proto3" json:"max,omitempty"` unknownFields protoimpl.UnknownFields - - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - Min uint32 `protobuf:"varint,2,opt,name=min,proto3" json:"min,omitempty"` - Max uint32 `protobuf:"varint,3,opt,name=max,proto3" json:"max,omitempty"` + sizeCache protoimpl.SizeCache } func (x *PlayoutDelay) Reset() { @@ -1344,10 +1341,7 @@ func (x *PlayoutDelay) GetMax() uint32 { } type ParticipantPermission struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // allow participant to subscribe to other tracks in the room CanSubscribe bool `protobuf:"varint,1,opt,name=can_subscribe,json=canSubscribe,proto3" json:"can_subscribe,omitempty"` // allow participant to publish new tracks to room @@ -1372,6 +1366,8 @@ type ParticipantPermission struct { Agent bool `protobuf:"varint,11,opt,name=agent,proto3" json:"agent,omitempty"` // if a participant can subscribe to metrics CanSubscribeMetrics bool `protobuf:"varint,12,opt,name=can_subscribe_metrics,json=canSubscribeMetrics,proto3" json:"can_subscribe_metrics,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ParticipantPermission) Reset() { @@ -1470,15 +1466,12 @@ func (x *ParticipantPermission) GetCanSubscribeMetrics() bool { } type ParticipantInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` - State ParticipantInfo_State `protobuf:"varint,3,opt,name=state,proto3,enum=livekit.ParticipantInfo_State" json:"state,omitempty"` - Tracks []*TrackInfo `protobuf:"bytes,4,rep,name=tracks,proto3" json:"tracks,omitempty"` - Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + State ParticipantInfo_State `protobuf:"varint,3,opt,name=state,proto3,enum=livekit.ParticipantInfo_State" json:"state,omitempty"` + Tracks []*TrackInfo `protobuf:"bytes,4,rep,name=tracks,proto3" json:"tracks,omitempty"` + Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` // timestamp when participant joined room, in seconds JoinedAt int64 `protobuf:"varint,6,opt,name=joined_at,json=joinedAt,proto3" json:"joined_at,omitempty"` Name string `protobuf:"bytes,9,opt,name=name,proto3" json:"name,omitempty"` @@ -1489,8 +1482,10 @@ type ParticipantInfo struct { // and can publish to the server IsPublisher bool `protobuf:"varint,13,opt,name=is_publisher,json=isPublisher,proto3" json:"is_publisher,omitempty"` Kind ParticipantInfo_Kind `protobuf:"varint,14,opt,name=kind,proto3,enum=livekit.ParticipantInfo_Kind" json:"kind,omitempty"` - Attributes map[string]string `protobuf:"bytes,15,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Attributes map[string]string `protobuf:"bytes,15,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` DisconnectReason DisconnectReason `protobuf:"varint,16,opt,name=disconnect_reason,json=disconnectReason,proto3,enum=livekit.DisconnectReason" json:"disconnect_reason,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ParticipantInfo) Reset() { @@ -1622,9 +1617,9 @@ func (x *ParticipantInfo) GetDisconnectReason() DisconnectReason { } type Encryption struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Encryption) Reset() { @@ -1658,14 +1653,13 @@ func (*Encryption) Descriptor() ([]byte, []int) { } type SimulcastCodecInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` + Mid string `protobuf:"bytes,2,opt,name=mid,proto3" json:"mid,omitempty"` + Cid string `protobuf:"bytes,3,opt,name=cid,proto3" json:"cid,omitempty"` + Layers []*VideoLayer `protobuf:"bytes,4,rep,name=layers,proto3" json:"layers,omitempty"` unknownFields protoimpl.UnknownFields - - MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` - Mid string `protobuf:"bytes,2,opt,name=mid,proto3" json:"mid,omitempty"` - Cid string `protobuf:"bytes,3,opt,name=cid,proto3" json:"cid,omitempty"` - Layers []*VideoLayer `protobuf:"bytes,4,rep,name=layers,proto3" json:"layers,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SimulcastCodecInfo) Reset() { @@ -1727,14 +1721,11 @@ func (x *SimulcastCodecInfo) GetLayers() []*VideoLayer { } type TrackInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` - Type TrackType `protobuf:"varint,2,opt,name=type,proto3,enum=livekit.TrackType" json:"type,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Muted bool `protobuf:"varint,4,opt,name=muted,proto3" json:"muted,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` + Type TrackType `protobuf:"varint,2,opt,name=type,proto3,enum=livekit.TrackType" json:"type,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Muted bool `protobuf:"varint,4,opt,name=muted,proto3" json:"muted,omitempty"` // original width of video (unset for audio) // clients may receive a lower resolution version with simulcast Width uint32 `protobuf:"varint,5,opt,name=width,proto3" json:"width,omitempty"` @@ -1758,6 +1749,8 @@ type TrackInfo struct { Stream string `protobuf:"bytes,17,opt,name=stream,proto3" json:"stream,omitempty"` Version *TimedVersion `protobuf:"bytes,18,opt,name=version,proto3" json:"version,omitempty"` AudioFeatures []AudioTrackFeature `protobuf:"varint,19,rep,packed,name=audio_features,json=audioFeatures,proto3,enum=livekit.AudioTrackFeature" json:"audio_features,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TrackInfo) Reset() { @@ -1925,17 +1918,16 @@ func (x *TrackInfo) GetAudioFeatures() []AudioTrackFeature { // provide information about available spatial layers type VideoLayer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // for tracks with a single layer, this should be HIGH Quality VideoQuality `protobuf:"varint,1,opt,name=quality,proto3,enum=livekit.VideoQuality" json:"quality,omitempty"` Width uint32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` // target bitrate in bit per second (bps), server will measure actual - Bitrate uint32 `protobuf:"varint,4,opt,name=bitrate,proto3" json:"bitrate,omitempty"` - Ssrc uint32 `protobuf:"varint,5,opt,name=ssrc,proto3" json:"ssrc,omitempty"` + Bitrate uint32 `protobuf:"varint,4,opt,name=bitrate,proto3" json:"bitrate,omitempty"` + Ssrc uint32 `protobuf:"varint,5,opt,name=ssrc,proto3" json:"ssrc,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *VideoLayer) Reset() { @@ -2005,17 +1997,14 @@ func (x *VideoLayer) GetSsrc() uint32 { // new DataPacket API type DataPacket struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Deprecated: Marked as deprecated in livekit_models.proto. Kind DataPacket_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=livekit.DataPacket_Kind" json:"kind,omitempty"` // participant identity of user that sent the message ParticipantIdentity string `protobuf:"bytes,4,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` // identities of participants who will receive the message (sent to all by default) DestinationIdentities []string `protobuf:"bytes,5,rep,name=destination_identities,json=destinationIdentities,proto3" json:"destination_identities,omitempty"` - // Types that are assignable to Value: + // Types that are valid to be assigned to Value: // // *DataPacket_User // *DataPacket_Speaker @@ -2028,7 +2017,9 @@ type DataPacket struct { // *DataPacket_RpcResponse // *DataPacket_StreamHeader // *DataPacket_StreamChunk - Value isDataPacket_Value `protobuf_oneof:"value"` + Value isDataPacket_Value `protobuf_oneof:"value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DataPacket) Reset() { @@ -2083,87 +2074,109 @@ func (x *DataPacket) GetDestinationIdentities() []string { return nil } -func (m *DataPacket) GetValue() isDataPacket_Value { - if m != nil { - return m.Value +func (x *DataPacket) GetValue() isDataPacket_Value { + if x != nil { + return x.Value } return nil } func (x *DataPacket) GetUser() *UserPacket { - if x, ok := x.GetValue().(*DataPacket_User); ok { - return x.User + if x != nil { + if x, ok := x.Value.(*DataPacket_User); ok { + return x.User + } } return nil } // Deprecated: Marked as deprecated in livekit_models.proto. func (x *DataPacket) GetSpeaker() *ActiveSpeakerUpdate { - if x, ok := x.GetValue().(*DataPacket_Speaker); ok { - return x.Speaker + if x != nil { + if x, ok := x.Value.(*DataPacket_Speaker); ok { + return x.Speaker + } } return nil } func (x *DataPacket) GetSipDtmf() *SipDTMF { - if x, ok := x.GetValue().(*DataPacket_SipDtmf); ok { - return x.SipDtmf + if x != nil { + if x, ok := x.Value.(*DataPacket_SipDtmf); ok { + return x.SipDtmf + } } return nil } func (x *DataPacket) GetTranscription() *Transcription { - if x, ok := x.GetValue().(*DataPacket_Transcription); ok { - return x.Transcription + if x != nil { + if x, ok := x.Value.(*DataPacket_Transcription); ok { + return x.Transcription + } } return nil } func (x *DataPacket) GetMetrics() *MetricsBatch { - if x, ok := x.GetValue().(*DataPacket_Metrics); ok { - return x.Metrics + if x != nil { + if x, ok := x.Value.(*DataPacket_Metrics); ok { + return x.Metrics + } } return nil } func (x *DataPacket) GetChatMessage() *ChatMessage { - if x, ok := x.GetValue().(*DataPacket_ChatMessage); ok { - return x.ChatMessage + if x != nil { + if x, ok := x.Value.(*DataPacket_ChatMessage); ok { + return x.ChatMessage + } } return nil } func (x *DataPacket) GetRpcRequest() *RpcRequest { - if x, ok := x.GetValue().(*DataPacket_RpcRequest); ok { - return x.RpcRequest + if x != nil { + if x, ok := x.Value.(*DataPacket_RpcRequest); ok { + return x.RpcRequest + } } return nil } func (x *DataPacket) GetRpcAck() *RpcAck { - if x, ok := x.GetValue().(*DataPacket_RpcAck); ok { - return x.RpcAck + if x != nil { + if x, ok := x.Value.(*DataPacket_RpcAck); ok { + return x.RpcAck + } } return nil } func (x *DataPacket) GetRpcResponse() *RpcResponse { - if x, ok := x.GetValue().(*DataPacket_RpcResponse); ok { - return x.RpcResponse + if x != nil { + if x, ok := x.Value.(*DataPacket_RpcResponse); ok { + return x.RpcResponse + } } return nil } func (x *DataPacket) GetStreamHeader() *DataStream_Header { - if x, ok := x.GetValue().(*DataPacket_StreamHeader); ok { - return x.StreamHeader + if x != nil { + if x, ok := x.Value.(*DataPacket_StreamHeader); ok { + return x.StreamHeader + } } return nil } func (x *DataPacket) GetStreamChunk() *DataStream_Chunk { - if x, ok := x.GetValue().(*DataPacket_StreamChunk); ok { - return x.StreamChunk + if x != nil { + if x, ok := x.Value.(*DataPacket_StreamChunk); ok { + return x.StreamChunk + } } return nil } @@ -2240,11 +2253,10 @@ func (*DataPacket_StreamHeader) isDataPacket_Value() {} func (*DataPacket_StreamChunk) isDataPacket_Value() {} type ActiveSpeakerUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Speakers []*SpeakerInfo `protobuf:"bytes,1,rep,name=speakers,proto3" json:"speakers,omitempty"` unknownFields protoimpl.UnknownFields - - Speakers []*SpeakerInfo `protobuf:"bytes,1,rep,name=speakers,proto3" json:"speakers,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ActiveSpeakerUpdate) Reset() { @@ -2285,15 +2297,14 @@ func (x *ActiveSpeakerUpdate) GetSpeakers() []*SpeakerInfo { } type SpeakerInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` // audio level, 0-1.0, 1 is loudest Level float32 `protobuf:"fixed32,2,opt,name=level,proto3" json:"level,omitempty"` // true if speaker is currently active - Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"` + Active bool `protobuf:"varint,3,opt,name=active,proto3" json:"active,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SpeakerInfo) Reset() { @@ -2348,10 +2359,7 @@ func (x *SpeakerInfo) GetActive() bool { } type UserPacket struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // participant ID of user that sent the message // // Deprecated: Marked as deprecated in livekit_models.proto. @@ -2373,8 +2381,10 @@ type UserPacket struct { // Unique ID to indentify the message Id *string `protobuf:"bytes,8,opt,name=id,proto3,oneof" json:"id,omitempty"` // start and end time allow relating the message to specific media time - StartTime *uint64 `protobuf:"varint,9,opt,name=start_time,json=startTime,proto3,oneof" json:"start_time,omitempty"` - EndTime *uint64 `protobuf:"varint,10,opt,name=end_time,json=endTime,proto3,oneof" json:"end_time,omitempty"` + StartTime *uint64 `protobuf:"varint,9,opt,name=start_time,json=startTime,proto3,oneof" json:"start_time,omitempty"` + EndTime *uint64 `protobuf:"varint,10,opt,name=end_time,json=endTime,proto3,oneof" json:"end_time,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UserPacket) Reset() { @@ -2475,12 +2485,11 @@ func (x *UserPacket) GetEndTime() uint64 { } type SipDTMF struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Code uint32 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"` + Digit string `protobuf:"bytes,4,opt,name=digit,proto3" json:"digit,omitempty"` unknownFields protoimpl.UnknownFields - - Code uint32 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"` - Digit string `protobuf:"bytes,4,opt,name=digit,proto3" json:"digit,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SipDTMF) Reset() { @@ -2528,14 +2537,13 @@ func (x *SipDTMF) GetDigit() string { } type Transcription struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Participant that got its speech transcribed TranscribedParticipantIdentity string `protobuf:"bytes,2,opt,name=transcribed_participant_identity,json=transcribedParticipantIdentity,proto3" json:"transcribed_participant_identity,omitempty"` TrackId string `protobuf:"bytes,3,opt,name=track_id,json=trackId,proto3" json:"track_id,omitempty"` Segments []*TranscriptionSegment `protobuf:"bytes,4,rep,name=segments,proto3" json:"segments,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Transcription) Reset() { @@ -2590,16 +2598,15 @@ func (x *Transcription) GetSegments() []*TranscriptionSegment { } type TranscriptionSegment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` + StartTime uint64 `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` + EndTime uint64 `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` + Final bool `protobuf:"varint,5,opt,name=final,proto3" json:"final,omitempty"` + Language string `protobuf:"bytes,6,opt,name=language,proto3" json:"language,omitempty"` unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` - StartTime uint64 `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - EndTime uint64 `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - Final bool `protobuf:"varint,5,opt,name=final,proto3" json:"final,omitempty"` - Language string `protobuf:"bytes,6,opt,name=language,proto3" json:"language,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TranscriptionSegment) Reset() { @@ -2675,16 +2682,15 @@ func (x *TranscriptionSegment) GetLanguage() string { } type ChatMessage struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // uuid + Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + EditTimestamp *int64 `protobuf:"varint,3,opt,name=edit_timestamp,json=editTimestamp,proto3,oneof" json:"edit_timestamp,omitempty"` // populated only if the intent is to edit/update an existing message + Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` + Deleted bool `protobuf:"varint,5,opt,name=deleted,proto3" json:"deleted,omitempty"` // true to remove message + Generated bool `protobuf:"varint,6,opt,name=generated,proto3" json:"generated,omitempty"` // true if the chat message has been generated by an agent from a participant's audio transcription unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // uuid - Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - EditTimestamp *int64 `protobuf:"varint,3,opt,name=edit_timestamp,json=editTimestamp,proto3,oneof" json:"edit_timestamp,omitempty"` // populated only if the intent is to edit/update an existing message - Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` - Deleted bool `protobuf:"varint,5,opt,name=deleted,proto3" json:"deleted,omitempty"` // true to remove message - Generated bool `protobuf:"varint,6,opt,name=generated,proto3" json:"generated,omitempty"` // true if the chat message has been generated by an agent from a participant's audio transcription + sizeCache protoimpl.SizeCache } func (x *ChatMessage) Reset() { @@ -2760,15 +2766,14 @@ func (x *ChatMessage) GetGenerated() bool { } type RpcRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` - Payload string `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` - ResponseTimeoutMs uint32 `protobuf:"varint,4,opt,name=response_timeout_ms,json=responseTimeoutMs,proto3" json:"response_timeout_ms,omitempty"` - Version uint32 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` + Payload string `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` + ResponseTimeoutMs uint32 `protobuf:"varint,4,opt,name=response_timeout_ms,json=responseTimeoutMs,proto3" json:"response_timeout_ms,omitempty"` + Version uint32 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RpcRequest) Reset() { @@ -2837,11 +2842,10 @@ func (x *RpcRequest) GetVersion() uint32 { } type RpcAck struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` unknownFields protoimpl.UnknownFields - - RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RpcAck) Reset() { @@ -2882,16 +2886,15 @@ func (x *RpcAck) GetRequestId() string { } type RpcResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - // Types that are assignable to Value: + state protoimpl.MessageState `protogen:"open.v1"` + RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + // Types that are valid to be assigned to Value: // // *RpcResponse_Payload // *RpcResponse_Error - Value isRpcResponse_Value `protobuf_oneof:"value"` + Value isRpcResponse_Value `protobuf_oneof:"value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RpcResponse) Reset() { @@ -2931,23 +2934,27 @@ func (x *RpcResponse) GetRequestId() string { return "" } -func (m *RpcResponse) GetValue() isRpcResponse_Value { - if m != nil { - return m.Value +func (x *RpcResponse) GetValue() isRpcResponse_Value { + if x != nil { + return x.Value } return nil } func (x *RpcResponse) GetPayload() string { - if x, ok := x.GetValue().(*RpcResponse_Payload); ok { - return x.Payload + if x != nil { + if x, ok := x.Value.(*RpcResponse_Payload); ok { + return x.Payload + } } return "" } func (x *RpcResponse) GetError() *RpcError { - if x, ok := x.GetValue().(*RpcResponse_Error); ok { - return x.Error + if x != nil { + if x, ok := x.Value.(*RpcResponse_Error); ok { + return x.Error + } } return nil } @@ -2969,13 +2976,12 @@ func (*RpcResponse_Payload) isRpcResponse_Value() {} func (*RpcResponse_Error) isRpcResponse_Value() {} type RpcError struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` + Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` + Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields - - Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - Data string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RpcError) Reset() { @@ -3030,13 +3036,12 @@ func (x *RpcError) GetData() string { } type ParticipantTracks struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // participant ID of participant to whom the tracks belong ParticipantSid string `protobuf:"bytes,1,opt,name=participant_sid,json=participantSid,proto3" json:"participant_sid,omitempty"` TrackSids []string `protobuf:"bytes,2,rep,name=track_sids,json=trackSids,proto3" json:"track_sids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ParticipantTracks) Reset() { @@ -3085,18 +3090,17 @@ func (x *ParticipantTracks) GetTrackSids() []string { // details about the server type ServerInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Edition ServerInfo_Edition `protobuf:"varint,1,opt,name=edition,proto3,enum=livekit.ServerInfo_Edition" json:"edition,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Protocol int32 `protobuf:"varint,3,opt,name=protocol,proto3" json:"protocol,omitempty"` - Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` - NodeId string `protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Edition ServerInfo_Edition `protobuf:"varint,1,opt,name=edition,proto3,enum=livekit.ServerInfo_Edition" json:"edition,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Protocol int32 `protobuf:"varint,3,opt,name=protocol,proto3" json:"protocol,omitempty"` + Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` + NodeId string `protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` // additional debugging information. sent only if server is in development mode DebugInfo string `protobuf:"bytes,6,opt,name=debug_info,json=debugInfo,proto3" json:"debug_info,omitempty"` AgentProtocol int32 `protobuf:"varint,7,opt,name=agent_protocol,json=agentProtocol,proto3" json:"agent_protocol,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ServerInfo) Reset() { @@ -3180,24 +3184,23 @@ func (x *ServerInfo) GetAgentProtocol() int32 { // details about the client type ClientInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Sdk ClientInfo_SDK `protobuf:"varint,1,opt,name=sdk,proto3,enum=livekit.ClientInfo_SDK" json:"sdk,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - Protocol int32 `protobuf:"varint,3,opt,name=protocol,proto3" json:"protocol,omitempty"` - Os string `protobuf:"bytes,4,opt,name=os,proto3" json:"os,omitempty"` - OsVersion string `protobuf:"bytes,5,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"` - DeviceModel string `protobuf:"bytes,6,opt,name=device_model,json=deviceModel,proto3" json:"device_model,omitempty"` - Browser string `protobuf:"bytes,7,opt,name=browser,proto3" json:"browser,omitempty"` - BrowserVersion string `protobuf:"bytes,8,opt,name=browser_version,json=browserVersion,proto3" json:"browser_version,omitempty"` - Address string `protobuf:"bytes,9,opt,name=address,proto3" json:"address,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Sdk ClientInfo_SDK `protobuf:"varint,1,opt,name=sdk,proto3,enum=livekit.ClientInfo_SDK" json:"sdk,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + Protocol int32 `protobuf:"varint,3,opt,name=protocol,proto3" json:"protocol,omitempty"` + Os string `protobuf:"bytes,4,opt,name=os,proto3" json:"os,omitempty"` + OsVersion string `protobuf:"bytes,5,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"` + DeviceModel string `protobuf:"bytes,6,opt,name=device_model,json=deviceModel,proto3" json:"device_model,omitempty"` + Browser string `protobuf:"bytes,7,opt,name=browser,proto3" json:"browser,omitempty"` + BrowserVersion string `protobuf:"bytes,8,opt,name=browser_version,json=browserVersion,proto3" json:"browser_version,omitempty"` + Address string `protobuf:"bytes,9,opt,name=address,proto3" json:"address,omitempty"` // wifi, wired, cellular, vpn, empty if not known Network string `protobuf:"bytes,10,opt,name=network,proto3" json:"network,omitempty"` // comma separated list of additional LiveKit SDKs in use of this client, with versions // e.g. "components-js:1.2.3,track-processors-js:1.2.3" - OtherSdks string `protobuf:"bytes,11,opt,name=other_sdks,json=otherSdks,proto3" json:"other_sdks,omitempty"` + OtherSdks string `protobuf:"bytes,11,opt,name=other_sdks,json=otherSdks,proto3" json:"other_sdks,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ClientInfo) Reset() { @@ -3309,15 +3312,14 @@ func (x *ClientInfo) GetOtherSdks() string { // server provided client configuration type ClientConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Video *VideoConfiguration `protobuf:"bytes,1,opt,name=video,proto3" json:"video,omitempty"` - Screen *VideoConfiguration `protobuf:"bytes,2,opt,name=screen,proto3" json:"screen,omitempty"` - ResumeConnection ClientConfigSetting `protobuf:"varint,3,opt,name=resume_connection,json=resumeConnection,proto3,enum=livekit.ClientConfigSetting" json:"resume_connection,omitempty"` - DisabledCodecs *DisabledCodecs `protobuf:"bytes,4,opt,name=disabled_codecs,json=disabledCodecs,proto3" json:"disabled_codecs,omitempty"` - ForceRelay ClientConfigSetting `protobuf:"varint,5,opt,name=force_relay,json=forceRelay,proto3,enum=livekit.ClientConfigSetting" json:"force_relay,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Video *VideoConfiguration `protobuf:"bytes,1,opt,name=video,proto3" json:"video,omitempty"` + Screen *VideoConfiguration `protobuf:"bytes,2,opt,name=screen,proto3" json:"screen,omitempty"` + ResumeConnection ClientConfigSetting `protobuf:"varint,3,opt,name=resume_connection,json=resumeConnection,proto3,enum=livekit.ClientConfigSetting" json:"resume_connection,omitempty"` + DisabledCodecs *DisabledCodecs `protobuf:"bytes,4,opt,name=disabled_codecs,json=disabledCodecs,proto3" json:"disabled_codecs,omitempty"` + ForceRelay ClientConfigSetting `protobuf:"varint,5,opt,name=force_relay,json=forceRelay,proto3,enum=livekit.ClientConfigSetting" json:"force_relay,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ClientConfiguration) Reset() { @@ -3386,11 +3388,10 @@ func (x *ClientConfiguration) GetForceRelay() ClientConfigSetting { } type VideoConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - HardwareEncoder ClientConfigSetting `protobuf:"varint,1,opt,name=hardware_encoder,json=hardwareEncoder,proto3,enum=livekit.ClientConfigSetting" json:"hardware_encoder,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + HardwareEncoder ClientConfigSetting `protobuf:"varint,1,opt,name=hardware_encoder,json=hardwareEncoder,proto3,enum=livekit.ClientConfigSetting" json:"hardware_encoder,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *VideoConfiguration) Reset() { @@ -3431,14 +3432,13 @@ func (x *VideoConfiguration) GetHardwareEncoder() ClientConfigSetting { } type DisabledCodecs struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // disabled for both publish and subscribe Codecs []*Codec `protobuf:"bytes,1,rep,name=codecs,proto3" json:"codecs,omitempty"` // only disable for publish - Publish []*Codec `protobuf:"bytes,2,rep,name=publish,proto3" json:"publish,omitempty"` + Publish []*Codec `protobuf:"bytes,2,rep,name=publish,proto3" json:"publish,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DisabledCodecs) Reset() { @@ -3486,10 +3486,7 @@ func (x *DisabledCodecs) GetPublish() []*Codec { } type RTPDrift struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Duration float64 `protobuf:"fixed64,3,opt,name=duration,proto3" json:"duration,omitempty"` @@ -3499,6 +3496,8 @@ type RTPDrift struct { DriftSamples int64 `protobuf:"varint,7,opt,name=drift_samples,json=driftSamples,proto3" json:"drift_samples,omitempty"` DriftMs float64 `protobuf:"fixed64,8,opt,name=drift_ms,json=driftMs,proto3" json:"drift_ms,omitempty"` ClockRate float64 `protobuf:"fixed64,9,opt,name=clock_rate,json=clockRate,proto3" json:"clock_rate,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RTPDrift) Reset() { @@ -3595,10 +3594,7 @@ func (x *RTPDrift) GetClockRate() float64 { } type RTPStats struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Duration float64 `protobuf:"fixed64,3,opt,name=duration,proto3" json:"duration,omitempty"` @@ -3625,7 +3621,7 @@ type RTPStats struct { FrameRate float64 `protobuf:"fixed64,21,opt,name=frame_rate,json=frameRate,proto3" json:"frame_rate,omitempty"` JitterCurrent float64 `protobuf:"fixed64,22,opt,name=jitter_current,json=jitterCurrent,proto3" json:"jitter_current,omitempty"` JitterMax float64 `protobuf:"fixed64,23,opt,name=jitter_max,json=jitterMax,proto3" json:"jitter_max,omitempty"` - GapHistogram map[int32]uint32 `protobuf:"bytes,24,rep,name=gap_histogram,json=gapHistogram,proto3" json:"gap_histogram,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` + GapHistogram map[int32]uint32 `protobuf:"bytes,24,rep,name=gap_histogram,json=gapHistogram,proto3" json:"gap_histogram,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"` Nacks uint32 `protobuf:"varint,25,opt,name=nacks,proto3" json:"nacks,omitempty"` NackAcks uint32 `protobuf:"varint,37,opt,name=nack_acks,json=nackAcks,proto3" json:"nack_acks,omitempty"` NackMisses uint32 `protobuf:"varint,26,opt,name=nack_misses,json=nackMisses,proto3" json:"nack_misses,omitempty"` @@ -3644,6 +3640,8 @@ type RTPStats struct { NtpReportDrift *RTPDrift `protobuf:"bytes,45,opt,name=ntp_report_drift,json=ntpReportDrift,proto3" json:"ntp_report_drift,omitempty"` RebasedReportDrift *RTPDrift `protobuf:"bytes,46,opt,name=rebased_report_drift,json=rebasedReportDrift,proto3" json:"rebased_report_drift,omitempty"` ReceivedReportDrift *RTPDrift `protobuf:"bytes,47,opt,name=received_report_drift,json=receivedReportDrift,proto3" json:"received_report_drift,omitempty"` // NEXT_ID: 48 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RTPStats) Reset() { @@ -3992,17 +3990,16 @@ func (x *RTPStats) GetReceivedReportDrift() *RTPDrift { } type RTCPSenderReportState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RtpTimestamp uint32 `protobuf:"varint,1,opt,name=rtp_timestamp,json=rtpTimestamp,proto3" json:"rtp_timestamp,omitempty"` - RtpTimestampExt uint64 `protobuf:"varint,2,opt,name=rtp_timestamp_ext,json=rtpTimestampExt,proto3" json:"rtp_timestamp_ext,omitempty"` - NtpTimestamp uint64 `protobuf:"varint,3,opt,name=ntp_timestamp,json=ntpTimestamp,proto3" json:"ntp_timestamp,omitempty"` - At int64 `protobuf:"varint,4,opt,name=at,proto3" json:"at,omitempty"` // time at which this happened - AtAdjusted int64 `protobuf:"varint,5,opt,name=at_adjusted,json=atAdjusted,proto3" json:"at_adjusted,omitempty"` - Packets uint32 `protobuf:"varint,6,opt,name=packets,proto3" json:"packets,omitempty"` - Octets uint64 `protobuf:"varint,7,opt,name=octets,proto3" json:"octets,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RtpTimestamp uint32 `protobuf:"varint,1,opt,name=rtp_timestamp,json=rtpTimestamp,proto3" json:"rtp_timestamp,omitempty"` + RtpTimestampExt uint64 `protobuf:"varint,2,opt,name=rtp_timestamp_ext,json=rtpTimestampExt,proto3" json:"rtp_timestamp_ext,omitempty"` + NtpTimestamp uint64 `protobuf:"varint,3,opt,name=ntp_timestamp,json=ntpTimestamp,proto3" json:"ntp_timestamp,omitempty"` + At int64 `protobuf:"varint,4,opt,name=at,proto3" json:"at,omitempty"` // time at which this happened + AtAdjusted int64 `protobuf:"varint,5,opt,name=at_adjusted,json=atAdjusted,proto3" json:"at_adjusted,omitempty"` + Packets uint32 `protobuf:"varint,6,opt,name=packets,proto3" json:"packets,omitempty"` + Octets uint64 `protobuf:"varint,7,opt,name=octets,proto3" json:"octets,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RTCPSenderReportState) Reset() { @@ -4085,21 +4082,20 @@ func (x *RTCPSenderReportState) GetOctets() uint64 { } type RTPForwarderState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Started bool `protobuf:"varint,1,opt,name=started,proto3" json:"started,omitempty"` - ReferenceLayerSpatial int32 `protobuf:"varint,2,opt,name=reference_layer_spatial,json=referenceLayerSpatial,proto3" json:"reference_layer_spatial,omitempty"` - PreStartTime int64 `protobuf:"varint,3,opt,name=pre_start_time,json=preStartTime,proto3" json:"pre_start_time,omitempty"` - ExtFirstTimestamp uint64 `protobuf:"varint,4,opt,name=ext_first_timestamp,json=extFirstTimestamp,proto3" json:"ext_first_timestamp,omitempty"` - DummyStartTimestampOffset uint64 `protobuf:"varint,5,opt,name=dummy_start_timestamp_offset,json=dummyStartTimestampOffset,proto3" json:"dummy_start_timestamp_offset,omitempty"` - RtpMunger *RTPMungerState `protobuf:"bytes,6,opt,name=rtp_munger,json=rtpMunger,proto3" json:"rtp_munger,omitempty"` - // Types that are assignable to CodecMunger: + state protoimpl.MessageState `protogen:"open.v1"` + Started bool `protobuf:"varint,1,opt,name=started,proto3" json:"started,omitempty"` + ReferenceLayerSpatial int32 `protobuf:"varint,2,opt,name=reference_layer_spatial,json=referenceLayerSpatial,proto3" json:"reference_layer_spatial,omitempty"` + PreStartTime int64 `protobuf:"varint,3,opt,name=pre_start_time,json=preStartTime,proto3" json:"pre_start_time,omitempty"` + ExtFirstTimestamp uint64 `protobuf:"varint,4,opt,name=ext_first_timestamp,json=extFirstTimestamp,proto3" json:"ext_first_timestamp,omitempty"` + DummyStartTimestampOffset uint64 `protobuf:"varint,5,opt,name=dummy_start_timestamp_offset,json=dummyStartTimestampOffset,proto3" json:"dummy_start_timestamp_offset,omitempty"` + RtpMunger *RTPMungerState `protobuf:"bytes,6,opt,name=rtp_munger,json=rtpMunger,proto3" json:"rtp_munger,omitempty"` + // Types that are valid to be assigned to CodecMunger: // // *RTPForwarderState_Vp8Munger CodecMunger isRTPForwarderState_CodecMunger `protobuf_oneof:"codec_munger"` SenderReportState []*RTCPSenderReportState `protobuf:"bytes,8,rep,name=sender_report_state,json=senderReportState,proto3" json:"sender_report_state,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RTPForwarderState) Reset() { @@ -4174,16 +4170,18 @@ func (x *RTPForwarderState) GetRtpMunger() *RTPMungerState { return nil } -func (m *RTPForwarderState) GetCodecMunger() isRTPForwarderState_CodecMunger { - if m != nil { - return m.CodecMunger +func (x *RTPForwarderState) GetCodecMunger() isRTPForwarderState_CodecMunger { + if x != nil { + return x.CodecMunger } return nil } func (x *RTPForwarderState) GetVp8Munger() *VP8MungerState { - if x, ok := x.GetCodecMunger().(*RTPForwarderState_Vp8Munger); ok { - return x.Vp8Munger + if x != nil { + if x, ok := x.CodecMunger.(*RTPForwarderState_Vp8Munger); ok { + return x.Vp8Munger + } } return nil } @@ -4206,16 +4204,15 @@ type RTPForwarderState_Vp8Munger struct { func (*RTPForwarderState_Vp8Munger) isRTPForwarderState_CodecMunger() {} type RTPMungerState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ExtLastSequenceNumber uint64 `protobuf:"varint,1,opt,name=ext_last_sequence_number,json=extLastSequenceNumber,proto3" json:"ext_last_sequence_number,omitempty"` - ExtSecondLastSequenceNumber uint64 `protobuf:"varint,2,opt,name=ext_second_last_sequence_number,json=extSecondLastSequenceNumber,proto3" json:"ext_second_last_sequence_number,omitempty"` - ExtLastTimestamp uint64 `protobuf:"varint,3,opt,name=ext_last_timestamp,json=extLastTimestamp,proto3" json:"ext_last_timestamp,omitempty"` - ExtSecondLastTimestamp uint64 `protobuf:"varint,4,opt,name=ext_second_last_timestamp,json=extSecondLastTimestamp,proto3" json:"ext_second_last_timestamp,omitempty"` - LastMarker bool `protobuf:"varint,5,opt,name=last_marker,json=lastMarker,proto3" json:"last_marker,omitempty"` - SecondLastMarker bool `protobuf:"varint,6,opt,name=second_last_marker,json=secondLastMarker,proto3" json:"second_last_marker,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ExtLastSequenceNumber uint64 `protobuf:"varint,1,opt,name=ext_last_sequence_number,json=extLastSequenceNumber,proto3" json:"ext_last_sequence_number,omitempty"` + ExtSecondLastSequenceNumber uint64 `protobuf:"varint,2,opt,name=ext_second_last_sequence_number,json=extSecondLastSequenceNumber,proto3" json:"ext_second_last_sequence_number,omitempty"` + ExtLastTimestamp uint64 `protobuf:"varint,3,opt,name=ext_last_timestamp,json=extLastTimestamp,proto3" json:"ext_last_timestamp,omitempty"` + ExtSecondLastTimestamp uint64 `protobuf:"varint,4,opt,name=ext_second_last_timestamp,json=extSecondLastTimestamp,proto3" json:"ext_second_last_timestamp,omitempty"` + LastMarker bool `protobuf:"varint,5,opt,name=last_marker,json=lastMarker,proto3" json:"last_marker,omitempty"` + SecondLastMarker bool `protobuf:"varint,6,opt,name=second_last_marker,json=secondLastMarker,proto3" json:"second_last_marker,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RTPMungerState) Reset() { @@ -4291,17 +4288,16 @@ func (x *RTPMungerState) GetSecondLastMarker() bool { } type VP8MungerState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ExtLastPictureId int32 `protobuf:"varint,1,opt,name=ext_last_picture_id,json=extLastPictureId,proto3" json:"ext_last_picture_id,omitempty"` - PictureIdUsed bool `protobuf:"varint,2,opt,name=picture_id_used,json=pictureIdUsed,proto3" json:"picture_id_used,omitempty"` - LastTl0PicIdx uint32 `protobuf:"varint,3,opt,name=last_tl0_pic_idx,json=lastTl0PicIdx,proto3" json:"last_tl0_pic_idx,omitempty"` - Tl0PicIdxUsed bool `protobuf:"varint,4,opt,name=tl0_pic_idx_used,json=tl0PicIdxUsed,proto3" json:"tl0_pic_idx_used,omitempty"` - TidUsed bool `protobuf:"varint,5,opt,name=tid_used,json=tidUsed,proto3" json:"tid_used,omitempty"` - LastKeyIdx uint32 `protobuf:"varint,6,opt,name=last_key_idx,json=lastKeyIdx,proto3" json:"last_key_idx,omitempty"` - KeyIdxUsed bool `protobuf:"varint,7,opt,name=key_idx_used,json=keyIdxUsed,proto3" json:"key_idx_used,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ExtLastPictureId int32 `protobuf:"varint,1,opt,name=ext_last_picture_id,json=extLastPictureId,proto3" json:"ext_last_picture_id,omitempty"` + PictureIdUsed bool `protobuf:"varint,2,opt,name=picture_id_used,json=pictureIdUsed,proto3" json:"picture_id_used,omitempty"` + LastTl0PicIdx uint32 `protobuf:"varint,3,opt,name=last_tl0_pic_idx,json=lastTl0PicIdx,proto3" json:"last_tl0_pic_idx,omitempty"` + Tl0PicIdxUsed bool `protobuf:"varint,4,opt,name=tl0_pic_idx_used,json=tl0PicIdxUsed,proto3" json:"tl0_pic_idx_used,omitempty"` + TidUsed bool `protobuf:"varint,5,opt,name=tid_used,json=tidUsed,proto3" json:"tid_used,omitempty"` + LastKeyIdx uint32 `protobuf:"varint,6,opt,name=last_key_idx,json=lastKeyIdx,proto3" json:"last_key_idx,omitempty"` + KeyIdxUsed bool `protobuf:"varint,7,opt,name=key_idx_used,json=keyIdxUsed,proto3" json:"key_idx_used,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *VP8MungerState) Reset() { @@ -4384,12 +4380,11 @@ func (x *VP8MungerState) GetKeyIdxUsed() bool { } type TimedVersion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + UnixMicro int64 `protobuf:"varint,1,opt,name=unix_micro,json=unixMicro,proto3" json:"unix_micro,omitempty"` + Ticks int32 `protobuf:"varint,2,opt,name=ticks,proto3" json:"ticks,omitempty"` unknownFields protoimpl.UnknownFields - - UnixMicro int64 `protobuf:"varint,1,opt,name=unix_micro,json=unixMicro,proto3" json:"unix_micro,omitempty"` - Ticks int32 `protobuf:"varint,2,opt,name=ticks,proto3" json:"ticks,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TimedVersion) Reset() { @@ -4437,9 +4432,9 @@ func (x *TimedVersion) GetTicks() int32 { } type DataStream struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DataStream) Reset() { @@ -4474,15 +4469,14 @@ func (*DataStream) Descriptor() ([]byte, []int) { // header properties specific to text streams type DataStream_TextHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` OperationType DataStream_OperationType `protobuf:"varint,1,opt,name=operation_type,json=operationType,proto3,enum=livekit.DataStream_OperationType" json:"operation_type,omitempty"` Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` // Optional: Version for updates/edits ReplyToStreamId string `protobuf:"bytes,3,opt,name=reply_to_stream_id,json=replyToStreamId,proto3" json:"reply_to_stream_id,omitempty"` // Optional: Reply to specific message AttachedStreamIds []string `protobuf:"bytes,4,rep,name=attached_stream_ids,json=attachedStreamIds,proto3" json:"attached_stream_ids,omitempty"` // file attachments for text streams Generated bool `protobuf:"varint,5,opt,name=generated,proto3" json:"generated,omitempty"` // true if the text has been generated by an agent from a participant's audio transcription + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DataStream_TextHeader) Reset() { @@ -4552,11 +4546,10 @@ func (x *DataStream_TextHeader) GetGenerated() bool { // header properties specific to file or image streams type DataStream_FileHeader struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // name of the file unknownFields protoimpl.UnknownFields - - FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` // name of the file + sizeCache protoimpl.SizeCache } func (x *DataStream_FileHeader) Reset() { @@ -4598,25 +4591,24 @@ func (x *DataStream_FileHeader) GetFileName() string { // main DataStream.Header that contains a oneof for specific headers type DataStream_Header struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - StreamId string `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` // unique identifier for this data stream - Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // using int64 for Unix timestamp - Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` - MimeType string `protobuf:"bytes,4,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` - TotalLength *uint64 `protobuf:"varint,5,opt,name=total_length,json=totalLength,proto3,oneof" json:"total_length,omitempty"` // only populated for finite streams, if it's a stream of unknown size this stays empty - TotalChunks *uint64 `protobuf:"varint,6,opt,name=total_chunks,json=totalChunks,proto3,oneof" json:"total_chunks,omitempty"` // only populated for finite streams, if it's a stream of unknown size this stays empty - EncryptionType Encryption_Type `protobuf:"varint,7,opt,name=encryption_type,json=encryptionType,proto3,enum=livekit.Encryption_Type" json:"encryption_type,omitempty"` // defaults to NONE - Extensions map[string]string `protobuf:"bytes,8,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // user defined extensions map that can carry additional info + state protoimpl.MessageState `protogen:"open.v1"` + StreamId string `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` // unique identifier for this data stream + Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // using int64 for Unix timestamp + Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` + MimeType string `protobuf:"bytes,4,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"` + TotalLength *uint64 `protobuf:"varint,5,opt,name=total_length,json=totalLength,proto3,oneof" json:"total_length,omitempty"` // only populated for finite streams, if it's a stream of unknown size this stays empty + TotalChunks *uint64 `protobuf:"varint,6,opt,name=total_chunks,json=totalChunks,proto3,oneof" json:"total_chunks,omitempty"` // only populated for finite streams, if it's a stream of unknown size this stays empty + EncryptionType Encryption_Type `protobuf:"varint,7,opt,name=encryption_type,json=encryptionType,proto3,enum=livekit.Encryption_Type" json:"encryption_type,omitempty"` // defaults to NONE + Extensions map[string]string `protobuf:"bytes,8,rep,name=extensions,proto3" json:"extensions,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // user defined extensions map that can carry additional info // oneof to choose between specific header types // - // Types that are assignable to ContentHeader: + // Types that are valid to be assigned to ContentHeader: // // *DataStream_Header_TextHeader // *DataStream_Header_FileHeader ContentHeader isDataStream_Header_ContentHeader `protobuf_oneof:"content_header"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DataStream_Header) Reset() { @@ -4705,23 +4697,27 @@ func (x *DataStream_Header) GetExtensions() map[string]string { return nil } -func (m *DataStream_Header) GetContentHeader() isDataStream_Header_ContentHeader { - if m != nil { - return m.ContentHeader +func (x *DataStream_Header) GetContentHeader() isDataStream_Header_ContentHeader { + if x != nil { + return x.ContentHeader } return nil } func (x *DataStream_Header) GetTextHeader() *DataStream_TextHeader { - if x, ok := x.GetContentHeader().(*DataStream_Header_TextHeader); ok { - return x.TextHeader + if x != nil { + if x, ok := x.ContentHeader.(*DataStream_Header_TextHeader); ok { + return x.TextHeader + } } return nil } func (x *DataStream_Header) GetFileHeader() *DataStream_FileHeader { - if x, ok := x.GetContentHeader().(*DataStream_Header_FileHeader); ok { - return x.FileHeader + if x != nil { + if x, ok := x.ContentHeader.(*DataStream_Header_FileHeader); ok { + return x.FileHeader + } } return nil } @@ -4743,16 +4739,15 @@ func (*DataStream_Header_TextHeader) isDataStream_Header_ContentHeader() {} func (*DataStream_Header_FileHeader) isDataStream_Header_ContentHeader() {} type DataStream_Chunk struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + StreamId string `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` // unique identifier for this data stream to map it to the correct header + ChunkIndex uint64 `protobuf:"varint,2,opt,name=chunk_index,json=chunkIndex,proto3" json:"chunk_index,omitempty"` + Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // content as binary (bytes) + Complete bool `protobuf:"varint,4,opt,name=complete,proto3" json:"complete,omitempty"` // true only if this is the last chunk of this stream - can also be sent with empty content + Version int32 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` // a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced + Iv []byte `protobuf:"bytes,6,opt,name=iv,proto3,oneof" json:"iv,omitempty"` // optional, initialization vector for AES-GCM encryption unknownFields protoimpl.UnknownFields - - StreamId string `protobuf:"bytes,1,opt,name=stream_id,json=streamId,proto3" json:"stream_id,omitempty"` // unique identifier for this data stream to map it to the correct header - ChunkIndex uint64 `protobuf:"varint,2,opt,name=chunk_index,json=chunkIndex,proto3" json:"chunk_index,omitempty"` - Content []byte `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // content as binary (bytes) - Complete bool `protobuf:"varint,4,opt,name=complete,proto3" json:"complete,omitempty"` // true only if this is the last chunk of this stream - can also be sent with empty content - Version int32 `protobuf:"varint,5,opt,name=version,proto3" json:"version,omitempty"` // a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced - Iv []byte `protobuf:"bytes,6,opt,name=iv,proto3,oneof" json:"iv,omitempty"` // optional, initialization vector for AES-GCM encryption + sizeCache protoimpl.SizeCache } func (x *DataStream_Chunk) Reset() { diff --git a/livekit/livekit_room.pb.go b/livekit/livekit_room.pb.go index ad41cf01..9edf647f 100644 --- a/livekit/livekit_room.pb.go +++ b/livekit/livekit_room.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: livekit_room.proto @@ -35,10 +35,7 @@ const ( ) type CreateRoomRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // name of the room Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // configuration to use for this room parameters. Setting parameters below override the config defaults. @@ -64,7 +61,9 @@ type CreateRoomRequest struct { // replay ReplayEnabled bool `protobuf:"varint,13,opt,name=replay_enabled,json=replayEnabled,proto3" json:"replay_enabled,omitempty"` // Define agents that should be dispatched to this room - Agents []*RoomAgentDispatch `protobuf:"bytes,14,rep,name=agents,proto3" json:"agents,omitempty"` // NEXT-ID: 15 + Agents []*RoomAgentDispatch `protobuf:"bytes,14,rep,name=agents,proto3" json:"agents,omitempty"` // NEXT-ID: 15 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateRoomRequest) Reset() { @@ -189,13 +188,12 @@ func (x *CreateRoomRequest) GetAgents() []*RoomAgentDispatch { } type RoomEgress struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Room *RoomCompositeEgressRequest `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` + Participant *AutoParticipantEgress `protobuf:"bytes,3,opt,name=participant,proto3" json:"participant,omitempty"` + Tracks *AutoTrackEgress `protobuf:"bytes,2,opt,name=tracks,proto3" json:"tracks,omitempty"` unknownFields protoimpl.UnknownFields - - Room *RoomCompositeEgressRequest `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` - Participant *AutoParticipantEgress `protobuf:"bytes,3,opt,name=participant,proto3" json:"participant,omitempty"` - Tracks *AutoTrackEgress `protobuf:"bytes,2,opt,name=tracks,proto3" json:"tracks,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RoomEgress) Reset() { @@ -250,11 +248,10 @@ func (x *RoomEgress) GetTracks() *AutoTrackEgress { } type RoomAgent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Dispatches []*RoomAgentDispatch `protobuf:"bytes,1,rep,name=dispatches,proto3" json:"dispatches,omitempty"` unknownFields protoimpl.UnknownFields - - Dispatches []*RoomAgentDispatch `protobuf:"bytes,1,rep,name=dispatches,proto3" json:"dispatches,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RoomAgent) Reset() { @@ -295,12 +292,11 @@ func (x *RoomAgent) GetDispatches() []*RoomAgentDispatch { } type ListRoomsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // when set, will only return rooms with name match - Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` + Names []string `protobuf:"bytes,1,rep,name=names,proto3" json:"names,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListRoomsRequest) Reset() { @@ -341,11 +337,10 @@ func (x *ListRoomsRequest) GetNames() []string { } type ListRoomsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Rooms []*Room `protobuf:"bytes,1,rep,name=rooms,proto3" json:"rooms,omitempty"` unknownFields protoimpl.UnknownFields - - Rooms []*Room `protobuf:"bytes,1,rep,name=rooms,proto3" json:"rooms,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListRoomsResponse) Reset() { @@ -386,12 +381,11 @@ func (x *ListRoomsResponse) GetRooms() []*Room { } type DeleteRoomRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // name of the room - Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` + Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteRoomRequest) Reset() { @@ -432,9 +426,9 @@ func (x *DeleteRoomRequest) GetRoom() string { } type DeleteRoomResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteRoomResponse) Reset() { @@ -468,12 +462,11 @@ func (*DeleteRoomResponse) Descriptor() ([]byte, []int) { } type ListParticipantsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // name of the room - Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` + Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListParticipantsRequest) Reset() { @@ -514,11 +507,10 @@ func (x *ListParticipantsRequest) GetRoom() string { } type ListParticipantsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Participants []*ParticipantInfo `protobuf:"bytes,1,rep,name=participants,proto3" json:"participants,omitempty"` unknownFields protoimpl.UnknownFields - - Participants []*ParticipantInfo `protobuf:"bytes,1,rep,name=participants,proto3" json:"participants,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListParticipantsResponse) Reset() { @@ -559,14 +551,13 @@ func (x *ListParticipantsResponse) GetParticipants() []*ParticipantInfo { } type RoomParticipantIdentity struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // name of the room Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` // identity of the participant - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RoomParticipantIdentity) Reset() { @@ -614,9 +605,9 @@ func (x *RoomParticipantIdentity) GetIdentity() string { } type RemoveParticipantResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RemoveParticipantResponse) Reset() { @@ -650,17 +641,16 @@ func (*RemoveParticipantResponse) Descriptor() ([]byte, []int) { } type MuteRoomTrackRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // name of the room Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // sid of the track to mute TrackSid string `protobuf:"bytes,3,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` // set to true to mute, false to unmute - Muted bool `protobuf:"varint,4,opt,name=muted,proto3" json:"muted,omitempty"` + Muted bool `protobuf:"varint,4,opt,name=muted,proto3" json:"muted,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *MuteRoomTrackRequest) Reset() { @@ -722,11 +712,10 @@ func (x *MuteRoomTrackRequest) GetMuted() bool { } type MuteRoomTrackResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Track *TrackInfo `protobuf:"bytes,1,opt,name=track,proto3" json:"track,omitempty"` unknownFields protoimpl.UnknownFields - - Track *TrackInfo `protobuf:"bytes,1,opt,name=track,proto3" json:"track,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MuteRoomTrackResponse) Reset() { @@ -767,12 +756,9 @@ func (x *MuteRoomTrackResponse) GetTrack() *TrackInfo { } type UpdateParticipantRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // metadata to update. skipping updates if left empty Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // set to update the participant's permissions @@ -781,7 +767,9 @@ type UpdateParticipantRequest struct { Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // attributes to update. it only updates attributes that have been set // to delete attributes, set the value to an empty string - Attributes map[string]string `protobuf:"bytes,6,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Attributes map[string]string `protobuf:"bytes,6,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateParticipantRequest) Reset() { @@ -857,18 +845,17 @@ func (x *UpdateParticipantRequest) GetAttributes() map[string]string { } type UpdateSubscriptionsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` - Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` + Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // list of sids of tracks TrackSids []string `protobuf:"bytes,3,rep,name=track_sids,json=trackSids,proto3" json:"track_sids,omitempty"` // set to true to subscribe, false to unsubscribe from tracks Subscribe bool `protobuf:"varint,4,opt,name=subscribe,proto3" json:"subscribe,omitempty"` // list of participants and their tracks ParticipantTracks []*ParticipantTracks `protobuf:"bytes,5,rep,name=participant_tracks,json=participantTracks,proto3" json:"participant_tracks,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateSubscriptionsRequest) Reset() { @@ -937,9 +924,9 @@ func (x *UpdateSubscriptionsRequest) GetParticipantTracks() []*ParticipantTracks } type UpdateSubscriptionsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateSubscriptionsResponse) Reset() { @@ -973,13 +960,10 @@ func (*UpdateSubscriptionsResponse) Descriptor() ([]byte, []int) { } type SendDataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` - Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` - Kind DataPacket_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=livekit.DataPacket_Kind" json:"kind,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` + Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Kind DataPacket_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=livekit.DataPacket_Kind" json:"kind,omitempty"` // mark deprecated // // Deprecated: Marked as deprecated in livekit_room.proto. @@ -987,6 +971,8 @@ type SendDataRequest struct { // when set, only forward to these identities DestinationIdentities []string `protobuf:"bytes,6,rep,name=destination_identities,json=destinationIdentities,proto3" json:"destination_identities,omitempty"` Topic *string `protobuf:"bytes,5,opt,name=topic,proto3,oneof" json:"topic,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SendDataRequest) Reset() { @@ -1063,9 +1049,9 @@ func (x *SendDataRequest) GetTopic() string { } type SendDataResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SendDataResponse) Reset() { @@ -1099,13 +1085,12 @@ func (*SendDataResponse) Descriptor() ([]byte, []int) { } type UpdateRoomMetadataRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Room string `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` // metadata to update. skipping updates if left empty - Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateRoomMetadataRequest) Reset() { @@ -1153,11 +1138,8 @@ func (x *UpdateRoomMetadataRequest) GetMetadata() string { } type RoomConfiguration struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Used as ID, must be unique + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Used as ID, must be unique // number of seconds to keep the room open if no one joins EmptyTimeout uint32 `protobuf:"varint,2,opt,name=empty_timeout,json=emptyTimeout,proto3" json:"empty_timeout,omitempty"` // number of seconds to keep the room open after everyone leaves @@ -1173,7 +1155,9 @@ type RoomConfiguration struct { // so not recommended for rooms with frequent subscription changes SyncStreams bool `protobuf:"varint,9,opt,name=sync_streams,json=syncStreams,proto3" json:"sync_streams,omitempty"` // Define agents that should be dispatched to this room - Agents []*RoomAgentDispatch `protobuf:"bytes,10,rep,name=agents,proto3" json:"agents,omitempty"` + Agents []*RoomAgentDispatch `protobuf:"bytes,10,rep,name=agents,proto3" json:"agents,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *RoomConfiguration) Reset() { diff --git a/livekit/livekit_rtc.pb.go b/livekit/livekit_rtc.pb.go index f4764979..d582c936 100644 --- a/livekit/livekit_rtc.pb.go +++ b/livekit/livekit_rtc.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: livekit_rtc.proto @@ -278,11 +278,8 @@ func (RequestResponse_Reason) EnumDescriptor() ([]byte, []int) { } type SignalRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Message: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Message: // // *SignalRequest_Offer // *SignalRequest_Answer @@ -301,7 +298,9 @@ type SignalRequest struct { // *SignalRequest_PingReq // *SignalRequest_UpdateAudioTrack // *SignalRequest_UpdateVideoTrack - Message isSignalRequest_Message `protobuf_oneof:"message"` + Message isSignalRequest_Message `protobuf_oneof:"message"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SignalRequest) Reset() { @@ -334,129 +333,163 @@ func (*SignalRequest) Descriptor() ([]byte, []int) { return file_livekit_rtc_proto_rawDescGZIP(), []int{0} } -func (m *SignalRequest) GetMessage() isSignalRequest_Message { - if m != nil { - return m.Message +func (x *SignalRequest) GetMessage() isSignalRequest_Message { + if x != nil { + return x.Message } return nil } func (x *SignalRequest) GetOffer() *SessionDescription { - if x, ok := x.GetMessage().(*SignalRequest_Offer); ok { - return x.Offer + if x != nil { + if x, ok := x.Message.(*SignalRequest_Offer); ok { + return x.Offer + } } return nil } func (x *SignalRequest) GetAnswer() *SessionDescription { - if x, ok := x.GetMessage().(*SignalRequest_Answer); ok { - return x.Answer + if x != nil { + if x, ok := x.Message.(*SignalRequest_Answer); ok { + return x.Answer + } } return nil } func (x *SignalRequest) GetTrickle() *TrickleRequest { - if x, ok := x.GetMessage().(*SignalRequest_Trickle); ok { - return x.Trickle + if x != nil { + if x, ok := x.Message.(*SignalRequest_Trickle); ok { + return x.Trickle + } } return nil } func (x *SignalRequest) GetAddTrack() *AddTrackRequest { - if x, ok := x.GetMessage().(*SignalRequest_AddTrack); ok { - return x.AddTrack + if x != nil { + if x, ok := x.Message.(*SignalRequest_AddTrack); ok { + return x.AddTrack + } } return nil } func (x *SignalRequest) GetMute() *MuteTrackRequest { - if x, ok := x.GetMessage().(*SignalRequest_Mute); ok { - return x.Mute + if x != nil { + if x, ok := x.Message.(*SignalRequest_Mute); ok { + return x.Mute + } } return nil } func (x *SignalRequest) GetSubscription() *UpdateSubscription { - if x, ok := x.GetMessage().(*SignalRequest_Subscription); ok { - return x.Subscription + if x != nil { + if x, ok := x.Message.(*SignalRequest_Subscription); ok { + return x.Subscription + } } return nil } func (x *SignalRequest) GetTrackSetting() *UpdateTrackSettings { - if x, ok := x.GetMessage().(*SignalRequest_TrackSetting); ok { - return x.TrackSetting + if x != nil { + if x, ok := x.Message.(*SignalRequest_TrackSetting); ok { + return x.TrackSetting + } } return nil } func (x *SignalRequest) GetLeave() *LeaveRequest { - if x, ok := x.GetMessage().(*SignalRequest_Leave); ok { - return x.Leave + if x != nil { + if x, ok := x.Message.(*SignalRequest_Leave); ok { + return x.Leave + } } return nil } // Deprecated: Marked as deprecated in livekit_rtc.proto. func (x *SignalRequest) GetUpdateLayers() *UpdateVideoLayers { - if x, ok := x.GetMessage().(*SignalRequest_UpdateLayers); ok { - return x.UpdateLayers + if x != nil { + if x, ok := x.Message.(*SignalRequest_UpdateLayers); ok { + return x.UpdateLayers + } } return nil } func (x *SignalRequest) GetSubscriptionPermission() *SubscriptionPermission { - if x, ok := x.GetMessage().(*SignalRequest_SubscriptionPermission); ok { - return x.SubscriptionPermission + if x != nil { + if x, ok := x.Message.(*SignalRequest_SubscriptionPermission); ok { + return x.SubscriptionPermission + } } return nil } func (x *SignalRequest) GetSyncState() *SyncState { - if x, ok := x.GetMessage().(*SignalRequest_SyncState); ok { - return x.SyncState + if x != nil { + if x, ok := x.Message.(*SignalRequest_SyncState); ok { + return x.SyncState + } } return nil } func (x *SignalRequest) GetSimulate() *SimulateScenario { - if x, ok := x.GetMessage().(*SignalRequest_Simulate); ok { - return x.Simulate + if x != nil { + if x, ok := x.Message.(*SignalRequest_Simulate); ok { + return x.Simulate + } } return nil } func (x *SignalRequest) GetPing() int64 { - if x, ok := x.GetMessage().(*SignalRequest_Ping); ok { - return x.Ping + if x != nil { + if x, ok := x.Message.(*SignalRequest_Ping); ok { + return x.Ping + } } return 0 } func (x *SignalRequest) GetUpdateMetadata() *UpdateParticipantMetadata { - if x, ok := x.GetMessage().(*SignalRequest_UpdateMetadata); ok { - return x.UpdateMetadata + if x != nil { + if x, ok := x.Message.(*SignalRequest_UpdateMetadata); ok { + return x.UpdateMetadata + } } return nil } func (x *SignalRequest) GetPingReq() *Ping { - if x, ok := x.GetMessage().(*SignalRequest_PingReq); ok { - return x.PingReq + if x != nil { + if x, ok := x.Message.(*SignalRequest_PingReq); ok { + return x.PingReq + } } return nil } func (x *SignalRequest) GetUpdateAudioTrack() *UpdateLocalAudioTrack { - if x, ok := x.GetMessage().(*SignalRequest_UpdateAudioTrack); ok { - return x.UpdateAudioTrack + if x != nil { + if x, ok := x.Message.(*SignalRequest_UpdateAudioTrack); ok { + return x.UpdateAudioTrack + } } return nil } func (x *SignalRequest) GetUpdateVideoTrack() *UpdateLocalVideoTrack { - if x, ok := x.GetMessage().(*SignalRequest_UpdateVideoTrack); ok { - return x.UpdateVideoTrack + if x != nil { + if x, ok := x.Message.(*SignalRequest_UpdateVideoTrack); ok { + return x.UpdateVideoTrack + } } return nil } @@ -585,11 +618,8 @@ func (*SignalRequest_UpdateAudioTrack) isSignalRequest_Message() {} func (*SignalRequest_UpdateVideoTrack) isSignalRequest_Message() {} type SignalResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Message: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Message: // // *SignalResponse_Join // *SignalResponse_Answer @@ -613,7 +643,9 @@ type SignalResponse struct { // *SignalResponse_SubscriptionResponse // *SignalResponse_RequestResponse // *SignalResponse_TrackSubscribed - Message isSignalResponse_Message `protobuf_oneof:"message"` + Message isSignalResponse_Message `protobuf_oneof:"message"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SignalResponse) Reset() { @@ -646,163 +678,207 @@ func (*SignalResponse) Descriptor() ([]byte, []int) { return file_livekit_rtc_proto_rawDescGZIP(), []int{1} } -func (m *SignalResponse) GetMessage() isSignalResponse_Message { - if m != nil { - return m.Message +func (x *SignalResponse) GetMessage() isSignalResponse_Message { + if x != nil { + return x.Message } return nil } func (x *SignalResponse) GetJoin() *JoinResponse { - if x, ok := x.GetMessage().(*SignalResponse_Join); ok { - return x.Join + if x != nil { + if x, ok := x.Message.(*SignalResponse_Join); ok { + return x.Join + } } return nil } func (x *SignalResponse) GetAnswer() *SessionDescription { - if x, ok := x.GetMessage().(*SignalResponse_Answer); ok { - return x.Answer + if x != nil { + if x, ok := x.Message.(*SignalResponse_Answer); ok { + return x.Answer + } } return nil } func (x *SignalResponse) GetOffer() *SessionDescription { - if x, ok := x.GetMessage().(*SignalResponse_Offer); ok { - return x.Offer + if x != nil { + if x, ok := x.Message.(*SignalResponse_Offer); ok { + return x.Offer + } } return nil } func (x *SignalResponse) GetTrickle() *TrickleRequest { - if x, ok := x.GetMessage().(*SignalResponse_Trickle); ok { - return x.Trickle + if x != nil { + if x, ok := x.Message.(*SignalResponse_Trickle); ok { + return x.Trickle + } } return nil } func (x *SignalResponse) GetUpdate() *ParticipantUpdate { - if x, ok := x.GetMessage().(*SignalResponse_Update); ok { - return x.Update + if x != nil { + if x, ok := x.Message.(*SignalResponse_Update); ok { + return x.Update + } } return nil } func (x *SignalResponse) GetTrackPublished() *TrackPublishedResponse { - if x, ok := x.GetMessage().(*SignalResponse_TrackPublished); ok { - return x.TrackPublished + if x != nil { + if x, ok := x.Message.(*SignalResponse_TrackPublished); ok { + return x.TrackPublished + } } return nil } func (x *SignalResponse) GetLeave() *LeaveRequest { - if x, ok := x.GetMessage().(*SignalResponse_Leave); ok { - return x.Leave + if x != nil { + if x, ok := x.Message.(*SignalResponse_Leave); ok { + return x.Leave + } } return nil } func (x *SignalResponse) GetMute() *MuteTrackRequest { - if x, ok := x.GetMessage().(*SignalResponse_Mute); ok { - return x.Mute + if x != nil { + if x, ok := x.Message.(*SignalResponse_Mute); ok { + return x.Mute + } } return nil } func (x *SignalResponse) GetSpeakersChanged() *SpeakersChanged { - if x, ok := x.GetMessage().(*SignalResponse_SpeakersChanged); ok { - return x.SpeakersChanged + if x != nil { + if x, ok := x.Message.(*SignalResponse_SpeakersChanged); ok { + return x.SpeakersChanged + } } return nil } func (x *SignalResponse) GetRoomUpdate() *RoomUpdate { - if x, ok := x.GetMessage().(*SignalResponse_RoomUpdate); ok { - return x.RoomUpdate + if x != nil { + if x, ok := x.Message.(*SignalResponse_RoomUpdate); ok { + return x.RoomUpdate + } } return nil } func (x *SignalResponse) GetConnectionQuality() *ConnectionQualityUpdate { - if x, ok := x.GetMessage().(*SignalResponse_ConnectionQuality); ok { - return x.ConnectionQuality + if x != nil { + if x, ok := x.Message.(*SignalResponse_ConnectionQuality); ok { + return x.ConnectionQuality + } } return nil } func (x *SignalResponse) GetStreamStateUpdate() *StreamStateUpdate { - if x, ok := x.GetMessage().(*SignalResponse_StreamStateUpdate); ok { - return x.StreamStateUpdate + if x != nil { + if x, ok := x.Message.(*SignalResponse_StreamStateUpdate); ok { + return x.StreamStateUpdate + } } return nil } func (x *SignalResponse) GetSubscribedQualityUpdate() *SubscribedQualityUpdate { - if x, ok := x.GetMessage().(*SignalResponse_SubscribedQualityUpdate); ok { - return x.SubscribedQualityUpdate + if x != nil { + if x, ok := x.Message.(*SignalResponse_SubscribedQualityUpdate); ok { + return x.SubscribedQualityUpdate + } } return nil } func (x *SignalResponse) GetSubscriptionPermissionUpdate() *SubscriptionPermissionUpdate { - if x, ok := x.GetMessage().(*SignalResponse_SubscriptionPermissionUpdate); ok { - return x.SubscriptionPermissionUpdate + if x != nil { + if x, ok := x.Message.(*SignalResponse_SubscriptionPermissionUpdate); ok { + return x.SubscriptionPermissionUpdate + } } return nil } func (x *SignalResponse) GetRefreshToken() string { - if x, ok := x.GetMessage().(*SignalResponse_RefreshToken); ok { - return x.RefreshToken + if x != nil { + if x, ok := x.Message.(*SignalResponse_RefreshToken); ok { + return x.RefreshToken + } } return "" } func (x *SignalResponse) GetTrackUnpublished() *TrackUnpublishedResponse { - if x, ok := x.GetMessage().(*SignalResponse_TrackUnpublished); ok { - return x.TrackUnpublished + if x != nil { + if x, ok := x.Message.(*SignalResponse_TrackUnpublished); ok { + return x.TrackUnpublished + } } return nil } func (x *SignalResponse) GetPong() int64 { - if x, ok := x.GetMessage().(*SignalResponse_Pong); ok { - return x.Pong + if x != nil { + if x, ok := x.Message.(*SignalResponse_Pong); ok { + return x.Pong + } } return 0 } func (x *SignalResponse) GetReconnect() *ReconnectResponse { - if x, ok := x.GetMessage().(*SignalResponse_Reconnect); ok { - return x.Reconnect + if x != nil { + if x, ok := x.Message.(*SignalResponse_Reconnect); ok { + return x.Reconnect + } } return nil } func (x *SignalResponse) GetPongResp() *Pong { - if x, ok := x.GetMessage().(*SignalResponse_PongResp); ok { - return x.PongResp + if x != nil { + if x, ok := x.Message.(*SignalResponse_PongResp); ok { + return x.PongResp + } } return nil } func (x *SignalResponse) GetSubscriptionResponse() *SubscriptionResponse { - if x, ok := x.GetMessage().(*SignalResponse_SubscriptionResponse); ok { - return x.SubscriptionResponse + if x != nil { + if x, ok := x.Message.(*SignalResponse_SubscriptionResponse); ok { + return x.SubscriptionResponse + } } return nil } func (x *SignalResponse) GetRequestResponse() *RequestResponse { - if x, ok := x.GetMessage().(*SignalResponse_RequestResponse); ok { - return x.RequestResponse + if x != nil { + if x, ok := x.Message.(*SignalResponse_RequestResponse); ok { + return x.RequestResponse + } } return nil } func (x *SignalResponse) GetTrackSubscribed() *TrackSubscribed { - if x, ok := x.GetMessage().(*SignalResponse_TrackSubscribed); ok { - return x.TrackSubscribed + if x != nil { + if x, ok := x.Message.(*SignalResponse_TrackSubscribed); ok { + return x.TrackSubscribed + } } return nil } @@ -967,12 +1043,11 @@ func (*SignalResponse_RequestResponse) isSignalResponse_Message() {} func (*SignalResponse_TrackSubscribed) isSignalResponse_Message() {} type SimulcastCodec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Codec string `protobuf:"bytes,1,opt,name=codec,proto3" json:"codec,omitempty"` + Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"` unknownFields protoimpl.UnknownFields - - Codec string `protobuf:"bytes,1,opt,name=codec,proto3" json:"codec,omitempty"` - Cid string `protobuf:"bytes,2,opt,name=cid,proto3" json:"cid,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SimulcastCodec) Reset() { @@ -1020,10 +1095,7 @@ func (x *SimulcastCodec) GetCid() string { } type AddTrackRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // client ID of track, to match it when RTC track is received Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` @@ -1046,7 +1118,9 @@ type AddTrackRequest struct { Encryption Encryption_Type `protobuf:"varint,14,opt,name=encryption,proto3,enum=livekit.Encryption_Type" json:"encryption,omitempty"` // which stream the track belongs to, used to group tracks together. // if not specified, server will infer it from track source to bundle camera/microphone, screenshare/audio together - Stream string `protobuf:"bytes,15,opt,name=stream,proto3" json:"stream,omitempty"` + Stream string `protobuf:"bytes,15,opt,name=stream,proto3" json:"stream,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *AddTrackRequest) Reset() { @@ -1185,13 +1259,12 @@ func (x *AddTrackRequest) GetStream() string { } type TrickleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CandidateInit string `protobuf:"bytes,1,opt,name=candidateInit,proto3" json:"candidateInit,omitempty"` + Target SignalTarget `protobuf:"varint,2,opt,name=target,proto3,enum=livekit.SignalTarget" json:"target,omitempty"` + Final bool `protobuf:"varint,3,opt,name=final,proto3" json:"final,omitempty"` unknownFields protoimpl.UnknownFields - - CandidateInit string `protobuf:"bytes,1,opt,name=candidateInit,proto3" json:"candidateInit,omitempty"` - Target SignalTarget `protobuf:"varint,2,opt,name=target,proto3,enum=livekit.SignalTarget" json:"target,omitempty"` - Final bool `protobuf:"varint,3,opt,name=final,proto3" json:"final,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TrickleRequest) Reset() { @@ -1246,12 +1319,11 @@ func (x *TrickleRequest) GetFinal() bool { } type MuteTrackRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` + Muted bool `protobuf:"varint,2,opt,name=muted,proto3" json:"muted,omitempty"` unknownFields protoimpl.UnknownFields - - Sid string `protobuf:"bytes,1,opt,name=sid,proto3" json:"sid,omitempty"` - Muted bool `protobuf:"varint,2,opt,name=muted,proto3" json:"muted,omitempty"` + sizeCache protoimpl.SizeCache } func (x *MuteTrackRequest) Reset() { @@ -1299,13 +1371,10 @@ func (x *MuteTrackRequest) GetMuted() bool { } type JoinResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Room *Room `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` - Participant *ParticipantInfo `protobuf:"bytes,2,opt,name=participant,proto3" json:"participant,omitempty"` - OtherParticipants []*ParticipantInfo `protobuf:"bytes,3,rep,name=other_participants,json=otherParticipants,proto3" json:"other_participants,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Room *Room `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` + Participant *ParticipantInfo `protobuf:"bytes,2,opt,name=participant,proto3" json:"participant,omitempty"` + OtherParticipants []*ParticipantInfo `protobuf:"bytes,3,rep,name=other_participants,json=otherParticipants,proto3" json:"other_participants,omitempty"` // deprecated. use server_info.version instead. ServerVersion string `protobuf:"bytes,4,opt,name=server_version,json=serverVersion,proto3" json:"server_version,omitempty"` IceServers []*ICEServer `protobuf:"bytes,5,rep,name=ice_servers,json=iceServers,proto3" json:"ice_servers,omitempty"` @@ -1324,7 +1393,9 @@ type JoinResponse struct { SifTrailer []byte `protobuf:"bytes,13,opt,name=sif_trailer,json=sifTrailer,proto3" json:"sif_trailer,omitempty"` EnabledPublishCodecs []*Codec `protobuf:"bytes,14,rep,name=enabled_publish_codecs,json=enabledPublishCodecs,proto3" json:"enabled_publish_codecs,omitempty"` // when set, client should attempt to establish publish peer connection when joining room to speed up publishing - FastPublish bool `protobuf:"varint,15,opt,name=fast_publish,json=fastPublish,proto3" json:"fast_publish,omitempty"` + FastPublish bool `protobuf:"varint,15,opt,name=fast_publish,json=fastPublish,proto3" json:"fast_publish,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *JoinResponse) Reset() { @@ -1463,12 +1534,11 @@ func (x *JoinResponse) GetFastPublish() bool { } type ReconnectResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IceServers []*ICEServer `protobuf:"bytes,1,rep,name=ice_servers,json=iceServers,proto3" json:"ice_servers,omitempty"` - ClientConfiguration *ClientConfiguration `protobuf:"bytes,2,opt,name=client_configuration,json=clientConfiguration,proto3" json:"client_configuration,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + IceServers []*ICEServer `protobuf:"bytes,1,rep,name=ice_servers,json=iceServers,proto3" json:"ice_servers,omitempty"` + ClientConfiguration *ClientConfiguration `protobuf:"bytes,2,opt,name=client_configuration,json=clientConfiguration,proto3" json:"client_configuration,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ReconnectResponse) Reset() { @@ -1516,12 +1586,11 @@ func (x *ReconnectResponse) GetClientConfiguration() *ClientConfiguration { } type TrackPublishedResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` + Track *TrackInfo `protobuf:"bytes,2,opt,name=track,proto3" json:"track,omitempty"` unknownFields protoimpl.UnknownFields - - Cid string `protobuf:"bytes,1,opt,name=cid,proto3" json:"cid,omitempty"` - Track *TrackInfo `protobuf:"bytes,2,opt,name=track,proto3" json:"track,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TrackPublishedResponse) Reset() { @@ -1569,11 +1638,10 @@ func (x *TrackPublishedResponse) GetTrack() *TrackInfo { } type TrackUnpublishedResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TrackSid string `protobuf:"bytes,1,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` unknownFields protoimpl.UnknownFields - - TrackSid string `protobuf:"bytes,1,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TrackUnpublishedResponse) Reset() { @@ -1614,12 +1682,11 @@ func (x *TrackUnpublishedResponse) GetTrackSid() string { } type SessionDescription struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // "answer" | "offer" | "pranswer" | "rollback" + Sdp string `protobuf:"bytes,2,opt,name=sdp,proto3" json:"sdp,omitempty"` unknownFields protoimpl.UnknownFields - - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // "answer" | "offer" | "pranswer" | "rollback" - Sdp string `protobuf:"bytes,2,opt,name=sdp,proto3" json:"sdp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SessionDescription) Reset() { @@ -1667,11 +1734,10 @@ func (x *SessionDescription) GetSdp() string { } type ParticipantUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Participants []*ParticipantInfo `protobuf:"bytes,1,rep,name=participants,proto3" json:"participants,omitempty"` unknownFields protoimpl.UnknownFields - - Participants []*ParticipantInfo `protobuf:"bytes,1,rep,name=participants,proto3" json:"participants,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ParticipantUpdate) Reset() { @@ -1712,13 +1778,12 @@ func (x *ParticipantUpdate) GetParticipants() []*ParticipantInfo { } type UpdateSubscription struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TrackSids []string `protobuf:"bytes,1,rep,name=track_sids,json=trackSids,proto3" json:"track_sids,omitempty"` - Subscribe bool `protobuf:"varint,2,opt,name=subscribe,proto3" json:"subscribe,omitempty"` - ParticipantTracks []*ParticipantTracks `protobuf:"bytes,3,rep,name=participant_tracks,json=participantTracks,proto3" json:"participant_tracks,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TrackSids []string `protobuf:"bytes,1,rep,name=track_sids,json=trackSids,proto3" json:"track_sids,omitempty"` + Subscribe bool `protobuf:"varint,2,opt,name=subscribe,proto3" json:"subscribe,omitempty"` + ParticipantTracks []*ParticipantTracks `protobuf:"bytes,3,rep,name=participant_tracks,json=participantTracks,proto3" json:"participant_tracks,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateSubscription) Reset() { @@ -1773,11 +1838,8 @@ func (x *UpdateSubscription) GetParticipantTracks() []*ParticipantTracks { } type UpdateTrackSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TrackSids []string `protobuf:"bytes,1,rep,name=track_sids,json=trackSids,proto3" json:"track_sids,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TrackSids []string `protobuf:"bytes,1,rep,name=track_sids,json=trackSids,proto3" json:"track_sids,omitempty"` // when true, the track is placed in a paused state, with no new data returned Disabled bool `protobuf:"varint,3,opt,name=disabled,proto3" json:"disabled,omitempty"` // deprecated in favor of width & height @@ -1794,7 +1856,9 @@ type UpdateTrackSettings struct { // pause the lowest priority tracks // 2. when the network is congested, server will assign available bandwidth to // higher priority tracks first. lowest priority tracks can be paused - Priority uint32 `protobuf:"varint,8,opt,name=priority,proto3" json:"priority,omitempty"` + Priority uint32 `protobuf:"varint,8,opt,name=priority,proto3" json:"priority,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateTrackSettings) Reset() { @@ -1877,12 +1941,11 @@ func (x *UpdateTrackSettings) GetPriority() uint32 { } type UpdateLocalAudioTrack struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TrackSid string `protobuf:"bytes,1,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` + Features []AudioTrackFeature `protobuf:"varint,2,rep,packed,name=features,proto3,enum=livekit.AudioTrackFeature" json:"features,omitempty"` unknownFields protoimpl.UnknownFields - - TrackSid string `protobuf:"bytes,1,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` - Features []AudioTrackFeature `protobuf:"varint,2,rep,packed,name=features,proto3,enum=livekit.AudioTrackFeature" json:"features,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateLocalAudioTrack) Reset() { @@ -1930,13 +1993,12 @@ func (x *UpdateLocalAudioTrack) GetFeatures() []AudioTrackFeature { } type UpdateLocalVideoTrack struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TrackSid string `protobuf:"bytes,1,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` + Width uint32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` + Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` unknownFields protoimpl.UnknownFields - - TrackSid string `protobuf:"bytes,1,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` - Width uint32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` - Height uint32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateLocalVideoTrack) Reset() { @@ -1991,17 +2053,16 @@ func (x *UpdateLocalVideoTrack) GetHeight() uint32 { } type LeaveRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // sent when server initiates the disconnect due to server-restart // indicates clients should attempt full-reconnect sequence // NOTE: `can_reconnect` obsoleted by `action` starting in protocol version 13 - CanReconnect bool `protobuf:"varint,1,opt,name=can_reconnect,json=canReconnect,proto3" json:"can_reconnect,omitempty"` - Reason DisconnectReason `protobuf:"varint,2,opt,name=reason,proto3,enum=livekit.DisconnectReason" json:"reason,omitempty"` - Action LeaveRequest_Action `protobuf:"varint,3,opt,name=action,proto3,enum=livekit.LeaveRequest_Action" json:"action,omitempty"` - Regions *RegionSettings `protobuf:"bytes,4,opt,name=regions,proto3" json:"regions,omitempty"` + CanReconnect bool `protobuf:"varint,1,opt,name=can_reconnect,json=canReconnect,proto3" json:"can_reconnect,omitempty"` + Reason DisconnectReason `protobuf:"varint,2,opt,name=reason,proto3,enum=livekit.DisconnectReason" json:"reason,omitempty"` + Action LeaveRequest_Action `protobuf:"varint,3,opt,name=action,proto3,enum=livekit.LeaveRequest_Action" json:"action,omitempty"` + Regions *RegionSettings `protobuf:"bytes,4,opt,name=regions,proto3" json:"regions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *LeaveRequest) Reset() { @@ -2066,12 +2127,11 @@ func (x *LeaveRequest) GetRegions() *RegionSettings { // // Deprecated: Marked as deprecated in livekit_rtc.proto. type UpdateVideoLayers struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TrackSid string `protobuf:"bytes,1,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` + Layers []*VideoLayer `protobuf:"bytes,2,rep,name=layers,proto3" json:"layers,omitempty"` unknownFields protoimpl.UnknownFields - - TrackSid string `protobuf:"bytes,1,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` - Layers []*VideoLayer `protobuf:"bytes,2,rep,name=layers,proto3" json:"layers,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateVideoLayers) Reset() { @@ -2119,16 +2179,15 @@ func (x *UpdateVideoLayers) GetLayers() []*VideoLayer { } type UpdateParticipantMetadata struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Metadata string `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Metadata string `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // attributes to update. it only updates attributes that have been set // to delete attributes, set the value to an empty string - Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - RequestId uint32 `protobuf:"varint,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + RequestId uint32 `protobuf:"varint,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *UpdateParticipantMetadata) Reset() { @@ -2190,13 +2249,12 @@ func (x *UpdateParticipantMetadata) GetRequestId() uint32 { } type ICEServer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Urls []string `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"` + Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` + Credential string `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"` unknownFields protoimpl.UnknownFields - - Urls []string `protobuf:"bytes,1,rep,name=urls,proto3" json:"urls,omitempty"` - Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` - Credential string `protobuf:"bytes,3,opt,name=credential,proto3" json:"credential,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ICEServer) Reset() { @@ -2251,11 +2309,10 @@ func (x *ICEServer) GetCredential() string { } type SpeakersChanged struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Speakers []*SpeakerInfo `protobuf:"bytes,1,rep,name=speakers,proto3" json:"speakers,omitempty"` unknownFields protoimpl.UnknownFields - - Speakers []*SpeakerInfo `protobuf:"bytes,1,rep,name=speakers,proto3" json:"speakers,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SpeakersChanged) Reset() { @@ -2296,11 +2353,10 @@ func (x *SpeakersChanged) GetSpeakers() []*SpeakerInfo { } type RoomUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Room *Room `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` unknownFields protoimpl.UnknownFields - - Room *Room `protobuf:"bytes,1,opt,name=room,proto3" json:"room,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RoomUpdate) Reset() { @@ -2341,13 +2397,12 @@ func (x *RoomUpdate) GetRoom() *Room { } type ConnectionQualityInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ParticipantSid string `protobuf:"bytes,1,opt,name=participant_sid,json=participantSid,proto3" json:"participant_sid,omitempty"` - Quality ConnectionQuality `protobuf:"varint,2,opt,name=quality,proto3,enum=livekit.ConnectionQuality" json:"quality,omitempty"` - Score float32 `protobuf:"fixed32,3,opt,name=score,proto3" json:"score,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ParticipantSid string `protobuf:"bytes,1,opt,name=participant_sid,json=participantSid,proto3" json:"participant_sid,omitempty"` + Quality ConnectionQuality `protobuf:"varint,2,opt,name=quality,proto3,enum=livekit.ConnectionQuality" json:"quality,omitempty"` + Score float32 `protobuf:"fixed32,3,opt,name=score,proto3" json:"score,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ConnectionQualityInfo) Reset() { @@ -2402,11 +2457,10 @@ func (x *ConnectionQualityInfo) GetScore() float32 { } type ConnectionQualityUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Updates []*ConnectionQualityInfo `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"` unknownFields protoimpl.UnknownFields - - Updates []*ConnectionQualityInfo `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ConnectionQualityUpdate) Reset() { @@ -2447,13 +2501,12 @@ func (x *ConnectionQualityUpdate) GetUpdates() []*ConnectionQualityInfo { } type StreamStateInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ParticipantSid string `protobuf:"bytes,1,opt,name=participant_sid,json=participantSid,proto3" json:"participant_sid,omitempty"` - TrackSid string `protobuf:"bytes,2,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` - State StreamState `protobuf:"varint,3,opt,name=state,proto3,enum=livekit.StreamState" json:"state,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ParticipantSid string `protobuf:"bytes,1,opt,name=participant_sid,json=participantSid,proto3" json:"participant_sid,omitempty"` + TrackSid string `protobuf:"bytes,2,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` + State StreamState `protobuf:"varint,3,opt,name=state,proto3,enum=livekit.StreamState" json:"state,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StreamStateInfo) Reset() { @@ -2508,11 +2561,10 @@ func (x *StreamStateInfo) GetState() StreamState { } type StreamStateUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + StreamStates []*StreamStateInfo `protobuf:"bytes,1,rep,name=stream_states,json=streamStates,proto3" json:"stream_states,omitempty"` unknownFields protoimpl.UnknownFields - - StreamStates []*StreamStateInfo `protobuf:"bytes,1,rep,name=stream_states,json=streamStates,proto3" json:"stream_states,omitempty"` + sizeCache protoimpl.SizeCache } func (x *StreamStateUpdate) Reset() { @@ -2553,12 +2605,11 @@ func (x *StreamStateUpdate) GetStreamStates() []*StreamStateInfo { } type SubscribedQuality struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Quality VideoQuality `protobuf:"varint,1,opt,name=quality,proto3,enum=livekit.VideoQuality" json:"quality,omitempty"` + Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` unknownFields protoimpl.UnknownFields - - Quality VideoQuality `protobuf:"varint,1,opt,name=quality,proto3,enum=livekit.VideoQuality" json:"quality,omitempty"` - Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SubscribedQuality) Reset() { @@ -2606,12 +2657,11 @@ func (x *SubscribedQuality) GetEnabled() bool { } type SubscribedCodec struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Codec string `protobuf:"bytes,1,opt,name=codec,proto3" json:"codec,omitempty"` + Qualities []*SubscribedQuality `protobuf:"bytes,2,rep,name=qualities,proto3" json:"qualities,omitempty"` unknownFields protoimpl.UnknownFields - - Codec string `protobuf:"bytes,1,opt,name=codec,proto3" json:"codec,omitempty"` - Qualities []*SubscribedQuality `protobuf:"bytes,2,rep,name=qualities,proto3" json:"qualities,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SubscribedCodec) Reset() { @@ -2659,13 +2709,12 @@ func (x *SubscribedCodec) GetQualities() []*SubscribedQuality { } type SubscribedQualityUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TrackSid string `protobuf:"bytes,1,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` - SubscribedQualities []*SubscribedQuality `protobuf:"bytes,2,rep,name=subscribed_qualities,json=subscribedQualities,proto3" json:"subscribed_qualities,omitempty"` - SubscribedCodecs []*SubscribedCodec `protobuf:"bytes,3,rep,name=subscribed_codecs,json=subscribedCodecs,proto3" json:"subscribed_codecs,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TrackSid string `protobuf:"bytes,1,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` + SubscribedQualities []*SubscribedQuality `protobuf:"bytes,2,rep,name=subscribed_qualities,json=subscribedQualities,proto3" json:"subscribed_qualities,omitempty"` + SubscribedCodecs []*SubscribedCodec `protobuf:"bytes,3,rep,name=subscribed_codecs,json=subscribedCodecs,proto3" json:"subscribed_codecs,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SubscribedQualityUpdate) Reset() { @@ -2720,15 +2769,14 @@ func (x *SubscribedQualityUpdate) GetSubscribedCodecs() []*SubscribedCodec { } type TrackPermission struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // permission could be granted either by participant sid or identity ParticipantSid string `protobuf:"bytes,1,opt,name=participant_sid,json=participantSid,proto3" json:"participant_sid,omitempty"` AllTracks bool `protobuf:"varint,2,opt,name=all_tracks,json=allTracks,proto3" json:"all_tracks,omitempty"` TrackSids []string `protobuf:"bytes,3,rep,name=track_sids,json=trackSids,proto3" json:"track_sids,omitempty"` ParticipantIdentity string `protobuf:"bytes,4,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TrackPermission) Reset() { @@ -2790,12 +2838,11 @@ func (x *TrackPermission) GetParticipantIdentity() string { } type SubscriptionPermission struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AllParticipants bool `protobuf:"varint,1,opt,name=all_participants,json=allParticipants,proto3" json:"all_participants,omitempty"` - TrackPermissions []*TrackPermission `protobuf:"bytes,2,rep,name=track_permissions,json=trackPermissions,proto3" json:"track_permissions,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + AllParticipants bool `protobuf:"varint,1,opt,name=all_participants,json=allParticipants,proto3" json:"all_participants,omitempty"` + TrackPermissions []*TrackPermission `protobuf:"bytes,2,rep,name=track_permissions,json=trackPermissions,proto3" json:"track_permissions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SubscriptionPermission) Reset() { @@ -2843,13 +2890,12 @@ func (x *SubscriptionPermission) GetTrackPermissions() []*TrackPermission { } type SubscriptionPermissionUpdate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ParticipantSid string `protobuf:"bytes,1,opt,name=participant_sid,json=participantSid,proto3" json:"participant_sid,omitempty"` - TrackSid string `protobuf:"bytes,2,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` - Allowed bool `protobuf:"varint,3,opt,name=allowed,proto3" json:"allowed,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ParticipantSid string `protobuf:"bytes,1,opt,name=participant_sid,json=participantSid,proto3" json:"participant_sid,omitempty"` + TrackSid string `protobuf:"bytes,2,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` + Allowed bool `protobuf:"varint,3,opt,name=allowed,proto3" json:"allowed,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SubscriptionPermissionUpdate) Reset() { @@ -2904,10 +2950,7 @@ func (x *SubscriptionPermissionUpdate) GetAllowed() bool { } type SyncState struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // last subscribe answer before reconnecting Answer *SessionDescription `protobuf:"bytes,1,opt,name=answer,proto3" json:"answer,omitempty"` Subscription *UpdateSubscription `protobuf:"bytes,2,opt,name=subscription,proto3" json:"subscription,omitempty"` @@ -2916,6 +2959,8 @@ type SyncState struct { // last received server side offer before reconnecting Offer *SessionDescription `protobuf:"bytes,5,opt,name=offer,proto3" json:"offer,omitempty"` TrackSidsDisabled []string `protobuf:"bytes,6,rep,name=track_sids_disabled,json=trackSidsDisabled,proto3" json:"track_sids_disabled,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SyncState) Reset() { @@ -2991,13 +3036,12 @@ func (x *SyncState) GetTrackSidsDisabled() []string { } type DataChannelInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` + Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` + Target SignalTarget `protobuf:"varint,3,opt,name=target,proto3,enum=livekit.SignalTarget" json:"target,omitempty"` unknownFields protoimpl.UnknownFields - - Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` - Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` - Target SignalTarget `protobuf:"varint,3,opt,name=target,proto3,enum=livekit.SignalTarget" json:"target,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DataChannelInfo) Reset() { @@ -3052,11 +3096,8 @@ func (x *DataChannelInfo) GetTarget() SignalTarget { } type SimulateScenario struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Scenario: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Scenario: // // *SimulateScenario_SpeakerUpdate // *SimulateScenario_NodeFailure @@ -3067,7 +3108,9 @@ type SimulateScenario struct { // *SimulateScenario_DisconnectSignalOnResume // *SimulateScenario_DisconnectSignalOnResumeNoMessages // *SimulateScenario_LeaveRequestFullReconnect - Scenario isSimulateScenario_Scenario `protobuf_oneof:"scenario"` + Scenario isSimulateScenario_Scenario `protobuf_oneof:"scenario"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SimulateScenario) Reset() { @@ -3100,72 +3143,90 @@ func (*SimulateScenario) Descriptor() ([]byte, []int) { return file_livekit_rtc_proto_rawDescGZIP(), []int{34} } -func (m *SimulateScenario) GetScenario() isSimulateScenario_Scenario { - if m != nil { - return m.Scenario +func (x *SimulateScenario) GetScenario() isSimulateScenario_Scenario { + if x != nil { + return x.Scenario } return nil } func (x *SimulateScenario) GetSpeakerUpdate() int32 { - if x, ok := x.GetScenario().(*SimulateScenario_SpeakerUpdate); ok { - return x.SpeakerUpdate + if x != nil { + if x, ok := x.Scenario.(*SimulateScenario_SpeakerUpdate); ok { + return x.SpeakerUpdate + } } return 0 } func (x *SimulateScenario) GetNodeFailure() bool { - if x, ok := x.GetScenario().(*SimulateScenario_NodeFailure); ok { - return x.NodeFailure + if x != nil { + if x, ok := x.Scenario.(*SimulateScenario_NodeFailure); ok { + return x.NodeFailure + } } return false } func (x *SimulateScenario) GetMigration() bool { - if x, ok := x.GetScenario().(*SimulateScenario_Migration); ok { - return x.Migration + if x != nil { + if x, ok := x.Scenario.(*SimulateScenario_Migration); ok { + return x.Migration + } } return false } func (x *SimulateScenario) GetServerLeave() bool { - if x, ok := x.GetScenario().(*SimulateScenario_ServerLeave); ok { - return x.ServerLeave + if x != nil { + if x, ok := x.Scenario.(*SimulateScenario_ServerLeave); ok { + return x.ServerLeave + } } return false } func (x *SimulateScenario) GetSwitchCandidateProtocol() CandidateProtocol { - if x, ok := x.GetScenario().(*SimulateScenario_SwitchCandidateProtocol); ok { - return x.SwitchCandidateProtocol + if x != nil { + if x, ok := x.Scenario.(*SimulateScenario_SwitchCandidateProtocol); ok { + return x.SwitchCandidateProtocol + } } return CandidateProtocol_UDP } func (x *SimulateScenario) GetSubscriberBandwidth() int64 { - if x, ok := x.GetScenario().(*SimulateScenario_SubscriberBandwidth); ok { - return x.SubscriberBandwidth + if x != nil { + if x, ok := x.Scenario.(*SimulateScenario_SubscriberBandwidth); ok { + return x.SubscriberBandwidth + } } return 0 } func (x *SimulateScenario) GetDisconnectSignalOnResume() bool { - if x, ok := x.GetScenario().(*SimulateScenario_DisconnectSignalOnResume); ok { - return x.DisconnectSignalOnResume + if x != nil { + if x, ok := x.Scenario.(*SimulateScenario_DisconnectSignalOnResume); ok { + return x.DisconnectSignalOnResume + } } return false } func (x *SimulateScenario) GetDisconnectSignalOnResumeNoMessages() bool { - if x, ok := x.GetScenario().(*SimulateScenario_DisconnectSignalOnResumeNoMessages); ok { - return x.DisconnectSignalOnResumeNoMessages + if x != nil { + if x, ok := x.Scenario.(*SimulateScenario_DisconnectSignalOnResumeNoMessages); ok { + return x.DisconnectSignalOnResumeNoMessages + } } return false } func (x *SimulateScenario) GetLeaveRequestFullReconnect() bool { - if x, ok := x.GetScenario().(*SimulateScenario_LeaveRequestFullReconnect); ok { - return x.LeaveRequestFullReconnect + if x != nil { + if x, ok := x.Scenario.(*SimulateScenario_LeaveRequestFullReconnect); ok { + return x.LeaveRequestFullReconnect + } } return false } @@ -3239,13 +3300,12 @@ func (*SimulateScenario_DisconnectSignalOnResumeNoMessages) isSimulateScenario_S func (*SimulateScenario_LeaveRequestFullReconnect) isSimulateScenario_Scenario() {} type Ping struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // rtt in milliseconds calculated by client - Rtt int64 `protobuf:"varint,2,opt,name=rtt,proto3" json:"rtt,omitempty"` + Rtt int64 `protobuf:"varint,2,opt,name=rtt,proto3" json:"rtt,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Ping) Reset() { @@ -3293,13 +3353,12 @@ func (x *Ping) GetRtt() int64 { } type Pong struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // timestamp field of last received ping request LastPingTimestamp int64 `protobuf:"varint,1,opt,name=last_ping_timestamp,json=lastPingTimestamp,proto3" json:"last_ping_timestamp,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *Pong) Reset() { @@ -3347,11 +3406,10 @@ func (x *Pong) GetTimestamp() int64 { } type RegionSettings struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Regions []*RegionInfo `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` unknownFields protoimpl.UnknownFields - - Regions []*RegionInfo `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RegionSettings) Reset() { @@ -3392,13 +3450,12 @@ func (x *RegionSettings) GetRegions() []*RegionInfo { } type RegionInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` + Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` + Distance int64 `protobuf:"varint,3,opt,name=distance,proto3" json:"distance,omitempty"` unknownFields protoimpl.UnknownFields - - Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"` - Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - Distance int64 `protobuf:"varint,3,opt,name=distance,proto3" json:"distance,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RegionInfo) Reset() { @@ -3453,12 +3510,11 @@ func (x *RegionInfo) GetDistance() int64 { } type SubscriptionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TrackSid string `protobuf:"bytes,1,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` + Err SubscriptionError `protobuf:"varint,2,opt,name=err,proto3,enum=livekit.SubscriptionError" json:"err,omitempty"` unknownFields protoimpl.UnknownFields - - TrackSid string `protobuf:"bytes,1,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` - Err SubscriptionError `protobuf:"varint,2,opt,name=err,proto3,enum=livekit.SubscriptionError" json:"err,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SubscriptionResponse) Reset() { @@ -3506,13 +3562,12 @@ func (x *SubscriptionResponse) GetErr() SubscriptionError { } type RequestResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + RequestId uint32 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` + Reason RequestResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=livekit.RequestResponse_Reason" json:"reason,omitempty"` + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` unknownFields protoimpl.UnknownFields - - RequestId uint32 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - Reason RequestResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=livekit.RequestResponse_Reason" json:"reason,omitempty"` - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RequestResponse) Reset() { @@ -3567,11 +3622,10 @@ func (x *RequestResponse) GetMessage() string { } type TrackSubscribed struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + TrackSid string `protobuf:"bytes,1,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` unknownFields protoimpl.UnknownFields - - TrackSid string `protobuf:"bytes,1,opt,name=track_sid,json=trackSid,proto3" json:"track_sid,omitempty"` + sizeCache protoimpl.SizeCache } func (x *TrackSubscribed) Reset() { diff --git a/livekit/livekit_sip.pb.go b/livekit/livekit_sip.pb.go index 59920c2a..dacff4bb 100644 --- a/livekit/livekit_sip.pb.go +++ b/livekit/livekit_sip.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: livekit_sip.proto @@ -289,10 +289,7 @@ func (SIPTrunkInfo_TrunkKind) EnumDescriptor() ([]byte, []int) { // Deprecated: Marked as deprecated in livekit_sip.proto. type CreateSIPTrunkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // CIDR or IPs that traffic is accepted from // An empty list means all inbound traffic is accepted. InboundAddresses []string `protobuf:"bytes,1,rep,name=inbound_addresses,json=inboundAddresses,proto3" json:"inbound_addresses,omitempty"` @@ -315,7 +312,9 @@ type CreateSIPTrunkRequest struct { // Optional human-readable name for the Trunk. Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"` // Optional user-defined metadata for the Trunk. - Metadata string `protobuf:"bytes,11,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,11,opt,name=metadata,proto3" json:"metadata,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateSIPTrunkRequest) Reset() { @@ -428,10 +427,7 @@ func (x *CreateSIPTrunkRequest) GetMetadata() string { // Deprecated: Marked as deprecated in livekit_sip.proto. type SIPTrunkInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` SipTrunkId string `protobuf:"bytes,1,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` Kind SIPTrunkInfo_TrunkKind `protobuf:"varint,14,opt,name=kind,proto3,enum=livekit.SIPTrunkInfo_TrunkKind" json:"kind,omitempty"` // CIDR or IPs that traffic is accepted from @@ -458,7 +454,9 @@ type SIPTrunkInfo struct { // Human-readable name for the Trunk. Name string `protobuf:"bytes,11,opt,name=name,proto3" json:"name,omitempty"` // User-defined metadata for the Trunk. - Metadata string `protobuf:"bytes,12,opt,name=metadata,proto3" json:"metadata,omitempty"` + Metadata string `protobuf:"bytes,12,opt,name=metadata,proto3" json:"metadata,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SIPTrunkInfo) Reset() { @@ -591,11 +589,10 @@ func (x *SIPTrunkInfo) GetMetadata() string { } type CreateSIPInboundTrunkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Trunk *SIPInboundTrunkInfo `protobuf:"bytes,1,opt,name=trunk,proto3" json:"trunk,omitempty"` // Trunk ID is ignored unknownFields protoimpl.UnknownFields - - Trunk *SIPInboundTrunkInfo `protobuf:"bytes,1,opt,name=trunk,proto3" json:"trunk,omitempty"` // Trunk ID is ignored + sizeCache protoimpl.SizeCache } func (x *CreateSIPInboundTrunkRequest) Reset() { @@ -636,11 +633,8 @@ func (x *CreateSIPInboundTrunkRequest) GetTrunk() *SIPInboundTrunkInfo { } type SIPInboundTrunkInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SipTrunkId string `protobuf:"bytes,1,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SipTrunkId string `protobuf:"bytes,1,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` // Human-readable name for the Trunk. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // User-defined metadata for the Trunk. @@ -659,12 +653,12 @@ type SIPInboundTrunkInfo struct { AuthUsername string `protobuf:"bytes,7,opt,name=auth_username,json=authUsername,proto3" json:"auth_username,omitempty"` AuthPassword string `protobuf:"bytes,8,opt,name=auth_password,json=authPassword,proto3" json:"auth_password,omitempty"` // Include these SIP X-* headers in 200 OK responses. - Headers map[string]string `protobuf:"bytes,9,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Headers map[string]string `protobuf:"bytes,9,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Map SIP X-* headers from INVITE to SIP participant attributes. - HeadersToAttributes map[string]string `protobuf:"bytes,10,rep,name=headers_to_attributes,json=headersToAttributes,proto3" json:"headers_to_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + HeadersToAttributes map[string]string `protobuf:"bytes,10,rep,name=headers_to_attributes,json=headersToAttributes,proto3" json:"headers_to_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Map LiveKit attributes to SIP X-* headers when sending BYE or REFER requests. // Keys are the names of attributes and values are the names of X-* headers they will be mapped to. - AttributesToHeaders map[string]string `protobuf:"bytes,14,rep,name=attributes_to_headers,json=attributesToHeaders,proto3" json:"attributes_to_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + AttributesToHeaders map[string]string `protobuf:"bytes,14,rep,name=attributes_to_headers,json=attributesToHeaders,proto3" json:"attributes_to_headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Map SIP headers from INVITE to sip.h.* participant attributes automatically. // // When the names of required headers is known, using headers_to_attributes is strongly recommended. @@ -677,6 +671,8 @@ type SIPInboundTrunkInfo struct { // Max call duration. MaxCallDuration *durationpb.Duration `protobuf:"bytes,12,opt,name=max_call_duration,json=maxCallDuration,proto3" json:"max_call_duration,omitempty"` KrispEnabled bool `protobuf:"varint,13,opt,name=krisp_enabled,json=krispEnabled,proto3" json:"krisp_enabled,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SIPInboundTrunkInfo) Reset() { @@ -815,11 +811,10 @@ func (x *SIPInboundTrunkInfo) GetKrispEnabled() bool { } type CreateSIPOutboundTrunkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Trunk *SIPOutboundTrunkInfo `protobuf:"bytes,1,opt,name=trunk,proto3" json:"trunk,omitempty"` // Trunk ID is ignored unknownFields protoimpl.UnknownFields - - Trunk *SIPOutboundTrunkInfo `protobuf:"bytes,1,opt,name=trunk,proto3" json:"trunk,omitempty"` // Trunk ID is ignored + sizeCache protoimpl.SizeCache } func (x *CreateSIPOutboundTrunkRequest) Reset() { @@ -860,11 +855,8 @@ func (x *CreateSIPOutboundTrunkRequest) GetTrunk() *SIPOutboundTrunkInfo { } type SIPOutboundTrunkInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SipTrunkId string `protobuf:"bytes,1,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SipTrunkId string `protobuf:"bytes,1,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` // Human-readable name for the Trunk. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // User-defined metadata for the Trunk. @@ -882,13 +874,13 @@ type SIPOutboundTrunkInfo struct { AuthPassword string `protobuf:"bytes,8,opt,name=auth_password,json=authPassword,proto3" json:"auth_password,omitempty"` // Include these SIP X-* headers in INVITE request. // These headers are sent as-is and may help identify this call as coming from LiveKit for the other SIP endpoint. - Headers map[string]string `protobuf:"bytes,9,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Headers map[string]string `protobuf:"bytes,9,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Map SIP X-* headers from 200 OK to SIP participant attributes. // Keys are the names of X-* headers and values are the names of attributes they will be mapped to. - HeadersToAttributes map[string]string `protobuf:"bytes,10,rep,name=headers_to_attributes,json=headersToAttributes,proto3" json:"headers_to_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + HeadersToAttributes map[string]string `protobuf:"bytes,10,rep,name=headers_to_attributes,json=headersToAttributes,proto3" json:"headers_to_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Map LiveKit attributes to SIP X-* headers when sending BYE or REFER requests. // Keys are the names of attributes and values are the names of X-* headers they will be mapped to. - AttributesToHeaders map[string]string `protobuf:"bytes,11,rep,name=attributes_to_headers,json=attributesToHeaders,proto3" json:"attributes_to_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + AttributesToHeaders map[string]string `protobuf:"bytes,11,rep,name=attributes_to_headers,json=attributesToHeaders,proto3" json:"attributes_to_headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Map SIP headers from 200 OK to sip.h.* participant attributes automatically. // // When the names of required headers is known, using headers_to_attributes is strongly recommended. @@ -896,6 +888,8 @@ type SIPOutboundTrunkInfo struct { // When mapping 200 OK headers to follow-up request headers with attributes_to_headers map, // lowercase header names should be used, for example: sip.h.x-custom-header. IncludeHeaders SIPHeaderOptions `protobuf:"varint,12,opt,name=include_headers,json=includeHeaders,proto3,enum=livekit.SIPHeaderOptions" json:"include_headers,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SIPOutboundTrunkInfo) Reset() { @@ -1013,11 +1007,10 @@ func (x *SIPOutboundTrunkInfo) GetIncludeHeaders() SIPHeaderOptions { } type GetSIPInboundTrunkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SipTrunkId string `protobuf:"bytes,1,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` unknownFields protoimpl.UnknownFields - - SipTrunkId string `protobuf:"bytes,1,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetSIPInboundTrunkRequest) Reset() { @@ -1058,11 +1051,10 @@ func (x *GetSIPInboundTrunkRequest) GetSipTrunkId() string { } type GetSIPInboundTrunkResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Trunk *SIPInboundTrunkInfo `protobuf:"bytes,1,opt,name=trunk,proto3" json:"trunk,omitempty"` unknownFields protoimpl.UnknownFields - - Trunk *SIPInboundTrunkInfo `protobuf:"bytes,1,opt,name=trunk,proto3" json:"trunk,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetSIPInboundTrunkResponse) Reset() { @@ -1103,11 +1095,10 @@ func (x *GetSIPInboundTrunkResponse) GetTrunk() *SIPInboundTrunkInfo { } type GetSIPOutboundTrunkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SipTrunkId string `protobuf:"bytes,1,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` unknownFields protoimpl.UnknownFields - - SipTrunkId string `protobuf:"bytes,1,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetSIPOutboundTrunkRequest) Reset() { @@ -1148,11 +1139,10 @@ func (x *GetSIPOutboundTrunkRequest) GetSipTrunkId() string { } type GetSIPOutboundTrunkResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Trunk *SIPOutboundTrunkInfo `protobuf:"bytes,1,opt,name=trunk,proto3" json:"trunk,omitempty"` unknownFields protoimpl.UnknownFields - - Trunk *SIPOutboundTrunkInfo `protobuf:"bytes,1,opt,name=trunk,proto3" json:"trunk,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetSIPOutboundTrunkResponse) Reset() { @@ -1194,9 +1184,9 @@ func (x *GetSIPOutboundTrunkResponse) GetTrunk() *SIPOutboundTrunkInfo { // Deprecated: Marked as deprecated in livekit_sip.proto. type ListSIPTrunkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListSIPTrunkRequest) Reset() { @@ -1231,11 +1221,10 @@ func (*ListSIPTrunkRequest) Descriptor() ([]byte, []int) { // Deprecated: Marked as deprecated in livekit_sip.proto. type ListSIPTrunkResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Items []*SIPTrunkInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields - - Items []*SIPTrunkInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListSIPTrunkResponse) Reset() { @@ -1277,15 +1266,14 @@ func (x *ListSIPTrunkResponse) GetItems() []*SIPTrunkInfo { // ListSIPInboundTrunkRequest lists inbound trunks for given filters. If no filters are set, all trunks are listed. type ListSIPInboundTrunkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Trunk IDs to list. If this option is set, the response will contains trunks in the same order. // If any of the trunks is missing, a nil item in that position will be sent in the response. TrunkIds []string `protobuf:"bytes,1,rep,name=trunk_ids,json=trunkIds,proto3" json:"trunk_ids,omitempty"` // Only list trunks that contain one of the numbers, including wildcard trunks. - Numbers []string `protobuf:"bytes,2,rep,name=numbers,proto3" json:"numbers,omitempty"` + Numbers []string `protobuf:"bytes,2,rep,name=numbers,proto3" json:"numbers,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListSIPInboundTrunkRequest) Reset() { @@ -1333,11 +1321,10 @@ func (x *ListSIPInboundTrunkRequest) GetNumbers() []string { } type ListSIPInboundTrunkResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Items []*SIPInboundTrunkInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields - - Items []*SIPInboundTrunkInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListSIPInboundTrunkResponse) Reset() { @@ -1379,15 +1366,14 @@ func (x *ListSIPInboundTrunkResponse) GetItems() []*SIPInboundTrunkInfo { // ListSIPOutboundTrunkRequest lists outbound trunks for given filters. If no filters are set, all trunks are listed. type ListSIPOutboundTrunkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Trunk IDs to list. If this option is set, the response will contains trunks in the same order. // If any of the trunks is missing, a nil item in that position will be sent in the response. TrunkIds []string `protobuf:"bytes,1,rep,name=trunk_ids,json=trunkIds,proto3" json:"trunk_ids,omitempty"` // Only list trunks that contain one of the numbers, including wildcard trunks. - Numbers []string `protobuf:"bytes,2,rep,name=numbers,proto3" json:"numbers,omitempty"` + Numbers []string `protobuf:"bytes,2,rep,name=numbers,proto3" json:"numbers,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListSIPOutboundTrunkRequest) Reset() { @@ -1435,11 +1421,10 @@ func (x *ListSIPOutboundTrunkRequest) GetNumbers() []string { } type ListSIPOutboundTrunkResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Items []*SIPOutboundTrunkInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields - - Items []*SIPOutboundTrunkInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListSIPOutboundTrunkResponse) Reset() { @@ -1480,11 +1465,10 @@ func (x *ListSIPOutboundTrunkResponse) GetItems() []*SIPOutboundTrunkInfo { } type DeleteSIPTrunkRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + SipTrunkId string `protobuf:"bytes,1,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` unknownFields protoimpl.UnknownFields - - SipTrunkId string `protobuf:"bytes,1,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteSIPTrunkRequest) Reset() { @@ -1525,14 +1509,13 @@ func (x *DeleteSIPTrunkRequest) GetSipTrunkId() string { } type SIPDispatchRuleDirect struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // What room should call be directed into RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // Optional pin required to enter room - Pin string `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"` + Pin string `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SIPDispatchRuleDirect) Reset() { @@ -1580,14 +1563,13 @@ func (x *SIPDispatchRuleDirect) GetPin() string { } type SIPDispatchRuleIndividual struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Prefix used on new room name RoomPrefix string `protobuf:"bytes,1,opt,name=room_prefix,json=roomPrefix,proto3" json:"room_prefix,omitempty"` // Optional pin required to enter room - Pin string `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"` + Pin string `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SIPDispatchRuleIndividual) Reset() { @@ -1635,16 +1617,15 @@ func (x *SIPDispatchRuleIndividual) GetPin() string { } type SIPDispatchRuleCallee struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Prefix used on new room name RoomPrefix string `protobuf:"bytes,1,opt,name=room_prefix,json=roomPrefix,proto3" json:"room_prefix,omitempty"` // Optional pin required to enter room Pin string `protobuf:"bytes,2,opt,name=pin,proto3" json:"pin,omitempty"` // Optionally append random suffix - Randomize bool `protobuf:"varint,3,opt,name=randomize,proto3" json:"randomize,omitempty"` + Randomize bool `protobuf:"varint,3,opt,name=randomize,proto3" json:"randomize,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SIPDispatchRuleCallee) Reset() { @@ -1699,16 +1680,15 @@ func (x *SIPDispatchRuleCallee) GetRandomize() bool { } type SIPDispatchRule struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Types that are assignable to Rule: + state protoimpl.MessageState `protogen:"open.v1"` + // Types that are valid to be assigned to Rule: // // *SIPDispatchRule_DispatchRuleDirect // *SIPDispatchRule_DispatchRuleIndividual // *SIPDispatchRule_DispatchRuleCallee - Rule isSIPDispatchRule_Rule `protobuf_oneof:"rule"` + Rule isSIPDispatchRule_Rule `protobuf_oneof:"rule"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SIPDispatchRule) Reset() { @@ -1741,30 +1721,36 @@ func (*SIPDispatchRule) Descriptor() ([]byte, []int) { return file_livekit_sip_proto_rawDescGZIP(), []int{20} } -func (m *SIPDispatchRule) GetRule() isSIPDispatchRule_Rule { - if m != nil { - return m.Rule +func (x *SIPDispatchRule) GetRule() isSIPDispatchRule_Rule { + if x != nil { + return x.Rule } return nil } func (x *SIPDispatchRule) GetDispatchRuleDirect() *SIPDispatchRuleDirect { - if x, ok := x.GetRule().(*SIPDispatchRule_DispatchRuleDirect); ok { - return x.DispatchRuleDirect + if x != nil { + if x, ok := x.Rule.(*SIPDispatchRule_DispatchRuleDirect); ok { + return x.DispatchRuleDirect + } } return nil } func (x *SIPDispatchRule) GetDispatchRuleIndividual() *SIPDispatchRuleIndividual { - if x, ok := x.GetRule().(*SIPDispatchRule_DispatchRuleIndividual); ok { - return x.DispatchRuleIndividual + if x != nil { + if x, ok := x.Rule.(*SIPDispatchRule_DispatchRuleIndividual); ok { + return x.DispatchRuleIndividual + } } return nil } func (x *SIPDispatchRule) GetDispatchRuleCallee() *SIPDispatchRuleCallee { - if x, ok := x.GetRule().(*SIPDispatchRule_DispatchRuleCallee); ok { - return x.DispatchRuleCallee + if x != nil { + if x, ok := x.Rule.(*SIPDispatchRule_DispatchRuleCallee); ok { + return x.DispatchRuleCallee + } } return nil } @@ -1797,11 +1783,8 @@ func (*SIPDispatchRule_DispatchRuleIndividual) isSIPDispatchRule_Rule() {} func (*SIPDispatchRule_DispatchRuleCallee) isSIPDispatchRule_Rule() {} type CreateSIPDispatchRuleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Rule *SIPDispatchRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + Rule *SIPDispatchRule `protobuf:"bytes,1,opt,name=rule,proto3" json:"rule,omitempty"` // What trunks are accepted for this dispatch rule // If empty all trunks will match this dispatch rule TrunkIds []string `protobuf:"bytes,2,rep,name=trunk_ids,json=trunkIds,proto3" json:"trunk_ids,omitempty"` @@ -1817,7 +1800,9 @@ type CreateSIPDispatchRuleRequest struct { Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` // User-defined attributes for the Dispatch Rule. // Participants created by this rule will inherit these attributes. - Attributes map[string]string `protobuf:"bytes,7,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Attributes map[string]string `protobuf:"bytes,7,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateSIPDispatchRuleRequest) Reset() { @@ -1900,14 +1885,11 @@ func (x *CreateSIPDispatchRuleRequest) GetAttributes() map[string]string { } type SIPDispatchRuleInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SipDispatchRuleId string `protobuf:"bytes,1,opt,name=sip_dispatch_rule_id,json=sipDispatchRuleId,proto3" json:"sip_dispatch_rule_id,omitempty"` - Rule *SIPDispatchRule `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"` - TrunkIds []string `protobuf:"bytes,3,rep,name=trunk_ids,json=trunkIds,proto3" json:"trunk_ids,omitempty"` - HidePhoneNumber bool `protobuf:"varint,4,opt,name=hide_phone_number,json=hidePhoneNumber,proto3" json:"hide_phone_number,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SipDispatchRuleId string `protobuf:"bytes,1,opt,name=sip_dispatch_rule_id,json=sipDispatchRuleId,proto3" json:"sip_dispatch_rule_id,omitempty"` + Rule *SIPDispatchRule `protobuf:"bytes,2,opt,name=rule,proto3" json:"rule,omitempty"` + TrunkIds []string `protobuf:"bytes,3,rep,name=trunk_ids,json=trunkIds,proto3" json:"trunk_ids,omitempty"` + HidePhoneNumber bool `protobuf:"varint,4,opt,name=hide_phone_number,json=hidePhoneNumber,proto3" json:"hide_phone_number,omitempty"` // Dispatch Rule will only accept a call made to these numbers (if set). InboundNumbers []string `protobuf:"bytes,7,rep,name=inbound_numbers,json=inboundNumbers,proto3" json:"inbound_numbers,omitempty"` // Human-readable name for the Dispatch Rule. @@ -1917,7 +1899,9 @@ type SIPDispatchRuleInfo struct { Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` // User-defined attributes for the Dispatch Rule. // Participants created by this rule will inherit these attributes. - Attributes map[string]string `protobuf:"bytes,8,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Attributes map[string]string `protobuf:"bytes,8,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SIPDispatchRuleInfo) Reset() { @@ -2008,15 +1992,14 @@ func (x *SIPDispatchRuleInfo) GetAttributes() map[string]string { // ListSIPDispatchRuleRequest lists dispatch rules for given filters. If no filters are set, all rules are listed. type ListSIPDispatchRuleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Rule IDs to list. If this option is set, the response will contains rules in the same order. // If any of the rules is missing, a nil item in that position will be sent in the response. DispatchRuleIds []string `protobuf:"bytes,1,rep,name=dispatch_rule_ids,json=dispatchRuleIds,proto3" json:"dispatch_rule_ids,omitempty"` // Only list rules that contain one of the Trunk IDs, including wildcard rules. - TrunkIds []string `protobuf:"bytes,2,rep,name=trunk_ids,json=trunkIds,proto3" json:"trunk_ids,omitempty"` + TrunkIds []string `protobuf:"bytes,2,rep,name=trunk_ids,json=trunkIds,proto3" json:"trunk_ids,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListSIPDispatchRuleRequest) Reset() { @@ -2064,11 +2047,10 @@ func (x *ListSIPDispatchRuleRequest) GetTrunkIds() []string { } type ListSIPDispatchRuleResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Items []*SIPDispatchRuleInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields - - Items []*SIPDispatchRuleInfo `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListSIPDispatchRuleResponse) Reset() { @@ -2109,11 +2091,10 @@ func (x *ListSIPDispatchRuleResponse) GetItems() []*SIPDispatchRuleInfo { } type DeleteSIPDispatchRuleRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SipDispatchRuleId string `protobuf:"bytes,1,opt,name=sip_dispatch_rule_id,json=sipDispatchRuleId,proto3" json:"sip_dispatch_rule_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SipDispatchRuleId string `protobuf:"bytes,1,opt,name=sip_dispatch_rule_id,json=sipDispatchRuleId,proto3" json:"sip_dispatch_rule_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *DeleteSIPDispatchRuleRequest) Reset() { @@ -2156,10 +2137,7 @@ func (x *DeleteSIPDispatchRuleRequest) GetSipDispatchRuleId() string { // A SIP Participant is a singular SIP session connected to a LiveKit room via // a SIP Trunk into a SIP DispatchRule type CreateSIPParticipantRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // What SIP Trunk should be used to dial the user SipTrunkId string `protobuf:"bytes,1,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` // What number should be dialed via SIP @@ -2175,7 +2153,7 @@ type CreateSIPParticipantRequest struct { // Optional user-defined metadata. Will be attached to a created Participant in the room. ParticipantMetadata string `protobuf:"bytes,8,opt,name=participant_metadata,json=participantMetadata,proto3" json:"participant_metadata,omitempty"` // Optional user-defined attributes. Will be attached to a created Participant in the room. - ParticipantAttributes map[string]string `protobuf:"bytes,9,rep,name=participant_attributes,json=participantAttributes,proto3" json:"participant_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ParticipantAttributes map[string]string `protobuf:"bytes,9,rep,name=participant_attributes,json=participantAttributes,proto3" json:"participant_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Optionally send following DTMF digits (extension codes) when making a call. // Character 'w' can be used to add a 0.5 sec delay. Dtmf string `protobuf:"bytes,5,opt,name=dtmf,proto3" json:"dtmf,omitempty"` @@ -2188,7 +2166,7 @@ type CreateSIPParticipantRequest struct { // If true, a random value for identity will be used and numbers will be omitted from attributes. HidePhoneNumber bool `protobuf:"varint,10,opt,name=hide_phone_number,json=hidePhoneNumber,proto3" json:"hide_phone_number,omitempty"` // These headers are sent as-is and may help identify this call as coming from LiveKit for the other SIP endpoint. - Headers map[string]string `protobuf:"bytes,16,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Headers map[string]string `protobuf:"bytes,16,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Map SIP headers from 200 OK to sip.h.* participant attributes automatically. // // When the names of required headers is known, using headers_to_attributes is strongly recommended. @@ -2201,7 +2179,9 @@ type CreateSIPParticipantRequest struct { // Max call duration. MaxCallDuration *durationpb.Duration `protobuf:"bytes,12,opt,name=max_call_duration,json=maxCallDuration,proto3" json:"max_call_duration,omitempty"` // Enable voice isolation for the callee. - EnableKrisp bool `protobuf:"varint,14,opt,name=enable_krisp,json=enableKrisp,proto3" json:"enable_krisp,omitempty"` // NEXT ID: 18 + EnableKrisp bool `protobuf:"varint,14,opt,name=enable_krisp,json=enableKrisp,proto3" json:"enable_krisp,omitempty"` // NEXT ID: 18 + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CreateSIPParticipantRequest) Reset() { @@ -2355,14 +2335,13 @@ func (x *CreateSIPParticipantRequest) GetEnableKrisp() bool { } type SIPParticipantInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ParticipantId string `protobuf:"bytes,1,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"` - ParticipantIdentity string `protobuf:"bytes,2,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` - RoomName string `protobuf:"bytes,3,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` - SipCallId string `protobuf:"bytes,4,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ParticipantId string `protobuf:"bytes,1,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"` + ParticipantIdentity string `protobuf:"bytes,2,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` + RoomName string `protobuf:"bytes,3,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` + SipCallId string `protobuf:"bytes,4,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SIPParticipantInfo) Reset() { @@ -2424,15 +2403,14 @@ func (x *SIPParticipantInfo) GetSipCallId() string { } type TransferSIPParticipantRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ParticipantIdentity string `protobuf:"bytes,1,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` - RoomName string `protobuf:"bytes,2,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` - TransferTo string `protobuf:"bytes,3,opt,name=transfer_to,json=transferTo,proto3" json:"transfer_to,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ParticipantIdentity string `protobuf:"bytes,1,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` + RoomName string `protobuf:"bytes,2,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` + TransferTo string `protobuf:"bytes,3,opt,name=transfer_to,json=transferTo,proto3" json:"transfer_to,omitempty"` // Optionally play dialtone to the SIP participant as an audible indicator of being transferred - PlayDialtone bool `protobuf:"varint,4,opt,name=play_dialtone,json=playDialtone,proto3" json:"play_dialtone,omitempty"` + PlayDialtone bool `protobuf:"varint,4,opt,name=play_dialtone,json=playDialtone,proto3" json:"play_dialtone,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *TransferSIPParticipantRequest) Reset() { @@ -2494,24 +2472,23 @@ func (x *TransferSIPParticipantRequest) GetPlayDialtone() bool { } type SIPCallInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CallId string `protobuf:"bytes,1,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"` - TrunkId string `protobuf:"bytes,2,opt,name=trunk_id,json=trunkId,proto3" json:"trunk_id,omitempty"` - RoomName string `protobuf:"bytes,3,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` - RoomId string `protobuf:"bytes,4,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` // ID of the current/previous room published to - ParticipantIdentity string `protobuf:"bytes,5,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` - FromUri *SIPUri `protobuf:"bytes,6,opt,name=from_uri,json=fromUri,proto3" json:"from_uri,omitempty"` - ToUri *SIPUri `protobuf:"bytes,7,opt,name=to_uri,json=toUri,proto3" json:"to_uri,omitempty"` - EnabledFeatures []SIPFeature `protobuf:"varint,14,rep,packed,name=enabled_features,json=enabledFeatures,proto3,enum=livekit.SIPFeature" json:"enabled_features,omitempty"` - CallStatus SIPCallStatus `protobuf:"varint,8,opt,name=call_status,json=callStatus,proto3,enum=livekit.SIPCallStatus" json:"call_status,omitempty"` - CreatedAt int64 `protobuf:"varint,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - StartedAt int64 `protobuf:"varint,10,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - EndedAt int64 `protobuf:"varint,11,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` - DisconnectReason DisconnectReason `protobuf:"varint,12,opt,name=disconnect_reason,json=disconnectReason,proto3,enum=livekit.DisconnectReason" json:"disconnect_reason,omitempty"` - Error string `protobuf:"bytes,13,opt,name=error,proto3" json:"error,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + CallId string `protobuf:"bytes,1,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"` + TrunkId string `protobuf:"bytes,2,opt,name=trunk_id,json=trunkId,proto3" json:"trunk_id,omitempty"` + RoomName string `protobuf:"bytes,3,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` + RoomId string `protobuf:"bytes,4,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` // ID of the current/previous room published to + ParticipantIdentity string `protobuf:"bytes,5,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` + FromUri *SIPUri `protobuf:"bytes,6,opt,name=from_uri,json=fromUri,proto3" json:"from_uri,omitempty"` + ToUri *SIPUri `protobuf:"bytes,7,opt,name=to_uri,json=toUri,proto3" json:"to_uri,omitempty"` + EnabledFeatures []SIPFeature `protobuf:"varint,14,rep,packed,name=enabled_features,json=enabledFeatures,proto3,enum=livekit.SIPFeature" json:"enabled_features,omitempty"` + CallStatus SIPCallStatus `protobuf:"varint,8,opt,name=call_status,json=callStatus,proto3,enum=livekit.SIPCallStatus" json:"call_status,omitempty"` + CreatedAt int64 `protobuf:"varint,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + StartedAt int64 `protobuf:"varint,10,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + EndedAt int64 `protobuf:"varint,11,opt,name=ended_at,json=endedAt,proto3" json:"ended_at,omitempty"` + DisconnectReason DisconnectReason `protobuf:"varint,12,opt,name=disconnect_reason,json=disconnectReason,proto3,enum=livekit.DisconnectReason" json:"disconnect_reason,omitempty"` + Error string `protobuf:"bytes,13,opt,name=error,proto3" json:"error,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *SIPCallInfo) Reset() { @@ -2643,15 +2620,14 @@ func (x *SIPCallInfo) GetError() string { } type SIPUri struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` + Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` + Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` + Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` + Transport SIPTransport `protobuf:"varint,5,opt,name=transport,proto3,enum=livekit.SIPTransport" json:"transport,omitempty"` unknownFields protoimpl.UnknownFields - - User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` - Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` - Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` - Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` - Transport SIPTransport `protobuf:"varint,5,opt,name=transport,proto3,enum=livekit.SIPTransport" json:"transport,omitempty"` + sizeCache protoimpl.SizeCache } func (x *SIPUri) Reset() { diff --git a/livekit/livekit_webhook.pb.go b/livekit/livekit_webhook.pb.go index ad2c9266..154160c2 100644 --- a/livekit/livekit_webhook.pb.go +++ b/livekit/livekit_webhook.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: livekit_webhook.proto @@ -35,10 +35,7 @@ const ( ) type WebhookEvent struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // one of room_started, room_finished, participant_joined, participant_left, // track_published, track_unpublished, egress_started, egress_updated, egress_ended, // ingress_started, ingress_ended @@ -55,8 +52,10 @@ type WebhookEvent struct { // unique event uuid Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"` // timestamp in seconds - CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - NumDropped int32 `protobuf:"varint,11,opt,name=num_dropped,json=numDropped,proto3" json:"num_dropped,omitempty"` + CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + NumDropped int32 `protobuf:"varint,11,opt,name=num_dropped,json=numDropped,proto3" json:"num_dropped,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *WebhookEvent) Reset() { diff --git a/rpc/agent.pb.go b/rpc/agent.pb.go index b1d85692..8eaf2944 100644 --- a/rpc/agent.pb.go +++ b/rpc/agent.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: rpc/agent.proto @@ -84,9 +84,9 @@ func (JobTerminateReason) EnumDescriptor() ([]byte, []int) { } type CheckEnabledRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CheckEnabledRequest) Reset() { @@ -120,15 +120,14 @@ func (*CheckEnabledRequest) Descriptor() ([]byte, []int) { } type CheckEnabledResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - RoomEnabled bool `protobuf:"varint,1,opt,name=room_enabled,json=roomEnabled,proto3" json:"room_enabled,omitempty"` - PublisherEnabled bool `protobuf:"varint,2,opt,name=publisher_enabled,json=publisherEnabled,proto3" json:"publisher_enabled,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + RoomEnabled bool `protobuf:"varint,1,opt,name=room_enabled,json=roomEnabled,proto3" json:"room_enabled,omitempty"` + PublisherEnabled bool `protobuf:"varint,2,opt,name=publisher_enabled,json=publisherEnabled,proto3" json:"publisher_enabled,omitempty"` // Deprecated: Marked as deprecated in rpc/agent.proto. - Namespaces []string `protobuf:"bytes,3,rep,name=namespaces,proto3" json:"namespaces,omitempty"` - AgentNames []string `protobuf:"bytes,4,rep,name=agent_names,json=agentNames,proto3" json:"agent_names,omitempty"` + Namespaces []string `protobuf:"bytes,3,rep,name=namespaces,proto3" json:"namespaces,omitempty"` + AgentNames []string `protobuf:"bytes,4,rep,name=agent_names,json=agentNames,proto3" json:"agent_names,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *CheckEnabledResponse) Reset() { @@ -191,11 +190,10 @@ func (x *CheckEnabledResponse) GetAgentNames() []string { } type JobRequestResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + State *livekit.JobState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` unknownFields protoimpl.UnknownFields - - State *livekit.JobState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` + sizeCache protoimpl.SizeCache } func (x *JobRequestResponse) Reset() { @@ -236,12 +234,11 @@ func (x *JobRequestResponse) GetState() *livekit.JobState { } type JobTerminateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + Reason JobTerminateReason `protobuf:"varint,2,opt,name=reason,proto3,enum=rpc.JobTerminateReason" json:"reason,omitempty"` unknownFields protoimpl.UnknownFields - - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` - Reason JobTerminateReason `protobuf:"varint,2,opt,name=reason,proto3,enum=rpc.JobTerminateReason" json:"reason,omitempty"` + sizeCache protoimpl.SizeCache } func (x *JobTerminateRequest) Reset() { @@ -289,11 +286,10 @@ func (x *JobTerminateRequest) GetReason() JobTerminateReason { } type JobTerminateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + State *livekit.JobState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` unknownFields protoimpl.UnknownFields - - State *livekit.JobState `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` + sizeCache protoimpl.SizeCache } func (x *JobTerminateResponse) Reset() { diff --git a/rpc/agent_dispatch.pb.go b/rpc/agent_dispatch.pb.go index 7e0fb985..50fcdffc 100644 --- a/rpc/agent_dispatch.pb.go +++ b/rpc/agent_dispatch.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: rpc/agent_dispatch.proto diff --git a/rpc/analytics.pb.go b/rpc/analytics.pb.go index 63c36453..a3bf2aa9 100644 --- a/rpc/analytics.pb.go +++ b/rpc/analytics.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: rpc/analytics.proto diff --git a/rpc/egress.pb.go b/rpc/egress.pb.go index fbd16245..e7b13ca4 100644 --- a/rpc/egress.pb.go +++ b/rpc/egress.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: rpc/egress.proto @@ -37,15 +37,12 @@ const ( ) type StartEgressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // request metadata EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"` // request // - // Types that are assignable to Request: + // Types that are valid to be assigned to Request: // // *StartEgressRequest_RoomComposite // *StartEgressRequest_Web @@ -60,6 +57,8 @@ type StartEgressRequest struct { // cloud only CloudBackupEnabled bool `protobuf:"varint,10,opt,name=cloud_backup_enabled,json=cloudBackupEnabled,proto3" json:"cloud_backup_enabled,omitempty"` EstimatedCpu float64 `protobuf:"fixed64,14,opt,name=estimated_cpu,json=estimatedCpu,proto3" json:"estimated_cpu,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *StartEgressRequest) Reset() { @@ -99,44 +98,54 @@ func (x *StartEgressRequest) GetEgressId() string { return "" } -func (m *StartEgressRequest) GetRequest() isStartEgressRequest_Request { - if m != nil { - return m.Request +func (x *StartEgressRequest) GetRequest() isStartEgressRequest_Request { + if x != nil { + return x.Request } return nil } func (x *StartEgressRequest) GetRoomComposite() *livekit.RoomCompositeEgressRequest { - if x, ok := x.GetRequest().(*StartEgressRequest_RoomComposite); ok { - return x.RoomComposite + if x != nil { + if x, ok := x.Request.(*StartEgressRequest_RoomComposite); ok { + return x.RoomComposite + } } return nil } func (x *StartEgressRequest) GetWeb() *livekit.WebEgressRequest { - if x, ok := x.GetRequest().(*StartEgressRequest_Web); ok { - return x.Web + if x != nil { + if x, ok := x.Request.(*StartEgressRequest_Web); ok { + return x.Web + } } return nil } func (x *StartEgressRequest) GetParticipant() *livekit.ParticipantEgressRequest { - if x, ok := x.GetRequest().(*StartEgressRequest_Participant); ok { - return x.Participant + if x != nil { + if x, ok := x.Request.(*StartEgressRequest_Participant); ok { + return x.Participant + } } return nil } func (x *StartEgressRequest) GetTrackComposite() *livekit.TrackCompositeEgressRequest { - if x, ok := x.GetRequest().(*StartEgressRequest_TrackComposite); ok { - return x.TrackComposite + if x != nil { + if x, ok := x.Request.(*StartEgressRequest_TrackComposite); ok { + return x.TrackComposite + } } return nil } func (x *StartEgressRequest) GetTrack() *livekit.TrackEgressRequest { - if x, ok := x.GetRequest().(*StartEgressRequest_Track); ok { - return x.Track + if x != nil { + if x, ok := x.Request.(*StartEgressRequest_Track); ok { + return x.Track + } } return nil } @@ -211,9 +220,9 @@ func (*StartEgressRequest_TrackComposite) isStartEgressRequest_Request() {} func (*StartEgressRequest_Track) isStartEgressRequest_Request() {} type ListActiveEgressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListActiveEgressRequest) Reset() { @@ -247,11 +256,10 @@ func (*ListActiveEgressRequest) Descriptor() ([]byte, []int) { } type ListActiveEgressResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EgressIds []string `protobuf:"bytes,1,rep,name=egress_ids,json=egressIds,proto3" json:"egress_ids,omitempty"` unknownFields protoimpl.UnknownFields - - EgressIds []string `protobuf:"bytes,1,rep,name=egress_ids,json=egressIds,proto3" json:"egress_ids,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ListActiveEgressResponse) Reset() { diff --git a/rpc/ingress.pb.go b/rpc/ingress.pb.go index e0f59754..fc3f51ba 100644 --- a/rpc/ingress.pb.go +++ b/rpc/ingress.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: rpc/ingress.proto @@ -38,9 +38,9 @@ const ( ) type ListActiveIngressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListActiveIngressRequest) Reset() { @@ -74,13 +74,12 @@ func (*ListActiveIngressRequest) Descriptor() ([]byte, []int) { } type ListActiveIngressResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Deprecated: Marked as deprecated in rpc/ingress.proto. IngressIds []string `protobuf:"bytes,1,rep,name=ingress_ids,json=ingressIds,proto3" json:"ingress_ids,omitempty"` IngressSessions []*IngressSession `protobuf:"bytes,2,rep,name=ingress_sessions,json=ingressSessions,proto3" json:"ingress_sessions,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ListActiveIngressResponse) Reset() { @@ -129,12 +128,11 @@ func (x *ListActiveIngressResponse) GetIngressSessions() []*IngressSession { } type DeleteWHIPResourceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + StreamKey string `protobuf:"bytes,2,opt,name=stream_key,json=streamKey,proto3" json:"stream_key,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` - StreamKey string `protobuf:"bytes,2,opt,name=stream_key,json=streamKey,proto3" json:"stream_key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *DeleteWHIPResourceRequest) Reset() { @@ -182,15 +180,14 @@ func (x *DeleteWHIPResourceRequest) GetStreamKey() string { } type ICERestartWHIPResourceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + StreamKey string `protobuf:"bytes,2,opt,name=stream_key,json=streamKey,proto3" json:"stream_key,omitempty"` + UserFragment string `protobuf:"bytes,3,opt,name=user_fragment,json=userFragment,proto3" json:"user_fragment,omitempty"` + Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` + Candidates []string `protobuf:"bytes,5,rep,name=candidates,proto3" json:"candidates,omitempty"` unknownFields protoimpl.UnknownFields - - ResourceId string `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` - StreamKey string `protobuf:"bytes,2,opt,name=stream_key,json=streamKey,proto3" json:"stream_key,omitempty"` - UserFragment string `protobuf:"bytes,3,opt,name=user_fragment,json=userFragment,proto3" json:"user_fragment,omitempty"` - Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` - Candidates []string `protobuf:"bytes,5,rep,name=candidates,proto3" json:"candidates,omitempty"` + sizeCache protoimpl.SizeCache } func (x *ICERestartWHIPResourceRequest) Reset() { @@ -259,11 +256,10 @@ func (x *ICERestartWHIPResourceRequest) GetCandidates() []string { } type ICERestartWHIPResourceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TrickleIceSdpfrag string `protobuf:"bytes,1,opt,name=trickle_ice_sdpfrag,json=trickleIceSdpfrag,proto3" json:"trickle_ice_sdpfrag,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + TrickleIceSdpfrag string `protobuf:"bytes,1,opt,name=trickle_ice_sdpfrag,json=trickleIceSdpfrag,proto3" json:"trickle_ice_sdpfrag,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *ICERestartWHIPResourceResponse) Reset() { @@ -304,14 +300,13 @@ func (x *ICERestartWHIPResourceResponse) GetTrickleIceSdpfrag() string { } type StartIngressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Info *livekit.IngressInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + WsUrl string `protobuf:"bytes,3,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"` + LoggingFields map[string]string `protobuf:"bytes,4,rep,name=logging_fields,json=loggingFields,proto3" json:"logging_fields,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Info *livekit.IngressInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - WsUrl string `protobuf:"bytes,3,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"` - LoggingFields map[string]string `protobuf:"bytes,4,rep,name=logging_fields,json=loggingFields,proto3" json:"logging_fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *StartIngressRequest) Reset() { @@ -373,12 +368,11 @@ func (x *StartIngressRequest) GetLoggingFields() map[string]string { } type IngressSession struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` + ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` unknownFields protoimpl.UnknownFields - - IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` - ResourceId string `protobuf:"bytes,2,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *IngressSession) Reset() { @@ -426,11 +420,10 @@ func (x *IngressSession) GetResourceId() string { } type KillIngressSessionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Session *IngressSession `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"` unknownFields protoimpl.UnknownFields - - Session *IngressSession `protobuf:"bytes,1,opt,name=session,proto3" json:"session,omitempty"` + sizeCache protoimpl.SizeCache } func (x *KillIngressSessionRequest) Reset() { diff --git a/rpc/io.pb.go b/rpc/io.pb.go index a49a6d6a..5ebce9aa 100644 --- a/rpc/io.pb.go +++ b/rpc/io.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: rpc/io.proto @@ -93,11 +93,10 @@ func (SIPDispatchResult) EnumDescriptor() ([]byte, []int) { } type GetEgressRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"` unknownFields protoimpl.UnknownFields - - EgressId string `protobuf:"bytes,1,opt,name=egress_id,json=egressId,proto3" json:"egress_id,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetEgressRequest) Reset() { @@ -138,13 +137,12 @@ func (x *GetEgressRequest) GetEgressId() string { } type UpdateMetricsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Info *livekit.EgressInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` + AvgCpuUsage float32 `protobuf:"fixed32,3,opt,name=avg_cpu_usage,json=avgCpuUsage,proto3" json:"avg_cpu_usage,omitempty"` + MaxCpuUsage float32 `protobuf:"fixed32,4,opt,name=max_cpu_usage,json=maxCpuUsage,proto3" json:"max_cpu_usage,omitempty"` unknownFields protoimpl.UnknownFields - - Info *livekit.EgressInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` - AvgCpuUsage float32 `protobuf:"fixed32,3,opt,name=avg_cpu_usage,json=avgCpuUsage,proto3" json:"avg_cpu_usage,omitempty"` - MaxCpuUsage float32 `protobuf:"fixed32,4,opt,name=max_cpu_usage,json=maxCpuUsage,proto3" json:"max_cpu_usage,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateMetricsRequest) Reset() { @@ -200,12 +198,11 @@ func (x *UpdateMetricsRequest) GetMaxCpuUsage() float32 { // Query an ingress info from an ingress ID or stream key type GetIngressInfoRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` + StreamKey string `protobuf:"bytes,2,opt,name=stream_key,json=streamKey,proto3" json:"stream_key,omitempty"` unknownFields protoimpl.UnknownFields - - IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` - StreamKey string `protobuf:"bytes,2,opt,name=stream_key,json=streamKey,proto3" json:"stream_key,omitempty"` + sizeCache protoimpl.SizeCache } func (x *GetIngressInfoRequest) Reset() { @@ -253,14 +250,13 @@ func (x *GetIngressInfoRequest) GetStreamKey() string { } type GetIngressInfoResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Info *livekit.IngressInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + WsUrl string `protobuf:"bytes,3,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"` + LoggingFields map[string]string `protobuf:"bytes,4,rep,name=logging_fields,json=loggingFields,proto3" json:"logging_fields,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` unknownFields protoimpl.UnknownFields - - Info *livekit.IngressInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - WsUrl string `protobuf:"bytes,3,opt,name=ws_url,json=wsUrl,proto3" json:"ws_url,omitempty"` - LoggingFields map[string]string `protobuf:"bytes,4,rep,name=logging_fields,json=loggingFields,proto3" json:"logging_fields,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + sizeCache protoimpl.SizeCache } func (x *GetIngressInfoResponse) Reset() { @@ -323,12 +319,11 @@ func (x *GetIngressInfoResponse) GetLoggingFields() map[string]string { // Request to store an update to the ingress state ingress -> service type UpdateIngressStateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` + State *livekit.IngressState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` unknownFields protoimpl.UnknownFields - - IngressId string `protobuf:"bytes,1,opt,name=ingress_id,json=ingressId,proto3" json:"ingress_id,omitempty"` - State *livekit.IngressState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateIngressStateRequest) Reset() { @@ -376,11 +371,8 @@ func (x *UpdateIngressStateRequest) GetState() *livekit.IngressState { } type GetSIPTrunkAuthenticationRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SipCallId string `protobuf:"bytes,6,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SipCallId string `protobuf:"bytes,6,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"` // What Number is calling From string `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"` // What Number was called @@ -388,7 +380,9 @@ type GetSIPTrunkAuthenticationRequest struct { // What is the IP address of the called number SrcAddress string `protobuf:"bytes,4,opt,name=src_address,json=srcAddress,proto3" json:"src_address,omitempty"` // What Host was called - ToHost string `protobuf:"bytes,5,opt,name=to_host,json=toHost,proto3" json:"to_host,omitempty"` + ToHost string `protobuf:"bytes,5,opt,name=to_host,json=toHost,proto3" json:"to_host,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetSIPTrunkAuthenticationRequest) Reset() { @@ -457,10 +451,7 @@ func (x *GetSIPTrunkAuthenticationRequest) GetToHost() string { } type GetSIPTrunkAuthenticationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Expected username and password Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` @@ -468,7 +459,9 @@ type GetSIPTrunkAuthenticationResponse struct { // Trunk used to fulfill this request SipTrunkId string `protobuf:"bytes,4,opt,name=sip_trunk_id,json=sipTrunkId,proto3" json:"sip_trunk_id,omitempty"` // Used in Cloud only - ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *GetSIPTrunkAuthenticationResponse) Reset() { @@ -537,11 +530,8 @@ func (x *GetSIPTrunkAuthenticationResponse) GetProjectId() string { } type EvaluateSIPDispatchRulesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SipCallId string `protobuf:"bytes,8,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SipCallId string `protobuf:"bytes,8,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"` // Deprecated: Marked as deprecated in rpc/io.proto. SipParticipantId string `protobuf:"bytes,1,opt,name=sip_participant_id,json=sipParticipantId,proto3" json:"sip_participant_id,omitempty"` // Trunk from the auth response, if any @@ -560,7 +550,9 @@ type EvaluateSIPDispatchRulesRequest struct { CalledHost string `protobuf:"bytes,7,opt,name=called_host,json=calledHost,proto3" json:"called_host,omitempty"` // Extra participant attributes added for this call. // Usually include provider-specific metadata. - ExtraAttributes map[string]string `protobuf:"bytes,9,rep,name=extra_attributes,json=extraAttributes,proto3" json:"extra_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ExtraAttributes map[string]string `protobuf:"bytes,9,rep,name=extra_attributes,json=extraAttributes,proto3" json:"extra_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EvaluateSIPDispatchRulesRequest) Reset() { @@ -665,10 +657,7 @@ func (x *EvaluateSIPDispatchRulesRequest) GetExtraAttributes() map[string]string } type EvaluateSIPDispatchRulesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // non-empty string if SIPParticipant should be placed a room RoomName string `protobuf:"bytes,1,opt,name=room_name,json=roomName,proto3" json:"room_name,omitempty"` // What should be used for the LiveKit participant identity @@ -678,7 +667,7 @@ type EvaluateSIPDispatchRulesResponse struct { // What should be used for the LiveKit participant metadata ParticipantMetadata string `protobuf:"bytes,8,opt,name=participant_metadata,json=participantMetadata,proto3" json:"participant_metadata,omitempty"` // What should be used for the LiveKit participant attributes - ParticipantAttributes map[string]string `protobuf:"bytes,11,rep,name=participant_attributes,json=participantAttributes,proto3" json:"participant_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ParticipantAttributes map[string]string `protobuf:"bytes,11,rep,name=participant_attributes,json=participantAttributes,proto3" json:"participant_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Deprecated: Marked as deprecated in rpc/io.proto. RequestPin bool `protobuf:"varint,3,opt,name=request_pin,json=requestPin,proto3" json:"request_pin,omitempty"` // see result // optional token that should be used when creating LiveKit participant @@ -694,13 +683,13 @@ type EvaluateSIPDispatchRulesResponse struct { ProjectId string `protobuf:"bytes,12,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` // Include these SIP X-* headers in 200 OK response to INVITE. // These headers are included as-is and may help identify triggered LiveKit Dispatch Rule for the other SIP endpoint. - Headers map[string]string `protobuf:"bytes,13,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Headers map[string]string `protobuf:"bytes,13,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Map SIP X-* headers from INVITE to SIP participant attributes. // Keys are the names of X-* headers and values are the names of attributes they will be mapped to. - HeadersToAttributes map[string]string `protobuf:"bytes,14,rep,name=headers_to_attributes,json=headersToAttributes,proto3" json:"headers_to_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + HeadersToAttributes map[string]string `protobuf:"bytes,14,rep,name=headers_to_attributes,json=headersToAttributes,proto3" json:"headers_to_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Map LiveKit attributes to SIP X-* headers when sending BYE or REFER requests. // Keys are the names of attributes and values are the names of X-* headers they will be mapped to. - AttributesToHeaders map[string]string `protobuf:"bytes,18,rep,name=attributes_to_headers,json=attributesToHeaders,proto3" json:"attributes_to_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + AttributesToHeaders map[string]string `protobuf:"bytes,18,rep,name=attributes_to_headers,json=attributesToHeaders,proto3" json:"attributes_to_headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Map SIP headers from INVITE to sip.h.* participant attributes automatically. // // When the names of required headers is known, using headers_to_attributes is strongly recommended. @@ -713,6 +702,8 @@ type EvaluateSIPDispatchRulesResponse struct { RingingTimeout *durationpb.Duration `protobuf:"bytes,16,opt,name=ringing_timeout,json=ringingTimeout,proto3" json:"ringing_timeout,omitempty"` // Max call duration. MaxCallDuration *durationpb.Duration `protobuf:"bytes,17,opt,name=max_call_duration,json=maxCallDuration,proto3" json:"max_call_duration,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *EvaluateSIPDispatchRulesResponse) Reset() { @@ -880,11 +871,10 @@ func (x *EvaluateSIPDispatchRulesResponse) GetMaxCallDuration() *durationpb.Dura } type UpdateSIPCallStateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + CallInfo *livekit.SIPCallInfo `protobuf:"bytes,1,opt,name=call_info,json=callInfo,proto3" json:"call_info,omitempty"` unknownFields protoimpl.UnknownFields - - CallInfo *livekit.SIPCallInfo `protobuf:"bytes,1,opt,name=call_info,json=callInfo,proto3" json:"call_info,omitempty"` + sizeCache protoimpl.SizeCache } func (x *UpdateSIPCallStateRequest) Reset() { diff --git a/rpc/keepalive.pb.go b/rpc/keepalive.pb.go index 20293484..69562afc 100644 --- a/rpc/keepalive.pb.go +++ b/rpc/keepalive.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: rpc/keepalive.proto @@ -36,11 +36,10 @@ const ( ) type KeepalivePing struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` unknownFields protoimpl.UnknownFields - - Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + sizeCache protoimpl.SizeCache } func (x *KeepalivePing) Reset() { diff --git a/rpc/participant.pb.go b/rpc/participant.pb.go index b159bccb..7803e5c8 100644 --- a/rpc/participant.pb.go +++ b/rpc/participant.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: rpc/participant.proto diff --git a/rpc/room.pb.go b/rpc/room.pb.go index 54d5c30e..8c337694 100644 --- a/rpc/room.pb.go +++ b/rpc/room.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: rpc/room.proto diff --git a/rpc/roommanager.pb.go b/rpc/roommanager.pb.go index 6f2af238..16f0b3e5 100644 --- a/rpc/roommanager.pb.go +++ b/rpc/roommanager.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: rpc/roommanager.proto diff --git a/rpc/signal.pb.go b/rpc/signal.pb.go index 66662f7c..bf9adc3f 100644 --- a/rpc/signal.pb.go +++ b/rpc/signal.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: rpc/signal.proto @@ -37,14 +37,13 @@ const ( ) type RelaySignalRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + StartSession *livekit.StartSession `protobuf:"bytes,1,opt,name=start_session,json=startSession,proto3" json:"start_session,omitempty"` + Requests []*livekit.SignalRequest `protobuf:"bytes,3,rep,name=requests,proto3" json:"requests,omitempty"` + Seq uint64 `protobuf:"varint,4,opt,name=seq,proto3" json:"seq,omitempty"` + Close bool `protobuf:"varint,5,opt,name=close,proto3" json:"close,omitempty"` unknownFields protoimpl.UnknownFields - - StartSession *livekit.StartSession `protobuf:"bytes,1,opt,name=start_session,json=startSession,proto3" json:"start_session,omitempty"` - Requests []*livekit.SignalRequest `protobuf:"bytes,3,rep,name=requests,proto3" json:"requests,omitempty"` - Seq uint64 `protobuf:"varint,4,opt,name=seq,proto3" json:"seq,omitempty"` - Close bool `protobuf:"varint,5,opt,name=close,proto3" json:"close,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RelaySignalRequest) Reset() { @@ -106,13 +105,12 @@ func (x *RelaySignalRequest) GetClose() bool { } type RelaySignalResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache + state protoimpl.MessageState `protogen:"open.v1"` + Responses []*livekit.SignalResponse `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"` + Seq uint64 `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"` + Close bool `protobuf:"varint,4,opt,name=close,proto3" json:"close,omitempty"` unknownFields protoimpl.UnknownFields - - Responses []*livekit.SignalResponse `protobuf:"bytes,2,rep,name=responses,proto3" json:"responses,omitempty"` - Seq uint64 `protobuf:"varint,3,opt,name=seq,proto3" json:"seq,omitempty"` - Close bool `protobuf:"varint,4,opt,name=close,proto3" json:"close,omitempty"` + sizeCache protoimpl.SizeCache } func (x *RelaySignalResponse) Reset() { diff --git a/rpc/sip.pb.go b/rpc/sip.pb.go index 700caff6..bc57a991 100644 --- a/rpc/sip.pb.go +++ b/rpc/sip.pb.go @@ -14,7 +14,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.2 +// protoc-gen-go v1.36.0 // protoc v4.23.4 // source: rpc/sip.proto @@ -39,10 +39,7 @@ const ( ) type InternalCreateSIPParticipantRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - + state protoimpl.MessageState `protogen:"open.v1"` // Used in Cloud only ProjectId string `protobuf:"bytes,18,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` SipCallId string `protobuf:"bytes,13,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"` @@ -62,7 +59,7 @@ type InternalCreateSIPParticipantRequest struct { ParticipantIdentity string `protobuf:"bytes,8,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` ParticipantName string `protobuf:"bytes,14,opt,name=participant_name,json=participantName,proto3" json:"participant_name,omitempty"` ParticipantMetadata string `protobuf:"bytes,15,opt,name=participant_metadata,json=participantMetadata,proto3" json:"participant_metadata,omitempty"` - ParticipantAttributes map[string]string `protobuf:"bytes,17,rep,name=participant_attributes,json=participantAttributes,proto3" json:"participant_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ParticipantAttributes map[string]string `protobuf:"bytes,17,rep,name=participant_attributes,json=participantAttributes,proto3" json:"participant_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // optional token that should be used when creating LiveKit participant Token string `protobuf:"bytes,9,opt,name=token,proto3" json:"token,omitempty"` // optional websocket url that should be used when creating LiveKit participant @@ -72,11 +69,11 @@ type InternalCreateSIPParticipantRequest struct { Dtmf string `protobuf:"bytes,11,opt,name=dtmf,proto3" json:"dtmf,omitempty"` // Optionally play dialtone in the room as an audible indicator for existing participants PlayDialtone bool `protobuf:"varint,12,opt,name=play_dialtone,json=playDialtone,proto3" json:"play_dialtone,omitempty"` - Headers map[string]string `protobuf:"bytes,21,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - HeadersToAttributes map[string]string `protobuf:"bytes,22,rep,name=headers_to_attributes,json=headersToAttributes,proto3" json:"headers_to_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Headers map[string]string `protobuf:"bytes,21,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + HeadersToAttributes map[string]string `protobuf:"bytes,22,rep,name=headers_to_attributes,json=headersToAttributes,proto3" json:"headers_to_attributes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Map LiveKit attributes to SIP X-* headers when sending BYE or REFER requests. // Keys are the names of attributes and values are the names of X-* headers they will be mapped to. - AttributesToHeaders map[string]string `protobuf:"bytes,26,rep,name=attributes_to_headers,json=attributesToHeaders,proto3" json:"attributes_to_headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + AttributesToHeaders map[string]string `protobuf:"bytes,26,rep,name=attributes_to_headers,json=attributesToHeaders,proto3" json:"attributes_to_headers,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // Map SIP headers from 200 OK to sip.h.* participant attributes automatically. // // When the names of required headers is known, using headers_to_attributes is strongly recommended. @@ -89,6 +86,8 @@ type InternalCreateSIPParticipantRequest struct { RingingTimeout *durationpb.Duration `protobuf:"bytes,23,opt,name=ringing_timeout,json=ringingTimeout,proto3" json:"ringing_timeout,omitempty"` // Max call duration. MaxCallDuration *durationpb.Duration `protobuf:"bytes,24,opt,name=max_call_duration,json=maxCallDuration,proto3" json:"max_call_duration,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *InternalCreateSIPParticipantRequest) Reset() { @@ -304,13 +303,12 @@ func (x *InternalCreateSIPParticipantRequest) GetMaxCallDuration() *durationpb.D } type InternalCreateSIPParticipantResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ParticipantId string `protobuf:"bytes,1,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"` - ParticipantIdentity string `protobuf:"bytes,2,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` - SipCallId string `protobuf:"bytes,3,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + ParticipantId string `protobuf:"bytes,1,opt,name=participant_id,json=participantId,proto3" json:"participant_id,omitempty"` + ParticipantIdentity string `protobuf:"bytes,2,opt,name=participant_identity,json=participantIdentity,proto3" json:"participant_identity,omitempty"` + SipCallId string `protobuf:"bytes,3,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *InternalCreateSIPParticipantResponse) Reset() { @@ -365,14 +363,13 @@ func (x *InternalCreateSIPParticipantResponse) GetSipCallId() string { } type InternalTransferSIPParticipantRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SipCallId string `protobuf:"bytes,1,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"` - TransferTo string `protobuf:"bytes,2,opt,name=transfer_to,json=transferTo,proto3" json:"transfer_to,omitempty"` + state protoimpl.MessageState `protogen:"open.v1"` + SipCallId string `protobuf:"bytes,1,opt,name=sip_call_id,json=sipCallId,proto3" json:"sip_call_id,omitempty"` + TransferTo string `protobuf:"bytes,2,opt,name=transfer_to,json=transferTo,proto3" json:"transfer_to,omitempty"` // Optionally play dialtone to the SIP participant as an audible indicator of being transferred - PlayDialtone bool `protobuf:"varint,3,opt,name=play_dialtone,json=playDialtone,proto3" json:"play_dialtone,omitempty"` + PlayDialtone bool `protobuf:"varint,3,opt,name=play_dialtone,json=playDialtone,proto3" json:"play_dialtone,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache } func (x *InternalTransferSIPParticipantRequest) Reset() { diff --git a/utils/parallel.go b/utils/parallel.go index 431ad2ba..1593ed9f 100644 --- a/utils/parallel.go +++ b/utils/parallel.go @@ -37,6 +37,9 @@ func ParallelExec[T any](vals []T, parallelThreshold, step uint64, fn func(T)) { var wg sync.WaitGroup numCPU := runtime.NumCPU() + if numCPU > len(vals) { + numCPU = len(vals) + } wg.Add(numCPU) for p := 0; p < numCPU; p++ { go func() {