config.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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. // Transmission Time Interview, in milli-sec.
  41. type TTI struct {
  42. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  43. }
  44. func (m *TTI) Reset() { *m = TTI{} }
  45. func (m *TTI) String() string { return proto.CompactTextString(m) }
  46. func (*TTI) ProtoMessage() {}
  47. func (*TTI) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  48. // Uplink capacity, in MB.
  49. type UplinkCapacity struct {
  50. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  51. }
  52. func (m *UplinkCapacity) Reset() { *m = UplinkCapacity{} }
  53. func (m *UplinkCapacity) String() string { return proto.CompactTextString(m) }
  54. func (*UplinkCapacity) ProtoMessage() {}
  55. func (*UplinkCapacity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  56. // Downlink capacity, in MB.
  57. type DownlinkCapacity struct {
  58. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  59. }
  60. func (m *DownlinkCapacity) Reset() { *m = DownlinkCapacity{} }
  61. func (m *DownlinkCapacity) String() string { return proto.CompactTextString(m) }
  62. func (*DownlinkCapacity) ProtoMessage() {}
  63. func (*DownlinkCapacity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  64. type WriteBuffer struct {
  65. // Buffer size in bytes.
  66. Size uint32 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
  67. }
  68. func (m *WriteBuffer) Reset() { *m = WriteBuffer{} }
  69. func (m *WriteBuffer) String() string { return proto.CompactTextString(m) }
  70. func (*WriteBuffer) ProtoMessage() {}
  71. func (*WriteBuffer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  72. type ReadBuffer struct {
  73. // Buffer size in bytes.
  74. Size uint32 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
  75. }
  76. func (m *ReadBuffer) Reset() { *m = ReadBuffer{} }
  77. func (m *ReadBuffer) String() string { return proto.CompactTextString(m) }
  78. func (*ReadBuffer) ProtoMessage() {}
  79. func (*ReadBuffer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  80. type ConnectionReuse struct {
  81. Enable bool `protobuf:"varint,1,opt,name=enable" json:"enable,omitempty"`
  82. }
  83. func (m *ConnectionReuse) Reset() { *m = ConnectionReuse{} }
  84. func (m *ConnectionReuse) String() string { return proto.CompactTextString(m) }
  85. func (*ConnectionReuse) ProtoMessage() {}
  86. func (*ConnectionReuse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
  87. type Config struct {
  88. Mtu *MTU `protobuf:"bytes,1,opt,name=mtu" json:"mtu,omitempty"`
  89. Tti *TTI `protobuf:"bytes,2,opt,name=tti" json:"tti,omitempty"`
  90. UplinkCapacity *UplinkCapacity `protobuf:"bytes,3,opt,name=uplink_capacity,json=uplinkCapacity" json:"uplink_capacity,omitempty"`
  91. DownlinkCapacity *DownlinkCapacity `protobuf:"bytes,4,opt,name=downlink_capacity,json=downlinkCapacity" json:"downlink_capacity,omitempty"`
  92. Congestion bool `protobuf:"varint,5,opt,name=congestion" json:"congestion,omitempty"`
  93. WriteBuffer *WriteBuffer `protobuf:"bytes,6,opt,name=write_buffer,json=writeBuffer" json:"write_buffer,omitempty"`
  94. ReadBuffer *ReadBuffer `protobuf:"bytes,7,opt,name=read_buffer,json=readBuffer" json:"read_buffer,omitempty"`
  95. HeaderConfig *v2ray_core_common_serial.TypedMessage `protobuf:"bytes,8,opt,name=header_config,json=headerConfig" json:"header_config,omitempty"`
  96. ConnectionReuse *ConnectionReuse `protobuf:"bytes,9,opt,name=connection_reuse,json=connectionReuse" json:"connection_reuse,omitempty"`
  97. }
  98. func (m *Config) Reset() { *m = Config{} }
  99. func (m *Config) String() string { return proto.CompactTextString(m) }
  100. func (*Config) ProtoMessage() {}
  101. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
  102. func (m *Config) GetMtu() *MTU {
  103. if m != nil {
  104. return m.Mtu
  105. }
  106. return nil
  107. }
  108. func (m *Config) GetTti() *TTI {
  109. if m != nil {
  110. return m.Tti
  111. }
  112. return nil
  113. }
  114. func (m *Config) GetUplinkCapacity() *UplinkCapacity {
  115. if m != nil {
  116. return m.UplinkCapacity
  117. }
  118. return nil
  119. }
  120. func (m *Config) GetDownlinkCapacity() *DownlinkCapacity {
  121. if m != nil {
  122. return m.DownlinkCapacity
  123. }
  124. return nil
  125. }
  126. func (m *Config) GetWriteBuffer() *WriteBuffer {
  127. if m != nil {
  128. return m.WriteBuffer
  129. }
  130. return nil
  131. }
  132. func (m *Config) GetReadBuffer() *ReadBuffer {
  133. if m != nil {
  134. return m.ReadBuffer
  135. }
  136. return nil
  137. }
  138. func (m *Config) GetHeaderConfig() *v2ray_core_common_serial.TypedMessage {
  139. if m != nil {
  140. return m.HeaderConfig
  141. }
  142. return nil
  143. }
  144. func (m *Config) GetConnectionReuse() *ConnectionReuse {
  145. if m != nil {
  146. return m.ConnectionReuse
  147. }
  148. return nil
  149. }
  150. func init() {
  151. proto.RegisterType((*MTU)(nil), "v2ray.core.transport.internet.kcp.MTU")
  152. proto.RegisterType((*TTI)(nil), "v2ray.core.transport.internet.kcp.TTI")
  153. proto.RegisterType((*UplinkCapacity)(nil), "v2ray.core.transport.internet.kcp.UplinkCapacity")
  154. proto.RegisterType((*DownlinkCapacity)(nil), "v2ray.core.transport.internet.kcp.DownlinkCapacity")
  155. proto.RegisterType((*WriteBuffer)(nil), "v2ray.core.transport.internet.kcp.WriteBuffer")
  156. proto.RegisterType((*ReadBuffer)(nil), "v2ray.core.transport.internet.kcp.ReadBuffer")
  157. proto.RegisterType((*ConnectionReuse)(nil), "v2ray.core.transport.internet.kcp.ConnectionReuse")
  158. proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.kcp.Config")
  159. }
  160. func init() { proto.RegisterFile("v2ray.com/core/transport/internet/kcp/config.proto", fileDescriptor0) }
  161. var fileDescriptor0 = []byte{
  162. // 491 bytes of a gzipped FileDescriptorProto
  163. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x54, 0xdf, 0x6f, 0xd3, 0x30,
  164. 0x18, 0xd4, 0xd6, 0xad, 0x8c, 0x2f, 0xdb, 0x5a, 0x22, 0x84, 0x22, 0x90, 0xd0, 0x5a, 0x89, 0x69,
  165. 0x3c, 0xe0, 0x40, 0xf6, 0xc2, 0x73, 0xcb, 0x4b, 0x35, 0x15, 0x81, 0x95, 0x82, 0x34, 0x69, 0x0a,
  166. 0xae, 0xf3, 0xb5, 0x44, 0x6d, 0xec, 0xc8, 0x71, 0x56, 0x95, 0xff, 0x08, 0xfe, 0x4a, 0x64, 0xa7,
  167. 0xe9, 0x2f, 0x34, 0x96, 0xb7, 0xd8, 0xbe, 0x3b, 0x5b, 0xf7, 0xdd, 0x05, 0x82, 0xfb, 0x40, 0xb1,
  168. 0x25, 0xe1, 0x32, 0xf5, 0xb9, 0x54, 0xe8, 0x6b, 0xc5, 0x44, 0x9e, 0x49, 0xa5, 0xfd, 0x44, 0x68,
  169. 0x54, 0x02, 0xb5, 0x3f, 0xe3, 0x99, 0xcf, 0xa5, 0x98, 0x24, 0x53, 0x92, 0x29, 0xa9, 0xa5, 0xdb,
  170. 0xa9, 0x38, 0x0a, 0xc9, 0x1a, 0x4f, 0x2a, 0x3c, 0x99, 0xf1, 0xec, 0xe5, 0xfb, 0x3d, 0x59, 0x2e,
  171. 0xd3, 0x54, 0x0a, 0x3f, 0x47, 0x95, 0xb0, 0xb9, 0xaf, 0x97, 0x19, 0xc6, 0x51, 0x8a, 0x79, 0xce,
  172. 0xa6, 0x58, 0x8a, 0x76, 0x5f, 0x41, 0x63, 0x18, 0x8e, 0xdc, 0xe7, 0x70, 0x7c, 0xcf, 0xe6, 0x05,
  173. 0x7a, 0x07, 0x17, 0x07, 0x57, 0x67, 0xb4, 0x5c, 0x98, 0xc3, 0x30, 0x1c, 0x3c, 0x70, 0x78, 0x09,
  174. 0xe7, 0xa3, 0x6c, 0x9e, 0x88, 0x59, 0x9f, 0x65, 0x8c, 0x27, 0x7a, 0xf9, 0x00, 0xee, 0x0a, 0xda,
  175. 0x9f, 0xe4, 0x42, 0xd4, 0x40, 0x76, 0xc0, 0xf9, 0xae, 0x12, 0x8d, 0xbd, 0x62, 0x32, 0x41, 0xe5,
  176. 0xba, 0x70, 0x94, 0x27, 0xbf, 0x2a, 0x8c, 0xfd, 0xee, 0x5e, 0x00, 0x50, 0x64, 0xf1, 0x7f, 0x10,
  177. 0x6f, 0xa1, 0xd5, 0x97, 0x42, 0x20, 0xd7, 0x89, 0x14, 0x14, 0x8b, 0x1c, 0xdd, 0x17, 0xd0, 0x44,
  178. 0xc1, 0xc6, 0xf3, 0x12, 0x78, 0x42, 0x57, 0xab, 0xee, 0xef, 0x63, 0x68, 0xf6, 0xad, 0xc3, 0xee,
  179. 0x47, 0x68, 0xa4, 0xba, 0xb0, 0xe7, 0x4e, 0x70, 0x49, 0x1e, 0x75, 0x9a, 0x0c, 0xc3, 0x11, 0x35,
  180. 0x14, 0xc3, 0xd4, 0x3a, 0xf1, 0x0e, 0x6b, 0x33, 0xc3, 0x70, 0x40, 0x0d, 0xc5, 0xbd, 0x85, 0x56,
  181. 0x61, 0x0d, 0x8c, 0xf8, 0xca, 0x17, 0xaf, 0x61, 0x55, 0x3e, 0xd4, 0x50, 0xd9, 0xb5, 0x9e, 0x9e,
  182. 0x17, 0xbb, 0xa3, 0xf8, 0x01, 0xcf, 0xe2, 0x95, 0xe9, 0x1b, 0xf5, 0x23, 0xab, 0x7e, 0x5d, 0x43,
  183. 0x7d, 0x7f, 0x60, 0xb4, 0x1d, 0xef, 0x8f, 0xf0, 0x35, 0x00, 0x97, 0x62, 0x8a, 0xb9, 0xf1, 0xd9,
  184. 0x3b, 0xb6, 0xc6, 0x6e, 0xed, 0xb8, 0x5f, 0xe1, 0x74, 0x61, 0x86, 0x19, 0x8d, 0xed, 0xac, 0xbc,
  185. 0xa6, 0xbd, 0x9c, 0xd4, 0xb8, 0x7c, 0x2b, 0x03, 0xd4, 0x59, 0x6c, 0x05, 0xe2, 0x33, 0x38, 0x0a,
  186. 0x59, 0x5c, 0x29, 0x3e, 0xb1, 0x8a, 0xef, 0x6a, 0x28, 0x6e, 0x22, 0x43, 0x41, 0x6d, 0xe2, 0x73,
  187. 0x03, 0x67, 0x3f, 0x91, 0xc5, 0xa8, 0xa2, 0xb2, 0x67, 0xde, 0xc9, 0xbf, 0x43, 0x2c, 0x1b, 0x44,
  188. 0xca, 0x06, 0x91, 0xd0, 0x34, 0x68, 0x58, 0x16, 0x88, 0x9e, 0x96, 0xe4, 0x55, 0x82, 0xee, 0xa0,
  189. 0xcd, 0xd7, 0xb9, 0x8b, 0x94, 0x09, 0x9e, 0xf7, 0xd4, 0xea, 0x05, 0x35, 0x5e, 0xb8, 0x17, 0x59,
  190. 0xda, 0xe2, 0xbb, 0x1b, 0xbd, 0x3b, 0x78, 0xc3, 0x65, 0xfa, 0xb8, 0x52, 0xcf, 0x29, 0xdf, 0xf3,
  191. 0xc5, 0xb4, 0xfb, 0xb6, 0x31, 0xe3, 0xd9, 0x9f, 0xc3, 0xce, 0xb7, 0x80, 0xb2, 0x25, 0xe9, 0x1b,
  192. 0x56, 0xb8, 0x66, 0x0d, 0x2a, 0xd6, 0x0d, 0xcf, 0xc6, 0x4d, 0xfb, 0x37, 0xb8, 0xfe, 0x1b, 0x00,
  193. 0x00, 0xff, 0xff, 0x77, 0xae, 0x78, 0x3a, 0x98, 0x04, 0x00, 0x00,
  194. }