package infra
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type WatchLocalLinksRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *WatchLocalLinksRequest) Reset() {
*x = WatchLocalLinksRequest{}
mi := &file_infra_link_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WatchLocalLinksRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WatchLocalLinksRequest) ProtoMessage() {}
func (x *WatchLocalLinksRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_link_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 (*WatchLocalLinksRequest) Descriptor() ([]byte, []int) {
return file_infra_link_proto_rawDescGZIP(), []int{0}
}
type WatchLocalLinksResponse struct {
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
sizeCache protoimpl.SizeCache
}
func (x *WatchLocalLinksResponse) Reset() {
*x = WatchLocalLinksResponse{}
mi := &file_infra_link_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *WatchLocalLinksResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WatchLocalLinksResponse) ProtoMessage() {}
func (x *WatchLocalLinksResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_link_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*WatchLocalLinksResponse) Descriptor() ([]byte, []int) {
return file_infra_link_proto_rawDescGZIP(), []int{1}
}
func (x *WatchLocalLinksResponse) GetLocalRegion() string {
if x != nil {
return x.LocalRegion
}
return ""
}
func (x *WatchLocalLinksResponse) GetRemoteRegion() string {
if x != nil {
return x.RemoteRegion
}
return ""
}
func (x *WatchLocalLinksResponse) GetRtt() int64 {
if x != nil {
return x.Rtt
}
return 0
}
func (x *WatchLocalLinksResponse) GetJitter() int64 {
if x != nil {
return x.Jitter
}
return 0
}
func (x *WatchLocalLinksResponse) GetPacketLoss() float64 {
if x != nil {
return x.PacketLoss
}
return 0
}
func (x *WatchLocalLinksResponse) GetDisabled() bool {
if x != nil {
return x.Disabled
}
return false
}
func (x *WatchLocalLinksResponse) GetLastRead() *timestamppb.Timestamp {
if x != nil {
return x.LastRead
}
return nil
}
type SimulateLinkStateRequest struct {
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
sizeCache protoimpl.SizeCache
}
func (x *SimulateLinkStateRequest) Reset() {
*x = SimulateLinkStateRequest{}
mi := &file_infra_link_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SimulateLinkStateRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SimulateLinkStateRequest) ProtoMessage() {}
func (x *SimulateLinkStateRequest) ProtoReflect() protoreflect.Message {
mi := &file_infra_link_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*SimulateLinkStateRequest) Descriptor() ([]byte, []int) {
return file_infra_link_proto_rawDescGZIP(), []int{2}
}
func (x *SimulateLinkStateRequest) GetLocalRegion() string {
if x != nil {
return x.LocalRegion
}
return ""
}
func (x *SimulateLinkStateRequest) GetRemoteRegion() string {
if x != nil {
return x.RemoteRegion
}
return ""
}
func (x *SimulateLinkStateRequest) GetRtt() int64 {
if x != nil && x.Rtt != nil {
return *x.Rtt
}
return 0
}
func (x *SimulateLinkStateRequest) GetJitter() int64 {
if x != nil && x.Jitter != nil {
return *x.Jitter
}
return 0
}
func (x *SimulateLinkStateRequest) GetPacketLoss() float64 {
if x != nil && x.PacketLoss != nil {
return *x.PacketLoss
}
return 0
}
func (x *SimulateLinkStateRequest) GetDisabled() bool {
if x != nil && x.Disabled != nil {
return *x.Disabled
}
return false
}
func (x *SimulateLinkStateRequest) GetTimeout() int64 {
if x != nil {
return x.Timeout
}
return 0
}
type SimulateLinkStateResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SimulateLinkStateResponse) Reset() {
*x = SimulateLinkStateResponse{}
mi := &file_infra_link_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SimulateLinkStateResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SimulateLinkStateResponse) ProtoMessage() {}
func (x *SimulateLinkStateResponse) ProtoReflect() protoreflect.Message {
mi := &file_infra_link_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*SimulateLinkStateResponse) Descriptor() ([]byte, []int) {
return file_infra_link_proto_rawDescGZIP(), []int{3}
}
var File_infra_link_proto protoreflect.FileDescriptor
const file_infra_link_proto_rawDesc = "" +
"\n" +
"\x10infra/link.proto\x12\x03rpc\x1a\x1fgoogle/protobuf/timestamp.proto\"\x18\n" +
"\x16WatchLocalLinksRequest\"\x81\x02\n" +
"\x17WatchLocalLinksResponse\x12!\n" +
"\flocal_region\x18\x01 \x01(\tR\vlocalRegion\x12#\n" +
"\rremote_region\x18\x02 \x01(\tR\fremoteRegion\x12\x10\n" +
"\x03rtt\x18\x03 \x01(\x03R\x03rtt\x12\x16\n" +
"\x06jitter\x18\x04 \x01(\x03R\x06jitter\x12\x1f\n" +
"\vpacket_loss\x18\x05 \x01(\x01R\n" +
"packetLoss\x12\x1a\n" +
"\bdisabled\x18\x06 \x01(\bR\bdisabled\x127\n" +
"\tlast_read\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\blastRead\"\xa7\x02\n" +
"\x18SimulateLinkStateRequest\x12!\n" +
"\flocal_region\x18\x01 \x01(\tR\vlocalRegion\x12#\n" +
"\rremote_region\x18\x02 \x01(\tR\fremoteRegion\x12\x15\n" +
"\x03rtt\x18\x03 \x01(\x03H\x00R\x03rtt\x88\x01\x01\x12\x1b\n" +
"\x06jitter\x18\x04 \x01(\x03H\x01R\x06jitter\x88\x01\x01\x12$\n" +
"\vpacket_loss\x18\x05 \x01(\x01H\x02R\n" +
"packetLoss\x88\x01\x01\x12\x1f\n" +
"\bdisabled\x18\x06 \x01(\bH\x03R\bdisabled\x88\x01\x01\x12\x18\n" +
"\atimeout\x18\a \x01(\x03R\atimeoutB\x06\n" +
"\x04_rttB\t\n" +
"\a_jitterB\x0e\n" +
"\f_packet_lossB\v\n" +
"\t_disabled\"\x1b\n" +
"\x19SimulateLinkStateResponse2\xaa\x01\n" +
"\x04Link\x12N\n" +
"\x0fWatchLocalLinks\x12\x1b.rpc.WatchLocalLinksRequest\x1a\x1c.rpc.WatchLocalLinksResponse0\x01\x12R\n" +
"\x11SimulateLinkState\x12\x1d.rpc.SimulateLinkStateRequest\x1a\x1e.rpc.SimulateLinkStateResponseB#Z!github.com/livekit/protocol/infrab\x06proto3"
var (
file_infra_link_proto_rawDescOnce sync.Once
file_infra_link_proto_rawDescData []byte
)
func file_infra_link_proto_rawDescGZIP() []byte {
file_infra_link_proto_rawDescOnce.Do(func() {
file_infra_link_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_infra_link_proto_rawDesc), len(file_infra_link_proto_rawDesc)))
})
return file_infra_link_proto_rawDescData
}
var file_infra_link_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_infra_link_proto_goTypes = []any{
(*WatchLocalLinksRequest)(nil), (*WatchLocalLinksResponse)(nil), (*SimulateLinkStateRequest)(nil), (*SimulateLinkStateResponse)(nil), (*timestamppb.Timestamp)(nil), }
var file_infra_link_proto_depIdxs = []int32{
4, 0, 2, 1, 3, 3, 1, 1, 1, 0, }
func init() { file_infra_link_proto_init() }
func file_infra_link_proto_init() {
if File_infra_link_proto != nil {
return
}
file_infra_link_proto_msgTypes[2].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_infra_link_proto_rawDesc), len(file_infra_link_proto_rawDesc)),
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_infra_link_proto_goTypes,
DependencyIndexes: file_infra_link_proto_depIdxs,
MessageInfos: file_infra_link_proto_msgTypes,
}.Build()
File_infra_link_proto = out.File
file_infra_link_proto_goTypes = nil
file_infra_link_proto_depIdxs = nil
}