config.pb.go 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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. Config
  16. */
  17. package kcp
  18. import proto "github.com/golang/protobuf/proto"
  19. import fmt "fmt"
  20. import math "math"
  21. import v2ray_core_common_loader "v2ray.com/core/common/loader"
  22. // Reference imports to suppress errors if they are not otherwise used.
  23. var _ = proto.Marshal
  24. var _ = fmt.Errorf
  25. var _ = math.Inf
  26. // This is a compile-time assertion to ensure that this generated file
  27. // is compatible with the proto package it is being compiled against.
  28. // A compilation error at this line likely means your copy of the
  29. // proto package needs to be updated.
  30. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  31. // Maximum Transmission Unit, in bytes.
  32. type MTU struct {
  33. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  34. }
  35. func (m *MTU) Reset() { *m = MTU{} }
  36. func (m *MTU) String() string { return proto.CompactTextString(m) }
  37. func (*MTU) ProtoMessage() {}
  38. func (*MTU) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  39. // Transmission Time Interview, in milli-sec.
  40. type TTI struct {
  41. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  42. }
  43. func (m *TTI) Reset() { *m = TTI{} }
  44. func (m *TTI) String() string { return proto.CompactTextString(m) }
  45. func (*TTI) ProtoMessage() {}
  46. func (*TTI) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  47. // Uplink capacity, in MB.
  48. type UplinkCapacity struct {
  49. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  50. }
  51. func (m *UplinkCapacity) Reset() { *m = UplinkCapacity{} }
  52. func (m *UplinkCapacity) String() string { return proto.CompactTextString(m) }
  53. func (*UplinkCapacity) ProtoMessage() {}
  54. func (*UplinkCapacity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  55. // Downlink capacity, in MB.
  56. type DownlinkCapacity struct {
  57. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  58. }
  59. func (m *DownlinkCapacity) Reset() { *m = DownlinkCapacity{} }
  60. func (m *DownlinkCapacity) String() string { return proto.CompactTextString(m) }
  61. func (*DownlinkCapacity) ProtoMessage() {}
  62. func (*DownlinkCapacity) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  63. type WriteBuffer struct {
  64. // Buffer size in bytes.
  65. Size uint32 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
  66. }
  67. func (m *WriteBuffer) Reset() { *m = WriteBuffer{} }
  68. func (m *WriteBuffer) String() string { return proto.CompactTextString(m) }
  69. func (*WriteBuffer) ProtoMessage() {}
  70. func (*WriteBuffer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  71. type ReadBuffer struct {
  72. // Buffer size in bytes.
  73. Size uint32 `protobuf:"varint,1,opt,name=size" json:"size,omitempty"`
  74. }
  75. func (m *ReadBuffer) Reset() { *m = ReadBuffer{} }
  76. func (m *ReadBuffer) String() string { return proto.CompactTextString(m) }
  77. func (*ReadBuffer) ProtoMessage() {}
  78. func (*ReadBuffer) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  79. type Config struct {
  80. Mtu *MTU `protobuf:"bytes,1,opt,name=mtu" json:"mtu,omitempty"`
  81. Tti *TTI `protobuf:"bytes,2,opt,name=tti" json:"tti,omitempty"`
  82. UplinkCapacity *UplinkCapacity `protobuf:"bytes,3,opt,name=uplink_capacity,json=uplinkCapacity" json:"uplink_capacity,omitempty"`
  83. DownlinkCapacity *DownlinkCapacity `protobuf:"bytes,4,opt,name=downlink_capacity,json=downlinkCapacity" json:"downlink_capacity,omitempty"`
  84. Congestion bool `protobuf:"varint,5,opt,name=congestion" json:"congestion,omitempty"`
  85. WriteBuffer *WriteBuffer `protobuf:"bytes,6,opt,name=write_buffer,json=writeBuffer" json:"write_buffer,omitempty"`
  86. ReadBuffer *ReadBuffer `protobuf:"bytes,7,opt,name=read_buffer,json=readBuffer" json:"read_buffer,omitempty"`
  87. HeaderConfig *v2ray_core_common_loader.TypedSettings `protobuf:"bytes,8,opt,name=header_config,json=headerConfig" json:"header_config,omitempty"`
  88. }
  89. func (m *Config) Reset() { *m = Config{} }
  90. func (m *Config) String() string { return proto.CompactTextString(m) }
  91. func (*Config) ProtoMessage() {}
  92. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
  93. func (m *Config) GetMtu() *MTU {
  94. if m != nil {
  95. return m.Mtu
  96. }
  97. return nil
  98. }
  99. func (m *Config) GetTti() *TTI {
  100. if m != nil {
  101. return m.Tti
  102. }
  103. return nil
  104. }
  105. func (m *Config) GetUplinkCapacity() *UplinkCapacity {
  106. if m != nil {
  107. return m.UplinkCapacity
  108. }
  109. return nil
  110. }
  111. func (m *Config) GetDownlinkCapacity() *DownlinkCapacity {
  112. if m != nil {
  113. return m.DownlinkCapacity
  114. }
  115. return nil
  116. }
  117. func (m *Config) GetWriteBuffer() *WriteBuffer {
  118. if m != nil {
  119. return m.WriteBuffer
  120. }
  121. return nil
  122. }
  123. func (m *Config) GetReadBuffer() *ReadBuffer {
  124. if m != nil {
  125. return m.ReadBuffer
  126. }
  127. return nil
  128. }
  129. func (m *Config) GetHeaderConfig() *v2ray_core_common_loader.TypedSettings {
  130. if m != nil {
  131. return m.HeaderConfig
  132. }
  133. return nil
  134. }
  135. func init() {
  136. proto.RegisterType((*MTU)(nil), "v2ray.core.transport.internet.kcp.MTU")
  137. proto.RegisterType((*TTI)(nil), "v2ray.core.transport.internet.kcp.TTI")
  138. proto.RegisterType((*UplinkCapacity)(nil), "v2ray.core.transport.internet.kcp.UplinkCapacity")
  139. proto.RegisterType((*DownlinkCapacity)(nil), "v2ray.core.transport.internet.kcp.DownlinkCapacity")
  140. proto.RegisterType((*WriteBuffer)(nil), "v2ray.core.transport.internet.kcp.WriteBuffer")
  141. proto.RegisterType((*ReadBuffer)(nil), "v2ray.core.transport.internet.kcp.ReadBuffer")
  142. proto.RegisterType((*Config)(nil), "v2ray.core.transport.internet.kcp.Config")
  143. }
  144. func init() { proto.RegisterFile("v2ray.com/core/transport/internet/kcp/config.proto", fileDescriptor0) }
  145. var fileDescriptor0 = []byte{
  146. // 426 bytes of a gzipped FileDescriptorProto
  147. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x6f, 0xd3, 0x30,
  148. 0x18, 0xc5, 0x55, 0xd2, 0x95, 0xe9, 0xcb, 0x36, 0x46, 0xc4, 0x21, 0x02, 0x09, 0x75, 0x93, 0xd8,
  149. 0x7a, 0xc1, 0x11, 0xdd, 0x05, 0xae, 0x1d, 0x97, 0x49, 0x0c, 0x81, 0x49, 0x85, 0xd4, 0x4b, 0x71,
  150. 0x1d, 0xb7, 0x58, 0x69, 0x6c, 0xcb, 0x71, 0x5a, 0x85, 0x7f, 0x91, 0x7f, 0x0a, 0xc5, 0x6e, 0x68,
  151. 0x5a, 0xa9, 0x6b, 0x6e, 0x6d, 0xfc, 0xde, 0xcf, 0xc9, 0x7b, 0xdf, 0x07, 0xc3, 0xd5, 0x50, 0x93,
  152. 0x12, 0x51, 0x99, 0x45, 0x54, 0x6a, 0x16, 0x19, 0x4d, 0x44, 0xae, 0xa4, 0x36, 0x11, 0x17, 0x86,
  153. 0x69, 0xc1, 0x4c, 0x94, 0x52, 0x15, 0x51, 0x29, 0xe6, 0x7c, 0x81, 0x94, 0x96, 0x46, 0x06, 0x57,
  154. 0xb5, 0x47, 0x33, 0xf4, 0x5f, 0x8f, 0x6a, 0x3d, 0x4a, 0xa9, 0x7a, 0x7d, 0xbb, 0x87, 0xa5, 0x32,
  155. 0xcb, 0xa4, 0x88, 0x96, 0x92, 0x24, 0x4c, 0x47, 0xa6, 0x54, 0xcc, 0xb1, 0xae, 0xdf, 0x80, 0xf7,
  156. 0x18, 0x8f, 0x83, 0x57, 0x70, 0xb2, 0x22, 0xcb, 0x82, 0x85, 0x9d, 0x7e, 0x67, 0x70, 0x8e, 0xdd,
  157. 0x9f, 0xea, 0x30, 0x8e, 0x1f, 0x0e, 0x1c, 0xde, 0xc0, 0xc5, 0x58, 0x2d, 0xb9, 0x48, 0xef, 0x89,
  158. 0x22, 0x94, 0x9b, 0xf2, 0x80, 0x6e, 0x00, 0x97, 0x9f, 0xe5, 0x5a, 0xb4, 0x50, 0x5e, 0x81, 0xff,
  159. 0x53, 0x73, 0xc3, 0x46, 0xc5, 0x7c, 0xce, 0x74, 0x10, 0x40, 0x37, 0xe7, 0x7f, 0x6a, 0x8d, 0xfd,
  160. 0x7d, 0xdd, 0x07, 0xc0, 0x8c, 0x24, 0x4f, 0x28, 0xfe, 0x76, 0xa1, 0x77, 0x6f, 0xd3, 0x0a, 0x3e,
  161. 0x82, 0x97, 0x99, 0xc2, 0x9e, 0xfa, 0xc3, 0x1b, 0x74, 0x34, 0x35, 0xf4, 0x18, 0x8f, 0x71, 0x65,
  162. 0xa9, 0x9c, 0xc6, 0xf0, 0xf0, 0x59, 0x6b, 0x67, 0x1c, 0x3f, 0xe0, 0xca, 0x12, 0x4c, 0xe0, 0x45,
  163. 0x61, 0x53, 0x99, 0xd2, 0xcd, 0xc7, 0x86, 0x9e, 0xa5, 0x7c, 0x68, 0x41, 0xd9, 0xcd, 0x13, 0x5f,
  164. 0x14, 0xbb, 0xf9, 0xfe, 0x82, 0x97, 0xc9, 0x26, 0xc9, 0x2d, 0xbd, 0x6b, 0xe9, 0x77, 0x2d, 0xe8,
  165. 0xfb, 0x2d, 0xe0, 0xcb, 0x64, 0xbf, 0x97, 0xb7, 0x00, 0x54, 0x8a, 0x05, 0xcb, 0x0d, 0x97, 0x22,
  166. 0x3c, 0xe9, 0x77, 0x06, 0xa7, 0xb8, 0xf1, 0x24, 0xf8, 0x0e, 0x67, 0xeb, 0xaa, 0xa1, 0xe9, 0xcc,
  167. 0x16, 0x10, 0xf6, 0xec, 0xe5, 0xa8, 0xc5, 0xe5, 0x8d, 0x62, 0xb1, 0xbf, 0x6e, 0xb4, 0xfc, 0x15,
  168. 0x7c, 0xcd, 0x48, 0x52, 0x13, 0x9f, 0x5b, 0xe2, 0xfb, 0x16, 0xc4, 0xed, 0x1c, 0x60, 0xd0, 0xdb,
  169. 0x99, 0xf8, 0x02, 0xe7, 0xbf, 0x59, 0x35, 0xe5, 0x53, 0xb7, 0x33, 0xe1, 0xa9, 0x25, 0xde, 0x36,
  170. 0x89, 0x6e, 0x1b, 0x90, 0xdb, 0x06, 0x14, 0x97, 0x8a, 0x25, 0x3f, 0x98, 0x31, 0x5c, 0x2c, 0x72,
  171. 0x7c, 0xe6, 0xdc, 0x6e, 0x84, 0x46, 0x9f, 0xe0, 0x1d, 0x95, 0xd9, 0xf1, 0xb7, 0x19, 0xf9, 0xce,
  172. 0xf0, 0xad, 0x5a, 0xaa, 0x89, 0x97, 0x52, 0x35, 0xeb, 0xd9, 0x05, 0xbb, 0xfb, 0x17, 0x00, 0x00,
  173. 0xff, 0xff, 0x02, 0xb7, 0x81, 0x10, 0xe2, 0x03, 0x00, 0x00,
  174. }