config.pb.go 10 KB

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