github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/transport/internet/kcp/config.pb.go (about) 1 package kcp 2 3 import ( 4 _ "github.com/v2fly/v2ray-core/v5/common/protoext" 5 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 6 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 7 anypb "google.golang.org/protobuf/types/known/anypb" 8 reflect "reflect" 9 sync "sync" 10 ) 11 12 const ( 13 // Verify that this generated code is sufficiently up-to-date. 14 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 15 // Verify that runtime/protoimpl is sufficiently up-to-date. 16 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 17 ) 18 19 // Maximum Transmission Unit, in bytes. 20 type MTU struct { 21 state protoimpl.MessageState 22 sizeCache protoimpl.SizeCache 23 unknownFields protoimpl.UnknownFields 24 25 Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` 26 } 27 28 func (x *MTU) Reset() { 29 *x = MTU{} 30 if protoimpl.UnsafeEnabled { 31 mi := &file_transport_internet_kcp_config_proto_msgTypes[0] 32 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 33 ms.StoreMessageInfo(mi) 34 } 35 } 36 37 func (x *MTU) String() string { 38 return protoimpl.X.MessageStringOf(x) 39 } 40 41 func (*MTU) ProtoMessage() {} 42 43 func (x *MTU) ProtoReflect() protoreflect.Message { 44 mi := &file_transport_internet_kcp_config_proto_msgTypes[0] 45 if protoimpl.UnsafeEnabled && x != nil { 46 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 47 if ms.LoadMessageInfo() == nil { 48 ms.StoreMessageInfo(mi) 49 } 50 return ms 51 } 52 return mi.MessageOf(x) 53 } 54 55 // Deprecated: Use MTU.ProtoReflect.Descriptor instead. 56 func (*MTU) Descriptor() ([]byte, []int) { 57 return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{0} 58 } 59 60 func (x *MTU) GetValue() uint32 { 61 if x != nil { 62 return x.Value 63 } 64 return 0 65 } 66 67 // Transmission Time Interview, in milli-sec. 68 type TTI struct { 69 state protoimpl.MessageState 70 sizeCache protoimpl.SizeCache 71 unknownFields protoimpl.UnknownFields 72 73 Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` 74 } 75 76 func (x *TTI) Reset() { 77 *x = TTI{} 78 if protoimpl.UnsafeEnabled { 79 mi := &file_transport_internet_kcp_config_proto_msgTypes[1] 80 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 81 ms.StoreMessageInfo(mi) 82 } 83 } 84 85 func (x *TTI) String() string { 86 return protoimpl.X.MessageStringOf(x) 87 } 88 89 func (*TTI) ProtoMessage() {} 90 91 func (x *TTI) ProtoReflect() protoreflect.Message { 92 mi := &file_transport_internet_kcp_config_proto_msgTypes[1] 93 if protoimpl.UnsafeEnabled && x != nil { 94 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 95 if ms.LoadMessageInfo() == nil { 96 ms.StoreMessageInfo(mi) 97 } 98 return ms 99 } 100 return mi.MessageOf(x) 101 } 102 103 // Deprecated: Use TTI.ProtoReflect.Descriptor instead. 104 func (*TTI) Descriptor() ([]byte, []int) { 105 return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{1} 106 } 107 108 func (x *TTI) GetValue() uint32 { 109 if x != nil { 110 return x.Value 111 } 112 return 0 113 } 114 115 // Uplink capacity, in MB. 116 type UplinkCapacity struct { 117 state protoimpl.MessageState 118 sizeCache protoimpl.SizeCache 119 unknownFields protoimpl.UnknownFields 120 121 Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` 122 } 123 124 func (x *UplinkCapacity) Reset() { 125 *x = UplinkCapacity{} 126 if protoimpl.UnsafeEnabled { 127 mi := &file_transport_internet_kcp_config_proto_msgTypes[2] 128 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 129 ms.StoreMessageInfo(mi) 130 } 131 } 132 133 func (x *UplinkCapacity) String() string { 134 return protoimpl.X.MessageStringOf(x) 135 } 136 137 func (*UplinkCapacity) ProtoMessage() {} 138 139 func (x *UplinkCapacity) ProtoReflect() protoreflect.Message { 140 mi := &file_transport_internet_kcp_config_proto_msgTypes[2] 141 if protoimpl.UnsafeEnabled && x != nil { 142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 143 if ms.LoadMessageInfo() == nil { 144 ms.StoreMessageInfo(mi) 145 } 146 return ms 147 } 148 return mi.MessageOf(x) 149 } 150 151 // Deprecated: Use UplinkCapacity.ProtoReflect.Descriptor instead. 152 func (*UplinkCapacity) Descriptor() ([]byte, []int) { 153 return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{2} 154 } 155 156 func (x *UplinkCapacity) GetValue() uint32 { 157 if x != nil { 158 return x.Value 159 } 160 return 0 161 } 162 163 // Downlink capacity, in MB. 164 type DownlinkCapacity struct { 165 state protoimpl.MessageState 166 sizeCache protoimpl.SizeCache 167 unknownFields protoimpl.UnknownFields 168 169 Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` 170 } 171 172 func (x *DownlinkCapacity) Reset() { 173 *x = DownlinkCapacity{} 174 if protoimpl.UnsafeEnabled { 175 mi := &file_transport_internet_kcp_config_proto_msgTypes[3] 176 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 177 ms.StoreMessageInfo(mi) 178 } 179 } 180 181 func (x *DownlinkCapacity) String() string { 182 return protoimpl.X.MessageStringOf(x) 183 } 184 185 func (*DownlinkCapacity) ProtoMessage() {} 186 187 func (x *DownlinkCapacity) ProtoReflect() protoreflect.Message { 188 mi := &file_transport_internet_kcp_config_proto_msgTypes[3] 189 if protoimpl.UnsafeEnabled && x != nil { 190 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 191 if ms.LoadMessageInfo() == nil { 192 ms.StoreMessageInfo(mi) 193 } 194 return ms 195 } 196 return mi.MessageOf(x) 197 } 198 199 // Deprecated: Use DownlinkCapacity.ProtoReflect.Descriptor instead. 200 func (*DownlinkCapacity) Descriptor() ([]byte, []int) { 201 return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{3} 202 } 203 204 func (x *DownlinkCapacity) GetValue() uint32 { 205 if x != nil { 206 return x.Value 207 } 208 return 0 209 } 210 211 type WriteBuffer struct { 212 state protoimpl.MessageState 213 sizeCache protoimpl.SizeCache 214 unknownFields protoimpl.UnknownFields 215 216 // Buffer size in bytes. 217 Size uint32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` 218 } 219 220 func (x *WriteBuffer) Reset() { 221 *x = WriteBuffer{} 222 if protoimpl.UnsafeEnabled { 223 mi := &file_transport_internet_kcp_config_proto_msgTypes[4] 224 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 225 ms.StoreMessageInfo(mi) 226 } 227 } 228 229 func (x *WriteBuffer) String() string { 230 return protoimpl.X.MessageStringOf(x) 231 } 232 233 func (*WriteBuffer) ProtoMessage() {} 234 235 func (x *WriteBuffer) ProtoReflect() protoreflect.Message { 236 mi := &file_transport_internet_kcp_config_proto_msgTypes[4] 237 if protoimpl.UnsafeEnabled && x != nil { 238 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 239 if ms.LoadMessageInfo() == nil { 240 ms.StoreMessageInfo(mi) 241 } 242 return ms 243 } 244 return mi.MessageOf(x) 245 } 246 247 // Deprecated: Use WriteBuffer.ProtoReflect.Descriptor instead. 248 func (*WriteBuffer) Descriptor() ([]byte, []int) { 249 return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{4} 250 } 251 252 func (x *WriteBuffer) GetSize() uint32 { 253 if x != nil { 254 return x.Size 255 } 256 return 0 257 } 258 259 type ReadBuffer struct { 260 state protoimpl.MessageState 261 sizeCache protoimpl.SizeCache 262 unknownFields protoimpl.UnknownFields 263 264 // Buffer size in bytes. 265 Size uint32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` 266 } 267 268 func (x *ReadBuffer) Reset() { 269 *x = ReadBuffer{} 270 if protoimpl.UnsafeEnabled { 271 mi := &file_transport_internet_kcp_config_proto_msgTypes[5] 272 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 273 ms.StoreMessageInfo(mi) 274 } 275 } 276 277 func (x *ReadBuffer) String() string { 278 return protoimpl.X.MessageStringOf(x) 279 } 280 281 func (*ReadBuffer) ProtoMessage() {} 282 283 func (x *ReadBuffer) ProtoReflect() protoreflect.Message { 284 mi := &file_transport_internet_kcp_config_proto_msgTypes[5] 285 if protoimpl.UnsafeEnabled && x != nil { 286 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 287 if ms.LoadMessageInfo() == nil { 288 ms.StoreMessageInfo(mi) 289 } 290 return ms 291 } 292 return mi.MessageOf(x) 293 } 294 295 // Deprecated: Use ReadBuffer.ProtoReflect.Descriptor instead. 296 func (*ReadBuffer) Descriptor() ([]byte, []int) { 297 return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{5} 298 } 299 300 func (x *ReadBuffer) GetSize() uint32 { 301 if x != nil { 302 return x.Size 303 } 304 return 0 305 } 306 307 type ConnectionReuse struct { 308 state protoimpl.MessageState 309 sizeCache protoimpl.SizeCache 310 unknownFields protoimpl.UnknownFields 311 312 Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"` 313 } 314 315 func (x *ConnectionReuse) Reset() { 316 *x = ConnectionReuse{} 317 if protoimpl.UnsafeEnabled { 318 mi := &file_transport_internet_kcp_config_proto_msgTypes[6] 319 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 320 ms.StoreMessageInfo(mi) 321 } 322 } 323 324 func (x *ConnectionReuse) String() string { 325 return protoimpl.X.MessageStringOf(x) 326 } 327 328 func (*ConnectionReuse) ProtoMessage() {} 329 330 func (x *ConnectionReuse) ProtoReflect() protoreflect.Message { 331 mi := &file_transport_internet_kcp_config_proto_msgTypes[6] 332 if protoimpl.UnsafeEnabled && x != nil { 333 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 334 if ms.LoadMessageInfo() == nil { 335 ms.StoreMessageInfo(mi) 336 } 337 return ms 338 } 339 return mi.MessageOf(x) 340 } 341 342 // Deprecated: Use ConnectionReuse.ProtoReflect.Descriptor instead. 343 func (*ConnectionReuse) Descriptor() ([]byte, []int) { 344 return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{6} 345 } 346 347 func (x *ConnectionReuse) GetEnable() bool { 348 if x != nil { 349 return x.Enable 350 } 351 return false 352 } 353 354 // Maximum Transmission Unit, in bytes. 355 type EncryptionSeed struct { 356 state protoimpl.MessageState 357 sizeCache protoimpl.SizeCache 358 unknownFields protoimpl.UnknownFields 359 360 Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"` 361 } 362 363 func (x *EncryptionSeed) Reset() { 364 *x = EncryptionSeed{} 365 if protoimpl.UnsafeEnabled { 366 mi := &file_transport_internet_kcp_config_proto_msgTypes[7] 367 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 368 ms.StoreMessageInfo(mi) 369 } 370 } 371 372 func (x *EncryptionSeed) String() string { 373 return protoimpl.X.MessageStringOf(x) 374 } 375 376 func (*EncryptionSeed) ProtoMessage() {} 377 378 func (x *EncryptionSeed) ProtoReflect() protoreflect.Message { 379 mi := &file_transport_internet_kcp_config_proto_msgTypes[7] 380 if protoimpl.UnsafeEnabled && x != nil { 381 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 382 if ms.LoadMessageInfo() == nil { 383 ms.StoreMessageInfo(mi) 384 } 385 return ms 386 } 387 return mi.MessageOf(x) 388 } 389 390 // Deprecated: Use EncryptionSeed.ProtoReflect.Descriptor instead. 391 func (*EncryptionSeed) Descriptor() ([]byte, []int) { 392 return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{7} 393 } 394 395 func (x *EncryptionSeed) GetSeed() string { 396 if x != nil { 397 return x.Seed 398 } 399 return "" 400 } 401 402 type Config struct { 403 state protoimpl.MessageState 404 sizeCache protoimpl.SizeCache 405 unknownFields protoimpl.UnknownFields 406 407 Mtu *MTU `protobuf:"bytes,1,opt,name=mtu,proto3" json:"mtu,omitempty"` 408 Tti *TTI `protobuf:"bytes,2,opt,name=tti,proto3" json:"tti,omitempty"` 409 UplinkCapacity *UplinkCapacity `protobuf:"bytes,3,opt,name=uplink_capacity,json=uplinkCapacity,proto3" json:"uplink_capacity,omitempty"` 410 DownlinkCapacity *DownlinkCapacity `protobuf:"bytes,4,opt,name=downlink_capacity,json=downlinkCapacity,proto3" json:"downlink_capacity,omitempty"` 411 Congestion bool `protobuf:"varint,5,opt,name=congestion,proto3" json:"congestion,omitempty"` 412 WriteBuffer *WriteBuffer `protobuf:"bytes,6,opt,name=write_buffer,json=writeBuffer,proto3" json:"write_buffer,omitempty"` 413 ReadBuffer *ReadBuffer `protobuf:"bytes,7,opt,name=read_buffer,json=readBuffer,proto3" json:"read_buffer,omitempty"` 414 HeaderConfig *anypb.Any `protobuf:"bytes,8,opt,name=header_config,json=headerConfig,proto3" json:"header_config,omitempty"` 415 Seed *EncryptionSeed `protobuf:"bytes,10,opt,name=seed,proto3" json:"seed,omitempty"` 416 } 417 418 func (x *Config) Reset() { 419 *x = Config{} 420 if protoimpl.UnsafeEnabled { 421 mi := &file_transport_internet_kcp_config_proto_msgTypes[8] 422 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 423 ms.StoreMessageInfo(mi) 424 } 425 } 426 427 func (x *Config) String() string { 428 return protoimpl.X.MessageStringOf(x) 429 } 430 431 func (*Config) ProtoMessage() {} 432 433 func (x *Config) ProtoReflect() protoreflect.Message { 434 mi := &file_transport_internet_kcp_config_proto_msgTypes[8] 435 if protoimpl.UnsafeEnabled && x != nil { 436 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 437 if ms.LoadMessageInfo() == nil { 438 ms.StoreMessageInfo(mi) 439 } 440 return ms 441 } 442 return mi.MessageOf(x) 443 } 444 445 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 446 func (*Config) Descriptor() ([]byte, []int) { 447 return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{8} 448 } 449 450 func (x *Config) GetMtu() *MTU { 451 if x != nil { 452 return x.Mtu 453 } 454 return nil 455 } 456 457 func (x *Config) GetTti() *TTI { 458 if x != nil { 459 return x.Tti 460 } 461 return nil 462 } 463 464 func (x *Config) GetUplinkCapacity() *UplinkCapacity { 465 if x != nil { 466 return x.UplinkCapacity 467 } 468 return nil 469 } 470 471 func (x *Config) GetDownlinkCapacity() *DownlinkCapacity { 472 if x != nil { 473 return x.DownlinkCapacity 474 } 475 return nil 476 } 477 478 func (x *Config) GetCongestion() bool { 479 if x != nil { 480 return x.Congestion 481 } 482 return false 483 } 484 485 func (x *Config) GetWriteBuffer() *WriteBuffer { 486 if x != nil { 487 return x.WriteBuffer 488 } 489 return nil 490 } 491 492 func (x *Config) GetReadBuffer() *ReadBuffer { 493 if x != nil { 494 return x.ReadBuffer 495 } 496 return nil 497 } 498 499 func (x *Config) GetHeaderConfig() *anypb.Any { 500 if x != nil { 501 return x.HeaderConfig 502 } 503 return nil 504 } 505 506 func (x *Config) GetSeed() *EncryptionSeed { 507 if x != nil { 508 return x.Seed 509 } 510 return nil 511 } 512 513 var File_transport_internet_kcp_config_proto protoreflect.FileDescriptor 514 515 var file_transport_internet_kcp_config_proto_rawDesc = []byte{ 516 0x0a, 0x23, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 517 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x6b, 0x63, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 518 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 519 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 520 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 521 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 522 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 523 0x6f, 0x65, 0x78, 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 524 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1b, 0x0a, 0x03, 0x4d, 0x54, 0x55, 0x12, 0x14, 0x0a, 0x05, 525 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 526 0x75, 0x65, 0x22, 0x1b, 0x0a, 0x03, 0x54, 0x54, 0x49, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 527 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 528 0x26, 0x0a, 0x0e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 529 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 530 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x28, 0x0a, 0x10, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 531 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 532 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 533 0x65, 0x22, 0x21, 0x0a, 0x0b, 0x57, 0x72, 0x69, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 534 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 535 0x73, 0x69, 0x7a, 0x65, 0x22, 0x20, 0x0a, 0x0a, 0x52, 0x65, 0x61, 0x64, 0x42, 0x75, 0x66, 0x66, 536 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 537 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x29, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 538 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x75, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 539 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 540 0x65, 0x22, 0x24, 0x0a, 0x0e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 541 0x65, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 542 0x09, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x22, 0xa7, 0x05, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 543 0x69, 0x67, 0x12, 0x38, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 544 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 545 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 546 0x6b, 0x63, 0x70, 0x2e, 0x4d, 0x54, 0x55, 0x52, 0x03, 0x6d, 0x74, 0x75, 0x12, 0x38, 0x0a, 0x03, 547 0x74, 0x74, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 548 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 549 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x54, 0x54, 550 0x49, 0x52, 0x03, 0x74, 0x74, 0x69, 0x12, 0x5a, 0x0a, 0x0f, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 551 0x5f, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 552 0x31, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 553 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 554 0x6b, 0x63, 0x70, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 555 0x74, 0x79, 0x52, 0x0e, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 556 0x74, 0x79, 0x12, 0x60, 0x0a, 0x11, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x63, 557 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 558 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 559 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 560 0x70, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 561 0x74, 0x79, 0x52, 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 562 0x63, 0x69, 0x74, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 563 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x67, 0x65, 0x73, 564 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x0c, 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x62, 0x75, 565 0x66, 0x66, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 566 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 567 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x57, 568 0x72, 0x69, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x52, 0x0b, 0x77, 0x72, 0x69, 0x74, 569 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x0b, 0x72, 0x65, 0x61, 0x64, 0x5f, 570 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 571 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 572 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 573 0x2e, 0x52, 0x65, 0x61, 0x64, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x52, 0x0a, 0x72, 0x65, 0x61, 574 0x64, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x39, 0x0a, 0x0d, 0x68, 0x65, 0x61, 0x64, 0x65, 575 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 576 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 577 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x0c, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 578 0x69, 0x67, 0x12, 0x45, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 579 0x32, 0x31, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 580 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 581 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 582 0x65, 0x65, 0x64, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x3a, 0x20, 0x82, 0xb5, 0x18, 0x1c, 0x0a, 583 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x03, 0x6b, 0x63, 0x70, 0x8a, 584 0xff, 0x29, 0x04, 0x6d, 0x6b, 0x63, 0x70, 0x90, 0xff, 0x29, 0x01, 0x4a, 0x04, 0x08, 0x09, 0x10, 585 0x0a, 0x42, 0x84, 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 586 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 587 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x50, 0x01, 0x5a, 0x35, 0x67, 588 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 589 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x74, 0x72, 590 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 591 0x2f, 0x6b, 0x63, 0x70, 0xaa, 0x02, 0x21, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 592 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 593 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x4b, 0x63, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 594 } 595 596 var ( 597 file_transport_internet_kcp_config_proto_rawDescOnce sync.Once 598 file_transport_internet_kcp_config_proto_rawDescData = file_transport_internet_kcp_config_proto_rawDesc 599 ) 600 601 func file_transport_internet_kcp_config_proto_rawDescGZIP() []byte { 602 file_transport_internet_kcp_config_proto_rawDescOnce.Do(func() { 603 file_transport_internet_kcp_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_kcp_config_proto_rawDescData) 604 }) 605 return file_transport_internet_kcp_config_proto_rawDescData 606 } 607 608 var file_transport_internet_kcp_config_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 609 var file_transport_internet_kcp_config_proto_goTypes = []interface{}{ 610 (*MTU)(nil), // 0: v2ray.core.transport.internet.kcp.MTU 611 (*TTI)(nil), // 1: v2ray.core.transport.internet.kcp.TTI 612 (*UplinkCapacity)(nil), // 2: v2ray.core.transport.internet.kcp.UplinkCapacity 613 (*DownlinkCapacity)(nil), // 3: v2ray.core.transport.internet.kcp.DownlinkCapacity 614 (*WriteBuffer)(nil), // 4: v2ray.core.transport.internet.kcp.WriteBuffer 615 (*ReadBuffer)(nil), // 5: v2ray.core.transport.internet.kcp.ReadBuffer 616 (*ConnectionReuse)(nil), // 6: v2ray.core.transport.internet.kcp.ConnectionReuse 617 (*EncryptionSeed)(nil), // 7: v2ray.core.transport.internet.kcp.EncryptionSeed 618 (*Config)(nil), // 8: v2ray.core.transport.internet.kcp.Config 619 (*anypb.Any)(nil), // 9: google.protobuf.Any 620 } 621 var file_transport_internet_kcp_config_proto_depIdxs = []int32{ 622 0, // 0: v2ray.core.transport.internet.kcp.Config.mtu:type_name -> v2ray.core.transport.internet.kcp.MTU 623 1, // 1: v2ray.core.transport.internet.kcp.Config.tti:type_name -> v2ray.core.transport.internet.kcp.TTI 624 2, // 2: v2ray.core.transport.internet.kcp.Config.uplink_capacity:type_name -> v2ray.core.transport.internet.kcp.UplinkCapacity 625 3, // 3: v2ray.core.transport.internet.kcp.Config.downlink_capacity:type_name -> v2ray.core.transport.internet.kcp.DownlinkCapacity 626 4, // 4: v2ray.core.transport.internet.kcp.Config.write_buffer:type_name -> v2ray.core.transport.internet.kcp.WriteBuffer 627 5, // 5: v2ray.core.transport.internet.kcp.Config.read_buffer:type_name -> v2ray.core.transport.internet.kcp.ReadBuffer 628 9, // 6: v2ray.core.transport.internet.kcp.Config.header_config:type_name -> google.protobuf.Any 629 7, // 7: v2ray.core.transport.internet.kcp.Config.seed:type_name -> v2ray.core.transport.internet.kcp.EncryptionSeed 630 8, // [8:8] is the sub-list for method output_type 631 8, // [8:8] is the sub-list for method input_type 632 8, // [8:8] is the sub-list for extension type_name 633 8, // [8:8] is the sub-list for extension extendee 634 0, // [0:8] is the sub-list for field type_name 635 } 636 637 func init() { file_transport_internet_kcp_config_proto_init() } 638 func file_transport_internet_kcp_config_proto_init() { 639 if File_transport_internet_kcp_config_proto != nil { 640 return 641 } 642 if !protoimpl.UnsafeEnabled { 643 file_transport_internet_kcp_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 644 switch v := v.(*MTU); i { 645 case 0: 646 return &v.state 647 case 1: 648 return &v.sizeCache 649 case 2: 650 return &v.unknownFields 651 default: 652 return nil 653 } 654 } 655 file_transport_internet_kcp_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 656 switch v := v.(*TTI); i { 657 case 0: 658 return &v.state 659 case 1: 660 return &v.sizeCache 661 case 2: 662 return &v.unknownFields 663 default: 664 return nil 665 } 666 } 667 file_transport_internet_kcp_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 668 switch v := v.(*UplinkCapacity); i { 669 case 0: 670 return &v.state 671 case 1: 672 return &v.sizeCache 673 case 2: 674 return &v.unknownFields 675 default: 676 return nil 677 } 678 } 679 file_transport_internet_kcp_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 680 switch v := v.(*DownlinkCapacity); i { 681 case 0: 682 return &v.state 683 case 1: 684 return &v.sizeCache 685 case 2: 686 return &v.unknownFields 687 default: 688 return nil 689 } 690 } 691 file_transport_internet_kcp_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 692 switch v := v.(*WriteBuffer); i { 693 case 0: 694 return &v.state 695 case 1: 696 return &v.sizeCache 697 case 2: 698 return &v.unknownFields 699 default: 700 return nil 701 } 702 } 703 file_transport_internet_kcp_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 704 switch v := v.(*ReadBuffer); i { 705 case 0: 706 return &v.state 707 case 1: 708 return &v.sizeCache 709 case 2: 710 return &v.unknownFields 711 default: 712 return nil 713 } 714 } 715 file_transport_internet_kcp_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 716 switch v := v.(*ConnectionReuse); i { 717 case 0: 718 return &v.state 719 case 1: 720 return &v.sizeCache 721 case 2: 722 return &v.unknownFields 723 default: 724 return nil 725 } 726 } 727 file_transport_internet_kcp_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 728 switch v := v.(*EncryptionSeed); i { 729 case 0: 730 return &v.state 731 case 1: 732 return &v.sizeCache 733 case 2: 734 return &v.unknownFields 735 default: 736 return nil 737 } 738 } 739 file_transport_internet_kcp_config_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 740 switch v := v.(*Config); i { 741 case 0: 742 return &v.state 743 case 1: 744 return &v.sizeCache 745 case 2: 746 return &v.unknownFields 747 default: 748 return nil 749 } 750 } 751 } 752 type x struct{} 753 out := protoimpl.TypeBuilder{ 754 File: protoimpl.DescBuilder{ 755 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 756 RawDescriptor: file_transport_internet_kcp_config_proto_rawDesc, 757 NumEnums: 0, 758 NumMessages: 9, 759 NumExtensions: 0, 760 NumServices: 0, 761 }, 762 GoTypes: file_transport_internet_kcp_config_proto_goTypes, 763 DependencyIndexes: file_transport_internet_kcp_config_proto_depIdxs, 764 MessageInfos: file_transport_internet_kcp_config_proto_msgTypes, 765 }.Build() 766 File_transport_internet_kcp_config_proto = out.File 767 file_transport_internet_kcp_config_proto_rawDesc = nil 768 file_transport_internet_kcp_config_proto_goTypes = nil 769 file_transport_internet_kcp_config_proto_depIdxs = nil 770 }