config.pb.go 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. }
  30. func (m *Policy) Reset() { *m = Policy{} }
  31. func (m *Policy) String() string { return proto.CompactTextString(m) }
  32. func (*Policy) ProtoMessage() {}
  33. func (*Policy) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  34. func (m *Policy) GetTimeout() *Policy_Timeout {
  35. if m != nil {
  36. return m.Timeout
  37. }
  38. return nil
  39. }
  40. // Timeout is a message for timeout settings in various stages, in seconds.
  41. type Policy_Timeout struct {
  42. Handshake *Second `protobuf:"bytes,1,opt,name=handshake" json:"handshake,omitempty"`
  43. ConnectionIdle *Second `protobuf:"bytes,2,opt,name=connection_idle,json=connectionIdle" json:"connection_idle,omitempty"`
  44. UplinkOnly *Second `protobuf:"bytes,3,opt,name=uplink_only,json=uplinkOnly" json:"uplink_only,omitempty"`
  45. DownlinkOnly *Second `protobuf:"bytes,4,opt,name=downlink_only,json=downlinkOnly" json:"downlink_only,omitempty"`
  46. }
  47. func (m *Policy_Timeout) Reset() { *m = Policy_Timeout{} }
  48. func (m *Policy_Timeout) String() string { return proto.CompactTextString(m) }
  49. func (*Policy_Timeout) ProtoMessage() {}
  50. func (*Policy_Timeout) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
  51. func (m *Policy_Timeout) GetHandshake() *Second {
  52. if m != nil {
  53. return m.Handshake
  54. }
  55. return nil
  56. }
  57. func (m *Policy_Timeout) GetConnectionIdle() *Second {
  58. if m != nil {
  59. return m.ConnectionIdle
  60. }
  61. return nil
  62. }
  63. func (m *Policy_Timeout) GetUplinkOnly() *Second {
  64. if m != nil {
  65. return m.UplinkOnly
  66. }
  67. return nil
  68. }
  69. func (m *Policy_Timeout) GetDownlinkOnly() *Second {
  70. if m != nil {
  71. return m.DownlinkOnly
  72. }
  73. return nil
  74. }
  75. type Config struct {
  76. 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"`
  77. }
  78. func (m *Config) Reset() { *m = Config{} }
  79. func (m *Config) String() string { return proto.CompactTextString(m) }
  80. func (*Config) ProtoMessage() {}
  81. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  82. func (m *Config) GetLevel() map[uint32]*Policy {
  83. if m != nil {
  84. return m.Level
  85. }
  86. return nil
  87. }
  88. func init() {
  89. proto.RegisterType((*Second)(nil), "v2ray.core.app.policy.Second")
  90. proto.RegisterType((*Policy)(nil), "v2ray.core.app.policy.Policy")
  91. proto.RegisterType((*Policy_Timeout)(nil), "v2ray.core.app.policy.Policy.Timeout")
  92. proto.RegisterType((*Config)(nil), "v2ray.core.app.policy.Config")
  93. }
  94. func init() { proto.RegisterFile("v2ray.com/core/app/policy/config.proto", fileDescriptor0) }
  95. var fileDescriptor0 = []byte{
  96. // 349 bytes of a gzipped FileDescriptorProto
  97. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0xc1, 0x4a, 0xeb, 0x40,
  98. 0x14, 0x86, 0x49, 0x7a, 0x9b, 0x72, 0x4f, 0x6f, 0xaf, 0x32, 0x58, 0x88, 0x05, 0xa5, 0x14, 0x94,
  99. 0xae, 0x26, 0x90, 0x6e, 0x44, 0xb1, 0x62, 0x45, 0x41, 0x10, 0x2c, 0x51, 0x14, 0xdc, 0x94, 0x71,
  100. 0x32, 0xda, 0xd0, 0xe9, 0x9c, 0x21, 0xa6, 0x95, 0xbc, 0x86, 0x6f, 0xe0, 0xd6, 0x87, 0xf2, 0x59,
  101. 0x24, 0x99, 0x84, 0x6c, 0x5a, 0xe9, 0x6e, 0x72, 0xf8, 0xfe, 0x8f, 0x43, 0xfe, 0x03, 0x87, 0x4b,
  102. 0x3f, 0x66, 0x29, 0xe5, 0x38, 0xf7, 0x38, 0xc6, 0xc2, 0x63, 0x5a, 0x7b, 0x1a, 0x65, 0xc4, 0x53,
  103. 0x8f, 0xa3, 0x7a, 0x89, 0x5e, 0xa9, 0x8e, 0x31, 0x41, 0xd2, 0x2e, 0xb9, 0x58, 0x50, 0xa6, 0x35,
  104. 0x35, 0x4c, 0x6f, 0x1f, 0x9c, 0x3b, 0xc1, 0x51, 0x85, 0x64, 0x07, 0xea, 0x4b, 0x26, 0x17, 0xc2,
  105. 0xb5, 0xba, 0x56, 0xbf, 0x15, 0x98, 0x8f, 0xde, 0xb7, 0x0d, 0xce, 0x38, 0x47, 0xc9, 0x19, 0x34,
  106. 0x92, 0x68, 0x2e, 0x70, 0x91, 0xe4, 0x48, 0xd3, 0x3f, 0xa0, 0x2b, 0x9d, 0xd4, 0xf0, 0xf4, 0xde,
  107. 0xc0, 0x41, 0x99, 0xea, 0x7c, 0xd8, 0xd0, 0x28, 0x86, 0xe4, 0x04, 0xfe, 0x4e, 0x99, 0x0a, 0xdf,
  108. 0xa6, 0x6c, 0x26, 0x0a, 0xdd, 0xde, 0x1a, 0x9d, 0xd9, 0x2f, 0xa8, 0x78, 0x72, 0x05, 0x5b, 0x1c,
  109. 0x95, 0x12, 0x3c, 0x89, 0x50, 0x4d, 0xa2, 0x50, 0x0a, 0xd7, 0xde, 0x44, 0xf1, 0xbf, 0x4a, 0x5d,
  110. 0x87, 0x52, 0x90, 0x21, 0x34, 0x17, 0x5a, 0x46, 0x6a, 0x36, 0x41, 0x25, 0x53, 0xb7, 0xb6, 0x89,
  111. 0x03, 0x4c, 0xe2, 0x56, 0xc9, 0x94, 0x8c, 0xa0, 0x15, 0xe2, 0xbb, 0xaa, 0x0c, 0x7f, 0x36, 0x31,
  112. 0xfc, 0x2b, 0x33, 0x99, 0xa3, 0xf7, 0x69, 0x81, 0x73, 0x91, 0x17, 0x45, 0x86, 0x50, 0x97, 0x62,
  113. 0x29, 0xa4, 0x6b, 0x75, 0x6b, 0xfd, 0xa6, 0xdf, 0x5f, 0xa3, 0x31, 0x34, 0xbd, 0xc9, 0xd0, 0x4b,
  114. 0x95, 0xc4, 0x69, 0x60, 0x62, 0x9d, 0x47, 0x80, 0x6a, 0x48, 0xb6, 0xa1, 0x36, 0x13, 0x69, 0xd1,
  115. 0x66, 0xf6, 0x24, 0x83, 0xb2, 0xe1, 0xdf, 0x7f, 0x96, 0xa9, 0xaf, 0x38, 0x80, 0x63, 0xfb, 0xc8,
  116. 0x1a, 0x9d, 0xc2, 0x2e, 0xc7, 0xf9, 0x6a, 0x7c, 0x6c, 0x3d, 0x39, 0xe6, 0xf5, 0x65, 0xb7, 0x1f,
  117. 0xfc, 0x80, 0x65, 0x0b, 0xc6, 0x82, 0x9e, 0x6b, 0x5d, 0x98, 0x9e, 0x9d, 0xfc, 0x02, 0x07, 0x3f,
  118. 0x01, 0x00, 0x00, 0xff, 0xff, 0xcf, 0x25, 0x25, 0xc2, 0xab, 0x02, 0x00, 0x00,
  119. }