Files
cunicu/pkg/pb/event.pb.go
Steffen Vogel e165131e6f pb: minor refactoring and cleanups
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
2022-08-01 12:07:10 +02:00

650 lines
22 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.19.4
// source: event.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Event_Type int32
const (
Event_UNKNOWN Event_Type = 0
// Signaling Events
Event_BACKEND_READY Event_Type = 10
Event_SIGNALING_MESSAGE Event_Type = 11
// Core Events
Event_PEER_ADDED Event_Type = 20
Event_PEER_REMOVED Event_Type = 21
Event_PEER_MODIFIED Event_Type = 22
Event_INTERFACE_ADDED Event_Type = 30
Event_INTERFACE_REMOVED Event_Type = 31
Event_INTERFACE_MODIFIED Event_Type = 32
// ICE Events
Event_PEER_CONNECTION_STATE_CHANGED Event_Type = 40
)
// Enum value maps for Event_Type.
var (
Event_Type_name = map[int32]string{
0: "UNKNOWN",
10: "BACKEND_READY",
11: "SIGNALING_MESSAGE",
20: "PEER_ADDED",
21: "PEER_REMOVED",
22: "PEER_MODIFIED",
30: "INTERFACE_ADDED",
31: "INTERFACE_REMOVED",
32: "INTERFACE_MODIFIED",
40: "PEER_CONNECTION_STATE_CHANGED",
}
Event_Type_value = map[string]int32{
"UNKNOWN": 0,
"BACKEND_READY": 10,
"SIGNALING_MESSAGE": 11,
"PEER_ADDED": 20,
"PEER_REMOVED": 21,
"PEER_MODIFIED": 22,
"INTERFACE_ADDED": 30,
"INTERFACE_REMOVED": 31,
"INTERFACE_MODIFIED": 32,
"PEER_CONNECTION_STATE_CHANGED": 40,
}
)
func (x Event_Type) Enum() *Event_Type {
p := new(Event_Type)
*p = x
return p
}
func (x Event_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Event_Type) Descriptor() protoreflect.EnumDescriptor {
return file_event_proto_enumTypes[0].Descriptor()
}
func (Event_Type) Type() protoreflect.EnumType {
return &file_event_proto_enumTypes[0]
}
func (x Event_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Event_Type.Descriptor instead.
func (Event_Type) EnumDescriptor() ([]byte, []int) {
return file_event_proto_rawDescGZIP(), []int{0, 0}
}
type Event struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Type Event_Type `protobuf:"varint,1,opt,name=type,proto3,enum=wice.Event_Type" json:"type,omitempty"`
Time *Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
// Public key of peer which triggerd the event
Peer []byte `protobuf:"bytes,3,opt,name=peer,proto3" json:"peer,omitempty"`
// Interface name which triggered the event
Interface string `protobuf:"bytes,4,opt,name=interface,proto3" json:"interface,omitempty"`
// Types that are assignable to Event:
// *Event_BackendReady
// *Event_PeerConnectionStateChange
// *Event_PeerModified
// *Event_InterfaceModified
Event isEvent_Event `protobuf_oneof:"event"`
}
func (x *Event) Reset() {
*x = Event{}
if protoimpl.UnsafeEnabled {
mi := &file_event_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Event) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Event) ProtoMessage() {}
func (x *Event) ProtoReflect() protoreflect.Message {
mi := &file_event_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Event.ProtoReflect.Descriptor instead.
func (*Event) Descriptor() ([]byte, []int) {
return file_event_proto_rawDescGZIP(), []int{0}
}
func (x *Event) GetType() Event_Type {
if x != nil {
return x.Type
}
return Event_UNKNOWN
}
func (x *Event) GetTime() *Timestamp {
if x != nil {
return x.Time
}
return nil
}
func (x *Event) GetPeer() []byte {
if x != nil {
return x.Peer
}
return nil
}
func (x *Event) GetInterface() string {
if x != nil {
return x.Interface
}
return ""
}
func (m *Event) GetEvent() isEvent_Event {
if m != nil {
return m.Event
}
return nil
}
func (x *Event) GetBackendReady() *BackendReadyEvent {
if x, ok := x.GetEvent().(*Event_BackendReady); ok {
return x.BackendReady
}
return nil
}
func (x *Event) GetPeerConnectionStateChange() *PeerConnectionStateChangeEvent {
if x, ok := x.GetEvent().(*Event_PeerConnectionStateChange); ok {
return x.PeerConnectionStateChange
}
return nil
}
func (x *Event) GetPeerModified() *PeerModifiedEvent {
if x, ok := x.GetEvent().(*Event_PeerModified); ok {
return x.PeerModified
}
return nil
}
func (x *Event) GetInterfaceModified() *InterfaceModifiedEvent {
if x, ok := x.GetEvent().(*Event_InterfaceModified); ok {
return x.InterfaceModified
}
return nil
}
type isEvent_Event interface {
isEvent_Event()
}
type Event_BackendReady struct {
BackendReady *BackendReadyEvent `protobuf:"bytes,100,opt,name=backend_ready,json=backendReady,proto3,oneof"`
}
type Event_PeerConnectionStateChange struct {
PeerConnectionStateChange *PeerConnectionStateChangeEvent `protobuf:"bytes,121,opt,name=peer_connection_state_change,json=peerConnectionStateChange,proto3,oneof"`
}
type Event_PeerModified struct {
PeerModified *PeerModifiedEvent `protobuf:"bytes,122,opt,name=peer_modified,json=peerModified,proto3,oneof"`
}
type Event_InterfaceModified struct {
InterfaceModified *InterfaceModifiedEvent `protobuf:"bytes,123,opt,name=interface_modified,json=interfaceModified,proto3,oneof"`
}
func (*Event_BackendReady) isEvent_Event() {}
func (*Event_PeerConnectionStateChange) isEvent_Event() {}
func (*Event_PeerModified) isEvent_Event() {}
func (*Event_InterfaceModified) isEvent_Event() {}
type PeerModifiedEvent struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Modified uint32 `protobuf:"varint,1,opt,name=modified,proto3" json:"modified,omitempty"`
}
func (x *PeerModifiedEvent) Reset() {
*x = PeerModifiedEvent{}
if protoimpl.UnsafeEnabled {
mi := &file_event_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PeerModifiedEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PeerModifiedEvent) ProtoMessage() {}
func (x *PeerModifiedEvent) ProtoReflect() protoreflect.Message {
mi := &file_event_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PeerModifiedEvent.ProtoReflect.Descriptor instead.
func (*PeerModifiedEvent) Descriptor() ([]byte, []int) {
return file_event_proto_rawDescGZIP(), []int{1}
}
func (x *PeerModifiedEvent) GetModified() uint32 {
if x != nil {
return x.Modified
}
return 0
}
type InterfaceModifiedEvent struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Modified uint32 `protobuf:"varint,1,opt,name=modified,proto3" json:"modified,omitempty"`
}
func (x *InterfaceModifiedEvent) Reset() {
*x = InterfaceModifiedEvent{}
if protoimpl.UnsafeEnabled {
mi := &file_event_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InterfaceModifiedEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InterfaceModifiedEvent) ProtoMessage() {}
func (x *InterfaceModifiedEvent) ProtoReflect() protoreflect.Message {
mi := &file_event_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use InterfaceModifiedEvent.ProtoReflect.Descriptor instead.
func (*InterfaceModifiedEvent) Descriptor() ([]byte, []int) {
return file_event_proto_rawDescGZIP(), []int{2}
}
func (x *InterfaceModifiedEvent) GetModified() uint32 {
if x != nil {
return x.Modified
}
return 0
}
type PeerConnectionStateChangeEvent struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
NewState ConnectionState `protobuf:"varint,3,opt,name=new_state,json=newState,proto3,enum=wice.ConnectionState" json:"new_state,omitempty"`
}
func (x *PeerConnectionStateChangeEvent) Reset() {
*x = PeerConnectionStateChangeEvent{}
if protoimpl.UnsafeEnabled {
mi := &file_event_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PeerConnectionStateChangeEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PeerConnectionStateChangeEvent) ProtoMessage() {}
func (x *PeerConnectionStateChangeEvent) ProtoReflect() protoreflect.Message {
mi := &file_event_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PeerConnectionStateChangeEvent.ProtoReflect.Descriptor instead.
func (*PeerConnectionStateChangeEvent) Descriptor() ([]byte, []int) {
return file_event_proto_rawDescGZIP(), []int{3}
}
func (x *PeerConnectionStateChangeEvent) GetNewState() ConnectionState {
if x != nil {
return x.NewState
}
return ConnectionState_NEW
}
type BackendReadyEvent struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Type BackendType `protobuf:"varint,1,opt,name=type,proto3,enum=wice.BackendType" json:"type,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
ListenAddresses []string `protobuf:"bytes,3,rep,name=listen_addresses,json=listenAddresses,proto3" json:"listen_addresses,omitempty"`
}
func (x *BackendReadyEvent) Reset() {
*x = BackendReadyEvent{}
if protoimpl.UnsafeEnabled {
mi := &file_event_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BackendReadyEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BackendReadyEvent) ProtoMessage() {}
func (x *BackendReadyEvent) ProtoReflect() protoreflect.Message {
mi := &file_event_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BackendReadyEvent.ProtoReflect.Descriptor instead.
func (*BackendReadyEvent) Descriptor() ([]byte, []int) {
return file_event_proto_rawDescGZIP(), []int{4}
}
func (x *BackendReadyEvent) GetType() BackendType {
if x != nil {
return x.Type
}
return BackendType_MULTI
}
func (x *BackendReadyEvent) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *BackendReadyEvent) GetListenAddresses() []string {
if x != nil {
return x.ListenAddresses
}
return nil
}
var File_event_proto protoreflect.FileDescriptor
var file_event_proto_rawDesc = []byte{
0x0a, 0x0b, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x77,
0x69, 0x63, 0x65, 0x1a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x0f, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x6c, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0xa1, 0x05, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x24, 0x0a, 0x04,
0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, 0x77, 0x69, 0x63,
0x65, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79,
0x70, 0x65, 0x12, 0x23, 0x0a, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x0f, 0x2e, 0x77, 0x69, 0x63, 0x65, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x65, 0x65, 0x72, 0x18,
0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x65, 0x65, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x69,
0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x62, 0x61, 0x63,
0x6b, 0x65, 0x6e, 0x64, 0x5f, 0x72, 0x65, 0x61, 0x64, 0x79, 0x18, 0x64, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x17, 0x2e, 0x77, 0x69, 0x63, 0x65, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52,
0x65, 0x61, 0x64, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x62, 0x61, 0x63,
0x6b, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x61, 0x64, 0x79, 0x12, 0x67, 0x0a, 0x1c, 0x70, 0x65, 0x65,
0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61,
0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x79, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x24, 0x2e, 0x77, 0x69, 0x63, 0x65, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65,
0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65,
0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x19, 0x70, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x6e,
0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e,
0x67, 0x65, 0x12, 0x3e, 0x0a, 0x0d, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x69, 0x66,
0x69, 0x65, 0x64, 0x18, 0x7a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x77, 0x69, 0x63, 0x65,
0x2e, 0x50, 0x65, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x45, 0x76, 0x65,
0x6e, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x70, 0x65, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69,
0x65, 0x64, 0x12, 0x4d, 0x0a, 0x12, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x5f,
0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x7b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c,
0x2e, 0x77, 0x69, 0x63, 0x65, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x4d,
0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x11,
0x69, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65,
0x64, 0x22, 0xd9, 0x01, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e,
0x4b, 0x4e, 0x4f, 0x57, 0x4e, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x42, 0x41, 0x43, 0x4b, 0x45,
0x4e, 0x44, 0x5f, 0x52, 0x45, 0x41, 0x44, 0x59, 0x10, 0x0a, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x49,
0x47, 0x4e, 0x41, 0x4c, 0x49, 0x4e, 0x47, 0x5f, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x10,
0x0b, 0x12, 0x0e, 0x0a, 0x0a, 0x50, 0x45, 0x45, 0x52, 0x5f, 0x41, 0x44, 0x44, 0x45, 0x44, 0x10,
0x14, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x45, 0x45, 0x52, 0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45,
0x44, 0x10, 0x15, 0x12, 0x11, 0x0a, 0x0d, 0x50, 0x45, 0x45, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x49,
0x46, 0x49, 0x45, 0x44, 0x10, 0x16, 0x12, 0x13, 0x0a, 0x0f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x46,
0x41, 0x43, 0x45, 0x5f, 0x41, 0x44, 0x44, 0x45, 0x44, 0x10, 0x1e, 0x12, 0x15, 0x0a, 0x11, 0x49,
0x4e, 0x54, 0x45, 0x52, 0x46, 0x41, 0x43, 0x45, 0x5f, 0x52, 0x45, 0x4d, 0x4f, 0x56, 0x45, 0x44,
0x10, 0x1f, 0x12, 0x16, 0x0a, 0x12, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x46, 0x41, 0x43, 0x45, 0x5f,
0x4d, 0x4f, 0x44, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x20, 0x12, 0x21, 0x0a, 0x1d, 0x50, 0x45,
0x45, 0x52, 0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x54,
0x41, 0x54, 0x45, 0x5f, 0x43, 0x48, 0x41, 0x4e, 0x47, 0x45, 0x44, 0x10, 0x28, 0x42, 0x07, 0x0a,
0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x2f, 0x0a, 0x11, 0x50, 0x65, 0x65, 0x72, 0x4d, 0x6f,
0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d,
0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6d,
0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22, 0x34, 0x0a, 0x16, 0x49, 0x6e, 0x74, 0x65, 0x72,
0x66, 0x61, 0x63, 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x45, 0x76, 0x65, 0x6e,
0x74, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0d, 0x52, 0x08, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64, 0x22, 0x54, 0x0a,
0x1e, 0x50, 0x65, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x53,
0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12,
0x32, 0x0a, 0x09, 0x6e, 0x65, 0x77, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01,
0x28, 0x0e, 0x32, 0x15, 0x2e, 0x77, 0x69, 0x63, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x08, 0x6e, 0x65, 0x77, 0x53, 0x74,
0x61, 0x74, 0x65, 0x22, 0x75, 0x0a, 0x11, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x65,
0x61, 0x64, 0x79, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x25, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x77, 0x69, 0x63, 0x65, 0x2e, 0x42, 0x61,
0x63, 0x6b, 0x65, 0x6e, 0x64, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
0x29, 0x0a, 0x10, 0x6c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0f, 0x6c, 0x69, 0x73, 0x74, 0x65,
0x6e, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x65, 0x73, 0x42, 0x16, 0x5a, 0x14, 0x72, 0x69,
0x61, 0x73, 0x63, 0x2e, 0x65, 0x75, 0x2f, 0x77, 0x69, 0x63, 0x65, 0x2f, 0x70, 0x6b, 0x67, 0x2f,
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_event_proto_rawDescOnce sync.Once
file_event_proto_rawDescData = file_event_proto_rawDesc
)
func file_event_proto_rawDescGZIP() []byte {
file_event_proto_rawDescOnce.Do(func() {
file_event_proto_rawDescData = protoimpl.X.CompressGZIP(file_event_proto_rawDescData)
})
return file_event_proto_rawDescData
}
var file_event_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_event_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_event_proto_goTypes = []interface{}{
(Event_Type)(0), // 0: wice.Event.Type
(*Event)(nil), // 1: wice.Event
(*PeerModifiedEvent)(nil), // 2: wice.PeerModifiedEvent
(*InterfaceModifiedEvent)(nil), // 3: wice.InterfaceModifiedEvent
(*PeerConnectionStateChangeEvent)(nil), // 4: wice.PeerConnectionStateChangeEvent
(*BackendReadyEvent)(nil), // 5: wice.BackendReadyEvent
(*Timestamp)(nil), // 6: wice.Timestamp
(ConnectionState)(0), // 7: wice.ConnectionState
(BackendType)(0), // 8: wice.BackendType
}
var file_event_proto_depIdxs = []int32{
0, // 0: wice.Event.type:type_name -> wice.Event.Type
6, // 1: wice.Event.time:type_name -> wice.Timestamp
5, // 2: wice.Event.backend_ready:type_name -> wice.BackendReadyEvent
4, // 3: wice.Event.peer_connection_state_change:type_name -> wice.PeerConnectionStateChangeEvent
2, // 4: wice.Event.peer_modified:type_name -> wice.PeerModifiedEvent
3, // 5: wice.Event.interface_modified:type_name -> wice.InterfaceModifiedEvent
7, // 6: wice.PeerConnectionStateChangeEvent.new_state:type_name -> wice.ConnectionState
8, // 7: wice.BackendReadyEvent.type:type_name -> wice.BackendType
8, // [8:8] is the sub-list for method output_type
8, // [8:8] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
}
func init() { file_event_proto_init() }
func file_event_proto_init() {
if File_event_proto != nil {
return
}
file_common_proto_init()
file_signaling_proto_init()
if !protoimpl.UnsafeEnabled {
file_event_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Event); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_event_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PeerModifiedEvent); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_event_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*InterfaceModifiedEvent); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_event_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*PeerConnectionStateChangeEvent); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_event_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BackendReadyEvent); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_event_proto_msgTypes[0].OneofWrappers = []interface{}{
(*Event_BackendReady)(nil),
(*Event_PeerConnectionStateChange)(nil),
(*Event_PeerModified)(nil),
(*Event_InterfaceModified)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_event_proto_rawDesc,
NumEnums: 1,
NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_event_proto_goTypes,
DependencyIndexes: file_event_proto_depIdxs,
EnumInfos: file_event_proto_enumTypes,
MessageInfos: file_event_proto_msgTypes,
}.Build()
File_event_proto = out.File
file_event_proto_rawDesc = nil
file_event_proto_goTypes = nil
file_event_proto_depIdxs = nil
}