config.pb.go 24 KB

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