github.com/v2fly/v2ray-core/v4@v4.45.2/transport/internet/kcp/config.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.27.1 4 // protoc v3.17.3 5 // source: transport/internet/kcp/config.proto 6 7 package kcp 8 9 import ( 10 serial "github.com/v2fly/v2ray-core/v4/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, 0x21, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 524 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 525 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 526 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 527 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1b, 0x0a, 0x03, 0x4d, 528 0x54, 0x55, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 529 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x1b, 0x0a, 0x03, 0x54, 0x54, 0x49, 0x12, 530 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 531 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x26, 0x0a, 0x0e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 532 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 533 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x28, 0x0a, 534 0x10, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 535 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 536 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x21, 0x0a, 0x0b, 0x57, 0x72, 0x69, 0x74, 0x65, 537 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 538 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x20, 0x0a, 0x0a, 0x52, 0x65, 539 0x61, 0x64, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 540 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x29, 0x0a, 0x0f, 541 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x75, 0x73, 0x65, 0x12, 542 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 543 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x24, 0x0a, 0x0e, 0x45, 0x6e, 0x63, 0x72, 0x79, 544 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 545 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x22, 0x97, 0x05, 546 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x38, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, 547 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 548 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 549 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x4d, 0x54, 0x55, 0x52, 0x03, 0x6d, 550 0x74, 0x75, 0x12, 0x38, 0x0a, 0x03, 0x74, 0x74, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 551 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 552 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 553 0x6b, 0x63, 0x70, 0x2e, 0x54, 0x54, 0x49, 0x52, 0x03, 0x74, 0x74, 0x69, 0x12, 0x5a, 0x0a, 0x0f, 554 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 555 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 556 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 557 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 558 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x52, 0x0e, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 559 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x60, 0x0a, 0x11, 0x64, 0x6f, 0x77, 0x6e, 560 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 561 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 562 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 563 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 564 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x52, 0x10, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 565 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 566 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 567 0x63, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x51, 0x0a, 0x0c, 0x77, 0x72, 568 0x69, 0x74, 0x65, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 569 0x32, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 570 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 571 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 572 0x52, 0x0b, 0x77, 0x72, 0x69, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x4e, 0x0a, 573 0x0b, 0x72, 0x65, 0x61, 0x64, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 574 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 575 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 576 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x52, 0x65, 0x61, 0x64, 0x42, 0x75, 0x66, 0x66, 0x65, 577 0x72, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x4b, 0x0a, 578 0x0d, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x08, 579 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 580 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 581 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0c, 0x68, 0x65, 582 0x61, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x45, 0x0a, 0x04, 0x73, 0x65, 583 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 584 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 585 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x45, 0x6e, 0x63, 586 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x65, 0x64, 0x52, 0x04, 0x73, 0x65, 0x65, 587 0x64, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x42, 0x84, 0x01, 0x0a, 0x25, 0x63, 0x6f, 0x6d, 0x2e, 588 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 589 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 590 0x70, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 591 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 592 0x2f, 0x76, 0x34, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 593 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x6b, 0x63, 0x70, 0xaa, 0x02, 0x21, 0x56, 0x32, 0x52, 594 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 595 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x4b, 0x63, 0x70, 0x62, 0x06, 596 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 597 } 598 599 var ( 600 file_transport_internet_kcp_config_proto_rawDescOnce sync.Once 601 file_transport_internet_kcp_config_proto_rawDescData = file_transport_internet_kcp_config_proto_rawDesc 602 ) 603 604 func file_transport_internet_kcp_config_proto_rawDescGZIP() []byte { 605 file_transport_internet_kcp_config_proto_rawDescOnce.Do(func() { 606 file_transport_internet_kcp_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_kcp_config_proto_rawDescData) 607 }) 608 return file_transport_internet_kcp_config_proto_rawDescData 609 } 610 611 var file_transport_internet_kcp_config_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 612 var file_transport_internet_kcp_config_proto_goTypes = []interface{}{ 613 (*MTU)(nil), // 0: v2ray.core.transport.internet.kcp.MTU 614 (*TTI)(nil), // 1: v2ray.core.transport.internet.kcp.TTI 615 (*UplinkCapacity)(nil), // 2: v2ray.core.transport.internet.kcp.UplinkCapacity 616 (*DownlinkCapacity)(nil), // 3: v2ray.core.transport.internet.kcp.DownlinkCapacity 617 (*WriteBuffer)(nil), // 4: v2ray.core.transport.internet.kcp.WriteBuffer 618 (*ReadBuffer)(nil), // 5: v2ray.core.transport.internet.kcp.ReadBuffer 619 (*ConnectionReuse)(nil), // 6: v2ray.core.transport.internet.kcp.ConnectionReuse 620 (*EncryptionSeed)(nil), // 7: v2ray.core.transport.internet.kcp.EncryptionSeed 621 (*Config)(nil), // 8: v2ray.core.transport.internet.kcp.Config 622 (*serial.TypedMessage)(nil), // 9: v2ray.core.common.serial.TypedMessage 623 } 624 var file_transport_internet_kcp_config_proto_depIdxs = []int32{ 625 0, // 0: v2ray.core.transport.internet.kcp.Config.mtu:type_name -> v2ray.core.transport.internet.kcp.MTU 626 1, // 1: v2ray.core.transport.internet.kcp.Config.tti:type_name -> v2ray.core.transport.internet.kcp.TTI 627 2, // 2: v2ray.core.transport.internet.kcp.Config.uplink_capacity:type_name -> v2ray.core.transport.internet.kcp.UplinkCapacity 628 3, // 3: v2ray.core.transport.internet.kcp.Config.downlink_capacity:type_name -> v2ray.core.transport.internet.kcp.DownlinkCapacity 629 4, // 4: v2ray.core.transport.internet.kcp.Config.write_buffer:type_name -> v2ray.core.transport.internet.kcp.WriteBuffer 630 5, // 5: v2ray.core.transport.internet.kcp.Config.read_buffer:type_name -> v2ray.core.transport.internet.kcp.ReadBuffer 631 9, // 6: v2ray.core.transport.internet.kcp.Config.header_config:type_name -> v2ray.core.common.serial.TypedMessage 632 7, // 7: v2ray.core.transport.internet.kcp.Config.seed:type_name -> v2ray.core.transport.internet.kcp.EncryptionSeed 633 8, // [8:8] is the sub-list for method output_type 634 8, // [8:8] is the sub-list for method input_type 635 8, // [8:8] is the sub-list for extension type_name 636 8, // [8:8] is the sub-list for extension extendee 637 0, // [0:8] is the sub-list for field type_name 638 } 639 640 func init() { file_transport_internet_kcp_config_proto_init() } 641 func file_transport_internet_kcp_config_proto_init() { 642 if File_transport_internet_kcp_config_proto != nil { 643 return 644 } 645 if !protoimpl.UnsafeEnabled { 646 file_transport_internet_kcp_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 647 switch v := v.(*MTU); i { 648 case 0: 649 return &v.state 650 case 1: 651 return &v.sizeCache 652 case 2: 653 return &v.unknownFields 654 default: 655 return nil 656 } 657 } 658 file_transport_internet_kcp_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 659 switch v := v.(*TTI); i { 660 case 0: 661 return &v.state 662 case 1: 663 return &v.sizeCache 664 case 2: 665 return &v.unknownFields 666 default: 667 return nil 668 } 669 } 670 file_transport_internet_kcp_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 671 switch v := v.(*UplinkCapacity); i { 672 case 0: 673 return &v.state 674 case 1: 675 return &v.sizeCache 676 case 2: 677 return &v.unknownFields 678 default: 679 return nil 680 } 681 } 682 file_transport_internet_kcp_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 683 switch v := v.(*DownlinkCapacity); i { 684 case 0: 685 return &v.state 686 case 1: 687 return &v.sizeCache 688 case 2: 689 return &v.unknownFields 690 default: 691 return nil 692 } 693 } 694 file_transport_internet_kcp_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 695 switch v := v.(*WriteBuffer); i { 696 case 0: 697 return &v.state 698 case 1: 699 return &v.sizeCache 700 case 2: 701 return &v.unknownFields 702 default: 703 return nil 704 } 705 } 706 file_transport_internet_kcp_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 707 switch v := v.(*ReadBuffer); i { 708 case 0: 709 return &v.state 710 case 1: 711 return &v.sizeCache 712 case 2: 713 return &v.unknownFields 714 default: 715 return nil 716 } 717 } 718 file_transport_internet_kcp_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 719 switch v := v.(*ConnectionReuse); i { 720 case 0: 721 return &v.state 722 case 1: 723 return &v.sizeCache 724 case 2: 725 return &v.unknownFields 726 default: 727 return nil 728 } 729 } 730 file_transport_internet_kcp_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 731 switch v := v.(*EncryptionSeed); i { 732 case 0: 733 return &v.state 734 case 1: 735 return &v.sizeCache 736 case 2: 737 return &v.unknownFields 738 default: 739 return nil 740 } 741 } 742 file_transport_internet_kcp_config_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 743 switch v := v.(*Config); i { 744 case 0: 745 return &v.state 746 case 1: 747 return &v.sizeCache 748 case 2: 749 return &v.unknownFields 750 default: 751 return nil 752 } 753 } 754 } 755 type x struct{} 756 out := protoimpl.TypeBuilder{ 757 File: protoimpl.DescBuilder{ 758 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 759 RawDescriptor: file_transport_internet_kcp_config_proto_rawDesc, 760 NumEnums: 0, 761 NumMessages: 9, 762 NumExtensions: 0, 763 NumServices: 0, 764 }, 765 GoTypes: file_transport_internet_kcp_config_proto_goTypes, 766 DependencyIndexes: file_transport_internet_kcp_config_proto_depIdxs, 767 MessageInfos: file_transport_internet_kcp_config_proto_msgTypes, 768 }.Build() 769 File_transport_internet_kcp_config_proto = out.File 770 file_transport_internet_kcp_config_proto_rawDesc = nil 771 file_transport_internet_kcp_config_proto_goTypes = nil 772 file_transport_internet_kcp_config_proto_depIdxs = nil 773 }