config.pb.go 25 KB

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