config.pb.go 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.1
  4. // protoc v5.28.2
  5. // source: transport/internet/kcp/config.proto
  6. package kcp
  7. import (
  8. serial "github.com/xtls/xray-core/common/serial"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. // Maximum Transmission Unit, in bytes.
  21. type MTU struct {
  22. state protoimpl.MessageState
  23. sizeCache protoimpl.SizeCache
  24. unknownFields protoimpl.UnknownFields
  25. Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
  26. }
  27. func (x *MTU) Reset() {
  28. *x = MTU{}
  29. mi := &file_transport_internet_kcp_config_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. func (x *MTU) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*MTU) ProtoMessage() {}
  37. func (x *MTU) ProtoReflect() protoreflect.Message {
  38. mi := &file_transport_internet_kcp_config_proto_msgTypes[0]
  39. if x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use MTU.ProtoReflect.Descriptor instead.
  49. func (*MTU) Descriptor() ([]byte, []int) {
  50. return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *MTU) GetValue() uint32 {
  53. if x != nil {
  54. return x.Value
  55. }
  56. return 0
  57. }
  58. // Transmission Time Interview, in milli-sec.
  59. type TTI struct {
  60. state protoimpl.MessageState
  61. sizeCache protoimpl.SizeCache
  62. unknownFields protoimpl.UnknownFields
  63. Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
  64. }
  65. func (x *TTI) Reset() {
  66. *x = TTI{}
  67. mi := &file_transport_internet_kcp_config_proto_msgTypes[1]
  68. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  69. ms.StoreMessageInfo(mi)
  70. }
  71. func (x *TTI) String() string {
  72. return protoimpl.X.MessageStringOf(x)
  73. }
  74. func (*TTI) ProtoMessage() {}
  75. func (x *TTI) ProtoReflect() protoreflect.Message {
  76. mi := &file_transport_internet_kcp_config_proto_msgTypes[1]
  77. if x != nil {
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. if ms.LoadMessageInfo() == nil {
  80. ms.StoreMessageInfo(mi)
  81. }
  82. return ms
  83. }
  84. return mi.MessageOf(x)
  85. }
  86. // Deprecated: Use TTI.ProtoReflect.Descriptor instead.
  87. func (*TTI) Descriptor() ([]byte, []int) {
  88. return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{1}
  89. }
  90. func (x *TTI) GetValue() uint32 {
  91. if x != nil {
  92. return x.Value
  93. }
  94. return 0
  95. }
  96. // Uplink capacity, in MB.
  97. type UplinkCapacity struct {
  98. state protoimpl.MessageState
  99. sizeCache protoimpl.SizeCache
  100. unknownFields protoimpl.UnknownFields
  101. Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
  102. }
  103. func (x *UplinkCapacity) Reset() {
  104. *x = UplinkCapacity{}
  105. mi := &file_transport_internet_kcp_config_proto_msgTypes[2]
  106. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  107. ms.StoreMessageInfo(mi)
  108. }
  109. func (x *UplinkCapacity) String() string {
  110. return protoimpl.X.MessageStringOf(x)
  111. }
  112. func (*UplinkCapacity) ProtoMessage() {}
  113. func (x *UplinkCapacity) ProtoReflect() protoreflect.Message {
  114. mi := &file_transport_internet_kcp_config_proto_msgTypes[2]
  115. if x != nil {
  116. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  117. if ms.LoadMessageInfo() == nil {
  118. ms.StoreMessageInfo(mi)
  119. }
  120. return ms
  121. }
  122. return mi.MessageOf(x)
  123. }
  124. // Deprecated: Use UplinkCapacity.ProtoReflect.Descriptor instead.
  125. func (*UplinkCapacity) Descriptor() ([]byte, []int) {
  126. return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{2}
  127. }
  128. func (x *UplinkCapacity) GetValue() uint32 {
  129. if x != nil {
  130. return x.Value
  131. }
  132. return 0
  133. }
  134. // Downlink capacity, in MB.
  135. type DownlinkCapacity struct {
  136. state protoimpl.MessageState
  137. sizeCache protoimpl.SizeCache
  138. unknownFields protoimpl.UnknownFields
  139. Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
  140. }
  141. func (x *DownlinkCapacity) Reset() {
  142. *x = DownlinkCapacity{}
  143. mi := &file_transport_internet_kcp_config_proto_msgTypes[3]
  144. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  145. ms.StoreMessageInfo(mi)
  146. }
  147. func (x *DownlinkCapacity) String() string {
  148. return protoimpl.X.MessageStringOf(x)
  149. }
  150. func (*DownlinkCapacity) ProtoMessage() {}
  151. func (x *DownlinkCapacity) ProtoReflect() protoreflect.Message {
  152. mi := &file_transport_internet_kcp_config_proto_msgTypes[3]
  153. if x != nil {
  154. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  155. if ms.LoadMessageInfo() == nil {
  156. ms.StoreMessageInfo(mi)
  157. }
  158. return ms
  159. }
  160. return mi.MessageOf(x)
  161. }
  162. // Deprecated: Use DownlinkCapacity.ProtoReflect.Descriptor instead.
  163. func (*DownlinkCapacity) Descriptor() ([]byte, []int) {
  164. return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{3}
  165. }
  166. func (x *DownlinkCapacity) GetValue() uint32 {
  167. if x != nil {
  168. return x.Value
  169. }
  170. return 0
  171. }
  172. type WriteBuffer struct {
  173. state protoimpl.MessageState
  174. sizeCache protoimpl.SizeCache
  175. unknownFields protoimpl.UnknownFields
  176. // Buffer size in bytes.
  177. Size uint32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
  178. }
  179. func (x *WriteBuffer) Reset() {
  180. *x = WriteBuffer{}
  181. mi := &file_transport_internet_kcp_config_proto_msgTypes[4]
  182. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  183. ms.StoreMessageInfo(mi)
  184. }
  185. func (x *WriteBuffer) String() string {
  186. return protoimpl.X.MessageStringOf(x)
  187. }
  188. func (*WriteBuffer) ProtoMessage() {}
  189. func (x *WriteBuffer) ProtoReflect() protoreflect.Message {
  190. mi := &file_transport_internet_kcp_config_proto_msgTypes[4]
  191. if x != nil {
  192. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  193. if ms.LoadMessageInfo() == nil {
  194. ms.StoreMessageInfo(mi)
  195. }
  196. return ms
  197. }
  198. return mi.MessageOf(x)
  199. }
  200. // Deprecated: Use WriteBuffer.ProtoReflect.Descriptor instead.
  201. func (*WriteBuffer) Descriptor() ([]byte, []int) {
  202. return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{4}
  203. }
  204. func (x *WriteBuffer) GetSize() uint32 {
  205. if x != nil {
  206. return x.Size
  207. }
  208. return 0
  209. }
  210. type ReadBuffer struct {
  211. state protoimpl.MessageState
  212. sizeCache protoimpl.SizeCache
  213. unknownFields protoimpl.UnknownFields
  214. // Buffer size in bytes.
  215. Size uint32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
  216. }
  217. func (x *ReadBuffer) Reset() {
  218. *x = ReadBuffer{}
  219. mi := &file_transport_internet_kcp_config_proto_msgTypes[5]
  220. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  221. ms.StoreMessageInfo(mi)
  222. }
  223. func (x *ReadBuffer) String() string {
  224. return protoimpl.X.MessageStringOf(x)
  225. }
  226. func (*ReadBuffer) ProtoMessage() {}
  227. func (x *ReadBuffer) ProtoReflect() protoreflect.Message {
  228. mi := &file_transport_internet_kcp_config_proto_msgTypes[5]
  229. if x != nil {
  230. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  231. if ms.LoadMessageInfo() == nil {
  232. ms.StoreMessageInfo(mi)
  233. }
  234. return ms
  235. }
  236. return mi.MessageOf(x)
  237. }
  238. // Deprecated: Use ReadBuffer.ProtoReflect.Descriptor instead.
  239. func (*ReadBuffer) Descriptor() ([]byte, []int) {
  240. return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{5}
  241. }
  242. func (x *ReadBuffer) GetSize() uint32 {
  243. if x != nil {
  244. return x.Size
  245. }
  246. return 0
  247. }
  248. type ConnectionReuse struct {
  249. state protoimpl.MessageState
  250. sizeCache protoimpl.SizeCache
  251. unknownFields protoimpl.UnknownFields
  252. Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
  253. }
  254. func (x *ConnectionReuse) Reset() {
  255. *x = ConnectionReuse{}
  256. mi := &file_transport_internet_kcp_config_proto_msgTypes[6]
  257. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  258. ms.StoreMessageInfo(mi)
  259. }
  260. func (x *ConnectionReuse) String() string {
  261. return protoimpl.X.MessageStringOf(x)
  262. }
  263. func (*ConnectionReuse) ProtoMessage() {}
  264. func (x *ConnectionReuse) ProtoReflect() protoreflect.Message {
  265. mi := &file_transport_internet_kcp_config_proto_msgTypes[6]
  266. if x != nil {
  267. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  268. if ms.LoadMessageInfo() == nil {
  269. ms.StoreMessageInfo(mi)
  270. }
  271. return ms
  272. }
  273. return mi.MessageOf(x)
  274. }
  275. // Deprecated: Use ConnectionReuse.ProtoReflect.Descriptor instead.
  276. func (*ConnectionReuse) Descriptor() ([]byte, []int) {
  277. return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{6}
  278. }
  279. func (x *ConnectionReuse) GetEnable() bool {
  280. if x != nil {
  281. return x.Enable
  282. }
  283. return false
  284. }
  285. // Pre-shared secret between client and server. It is used for traffic obfuscation.
  286. // Note that if seed is absent in the config, the traffic will still be obfuscated,
  287. // but by a predefined algorithm.
  288. type EncryptionSeed struct {
  289. state protoimpl.MessageState
  290. sizeCache protoimpl.SizeCache
  291. unknownFields protoimpl.UnknownFields
  292. Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
  293. }
  294. func (x *EncryptionSeed) Reset() {
  295. *x = EncryptionSeed{}
  296. mi := &file_transport_internet_kcp_config_proto_msgTypes[7]
  297. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  298. ms.StoreMessageInfo(mi)
  299. }
  300. func (x *EncryptionSeed) String() string {
  301. return protoimpl.X.MessageStringOf(x)
  302. }
  303. func (*EncryptionSeed) ProtoMessage() {}
  304. func (x *EncryptionSeed) ProtoReflect() protoreflect.Message {
  305. mi := &file_transport_internet_kcp_config_proto_msgTypes[7]
  306. if x != nil {
  307. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  308. if ms.LoadMessageInfo() == nil {
  309. ms.StoreMessageInfo(mi)
  310. }
  311. return ms
  312. }
  313. return mi.MessageOf(x)
  314. }
  315. // Deprecated: Use EncryptionSeed.ProtoReflect.Descriptor instead.
  316. func (*EncryptionSeed) Descriptor() ([]byte, []int) {
  317. return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{7}
  318. }
  319. func (x *EncryptionSeed) GetSeed() string {
  320. if x != nil {
  321. return x.Seed
  322. }
  323. return ""
  324. }
  325. type Config struct {
  326. state protoimpl.MessageState
  327. sizeCache protoimpl.SizeCache
  328. unknownFields protoimpl.UnknownFields
  329. Mtu *MTU `protobuf:"bytes,1,opt,name=mtu,proto3" json:"mtu,omitempty"`
  330. Tti *TTI `protobuf:"bytes,2,opt,name=tti,proto3" json:"tti,omitempty"`
  331. UplinkCapacity *UplinkCapacity `protobuf:"bytes,3,opt,name=uplink_capacity,json=uplinkCapacity,proto3" json:"uplink_capacity,omitempty"`
  332. DownlinkCapacity *DownlinkCapacity `protobuf:"bytes,4,opt,name=downlink_capacity,json=downlinkCapacity,proto3" json:"downlink_capacity,omitempty"`
  333. Congestion bool `protobuf:"varint,5,opt,name=congestion,proto3" json:"congestion,omitempty"`
  334. WriteBuffer *WriteBuffer `protobuf:"bytes,6,opt,name=write_buffer,json=writeBuffer,proto3" json:"write_buffer,omitempty"`
  335. ReadBuffer *ReadBuffer `protobuf:"bytes,7,opt,name=read_buffer,json=readBuffer,proto3" json:"read_buffer,omitempty"`
  336. HeaderConfig *serial.TypedMessage `protobuf:"bytes,8,opt,name=header_config,json=headerConfig,proto3" json:"header_config,omitempty"`
  337. Seed *EncryptionSeed `protobuf:"bytes,10,opt,name=seed,proto3" json:"seed,omitempty"`
  338. }
  339. func (x *Config) Reset() {
  340. *x = Config{}
  341. mi := &file_transport_internet_kcp_config_proto_msgTypes[8]
  342. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  343. ms.StoreMessageInfo(mi)
  344. }
  345. func (x *Config) String() string {
  346. return protoimpl.X.MessageStringOf(x)
  347. }
  348. func (*Config) ProtoMessage() {}
  349. func (x *Config) ProtoReflect() protoreflect.Message {
  350. mi := &file_transport_internet_kcp_config_proto_msgTypes[8]
  351. if x != nil {
  352. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  353. if ms.LoadMessageInfo() == nil {
  354. ms.StoreMessageInfo(mi)
  355. }
  356. return ms
  357. }
  358. return mi.MessageOf(x)
  359. }
  360. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  361. func (*Config) Descriptor() ([]byte, []int) {
  362. return file_transport_internet_kcp_config_proto_rawDescGZIP(), []int{8}
  363. }
  364. func (x *Config) GetMtu() *MTU {
  365. if x != nil {
  366. return x.Mtu
  367. }
  368. return nil
  369. }
  370. func (x *Config) GetTti() *TTI {
  371. if x != nil {
  372. return x.Tti
  373. }
  374. return nil
  375. }
  376. func (x *Config) GetUplinkCapacity() *UplinkCapacity {
  377. if x != nil {
  378. return x.UplinkCapacity
  379. }
  380. return nil
  381. }
  382. func (x *Config) GetDownlinkCapacity() *DownlinkCapacity {
  383. if x != nil {
  384. return x.DownlinkCapacity
  385. }
  386. return nil
  387. }
  388. func (x *Config) GetCongestion() bool {
  389. if x != nil {
  390. return x.Congestion
  391. }
  392. return false
  393. }
  394. func (x *Config) GetWriteBuffer() *WriteBuffer {
  395. if x != nil {
  396. return x.WriteBuffer
  397. }
  398. return nil
  399. }
  400. func (x *Config) GetReadBuffer() *ReadBuffer {
  401. if x != nil {
  402. return x.ReadBuffer
  403. }
  404. return nil
  405. }
  406. func (x *Config) GetHeaderConfig() *serial.TypedMessage {
  407. if x != nil {
  408. return x.HeaderConfig
  409. }
  410. return nil
  411. }
  412. func (x *Config) GetSeed() *EncryptionSeed {
  413. if x != nil {
  414. return x.Seed
  415. }
  416. return nil
  417. }
  418. var File_transport_internet_kcp_config_proto protoreflect.FileDescriptor
  419. var file_transport_internet_kcp_config_proto_rawDesc = []byte{
  420. 0x0a, 0x23, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  421. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x6b, 0x63, 0x70, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e,
  422. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1b, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e,
  423. 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b,
  424. 0x63, 0x70, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 0x72, 0x69, 0x61,
  425. 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
  426. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1b, 0x0a, 0x03, 0x4d, 0x54, 0x55, 0x12, 0x14, 0x0a, 0x05,
  427. 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c,
  428. 0x75, 0x65, 0x22, 0x1b, 0x0a, 0x03, 0x54, 0x54, 0x49, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
  429. 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22,
  430. 0x26, 0x0a, 0x0e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74,
  431. 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
  432. 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x28, 0x0a, 0x10, 0x44, 0x6f, 0x77, 0x6e, 0x6c,
  433. 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
  434. 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
  435. 0x65, 0x22, 0x21, 0x0a, 0x0b, 0x57, 0x72, 0x69, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72,
  436. 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04,
  437. 0x73, 0x69, 0x7a, 0x65, 0x22, 0x20, 0x0a, 0x0a, 0x52, 0x65, 0x61, 0x64, 0x42, 0x75, 0x66, 0x66,
  438. 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d,
  439. 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x29, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
  440. 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x75, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61,
  441. 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c,
  442. 0x65, 0x22, 0x24, 0x0a, 0x0e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x53,
  443. 0x65, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  444. 0x09, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x22, 0xe7, 0x04, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66,
  445. 0x69, 0x67, 0x12, 0x32, 0x0a, 0x03, 0x6d, 0x74, 0x75, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  446. 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
  447. 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x4d, 0x54,
  448. 0x55, 0x52, 0x03, 0x6d, 0x74, 0x75, 0x12, 0x32, 0x0a, 0x03, 0x74, 0x74, 0x69, 0x18, 0x02, 0x20,
  449. 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  450. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63,
  451. 0x70, 0x2e, 0x54, 0x54, 0x49, 0x52, 0x03, 0x74, 0x74, 0x69, 0x12, 0x54, 0x0a, 0x0f, 0x75, 0x70,
  452. 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x63, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20,
  453. 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73,
  454. 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63,
  455. 0x70, 0x2e, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79,
  456. 0x52, 0x0e, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79,
  457. 0x12, 0x5a, 0x0a, 0x11, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x63, 0x61, 0x70,
  458. 0x61, 0x63, 0x69, 0x74, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x78, 0x72,
  459. 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74,
  460. 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69,
  461. 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x52, 0x10, 0x64, 0x6f, 0x77, 0x6e,
  462. 0x6c, 0x69, 0x6e, 0x6b, 0x43, 0x61, 0x70, 0x61, 0x63, 0x69, 0x74, 0x79, 0x12, 0x1e, 0x0a, 0x0a,
  463. 0x63, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08,
  464. 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x67, 0x65, 0x73, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x0c,
  465. 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01,
  466. 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70,
  467. 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70,
  468. 0x2e, 0x57, 0x72, 0x69, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x52, 0x0b, 0x77, 0x72,
  469. 0x69, 0x74, 0x65, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x12, 0x48, 0x0a, 0x0b, 0x72, 0x65, 0x61,
  470. 0x64, 0x5f, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27,
  471. 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e,
  472. 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x52, 0x65, 0x61,
  473. 0x64, 0x42, 0x75, 0x66, 0x66, 0x65, 0x72, 0x52, 0x0a, 0x72, 0x65, 0x61, 0x64, 0x42, 0x75, 0x66,
  474. 0x66, 0x65, 0x72, 0x12, 0x45, 0x0a, 0x0d, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x63, 0x6f,
  475. 0x6e, 0x66, 0x69, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61,
  476. 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e,
  477. 0x54, 0x79, 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0c, 0x68, 0x65,
  478. 0x61, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3f, 0x0a, 0x04, 0x73, 0x65,
  479. 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  480. 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
  481. 0x65, 0x74, 0x2e, 0x6b, 0x63, 0x70, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f,
  482. 0x6e, 0x53, 0x65, 0x65, 0x64, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x4a, 0x04, 0x08, 0x09, 0x10,
  483. 0x0a, 0x42, 0x73, 0x0a, 0x1f, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x74, 0x72,
  484. 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x65, 0x74,
  485. 0x2e, 0x6b, 0x63, 0x70, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
  486. 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72,
  487. 0x65, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x69, 0x6e, 0x74, 0x65,
  488. 0x72, 0x6e, 0x65, 0x74, 0x2f, 0x6b, 0x63, 0x70, 0xaa, 0x02, 0x1b, 0x58, 0x72, 0x61, 0x79, 0x2e,
  489. 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e,
  490. 0x65, 0x74, 0x2e, 0x4b, 0x63, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  491. }
  492. var (
  493. file_transport_internet_kcp_config_proto_rawDescOnce sync.Once
  494. file_transport_internet_kcp_config_proto_rawDescData = file_transport_internet_kcp_config_proto_rawDesc
  495. )
  496. func file_transport_internet_kcp_config_proto_rawDescGZIP() []byte {
  497. file_transport_internet_kcp_config_proto_rawDescOnce.Do(func() {
  498. file_transport_internet_kcp_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_transport_internet_kcp_config_proto_rawDescData)
  499. })
  500. return file_transport_internet_kcp_config_proto_rawDescData
  501. }
  502. var file_transport_internet_kcp_config_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  503. var file_transport_internet_kcp_config_proto_goTypes = []any{
  504. (*MTU)(nil), // 0: xray.transport.internet.kcp.MTU
  505. (*TTI)(nil), // 1: xray.transport.internet.kcp.TTI
  506. (*UplinkCapacity)(nil), // 2: xray.transport.internet.kcp.UplinkCapacity
  507. (*DownlinkCapacity)(nil), // 3: xray.transport.internet.kcp.DownlinkCapacity
  508. (*WriteBuffer)(nil), // 4: xray.transport.internet.kcp.WriteBuffer
  509. (*ReadBuffer)(nil), // 5: xray.transport.internet.kcp.ReadBuffer
  510. (*ConnectionReuse)(nil), // 6: xray.transport.internet.kcp.ConnectionReuse
  511. (*EncryptionSeed)(nil), // 7: xray.transport.internet.kcp.EncryptionSeed
  512. (*Config)(nil), // 8: xray.transport.internet.kcp.Config
  513. (*serial.TypedMessage)(nil), // 9: xray.common.serial.TypedMessage
  514. }
  515. var file_transport_internet_kcp_config_proto_depIdxs = []int32{
  516. 0, // 0: xray.transport.internet.kcp.Config.mtu:type_name -> xray.transport.internet.kcp.MTU
  517. 1, // 1: xray.transport.internet.kcp.Config.tti:type_name -> xray.transport.internet.kcp.TTI
  518. 2, // 2: xray.transport.internet.kcp.Config.uplink_capacity:type_name -> xray.transport.internet.kcp.UplinkCapacity
  519. 3, // 3: xray.transport.internet.kcp.Config.downlink_capacity:type_name -> xray.transport.internet.kcp.DownlinkCapacity
  520. 4, // 4: xray.transport.internet.kcp.Config.write_buffer:type_name -> xray.transport.internet.kcp.WriteBuffer
  521. 5, // 5: xray.transport.internet.kcp.Config.read_buffer:type_name -> xray.transport.internet.kcp.ReadBuffer
  522. 9, // 6: xray.transport.internet.kcp.Config.header_config:type_name -> xray.common.serial.TypedMessage
  523. 7, // 7: xray.transport.internet.kcp.Config.seed:type_name -> xray.transport.internet.kcp.EncryptionSeed
  524. 8, // [8:8] is the sub-list for method output_type
  525. 8, // [8:8] is the sub-list for method input_type
  526. 8, // [8:8] is the sub-list for extension type_name
  527. 8, // [8:8] is the sub-list for extension extendee
  528. 0, // [0:8] is the sub-list for field type_name
  529. }
  530. func init() { file_transport_internet_kcp_config_proto_init() }
  531. func file_transport_internet_kcp_config_proto_init() {
  532. if File_transport_internet_kcp_config_proto != nil {
  533. return
  534. }
  535. type x struct{}
  536. out := protoimpl.TypeBuilder{
  537. File: protoimpl.DescBuilder{
  538. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  539. RawDescriptor: file_transport_internet_kcp_config_proto_rawDesc,
  540. NumEnums: 0,
  541. NumMessages: 9,
  542. NumExtensions: 0,
  543. NumServices: 0,
  544. },
  545. GoTypes: file_transport_internet_kcp_config_proto_goTypes,
  546. DependencyIndexes: file_transport_internet_kcp_config_proto_depIdxs,
  547. MessageInfos: file_transport_internet_kcp_config_proto_msgTypes,
  548. }.Build()
  549. File_transport_internet_kcp_config_proto = out.File
  550. file_transport_internet_kcp_config_proto_rawDesc = nil
  551. file_transport_internet_kcp_config_proto_goTypes = nil
  552. file_transport_internet_kcp_config_proto_depIdxs = nil
  553. }