config.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. // Code generated by protoc-gen-go.
  2. // source: v2ray.com/core/transport/internet/kcp/config.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package kcp is a generated protocol buffer package.
  6. It is generated from these files:
  7. v2ray.com/core/transport/internet/kcp/config.proto
  8. It has these top-level messages:
  9. MTU
  10. TTI
  11. UplinkCapacity
  12. DownlinkCapacity
  13. WriteBuffer
  14. ReadBuffer
  15. ConnectionReuse
  16. Config
  17. */
  18. package kcp
  19. import proto "github.com/golang/protobuf/proto"
  20. import fmt "fmt"
  21. import math "math"
  22. import v2ray_core_common_serial "v2ray.com/core/common/serial"
  23. // Reference imports to suppress errors if they are not otherwise used.
  24. var _ = proto.Marshal
  25. var _ = fmt.Errorf
  26. var _ = math.Inf
  27. // This is a compile-time assertion to ensure that this generated file
  28. // is compatible with the proto package it is being compiled against.
  29. // A compilation error at this line likely means your copy of the
  30. // proto package needs to be updated.
  31. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  32. // Maximum Transmission Unit, in bytes.
  33. type MTU struct {
  34. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  35. }
  36. func (m *MTU) Reset() { *m = MTU{} }
  37. func (m *MTU) String() string { return proto.CompactTextString(m) }
  38. func (*MTU) ProtoMessage() {}
  39. func (*MTU) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  40. func (m *MTU) GetValue() uint32 {
  41. if m != nil {
  42. return m.Value
  43. }
  44. return 0
  45. }
  46. // Transmission Time Interview, in milli-sec.
  47. type TTI struct {
  48. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  49. }
  50. func (m *TTI) Reset() { *m = TTI{} }
  51. func (m *TTI) String() string { return proto.CompactTextString(m) }
  52. func (*TTI) ProtoMessage() {}
  53. func (*TTI) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  54. func (m *TTI) GetValue() uint32 {
  55. if m != nil {
  56. return m.Value
  57. }
  58. return 0
  59. }
  60. // Uplink capacity, in MB.
  61. type UplinkCapacity struct {
  62. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  63. }
  64. func (m *UplinkCapacity) Reset() { *m = UplinkCapacity{} }
  65. func (m *UplinkCapacity) String() string { return proto.CompactTextString(m) }
  66. func (*UplinkCapacity) ProtoMessage() {}
  67. func (*UplinkCapacity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  68. func (m *UplinkCapacity) GetValue() uint32 {
  69. if m != nil {
  70. return m.Value
  71. }
  72. return 0
  73. }
  74. // Downlink capacity, in MB.
  75. type DownlinkCapacity struct {
  76. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  77. }
  78. func (m *DownlinkCapacity) Reset() { *m = DownlinkCapacity{} }
  79. func (m *DownlinkCapacity) String() string { return proto.CompactTextString(m) }
  80. func (*DownlinkCapacity) ProtoMessage() {}
  81. func (*DownlinkCapacity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  82. func (m *DownlinkCapacity) GetValue() uint32 {
  83. if m != nil {
  84. return m.Value
  85. }
  86. return 0
  87. }
  88. type WriteBuffer struct {
  89. // Buffer size in bytes.
  90. Size uint32 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
  91. }
  92. func (m *WriteBuffer) Reset() { *m = WriteBuffer{} }
  93. func (m *WriteBuffer) String() string { return proto.CompactTextString(m) }
  94. func (*WriteBuffer) ProtoMessage() {}
  95. func (*WriteBuffer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  96. func (m *WriteBuffer) GetSize() uint32 {
  97. if m != nil {
  98. return m.Size
  99. }
  100. return 0
  101. }
  102. type ReadBuffer struct {
  103. // Buffer size in bytes.
  104. Size uint32 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
  105. }
  106. func (m *ReadBuffer) Reset() { *m = ReadBuffer{} }
  107. func (m *ReadBuffer) String() string { return proto.CompactTextString(m) }
  108. func (*ReadBuffer) ProtoMessage() {}
  109. func (*ReadBuffer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  110. func (m *ReadBuffer) GetSize() uint32 {
  111. if m != nil {
  112. return m.Size
  113. }
  114. return 0
  115. }
  116. type ConnectionReuse struct {
  117. Enable bool `protobuf:"varint,1,opt,name=enable" json:"enable,omitempty"`
  118. }
  119. func (m *ConnectionReuse) Reset() { *m = ConnectionReuse{} }
  120. func (m *ConnectionReuse) String() string { return proto.CompactTextString(m) }
  121. func (*ConnectionReuse) ProtoMessage() {}
  122. func (*ConnectionReuse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
  123. func (m *ConnectionReuse) GetEnable() bool {
  124. if m != nil {
  125. return m.Enable
  126. }
  127. return false
  128. }
  129. type Config struct {
  130. Mtu *MTU `protobuf:"bytes,1,opt,name=mtu" json:"mtu,omitempty"`
  131. Tti *TTI `protobuf:"bytes,2,opt,name=tti" json:"tti,omitempty"`
  132. UplinkCapacity *UplinkCapacity `protobuf:"bytes,3,opt,name=uplink_capacity,json=uplinkCapacity" json:"uplink_capacity,omitempty"`
  133. DownlinkCapacity *DownlinkCapacity `protobuf:"bytes,4,opt,name=downlink_capacity,json=downlinkCapacity" json:"downlink_capacity,omitempty"`
  134. Congestion bool `protobuf:"varint,5,opt,name=congestion" json:"congestion,omitempty"`
  135. WriteBuffer *WriteBuffer `protobuf:"bytes,6,opt,name=write_buffer,json=writeBuffer" json:"write_buffer,omitempty"`
  136. ReadBuffer *ReadBuffer `protobuf:"bytes,7,opt,name=read_buffer,json=readBuffer" json:"read_buffer,omitempty"`
  137. HeaderConfig *v2ray_core_common_serial.TypedMessage `protobuf:"bytes,8,opt,name=header_config,json=headerConfig" json:"header_config,omitempty"`
  138. ConnectionReuse *ConnectionReuse `protobuf:"bytes,9,opt,name=connection_reuse,json=connectionReuse" json:"connection_reuse,omitempty"`
  139. }
  140. func (m *Config) Reset() { *m = Config{} }
  141. func (m *Config) String() string { return proto.CompactTextString(m) }
  142. func (*Config) ProtoMessage() {}
  143. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
  144. func (m *Config) GetMtu() *MTU {
  145. if m != nil {
  146. return m.Mtu
  147. }
  148. return nil
  149. }
  150. func (m *Config) GetTti() *TTI {
  151. if m != nil {
  152. return m.Tti
  153. }
  154. return nil
  155. }
  156. func (m *Config) GetUplinkCapacity() *UplinkCapacity {
  157. if m != nil {
  158. return m.UplinkCapacity
  159. }
  160. return nil
  161. }
  162. func (m *Config) GetDownlinkCapacity() *DownlinkCapacity {
  163. if m != nil {
  164. return m.DownlinkCapacity
  165. }
  166. return nil
  167. }
  168. func (m *Config) GetCongestion() bool {
  169. if m != nil {
  170. return m.Congestion
  171. }
  172. return false
  173. }
  174. func (m *Config) GetWriteBuffer() *WriteBuffer {
  175. if m != nil {
  176. return m.WriteBuffer
  177. }
  178. return nil
  179. }
  180. func (m *Config) GetReadBuffer() *ReadBuffer {
  181. if m != nil {
  182. return m.ReadBuffer
  183. }
  184. return nil
  185. }
  186. func (m *Config) GetHeaderConfig() *v2ray_core_common_serial.TypedMessage {
  187. if m != nil {
  188. return m.HeaderConfig
  189. }
  190. return nil
  191. }
  192. func (m *Config) GetConnectionReuse() *ConnectionReuse {
  193. if m != nil {
  194. return m.ConnectionReuse
  195. }
  196. return nil
  197. }
  198. func init() {
  199. proto.RegisterType((*MTU)(nil), "v2ray.core.transport.internet.kcp.MTU")
  200. proto.RegisterType((*TTI)(nil), "v2ray.core.transport.internet.kcp.TTI")
  201. proto.RegisterType((*UplinkCapacity)(nil), "v2ray.core.transport.internet.kcp.UplinkCapacity")
  202. proto.RegisterType((*DownlinkCapacity)(nil), "v2ray.core.transport.internet.kcp.DownlinkCapacity")
  203. proto.RegisterType((*WriteBuffer)(nil), "v2ray.core.transport.internet.kcp.WriteBuffer")
  204. proto.RegisterType((*ReadBuffer)(nil), "v2ray.core.transport.internet.kcp.ReadBuffer")
  205. proto.RegisterType((*ConnectionReuse)(nil), "v2ray.core.transport.internet.kcp.ConnectionReuse")
  206. proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.kcp.Config")
  207. }
  208. func init() { proto.RegisterFile("v2ray.com/core/transport/internet/kcp/config.proto", fileDescriptor0) }
  209. var fileDescriptor0 = []byte{
  210. // 491 bytes of a gzipped FileDescriptorProto
  211. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x54, 0xdf, 0x6f, 0xd3, 0x30,
  212. 0x18, 0xd4, 0xd6, 0xad, 0x8c, 0x2f, 0xdb, 0x5a, 0x22, 0x84, 0x22, 0x90, 0xd0, 0x5a, 0x89, 0x69,
  213. 0x3c, 0xe0, 0x40, 0xf6, 0xc2, 0x73, 0xcb, 0x4b, 0x35, 0x15, 0x81, 0x95, 0x82, 0x34, 0x69, 0x0a,
  214. 0xae, 0xf3, 0xb5, 0x44, 0x6d, 0xec, 0xc8, 0x71, 0x56, 0x95, 0xff, 0x08, 0xfe, 0x4a, 0x64, 0xa7,
  215. 0xe9, 0x2f, 0x34, 0x96, 0xb7, 0xd8, 0xbe, 0x3b, 0x5b, 0xf7, 0xdd, 0x05, 0x82, 0xfb, 0x40, 0xb1,
  216. 0x25, 0xe1, 0x32, 0xf5, 0xb9, 0x54, 0xe8, 0x6b, 0xc5, 0x44, 0x9e, 0x49, 0xa5, 0xfd, 0x44, 0x68,
  217. 0x54, 0x02, 0xb5, 0x3f, 0xe3, 0x99, 0xcf, 0xa5, 0x98, 0x24, 0x53, 0x92, 0x29, 0xa9, 0xa5, 0xdb,
  218. 0xa9, 0x38, 0x0a, 0xc9, 0x1a, 0x4f, 0x2a, 0x3c, 0x99, 0xf1, 0xec, 0xe5, 0xfb, 0x3d, 0x59, 0x2e,
  219. 0xd3, 0x54, 0x0a, 0x3f, 0x47, 0x95, 0xb0, 0xb9, 0xaf, 0x97, 0x19, 0xc6, 0x51, 0x8a, 0x79, 0xce,
  220. 0xa6, 0x58, 0x8a, 0x76, 0x5f, 0x41, 0x63, 0x18, 0x8e, 0xdc, 0xe7, 0x70, 0x7c, 0xcf, 0xe6, 0x05,
  221. 0x7a, 0x07, 0x17, 0x07, 0x57, 0x67, 0xb4, 0x5c, 0x98, 0xc3, 0x30, 0x1c, 0x3c, 0x70, 0x78, 0x09,
  222. 0xe7, 0xa3, 0x6c, 0x9e, 0x88, 0x59, 0x9f, 0x65, 0x8c, 0x27, 0x7a, 0xf9, 0x00, 0xee, 0x0a, 0xda,
  223. 0x9f, 0xe4, 0x42, 0xd4, 0x40, 0x76, 0xc0, 0xf9, 0xae, 0x12, 0x8d, 0xbd, 0x62, 0x32, 0x41, 0xe5,
  224. 0xba, 0x70, 0x94, 0x27, 0xbf, 0x2a, 0x8c, 0xfd, 0xee, 0x5e, 0x00, 0x50, 0x64, 0xf1, 0x7f, 0x10,
  225. 0x6f, 0xa1, 0xd5, 0x97, 0x42, 0x20, 0xd7, 0x89, 0x14, 0x14, 0x8b, 0x1c, 0xdd, 0x17, 0xd0, 0x44,
  226. 0xc1, 0xc6, 0xf3, 0x12, 0x78, 0x42, 0x57, 0xab, 0xee, 0xef, 0x63, 0x68, 0xf6, 0xad, 0xc3, 0xee,
  227. 0x47, 0x68, 0xa4, 0xba, 0xb0, 0xe7, 0x4e, 0x70, 0x49, 0x1e, 0x75, 0x9a, 0x0c, 0xc3, 0x11, 0x35,
  228. 0x14, 0xc3, 0xd4, 0x3a, 0xf1, 0x0e, 0x6b, 0x33, 0xc3, 0x70, 0x40, 0x0d, 0xc5, 0xbd, 0x85, 0x56,
  229. 0x61, 0x0d, 0x8c, 0xf8, 0xca, 0x17, 0xaf, 0x61, 0x55, 0x3e, 0xd4, 0x50, 0xd9, 0xb5, 0x9e, 0x9e,
  230. 0x17, 0xbb, 0xa3, 0xf8, 0x01, 0xcf, 0xe2, 0x95, 0xe9, 0x1b, 0xf5, 0x23, 0xab, 0x7e, 0x5d, 0x43,
  231. 0x7d, 0x7f, 0x60, 0xb4, 0x1d, 0xef, 0x8f, 0xf0, 0x35, 0x00, 0x97, 0x62, 0x8a, 0xb9, 0xf1, 0xd9,
  232. 0x3b, 0xb6, 0xc6, 0x6e, 0xed, 0xb8, 0x5f, 0xe1, 0x74, 0x61, 0x86, 0x19, 0x8d, 0xed, 0xac, 0xbc,
  233. 0xa6, 0xbd, 0x9c, 0xd4, 0xb8, 0x7c, 0x2b, 0x03, 0xd4, 0x59, 0x6c, 0x05, 0xe2, 0x33, 0x38, 0x0a,
  234. 0x59, 0x5c, 0x29, 0x3e, 0xb1, 0x8a, 0xef, 0x6a, 0x28, 0x6e, 0x22, 0x43, 0x41, 0x6d, 0xe2, 0x73,
  235. 0x03, 0x67, 0x3f, 0x91, 0xc5, 0xa8, 0xa2, 0xb2, 0x67, 0xde, 0xc9, 0xbf, 0x43, 0x2c, 0x1b, 0x44,
  236. 0xca, 0x06, 0x91, 0xd0, 0x34, 0x68, 0x58, 0x16, 0x88, 0x9e, 0x96, 0xe4, 0x55, 0x82, 0xee, 0xa0,
  237. 0xcd, 0xd7, 0xb9, 0x8b, 0x94, 0x09, 0x9e, 0xf7, 0xd4, 0xea, 0x05, 0x35, 0x5e, 0xb8, 0x17, 0x59,
  238. 0xda, 0xe2, 0xbb, 0x1b, 0xbd, 0x3b, 0x78, 0xc3, 0x65, 0xfa, 0xb8, 0x52, 0xcf, 0x29, 0xdf, 0xf3,
  239. 0xc5, 0xb4, 0xfb, 0xb6, 0x31, 0xe3, 0xd9, 0x9f, 0xc3, 0xce, 0xb7, 0x80, 0xb2, 0x25, 0xe9, 0x1b,
  240. 0x56, 0xb8, 0x66, 0x0d, 0x2a, 0xd6, 0x0d, 0xcf, 0xc6, 0x4d, 0xfb, 0x37, 0xb8, 0xfe, 0x1b, 0x00,
  241. 0x00, 0xff, 0xff, 0x77, 0xae, 0x78, 0x3a, 0x98, 0x04, 0x00, 0x00,
  242. }