config.pb.go 27 KB

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