config.pb.go 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. package policy
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. // Reference imports to suppress errors if they are not otherwise used.
  6. var _ = proto.Marshal
  7. var _ = fmt.Errorf
  8. var _ = math.Inf
  9. // This is a compile-time assertion to ensure that this generated file
  10. // is compatible with the proto package it is being compiled against.
  11. // A compilation error at this line likely means your copy of the
  12. // proto package needs to be updated.
  13. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  14. type Second struct {
  15. Value uint32 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"`
  16. }
  17. func (m *Second) Reset() { *m = Second{} }
  18. func (m *Second) String() string { return proto.CompactTextString(m) }
  19. func (*Second) ProtoMessage() {}
  20. func (*Second) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  21. func (m *Second) GetValue() uint32 {
  22. if m != nil {
  23. return m.Value
  24. }
  25. return 0
  26. }
  27. type Policy struct {
  28. Timeout *Policy_Timeout `protobuf:"bytes,1,opt,name=timeout" json:"timeout,omitempty"`
  29. Stats *Policy_Stats `protobuf:"bytes,2,opt,name=stats" json:"stats,omitempty"`
  30. }
  31. func (m *Policy) Reset() { *m = Policy{} }
  32. func (m *Policy) String() string { return proto.CompactTextString(m) }
  33. func (*Policy) ProtoMessage() {}
  34. func (*Policy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  35. func (m *Policy) GetTimeout() *Policy_Timeout {
  36. if m != nil {
  37. return m.Timeout
  38. }
  39. return nil
  40. }
  41. func (m *Policy) GetStats() *Policy_Stats {
  42. if m != nil {
  43. return m.Stats
  44. }
  45. return nil
  46. }
  47. // Timeout is a message for timeout settings in various stages, in seconds.
  48. type Policy_Timeout struct {
  49. Handshake *Second `protobuf:"bytes,1,opt,name=handshake" json:"handshake,omitempty"`
  50. ConnectionIdle *Second `protobuf:"bytes,2,opt,name=connection_idle,json=connectionIdle" json:"connection_idle,omitempty"`
  51. UplinkOnly *Second `protobuf:"bytes,3,opt,name=uplink_only,json=uplinkOnly" json:"uplink_only,omitempty"`
  52. DownlinkOnly *Second `protobuf:"bytes,4,opt,name=downlink_only,json=downlinkOnly" json:"downlink_only,omitempty"`
  53. }
  54. func (m *Policy_Timeout) Reset() { *m = Policy_Timeout{} }
  55. func (m *Policy_Timeout) String() string { return proto.CompactTextString(m) }
  56. func (*Policy_Timeout) ProtoMessage() {}
  57. func (*Policy_Timeout) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
  58. func (m *Policy_Timeout) GetHandshake() *Second {
  59. if m != nil {
  60. return m.Handshake
  61. }
  62. return nil
  63. }
  64. func (m *Policy_Timeout) GetConnectionIdle() *Second {
  65. if m != nil {
  66. return m.ConnectionIdle
  67. }
  68. return nil
  69. }
  70. func (m *Policy_Timeout) GetUplinkOnly() *Second {
  71. if m != nil {
  72. return m.UplinkOnly
  73. }
  74. return nil
  75. }
  76. func (m *Policy_Timeout) GetDownlinkOnly() *Second {
  77. if m != nil {
  78. return m.DownlinkOnly
  79. }
  80. return nil
  81. }
  82. type Policy_Stats struct {
  83. UserUplink bool `protobuf:"varint,1,opt,name=user_uplink,json=userUplink" json:"user_uplink,omitempty"`
  84. UserDownlink bool `protobuf:"varint,2,opt,name=user_downlink,json=userDownlink" json:"user_downlink,omitempty"`
  85. }
  86. func (m *Policy_Stats) Reset() { *m = Policy_Stats{} }
  87. func (m *Policy_Stats) String() string { return proto.CompactTextString(m) }
  88. func (*Policy_Stats) ProtoMessage() {}
  89. func (*Policy_Stats) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 1} }
  90. func (m *Policy_Stats) GetUserUplink() bool {
  91. if m != nil {
  92. return m.UserUplink
  93. }
  94. return false
  95. }
  96. func (m *Policy_Stats) GetUserDownlink() bool {
  97. if m != nil {
  98. return m.UserDownlink
  99. }
  100. return false
  101. }
  102. type Config struct {
  103. Level map[uint32]*Policy `protobuf:"bytes,1,rep,name=level" json:"level,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
  104. }
  105. func (m *Config) Reset() { *m = Config{} }
  106. func (m *Config) String() string { return proto.CompactTextString(m) }
  107. func (*Config) ProtoMessage() {}
  108. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  109. func (m *Config) GetLevel() map[uint32]*Policy {
  110. if m != nil {
  111. return m.Level
  112. }
  113. return nil
  114. }
  115. func init() {
  116. proto.RegisterType((*Second)(nil), "v2ray.core.app.policy.Second")
  117. proto.RegisterType((*Policy)(nil), "v2ray.core.app.policy.Policy")
  118. proto.RegisterType((*Policy_Timeout)(nil), "v2ray.core.app.policy.Policy.Timeout")
  119. proto.RegisterType((*Policy_Stats)(nil), "v2ray.core.app.policy.Policy.Stats")
  120. proto.RegisterType((*Config)(nil), "v2ray.core.app.policy.Config")
  121. }
  122. func init() { proto.RegisterFile("v2ray.com/core/app/policy/config.proto", fileDescriptor0) }
  123. var fileDescriptor0 = []byte{
  124. // 410 bytes of a gzipped FileDescriptorProto
  125. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x5d, 0xab, 0xd3, 0x30,
  126. 0x18, 0xc7, 0x69, 0x6b, 0x7b, 0x8e, 0x4f, 0xcf, 0x54, 0x82, 0x07, 0xea, 0x40, 0x3d, 0x6c, 0x28,
  127. 0xbb, 0x4a, 0xa1, 0xbb, 0xf1, 0x05, 0x27, 0xce, 0x17, 0x10, 0x14, 0x47, 0xe6, 0x0b, 0x78, 0x33,
  128. 0x62, 0x1a, 0x5d, 0x59, 0x96, 0x84, 0xbe, 0x4c, 0xfa, 0x35, 0xfc, 0x06, 0xde, 0xfa, 0xc9, 0xfc,
  129. 0x18, 0xd2, 0xa4, 0xa5, 0x37, 0xdb, 0xdc, 0x5d, 0xfa, 0xf0, 0xfb, 0xff, 0x78, 0x12, 0xfe, 0x85,
  130. 0x87, 0xbb, 0x24, 0xa7, 0x35, 0x66, 0x6a, 0x1b, 0x33, 0x95, 0xf3, 0x98, 0x6a, 0x1d, 0x6b, 0x25,
  131. 0x32, 0x56, 0xc7, 0x4c, 0xc9, 0xef, 0xd9, 0x0f, 0xac, 0x73, 0x55, 0x2a, 0x74, 0xd9, 0x71, 0x39,
  132. 0xc7, 0x54, 0x6b, 0x6c, 0x99, 0xd1, 0x3d, 0x08, 0x96, 0x9c, 0x29, 0x99, 0xa2, 0xdb, 0xe0, 0xef,
  133. 0xa8, 0xa8, 0x78, 0xe4, 0x5c, 0x39, 0x93, 0x01, 0xb1, 0x1f, 0xa3, 0xbf, 0x1e, 0x04, 0x0b, 0x83,
  134. 0xa2, 0xe7, 0x70, 0x56, 0x66, 0x5b, 0xae, 0xaa, 0xd2, 0x20, 0x61, 0xf2, 0x00, 0xef, 0x75, 0x62,
  135. 0xcb, 0xe3, 0x8f, 0x16, 0x26, 0x5d, 0x0a, 0x3d, 0x06, 0xbf, 0x28, 0x69, 0x59, 0x44, 0xae, 0x89,
  136. 0x8f, 0x8f, 0xc7, 0x97, 0x0d, 0x4a, 0x6c, 0x62, 0xf8, 0xcb, 0x85, 0xb3, 0xd6, 0x87, 0x9e, 0xc2,
  137. 0xf5, 0x35, 0x95, 0x69, 0xb1, 0xa6, 0x1b, 0xde, 0x6e, 0x72, 0xf7, 0x80, 0xca, 0x5e, 0x8d, 0xf4,
  138. 0x3c, 0x7a, 0x03, 0x37, 0x99, 0x92, 0x92, 0xb3, 0x32, 0x53, 0x72, 0x95, 0xa5, 0x82, 0xb7, 0xdb,
  139. 0xfc, 0x47, 0x71, 0xa3, 0x4f, 0xbd, 0x4d, 0x05, 0x47, 0x33, 0x08, 0x2b, 0x2d, 0x32, 0xb9, 0x59,
  140. 0x29, 0x29, 0xea, 0xc8, 0x3b, 0xc5, 0x01, 0x36, 0xf1, 0x41, 0x8a, 0x1a, 0xcd, 0x61, 0x90, 0xaa,
  141. 0x9f, 0xb2, 0x37, 0x5c, 0x3b, 0xc5, 0x70, 0xd1, 0x65, 0x1a, 0xc7, 0xf0, 0x3d, 0xf8, 0xe6, 0x91,
  142. 0xd0, 0x7d, 0x08, 0xab, 0x82, 0xe7, 0x2b, 0xeb, 0x37, 0x6f, 0x72, 0x4e, 0xa0, 0x19, 0x7d, 0x32,
  143. 0x13, 0x34, 0x86, 0x81, 0x01, 0xba, 0xb8, 0xb9, 0xf3, 0x39, 0xb9, 0x68, 0x86, 0xaf, 0xda, 0xd9,
  144. 0xe8, 0xb7, 0x03, 0xc1, 0x4b, 0x53, 0x19, 0x34, 0x03, 0x5f, 0xf0, 0x1d, 0x17, 0x91, 0x73, 0xe5,
  145. 0x4d, 0xc2, 0x64, 0x72, 0x60, 0x2b, 0x4b, 0xe3, 0x77, 0x0d, 0xfa, 0x5a, 0x96, 0x79, 0x4d, 0x6c,
  146. 0x6c, 0xf8, 0x05, 0xa0, 0x1f, 0xa2, 0x5b, 0xe0, 0x6d, 0x78, 0xdd, 0xf6, 0xaa, 0x39, 0xa2, 0x69,
  147. 0xd7, 0xb5, 0xe3, 0x6f, 0x6f, 0x9b, 0xd0, 0x56, 0xf1, 0x89, 0xfb, 0xc8, 0x99, 0x3f, 0x83, 0x3b,
  148. 0x4c, 0x6d, 0xf7, 0xe3, 0x0b, 0xe7, 0x6b, 0x60, 0x4f, 0x7f, 0xdc, 0xcb, 0xcf, 0x09, 0xa1, 0xcd,
  149. 0x82, 0x39, 0xc7, 0x2f, 0xb4, 0x6e, 0x4d, 0xdf, 0x02, 0xf3, 0x2f, 0x4c, 0xff, 0x05, 0x00, 0x00,
  150. 0xff, 0xff, 0x98, 0xa8, 0x2f, 0xbe, 0x35, 0x03, 0x00, 0x00,
  151. }