github.com/whoyao/protocol@v0.0.0-20230519045905-2d8ace718ca5/livekit/livekit_webhook.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.30.0
     4  // 	protoc        v3.20.3
     5  // source: livekit_webhook.proto
     6  
     7  package livekit
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type WebhookEvent struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	// one of room_started, room_finished, participant_joined, participant_left,
    29  	// track_published, track_unpublished, egress_started, egress_updated, egress_ended,
    30  	// ingress_started, ingress_ended
    31  	Event string `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
    32  	Room  *Room  `protobuf:"bytes,2,opt,name=room,proto3" json:"room,omitempty"`
    33  	// set when event is participant_* or track_*
    34  	Participant *ParticipantInfo `protobuf:"bytes,3,opt,name=participant,proto3" json:"participant,omitempty"`
    35  	// set when event is egress_*
    36  	EgressInfo *EgressInfo `protobuf:"bytes,9,opt,name=egress_info,json=egressInfo,proto3" json:"egress_info,omitempty"`
    37  	// set when event is ingress_*
    38  	IngressInfo *IngressInfo `protobuf:"bytes,10,opt,name=ingress_info,json=ingressInfo,proto3" json:"ingress_info,omitempty"`
    39  	// set when event is track_*
    40  	Track *TrackInfo `protobuf:"bytes,8,opt,name=track,proto3" json:"track,omitempty"`
    41  	// unique event uuid
    42  	Id string `protobuf:"bytes,6,opt,name=id,proto3" json:"id,omitempty"`
    43  	// timestamp in seconds
    44  	CreatedAt  int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
    45  	NumDropped int32 `protobuf:"varint,11,opt,name=num_dropped,json=numDropped,proto3" json:"num_dropped,omitempty"`
    46  }
    47  
    48  func (x *WebhookEvent) Reset() {
    49  	*x = WebhookEvent{}
    50  	if protoimpl.UnsafeEnabled {
    51  		mi := &file_livekit_webhook_proto_msgTypes[0]
    52  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    53  		ms.StoreMessageInfo(mi)
    54  	}
    55  }
    56  
    57  func (x *WebhookEvent) String() string {
    58  	return protoimpl.X.MessageStringOf(x)
    59  }
    60  
    61  func (*WebhookEvent) ProtoMessage() {}
    62  
    63  func (x *WebhookEvent) ProtoReflect() protoreflect.Message {
    64  	mi := &file_livekit_webhook_proto_msgTypes[0]
    65  	if protoimpl.UnsafeEnabled && x != nil {
    66  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    67  		if ms.LoadMessageInfo() == nil {
    68  			ms.StoreMessageInfo(mi)
    69  		}
    70  		return ms
    71  	}
    72  	return mi.MessageOf(x)
    73  }
    74  
    75  // Deprecated: Use WebhookEvent.ProtoReflect.Descriptor instead.
    76  func (*WebhookEvent) Descriptor() ([]byte, []int) {
    77  	return file_livekit_webhook_proto_rawDescGZIP(), []int{0}
    78  }
    79  
    80  func (x *WebhookEvent) GetEvent() string {
    81  	if x != nil {
    82  		return x.Event
    83  	}
    84  	return ""
    85  }
    86  
    87  func (x *WebhookEvent) GetRoom() *Room {
    88  	if x != nil {
    89  		return x.Room
    90  	}
    91  	return nil
    92  }
    93  
    94  func (x *WebhookEvent) GetParticipant() *ParticipantInfo {
    95  	if x != nil {
    96  		return x.Participant
    97  	}
    98  	return nil
    99  }
   100  
   101  func (x *WebhookEvent) GetEgressInfo() *EgressInfo {
   102  	if x != nil {
   103  		return x.EgressInfo
   104  	}
   105  	return nil
   106  }
   107  
   108  func (x *WebhookEvent) GetIngressInfo() *IngressInfo {
   109  	if x != nil {
   110  		return x.IngressInfo
   111  	}
   112  	return nil
   113  }
   114  
   115  func (x *WebhookEvent) GetTrack() *TrackInfo {
   116  	if x != nil {
   117  		return x.Track
   118  	}
   119  	return nil
   120  }
   121  
   122  func (x *WebhookEvent) GetId() string {
   123  	if x != nil {
   124  		return x.Id
   125  	}
   126  	return ""
   127  }
   128  
   129  func (x *WebhookEvent) GetCreatedAt() int64 {
   130  	if x != nil {
   131  		return x.CreatedAt
   132  	}
   133  	return 0
   134  }
   135  
   136  func (x *WebhookEvent) GetNumDropped() int32 {
   137  	if x != nil {
   138  		return x.NumDropped
   139  	}
   140  	return 0
   141  }
   142  
   143  var File_livekit_webhook_proto protoreflect.FileDescriptor
   144  
   145  var file_livekit_webhook_proto_rawDesc = []byte{
   146  	0x0a, 0x15, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x5f, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f,
   147  	0x6b, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74,
   148  	0x1a, 0x14, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73,
   149  	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x5f,
   150  	0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x15, 0x6c, 0x69,
   151  	0x76, 0x65, 0x6b, 0x69, 0x74, 0x5f, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x2e, 0x70, 0x72,
   152  	0x6f, 0x74, 0x6f, 0x22, 0xec, 0x02, 0x0a, 0x0c, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x45,
   153  	0x76, 0x65, 0x6e, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20,
   154  	0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x21, 0x0a, 0x04, 0x72, 0x6f,
   155  	0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b,
   156  	0x69, 0x74, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x52, 0x04, 0x72, 0x6f, 0x6f, 0x6d, 0x12, 0x3a, 0x0a,
   157  	0x0b, 0x70, 0x61, 0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01,
   158  	0x28, 0x0b, 0x32, 0x18, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2e, 0x50, 0x61, 0x72,
   159  	0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x70, 0x61,
   160  	0x72, 0x74, 0x69, 0x63, 0x69, 0x70, 0x61, 0x6e, 0x74, 0x12, 0x34, 0x0a, 0x0b, 0x65, 0x67, 0x72,
   161  	0x65, 0x73, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13,
   162  	0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2e, 0x45, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49,
   163  	0x6e, 0x66, 0x6f, 0x52, 0x0a, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12,
   164  	0x37, 0x0a, 0x0c, 0x69, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18,
   165  	0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2e,
   166  	0x49, 0x6e, 0x67, 0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x0b, 0x69, 0x6e, 0x67,
   167  	0x72, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x28, 0x0a, 0x05, 0x74, 0x72, 0x61, 0x63,
   168  	0x6b, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69,
   169  	0x74, 0x2e, 0x54, 0x72, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x05, 0x74, 0x72, 0x61,
   170  	0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
   171  	0x69, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74,
   172  	0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41,
   173  	0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x6e, 0x75, 0x6d, 0x5f, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64,
   174  	0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6e, 0x75, 0x6d, 0x44, 0x72, 0x6f, 0x70, 0x70,
   175  	0x65, 0x64, 0x42, 0x46, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
   176  	0x2f, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
   177  	0x6c, 0x2f, 0x6c, 0x69, 0x76, 0x65, 0x6b, 0x69, 0x74, 0xaa, 0x02, 0x0d, 0x4c, 0x69, 0x76, 0x65,
   178  	0x4b, 0x69, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0xea, 0x02, 0x0e, 0x4c, 0x69, 0x76, 0x65,
   179  	0x4b, 0x69, 0x74, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
   180  	0x6f, 0x33,
   181  }
   182  
   183  var (
   184  	file_livekit_webhook_proto_rawDescOnce sync.Once
   185  	file_livekit_webhook_proto_rawDescData = file_livekit_webhook_proto_rawDesc
   186  )
   187  
   188  func file_livekit_webhook_proto_rawDescGZIP() []byte {
   189  	file_livekit_webhook_proto_rawDescOnce.Do(func() {
   190  		file_livekit_webhook_proto_rawDescData = protoimpl.X.CompressGZIP(file_livekit_webhook_proto_rawDescData)
   191  	})
   192  	return file_livekit_webhook_proto_rawDescData
   193  }
   194  
   195  var file_livekit_webhook_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   196  var file_livekit_webhook_proto_goTypes = []interface{}{
   197  	(*WebhookEvent)(nil),    // 0: livekit.WebhookEvent
   198  	(*Room)(nil),            // 1: livekit.Room
   199  	(*ParticipantInfo)(nil), // 2: livekit.ParticipantInfo
   200  	(*EgressInfo)(nil),      // 3: livekit.EgressInfo
   201  	(*IngressInfo)(nil),     // 4: livekit.IngressInfo
   202  	(*TrackInfo)(nil),       // 5: livekit.TrackInfo
   203  }
   204  var file_livekit_webhook_proto_depIdxs = []int32{
   205  	1, // 0: livekit.WebhookEvent.room:type_name -> livekit.Room
   206  	2, // 1: livekit.WebhookEvent.participant:type_name -> livekit.ParticipantInfo
   207  	3, // 2: livekit.WebhookEvent.egress_info:type_name -> livekit.EgressInfo
   208  	4, // 3: livekit.WebhookEvent.ingress_info:type_name -> livekit.IngressInfo
   209  	5, // 4: livekit.WebhookEvent.track:type_name -> livekit.TrackInfo
   210  	5, // [5:5] is the sub-list for method output_type
   211  	5, // [5:5] is the sub-list for method input_type
   212  	5, // [5:5] is the sub-list for extension type_name
   213  	5, // [5:5] is the sub-list for extension extendee
   214  	0, // [0:5] is the sub-list for field type_name
   215  }
   216  
   217  func init() { file_livekit_webhook_proto_init() }
   218  func file_livekit_webhook_proto_init() {
   219  	if File_livekit_webhook_proto != nil {
   220  		return
   221  	}
   222  	file_livekit_models_proto_init()
   223  	file_livekit_egress_proto_init()
   224  	file_livekit_ingress_proto_init()
   225  	if !protoimpl.UnsafeEnabled {
   226  		file_livekit_webhook_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   227  			switch v := v.(*WebhookEvent); i {
   228  			case 0:
   229  				return &v.state
   230  			case 1:
   231  				return &v.sizeCache
   232  			case 2:
   233  				return &v.unknownFields
   234  			default:
   235  				return nil
   236  			}
   237  		}
   238  	}
   239  	type x struct{}
   240  	out := protoimpl.TypeBuilder{
   241  		File: protoimpl.DescBuilder{
   242  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   243  			RawDescriptor: file_livekit_webhook_proto_rawDesc,
   244  			NumEnums:      0,
   245  			NumMessages:   1,
   246  			NumExtensions: 0,
   247  			NumServices:   0,
   248  		},
   249  		GoTypes:           file_livekit_webhook_proto_goTypes,
   250  		DependencyIndexes: file_livekit_webhook_proto_depIdxs,
   251  		MessageInfos:      file_livekit_webhook_proto_msgTypes,
   252  	}.Build()
   253  	File_livekit_webhook_proto = out.File
   254  	file_livekit_webhook_proto_rawDesc = nil
   255  	file_livekit_webhook_proto_goTypes = nil
   256  	file_livekit_webhook_proto_depIdxs = nil
   257  }