config.pb.go 26 KB

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