config.pb.go 27 KB

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