config.pb.go 27 KB

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