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