github.com/livekit/protocol@v1.39.3/infra/link.pb.go (about) 1 // Copyright 2023 LiveKit, Inc. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by protoc-gen-go. DO NOT EDIT. 16 // versions: 17 // protoc-gen-go v1.36.6 18 // protoc v4.23.4 19 // source: infra/link.proto 20 21 package infra 22 23 import ( 24 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 25 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 26 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 27 reflect "reflect" 28 sync "sync" 29 unsafe "unsafe" 30 ) 31 32 const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37 ) 38 39 type WatchLocalLinksRequest struct { 40 state protoimpl.MessageState `protogen:"open.v1"` 41 unknownFields protoimpl.UnknownFields 42 sizeCache protoimpl.SizeCache 43 } 44 45 func (x *WatchLocalLinksRequest) Reset() { 46 *x = WatchLocalLinksRequest{} 47 mi := &file_infra_link_proto_msgTypes[0] 48 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 49 ms.StoreMessageInfo(mi) 50 } 51 52 func (x *WatchLocalLinksRequest) String() string { 53 return protoimpl.X.MessageStringOf(x) 54 } 55 56 func (*WatchLocalLinksRequest) ProtoMessage() {} 57 58 func (x *WatchLocalLinksRequest) ProtoReflect() protoreflect.Message { 59 mi := &file_infra_link_proto_msgTypes[0] 60 if x != nil { 61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 62 if ms.LoadMessageInfo() == nil { 63 ms.StoreMessageInfo(mi) 64 } 65 return ms 66 } 67 return mi.MessageOf(x) 68 } 69 70 // Deprecated: Use WatchLocalLinksRequest.ProtoReflect.Descriptor instead. 71 func (*WatchLocalLinksRequest) Descriptor() ([]byte, []int) { 72 return file_infra_link_proto_rawDescGZIP(), []int{0} 73 } 74 75 type WatchLocalLinksResponse struct { 76 state protoimpl.MessageState `protogen:"open.v1"` 77 LocalRegion string `protobuf:"bytes,1,opt,name=local_region,json=localRegion,proto3" json:"local_region,omitempty"` 78 RemoteRegion string `protobuf:"bytes,2,opt,name=remote_region,json=remoteRegion,proto3" json:"remote_region,omitempty"` 79 Rtt int64 `protobuf:"varint,3,opt,name=rtt,proto3" json:"rtt,omitempty"` 80 Jitter int64 `protobuf:"varint,4,opt,name=jitter,proto3" json:"jitter,omitempty"` 81 PacketLoss float64 `protobuf:"fixed64,5,opt,name=packet_loss,json=packetLoss,proto3" json:"packet_loss,omitempty"` 82 Disabled bool `protobuf:"varint,6,opt,name=disabled,proto3" json:"disabled,omitempty"` 83 LastRead *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_read,json=lastRead,proto3" json:"last_read,omitempty"` 84 unknownFields protoimpl.UnknownFields 85 sizeCache protoimpl.SizeCache 86 } 87 88 func (x *WatchLocalLinksResponse) Reset() { 89 *x = WatchLocalLinksResponse{} 90 mi := &file_infra_link_proto_msgTypes[1] 91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 92 ms.StoreMessageInfo(mi) 93 } 94 95 func (x *WatchLocalLinksResponse) String() string { 96 return protoimpl.X.MessageStringOf(x) 97 } 98 99 func (*WatchLocalLinksResponse) ProtoMessage() {} 100 101 func (x *WatchLocalLinksResponse) ProtoReflect() protoreflect.Message { 102 mi := &file_infra_link_proto_msgTypes[1] 103 if x != nil { 104 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 105 if ms.LoadMessageInfo() == nil { 106 ms.StoreMessageInfo(mi) 107 } 108 return ms 109 } 110 return mi.MessageOf(x) 111 } 112 113 // Deprecated: Use WatchLocalLinksResponse.ProtoReflect.Descriptor instead. 114 func (*WatchLocalLinksResponse) Descriptor() ([]byte, []int) { 115 return file_infra_link_proto_rawDescGZIP(), []int{1} 116 } 117 118 func (x *WatchLocalLinksResponse) GetLocalRegion() string { 119 if x != nil { 120 return x.LocalRegion 121 } 122 return "" 123 } 124 125 func (x *WatchLocalLinksResponse) GetRemoteRegion() string { 126 if x != nil { 127 return x.RemoteRegion 128 } 129 return "" 130 } 131 132 func (x *WatchLocalLinksResponse) GetRtt() int64 { 133 if x != nil { 134 return x.Rtt 135 } 136 return 0 137 } 138 139 func (x *WatchLocalLinksResponse) GetJitter() int64 { 140 if x != nil { 141 return x.Jitter 142 } 143 return 0 144 } 145 146 func (x *WatchLocalLinksResponse) GetPacketLoss() float64 { 147 if x != nil { 148 return x.PacketLoss 149 } 150 return 0 151 } 152 153 func (x *WatchLocalLinksResponse) GetDisabled() bool { 154 if x != nil { 155 return x.Disabled 156 } 157 return false 158 } 159 160 func (x *WatchLocalLinksResponse) GetLastRead() *timestamppb.Timestamp { 161 if x != nil { 162 return x.LastRead 163 } 164 return nil 165 } 166 167 type SimulateLinkStateRequest struct { 168 state protoimpl.MessageState `protogen:"open.v1"` 169 LocalRegion string `protobuf:"bytes,1,opt,name=local_region,json=localRegion,proto3" json:"local_region,omitempty"` 170 RemoteRegion string `protobuf:"bytes,2,opt,name=remote_region,json=remoteRegion,proto3" json:"remote_region,omitempty"` 171 Rtt *int64 `protobuf:"varint,3,opt,name=rtt,proto3,oneof" json:"rtt,omitempty"` 172 Jitter *int64 `protobuf:"varint,4,opt,name=jitter,proto3,oneof" json:"jitter,omitempty"` 173 PacketLoss *float64 `protobuf:"fixed64,5,opt,name=packet_loss,json=packetLoss,proto3,oneof" json:"packet_loss,omitempty"` 174 Disabled *bool `protobuf:"varint,6,opt,name=disabled,proto3,oneof" json:"disabled,omitempty"` 175 Timeout int64 `protobuf:"varint,7,opt,name=timeout,proto3" json:"timeout,omitempty"` 176 unknownFields protoimpl.UnknownFields 177 sizeCache protoimpl.SizeCache 178 } 179 180 func (x *SimulateLinkStateRequest) Reset() { 181 *x = SimulateLinkStateRequest{} 182 mi := &file_infra_link_proto_msgTypes[2] 183 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 184 ms.StoreMessageInfo(mi) 185 } 186 187 func (x *SimulateLinkStateRequest) String() string { 188 return protoimpl.X.MessageStringOf(x) 189 } 190 191 func (*SimulateLinkStateRequest) ProtoMessage() {} 192 193 func (x *SimulateLinkStateRequest) ProtoReflect() protoreflect.Message { 194 mi := &file_infra_link_proto_msgTypes[2] 195 if x != nil { 196 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 197 if ms.LoadMessageInfo() == nil { 198 ms.StoreMessageInfo(mi) 199 } 200 return ms 201 } 202 return mi.MessageOf(x) 203 } 204 205 // Deprecated: Use SimulateLinkStateRequest.ProtoReflect.Descriptor instead. 206 func (*SimulateLinkStateRequest) Descriptor() ([]byte, []int) { 207 return file_infra_link_proto_rawDescGZIP(), []int{2} 208 } 209 210 func (x *SimulateLinkStateRequest) GetLocalRegion() string { 211 if x != nil { 212 return x.LocalRegion 213 } 214 return "" 215 } 216 217 func (x *SimulateLinkStateRequest) GetRemoteRegion() string { 218 if x != nil { 219 return x.RemoteRegion 220 } 221 return "" 222 } 223 224 func (x *SimulateLinkStateRequest) GetRtt() int64 { 225 if x != nil && x.Rtt != nil { 226 return *x.Rtt 227 } 228 return 0 229 } 230 231 func (x *SimulateLinkStateRequest) GetJitter() int64 { 232 if x != nil && x.Jitter != nil { 233 return *x.Jitter 234 } 235 return 0 236 } 237 238 func (x *SimulateLinkStateRequest) GetPacketLoss() float64 { 239 if x != nil && x.PacketLoss != nil { 240 return *x.PacketLoss 241 } 242 return 0 243 } 244 245 func (x *SimulateLinkStateRequest) GetDisabled() bool { 246 if x != nil && x.Disabled != nil { 247 return *x.Disabled 248 } 249 return false 250 } 251 252 func (x *SimulateLinkStateRequest) GetTimeout() int64 { 253 if x != nil { 254 return x.Timeout 255 } 256 return 0 257 } 258 259 type SimulateLinkStateResponse struct { 260 state protoimpl.MessageState `protogen:"open.v1"` 261 unknownFields protoimpl.UnknownFields 262 sizeCache protoimpl.SizeCache 263 } 264 265 func (x *SimulateLinkStateResponse) Reset() { 266 *x = SimulateLinkStateResponse{} 267 mi := &file_infra_link_proto_msgTypes[3] 268 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 269 ms.StoreMessageInfo(mi) 270 } 271 272 func (x *SimulateLinkStateResponse) String() string { 273 return protoimpl.X.MessageStringOf(x) 274 } 275 276 func (*SimulateLinkStateResponse) ProtoMessage() {} 277 278 func (x *SimulateLinkStateResponse) ProtoReflect() protoreflect.Message { 279 mi := &file_infra_link_proto_msgTypes[3] 280 if x != nil { 281 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 282 if ms.LoadMessageInfo() == nil { 283 ms.StoreMessageInfo(mi) 284 } 285 return ms 286 } 287 return mi.MessageOf(x) 288 } 289 290 // Deprecated: Use SimulateLinkStateResponse.ProtoReflect.Descriptor instead. 291 func (*SimulateLinkStateResponse) Descriptor() ([]byte, []int) { 292 return file_infra_link_proto_rawDescGZIP(), []int{3} 293 } 294 295 var File_infra_link_proto protoreflect.FileDescriptor 296 297 const file_infra_link_proto_rawDesc = "" + 298 "\n" + 299 "\x10infra/link.proto\x12\x03rpc\x1a\x1fgoogle/protobuf/timestamp.proto\"\x18\n" + 300 "\x16WatchLocalLinksRequest\"\x81\x02\n" + 301 "\x17WatchLocalLinksResponse\x12!\n" + 302 "\flocal_region\x18\x01 \x01(\tR\vlocalRegion\x12#\n" + 303 "\rremote_region\x18\x02 \x01(\tR\fremoteRegion\x12\x10\n" + 304 "\x03rtt\x18\x03 \x01(\x03R\x03rtt\x12\x16\n" + 305 "\x06jitter\x18\x04 \x01(\x03R\x06jitter\x12\x1f\n" + 306 "\vpacket_loss\x18\x05 \x01(\x01R\n" + 307 "packetLoss\x12\x1a\n" + 308 "\bdisabled\x18\x06 \x01(\bR\bdisabled\x127\n" + 309 "\tlast_read\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\blastRead\"\xa7\x02\n" + 310 "\x18SimulateLinkStateRequest\x12!\n" + 311 "\flocal_region\x18\x01 \x01(\tR\vlocalRegion\x12#\n" + 312 "\rremote_region\x18\x02 \x01(\tR\fremoteRegion\x12\x15\n" + 313 "\x03rtt\x18\x03 \x01(\x03H\x00R\x03rtt\x88\x01\x01\x12\x1b\n" + 314 "\x06jitter\x18\x04 \x01(\x03H\x01R\x06jitter\x88\x01\x01\x12$\n" + 315 "\vpacket_loss\x18\x05 \x01(\x01H\x02R\n" + 316 "packetLoss\x88\x01\x01\x12\x1f\n" + 317 "\bdisabled\x18\x06 \x01(\bH\x03R\bdisabled\x88\x01\x01\x12\x18\n" + 318 "\atimeout\x18\a \x01(\x03R\atimeoutB\x06\n" + 319 "\x04_rttB\t\n" + 320 "\a_jitterB\x0e\n" + 321 "\f_packet_lossB\v\n" + 322 "\t_disabled\"\x1b\n" + 323 "\x19SimulateLinkStateResponse2\xaa\x01\n" + 324 "\x04Link\x12N\n" + 325 "\x0fWatchLocalLinks\x12\x1b.rpc.WatchLocalLinksRequest\x1a\x1c.rpc.WatchLocalLinksResponse0\x01\x12R\n" + 326 "\x11SimulateLinkState\x12\x1d.rpc.SimulateLinkStateRequest\x1a\x1e.rpc.SimulateLinkStateResponseB#Z!github.com/livekit/protocol/infrab\x06proto3" 327 328 var ( 329 file_infra_link_proto_rawDescOnce sync.Once 330 file_infra_link_proto_rawDescData []byte 331 ) 332 333 func file_infra_link_proto_rawDescGZIP() []byte { 334 file_infra_link_proto_rawDescOnce.Do(func() { 335 file_infra_link_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_infra_link_proto_rawDesc), len(file_infra_link_proto_rawDesc))) 336 }) 337 return file_infra_link_proto_rawDescData 338 } 339 340 var file_infra_link_proto_msgTypes = make([]protoimpl.MessageInfo, 4) 341 var file_infra_link_proto_goTypes = []any{ 342 (*WatchLocalLinksRequest)(nil), // 0: rpc.WatchLocalLinksRequest 343 (*WatchLocalLinksResponse)(nil), // 1: rpc.WatchLocalLinksResponse 344 (*SimulateLinkStateRequest)(nil), // 2: rpc.SimulateLinkStateRequest 345 (*SimulateLinkStateResponse)(nil), // 3: rpc.SimulateLinkStateResponse 346 (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp 347 } 348 var file_infra_link_proto_depIdxs = []int32{ 349 4, // 0: rpc.WatchLocalLinksResponse.last_read:type_name -> google.protobuf.Timestamp 350 0, // 1: rpc.Link.WatchLocalLinks:input_type -> rpc.WatchLocalLinksRequest 351 2, // 2: rpc.Link.SimulateLinkState:input_type -> rpc.SimulateLinkStateRequest 352 1, // 3: rpc.Link.WatchLocalLinks:output_type -> rpc.WatchLocalLinksResponse 353 3, // 4: rpc.Link.SimulateLinkState:output_type -> rpc.SimulateLinkStateResponse 354 3, // [3:5] is the sub-list for method output_type 355 1, // [1:3] is the sub-list for method input_type 356 1, // [1:1] is the sub-list for extension type_name 357 1, // [1:1] is the sub-list for extension extendee 358 0, // [0:1] is the sub-list for field type_name 359 } 360 361 func init() { file_infra_link_proto_init() } 362 func file_infra_link_proto_init() { 363 if File_infra_link_proto != nil { 364 return 365 } 366 file_infra_link_proto_msgTypes[2].OneofWrappers = []any{} 367 type x struct{} 368 out := protoimpl.TypeBuilder{ 369 File: protoimpl.DescBuilder{ 370 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 371 RawDescriptor: unsafe.Slice(unsafe.StringData(file_infra_link_proto_rawDesc), len(file_infra_link_proto_rawDesc)), 372 NumEnums: 0, 373 NumMessages: 4, 374 NumExtensions: 0, 375 NumServices: 1, 376 }, 377 GoTypes: file_infra_link_proto_goTypes, 378 DependencyIndexes: file_infra_link_proto_depIdxs, 379 MessageInfos: file_infra_link_proto_msgTypes, 380 }.Build() 381 File_infra_link_proto = out.File 382 file_infra_link_proto_goTypes = nil 383 file_infra_link_proto_depIdxs = nil 384 }