config.pb.go 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. package inbound
  2. import proto "github.com/golang/protobuf/proto"
  3. import fmt "fmt"
  4. import math "math"
  5. import v2ray_core_common_protocol "v2ray.com/core/common/protocol"
  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. type DetourConfig struct {
  16. To string `protobuf:"bytes,1,opt,name=to" json:"to,omitempty"`
  17. }
  18. func (m *DetourConfig) Reset() { *m = DetourConfig{} }
  19. func (m *DetourConfig) String() string { return proto.CompactTextString(m) }
  20. func (*DetourConfig) ProtoMessage() {}
  21. func (*DetourConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  22. func (m *DetourConfig) GetTo() string {
  23. if m != nil {
  24. return m.To
  25. }
  26. return ""
  27. }
  28. type DefaultConfig struct {
  29. AlterId uint32 `protobuf:"varint,1,opt,name=alter_id,json=alterId" json:"alter_id,omitempty"`
  30. Level uint32 `protobuf:"varint,2,opt,name=level" json:"level,omitempty"`
  31. }
  32. func (m *DefaultConfig) Reset() { *m = DefaultConfig{} }
  33. func (m *DefaultConfig) String() string { return proto.CompactTextString(m) }
  34. func (*DefaultConfig) ProtoMessage() {}
  35. func (*DefaultConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  36. func (m *DefaultConfig) GetAlterId() uint32 {
  37. if m != nil {
  38. return m.AlterId
  39. }
  40. return 0
  41. }
  42. func (m *DefaultConfig) GetLevel() uint32 {
  43. if m != nil {
  44. return m.Level
  45. }
  46. return 0
  47. }
  48. type Config struct {
  49. User []*v2ray_core_common_protocol.User `protobuf:"bytes,1,rep,name=user" json:"user,omitempty"`
  50. Default *DefaultConfig `protobuf:"bytes,2,opt,name=default" json:"default,omitempty"`
  51. Detour *DetourConfig `protobuf:"bytes,3,opt,name=detour" json:"detour,omitempty"`
  52. }
  53. func (m *Config) Reset() { *m = Config{} }
  54. func (m *Config) String() string { return proto.CompactTextString(m) }
  55. func (*Config) ProtoMessage() {}
  56. func (*Config) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  57. func (m *Config) GetUser() []*v2ray_core_common_protocol.User {
  58. if m != nil {
  59. return m.User
  60. }
  61. return nil
  62. }
  63. func (m *Config) GetDefault() *DefaultConfig {
  64. if m != nil {
  65. return m.Default
  66. }
  67. return nil
  68. }
  69. func (m *Config) GetDetour() *DetourConfig {
  70. if m != nil {
  71. return m.Detour
  72. }
  73. return nil
  74. }
  75. func init() {
  76. proto.RegisterType((*DetourConfig)(nil), "v2ray.core.proxy.vmess.inbound.DetourConfig")
  77. proto.RegisterType((*DefaultConfig)(nil), "v2ray.core.proxy.vmess.inbound.DefaultConfig")
  78. proto.RegisterType((*Config)(nil), "v2ray.core.proxy.vmess.inbound.Config")
  79. }
  80. func init() { proto.RegisterFile("v2ray.com/core/proxy/vmess/inbound/config.proto", fileDescriptor0) }
  81. var fileDescriptor0 = []byte{
  82. // 297 bytes of a gzipped FileDescriptorProto
  83. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0xcf, 0x4e, 0x83, 0x40,
  84. 0x10, 0xc6, 0x03, 0xd5, 0xa2, 0x5b, 0xeb, 0x81, 0x78, 0x40, 0x0f, 0x84, 0x70, 0xaa, 0x89, 0xce,
  85. 0x26, 0xe8, 0x03, 0x18, 0x4b, 0x62, 0x7a, 0x23, 0x9b, 0xd8, 0x83, 0x17, 0x43, 0x97, 0xad, 0x21,
  86. 0x01, 0xa6, 0x59, 0x16, 0x22, 0xaf, 0xe4, 0xbb, 0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89, 0xc5, 0xa8, 0x76, 0x63, 0x36, 0xcd, 0xa8,
  98. 0xab, 0x37, 0x21, 0x9f, 0x9b, 0xc3, 0x3e, 0xdf, 0x97, 0x11, 0x83, 0xf6, 0x31, 0x61, 0xa1, 0xc4,
  99. 0xf2, 0x80, 0x34, 0xb1, 0x5e, 0x9c, 0xe1, 0xf9, 0x61, 0xfb, 0xeb, 0x48, 0xa4, 0x1d, 0x2c, 0xf7,
  100. 0x6c, 0x42, 0xec, 0x9a, 0xd8, 0x55, 0x0f, 0x6c, 0xa6, 0xd4, 0xfa, 0xee, 0x2b, 0x00, 0x00, 0xff,
  101. 0xff, 0x8d, 0x37, 0x9e, 0x90, 0x08, 0x02, 0x00, 0x00,
  102. }