config.pb.go 27 KB

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