config.pb.go 26 KB

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