package livekit
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type WebhookEvent struct {
state protoimpl.MessageState `protogen:"open.v1"`
Event string `protobuf:"bytes,1,opt,name=event,proto3" json:"event,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"`
EgressInfo *EgressInfo `protobuf:"bytes,9,opt,name=egress_info,json=egressInfo,proto3" json:"egress_info,omitempty"`
IngressInfo *IngressInfo `protobuf:"bytes,10,opt,name=ingress_info,json=ingressInfo,proto3" json:"ingress_info,omitempty"`
Track *TrackInfo `protobuf:"bytes,8,opt,name=track,proto3" json:"track,omitempty"`
Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,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() {
*x = WebhookEvent{}
mi := &file_livekit_webhook_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WebhookEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WebhookEvent) ProtoMessage() {}
func (x *WebhookEvent) ProtoReflect() protoreflect.Message {
mi := &file_livekit_webhook_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*WebhookEvent) Descriptor() ([]byte, []int) {
return file_livekit_webhook_proto_rawDescGZIP(), []int{0}
}
func (x *WebhookEvent) GetEvent() string {
if x != nil {
return x.Event
}
return ""
}
func (x *WebhookEvent) GetRoom() *Room {
if x != nil {
return x.Room
}
return nil
}
func (x *WebhookEvent) GetParticipant() *ParticipantInfo {
if x != nil {
return x.Participant
}
return nil
}
func (x *WebhookEvent) GetEgressInfo() *EgressInfo {
if x != nil {
return x.EgressInfo
}
return nil
}
func (x *WebhookEvent) GetIngressInfo() *IngressInfo {
if x != nil {
return x.IngressInfo
}
return nil
}
func (x *WebhookEvent) GetTrack() *TrackInfo {
if x != nil {
return x.Track
}
return nil
}
func (x *WebhookEvent) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *WebhookEvent) GetCreatedAt() int64 {
if x != nil {
return x.CreatedAt
}
return 0
}
func (x *WebhookEvent) GetNumDropped() int32 {
if x != nil {
return x.NumDropped
}
return 0
}
var File_livekit_webhook_proto protoreflect.FileDescriptor
const file_livekit_webhook_proto_rawDesc = "" +
"\n" +
"\x15livekit_webhook.proto\x12\alivekit\x1a\x14livekit_models.proto\x1a\x14livekit_egress.proto\x1a\x15livekit_ingress.proto\"\xf0\x02\n" +
"\fWebhookEvent\x12\x14\n" +
"\x05event\x18\x01 \x01(\tR\x05event\x12!\n" +
"\x04room\x18\x02 \x01(\v2\r.livekit.RoomR\x04room\x12:\n" +
"\vparticipant\x18\x03 \x01(\v2\x18.livekit.ParticipantInfoR\vparticipant\x124\n" +
"\vegress_info\x18\t \x01(\v2\x13.livekit.EgressInfoR\n" +
"egressInfo\x127\n" +
"\fingress_info\x18\n" +
" \x01(\v2\x14.livekit.IngressInfoR\vingressInfo\x12(\n" +
"\x05track\x18\b \x01(\v2\x12.livekit.TrackInfoR\x05track\x12\x0e\n" +
"\x02id\x18\x06 \x01(\tR\x02id\x12\x1d\n" +
"\n" +
"created_at\x18\a \x01(\x03R\tcreatedAt\x12#\n" +
"\vnum_dropped\x18\v \x01(\x05B\x02\x18\x01R\n" +
"numDroppedBFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3"
var (
file_livekit_webhook_proto_rawDescOnce sync.Once
file_livekit_webhook_proto_rawDescData []byte
)
func file_livekit_webhook_proto_rawDescGZIP() []byte {
file_livekit_webhook_proto_rawDescOnce.Do(func() {
file_livekit_webhook_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_livekit_webhook_proto_rawDesc), len(file_livekit_webhook_proto_rawDesc)))
})
return file_livekit_webhook_proto_rawDescData
}
var file_livekit_webhook_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_livekit_webhook_proto_goTypes = []any{
(*WebhookEvent)(nil), (*Room)(nil), (*ParticipantInfo)(nil), (*EgressInfo)(nil), (*IngressInfo)(nil), (*TrackInfo)(nil), }
var file_livekit_webhook_proto_depIdxs = []int32{
1, 2, 3, 4, 5, 5, 5, 5, 5, 0, }
func init() { file_livekit_webhook_proto_init() }
func file_livekit_webhook_proto_init() {
if File_livekit_webhook_proto != nil {
return
}
file_livekit_models_proto_init()
file_livekit_egress_proto_init()
file_livekit_ingress_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_livekit_webhook_proto_rawDesc), len(file_livekit_webhook_proto_rawDesc)),
NumEnums: 0,
NumMessages: 1,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_livekit_webhook_proto_goTypes,
DependencyIndexes: file_livekit_webhook_proto_depIdxs,
MessageInfos: file_livekit_webhook_proto_msgTypes,
}.Build()
File_livekit_webhook_proto = out.File
file_livekit_webhook_proto_goTypes = nil
file_livekit_webhook_proto_depIdxs = nil
}