config.pb.go 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. package inbound
  2. import (
  3. fmt "fmt"
  4. proto "github.com/golang/protobuf/proto"
  5. math "math"
  6. protocol "v2ray.com/core/common/protocol"
  7. )
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. type DetourConfig struct {
  18. To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
  19. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  20. XXX_unrecognized []byte `json:"-"`
  21. XXX_sizecache int32 `json:"-"`
  22. }
  23. func (m *DetourConfig) Reset() { *m = DetourConfig{} }
  24. func (m *DetourConfig) String() string { return proto.CompactTextString(m) }
  25. func (*DetourConfig) ProtoMessage() {}
  26. func (*DetourConfig) Descriptor() ([]byte, []int) {
  27. return fileDescriptor_a47d4a41f33382d2, []int{0}
  28. }
  29. func (m *DetourConfig) XXX_Unmarshal(b []byte) error {
  30. return xxx_messageInfo_DetourConfig.Unmarshal(m, b)
  31. }
  32. func (m *DetourConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  33. return xxx_messageInfo_DetourConfig.Marshal(b, m, deterministic)
  34. }
  35. func (m *DetourConfig) XXX_Merge(src proto.Message) {
  36. xxx_messageInfo_DetourConfig.Merge(m, src)
  37. }
  38. func (m *DetourConfig) XXX_Size() int {
  39. return xxx_messageInfo_DetourConfig.Size(m)
  40. }
  41. func (m *DetourConfig) XXX_DiscardUnknown() {
  42. xxx_messageInfo_DetourConfig.DiscardUnknown(m)
  43. }
  44. var xxx_messageInfo_DetourConfig proto.InternalMessageInfo
  45. func (m *DetourConfig) GetTo() string {
  46. if m != nil {
  47. return m.To
  48. }
  49. return ""
  50. }
  51. type DefaultConfig struct {
  52. AlterId uint32 `protobuf:"varint,1,opt,name=alter_id,json=alterId,proto3" json:"alter_id,omitempty"`
  53. Level uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
  54. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  55. XXX_unrecognized []byte `json:"-"`
  56. XXX_sizecache int32 `json:"-"`
  57. }
  58. func (m *DefaultConfig) Reset() { *m = DefaultConfig{} }
  59. func (m *DefaultConfig) String() string { return proto.CompactTextString(m) }
  60. func (*DefaultConfig) ProtoMessage() {}
  61. func (*DefaultConfig) Descriptor() ([]byte, []int) {
  62. return fileDescriptor_a47d4a41f33382d2, []int{1}
  63. }
  64. func (m *DefaultConfig) XXX_Unmarshal(b []byte) error {
  65. return xxx_messageInfo_DefaultConfig.Unmarshal(m, b)
  66. }
  67. func (m *DefaultConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  68. return xxx_messageInfo_DefaultConfig.Marshal(b, m, deterministic)
  69. }
  70. func (m *DefaultConfig) XXX_Merge(src proto.Message) {
  71. xxx_messageInfo_DefaultConfig.Merge(m, src)
  72. }
  73. func (m *DefaultConfig) XXX_Size() int {
  74. return xxx_messageInfo_DefaultConfig.Size(m)
  75. }
  76. func (m *DefaultConfig) XXX_DiscardUnknown() {
  77. xxx_messageInfo_DefaultConfig.DiscardUnknown(m)
  78. }
  79. var xxx_messageInfo_DefaultConfig proto.InternalMessageInfo
  80. func (m *DefaultConfig) GetAlterId() uint32 {
  81. if m != nil {
  82. return m.AlterId
  83. }
  84. return 0
  85. }
  86. func (m *DefaultConfig) GetLevel() uint32 {
  87. if m != nil {
  88. return m.Level
  89. }
  90. return 0
  91. }
  92. type Config struct {
  93. User []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"`
  94. Default *DefaultConfig `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"`
  95. Detour *DetourConfig `protobuf:"bytes,3,opt,name=detour,proto3" json:"detour,omitempty"`
  96. SecureEncryptionOnly bool `protobuf:"varint,4,opt,name=secure_encryption_only,json=secureEncryptionOnly,proto3" json:"secure_encryption_only,omitempty"`
  97. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  98. XXX_unrecognized []byte `json:"-"`
  99. XXX_sizecache int32 `json:"-"`
  100. }
  101. func (m *Config) Reset() { *m = Config{} }
  102. func (m *Config) String() string { return proto.CompactTextString(m) }
  103. func (*Config) ProtoMessage() {}
  104. func (*Config) Descriptor() ([]byte, []int) {
  105. return fileDescriptor_a47d4a41f33382d2, []int{2}
  106. }
  107. func (m *Config) XXX_Unmarshal(b []byte) error {
  108. return xxx_messageInfo_Config.Unmarshal(m, b)
  109. }
  110. func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  111. return xxx_messageInfo_Config.Marshal(b, m, deterministic)
  112. }
  113. func (m *Config) XXX_Merge(src proto.Message) {
  114. xxx_messageInfo_Config.Merge(m, src)
  115. }
  116. func (m *Config) XXX_Size() int {
  117. return xxx_messageInfo_Config.Size(m)
  118. }
  119. func (m *Config) XXX_DiscardUnknown() {
  120. xxx_messageInfo_Config.DiscardUnknown(m)
  121. }
  122. var xxx_messageInfo_Config proto.InternalMessageInfo
  123. func (m *Config) GetUser() []*protocol.User {
  124. if m != nil {
  125. return m.User
  126. }
  127. return nil
  128. }
  129. func (m *Config) GetDefault() *DefaultConfig {
  130. if m != nil {
  131. return m.Default
  132. }
  133. return nil
  134. }
  135. func (m *Config) GetDetour() *DetourConfig {
  136. if m != nil {
  137. return m.Detour
  138. }
  139. return nil
  140. }
  141. func (m *Config) GetSecureEncryptionOnly() bool {
  142. if m != nil {
  143. return m.SecureEncryptionOnly
  144. }
  145. return false
  146. }
  147. func init() {
  148. proto.RegisterType((*DetourConfig)(nil), "v2ray.core.proxy.vmess.inbound.DetourConfig")
  149. proto.RegisterType((*DefaultConfig)(nil), "v2ray.core.proxy.vmess.inbound.DefaultConfig")
  150. proto.RegisterType((*Config)(nil), "v2ray.core.proxy.vmess.inbound.Config")
  151. }
  152. func init() {
  153. proto.RegisterFile("v2ray.com/core/proxy/vmess/inbound/config.proto", fileDescriptor_a47d4a41f33382d2)
  154. }
  155. var fileDescriptor_a47d4a41f33382d2 = []byte{
  156. // 333 bytes of a gzipped FileDescriptorProto
  157. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0x4f, 0x4f, 0xf2, 0x40,
  158. 0x10, 0xc6, 0xd3, 0xc2, 0x0b, 0xbc, 0x8b, 0x78, 0x68, 0x88, 0xa9, 0x1e, 0x48, 0xd3, 0x13, 0x26,
  159. 0xba, 0x9b, 0x54, 0x3e, 0x80, 0x11, 0x8c, 0xe1, 0x24, 0x69, 0x22, 0x07, 0x2f, 0xa4, 0x6c, 0x07,
  160. 0xd3, 0x64, 0xbb, 0x43, 0xb6, 0x5b, 0x62, 0xcf, 0x7e, 0x1b, 0x3f, 0xa5, 0x61, 0x5a, 0xfc, 0x77,
  161. 0x90, 0xdb, 0xce, 0xce, 0xef, 0x79, 0xe6, 0x99, 0x61, 0x62, 0x17, 0x99, 0xa4, 0xe2, 0x12, 0x73,
  162. 0x21, 0xd1, 0x80, 0xd8, 0x1a, 0x7c, 0xad, 0xc4, 0x2e, 0x87, 0xa2, 0x10, 0x99, 0x5e, 0x63, 0xa9,
  163. 0x53, 0x21, 0x51, 0x6f, 0xb2, 0x17, 0xbe, 0x35, 0x68, 0xd1, 0x1b, 0x1d, 0x04, 0x06, 0x38, 0xc1,
  164. 0x9c, 0x60, 0xde, 0xc0, 0x17, 0x97, 0xbf, 0x0c, 0x25, 0xe6, 0x39, 0x6a, 0x41, 0x62, 0x89, 0x4a,
  165. 0x94, 0x05, 0x98, 0xda, 0x2a, 0x1c, 0xb1, 0x93, 0x19, 0x58, 0x2c, 0xcd, 0x94, 0x06, 0x78, 0xa7,
  166. 0xcc, 0xb5, 0xe8, 0x3b, 0x81, 0x33, 0xfe, 0x1f, 0xbb, 0x16, 0xc3, 0x5b, 0x36, 0x98, 0xc1, 0x26,
  167. 0x29, 0x95, 0x6d, 0x80, 0x73, 0xd6, 0x4b, 0x94, 0x05, 0xb3, 0xca, 0x52, 0xc2, 0x06, 0x71, 0x97,
  168. 0xea, 0x79, 0xea, 0x0d, 0xd9, 0x3f, 0x05, 0x3b, 0x50, 0xbe, 0x4b, 0xff, 0x75, 0x11, 0xbe, 0xb9,
  169. 0xac, 0xd3, 0x68, 0x27, 0xac, 0xbd, 0x1f, 0xed, 0x3b, 0x41, 0x6b, 0xdc, 0x8f, 0x02, 0xfe, 0x6d,
  170. 0x8d, 0x3a, 0x22, 0x3f, 0x44, 0xe4, 0x4f, 0x05, 0x98, 0x98, 0x68, 0xef, 0x81, 0x75, 0xd3, 0x3a,
  171. 0x02, 0x19, 0xf7, 0xa3, 0x6b, 0xfe, 0xf7, 0xfe, 0xfc, 0x47, 0xe2, 0xf8, 0xa0, 0xf6, 0x66, 0xac,
  172. 0x93, 0xd2, 0xae, 0x7e, 0x8b, 0x7c, 0xae, 0x8e, 0xfb, 0x7c, 0x5d, 0x26, 0x6e, 0xb4, 0xde, 0x84,
  173. 0x9d, 0x15, 0x20, 0x4b, 0x03, 0x2b, 0xd0, 0xd2, 0x54, 0x5b, 0x9b, 0xa1, 0x5e, 0xa1, 0x56, 0x95,
  174. 0xdf, 0x0e, 0x9c, 0x71, 0x2f, 0x1e, 0xd6, 0xdd, 0xfb, 0xcf, 0xe6, 0xa3, 0x56, 0xd5, 0xdd, 0x82,
  175. 0x85, 0x12, 0xf3, 0x23, 0x03, 0x17, 0xce, 0x73, 0xb7, 0x79, 0xbe, 0xbb, 0xa3, 0x65, 0x14, 0x27,
  176. 0x15, 0x9f, 0xee, 0xd9, 0x05, 0xb1, 0x4b, 0x62, 0xe7, 0x35, 0xb0, 0xee, 0xd0, 0xad, 0x6e, 0x3e,
  177. 0x02, 0x00, 0x00, 0xff, 0xff, 0xbf, 0x49, 0x84, 0xe1, 0x3e, 0x02, 0x00, 0x00,
  178. }