config.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. package inbound
  2. import (
  3. protocol "github.com/v2fly/v2ray-core/v5/common/protocol"
  4. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  7. reflect "reflect"
  8. sync "sync"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. type DetourConfig struct {
  17. state protoimpl.MessageState
  18. sizeCache protoimpl.SizeCache
  19. unknownFields protoimpl.UnknownFields
  20. To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
  21. }
  22. func (x *DetourConfig) Reset() {
  23. *x = DetourConfig{}
  24. if protoimpl.UnsafeEnabled {
  25. mi := &file_proxy_vmess_inbound_config_proto_msgTypes[0]
  26. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  27. ms.StoreMessageInfo(mi)
  28. }
  29. }
  30. func (x *DetourConfig) String() string {
  31. return protoimpl.X.MessageStringOf(x)
  32. }
  33. func (*DetourConfig) ProtoMessage() {}
  34. func (x *DetourConfig) ProtoReflect() protoreflect.Message {
  35. mi := &file_proxy_vmess_inbound_config_proto_msgTypes[0]
  36. if protoimpl.UnsafeEnabled && x != nil {
  37. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  38. if ms.LoadMessageInfo() == nil {
  39. ms.StoreMessageInfo(mi)
  40. }
  41. return ms
  42. }
  43. return mi.MessageOf(x)
  44. }
  45. // Deprecated: Use DetourConfig.ProtoReflect.Descriptor instead.
  46. func (*DetourConfig) Descriptor() ([]byte, []int) {
  47. return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{0}
  48. }
  49. func (x *DetourConfig) GetTo() string {
  50. if x != nil {
  51. return x.To
  52. }
  53. return ""
  54. }
  55. type DefaultConfig struct {
  56. state protoimpl.MessageState
  57. sizeCache protoimpl.SizeCache
  58. unknownFields protoimpl.UnknownFields
  59. AlterId uint32 `protobuf:"varint,1,opt,name=alter_id,json=alterId,proto3" json:"alter_id,omitempty"`
  60. Level uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
  61. }
  62. func (x *DefaultConfig) Reset() {
  63. *x = DefaultConfig{}
  64. if protoimpl.UnsafeEnabled {
  65. mi := &file_proxy_vmess_inbound_config_proto_msgTypes[1]
  66. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  67. ms.StoreMessageInfo(mi)
  68. }
  69. }
  70. func (x *DefaultConfig) String() string {
  71. return protoimpl.X.MessageStringOf(x)
  72. }
  73. func (*DefaultConfig) ProtoMessage() {}
  74. func (x *DefaultConfig) ProtoReflect() protoreflect.Message {
  75. mi := &file_proxy_vmess_inbound_config_proto_msgTypes[1]
  76. if protoimpl.UnsafeEnabled && x != nil {
  77. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  78. if ms.LoadMessageInfo() == nil {
  79. ms.StoreMessageInfo(mi)
  80. }
  81. return ms
  82. }
  83. return mi.MessageOf(x)
  84. }
  85. // Deprecated: Use DefaultConfig.ProtoReflect.Descriptor instead.
  86. func (*DefaultConfig) Descriptor() ([]byte, []int) {
  87. return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{1}
  88. }
  89. func (x *DefaultConfig) GetAlterId() uint32 {
  90. if x != nil {
  91. return x.AlterId
  92. }
  93. return 0
  94. }
  95. func (x *DefaultConfig) GetLevel() uint32 {
  96. if x != nil {
  97. return x.Level
  98. }
  99. return 0
  100. }
  101. type Config struct {
  102. state protoimpl.MessageState
  103. sizeCache protoimpl.SizeCache
  104. unknownFields protoimpl.UnknownFields
  105. User []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"`
  106. Default *DefaultConfig `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"`
  107. Detour *DetourConfig `protobuf:"bytes,3,opt,name=detour,proto3" json:"detour,omitempty"`
  108. SecureEncryptionOnly bool `protobuf:"varint,4,opt,name=secure_encryption_only,json=secureEncryptionOnly,proto3" json:"secure_encryption_only,omitempty"`
  109. }
  110. func (x *Config) Reset() {
  111. *x = Config{}
  112. if protoimpl.UnsafeEnabled {
  113. mi := &file_proxy_vmess_inbound_config_proto_msgTypes[2]
  114. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  115. ms.StoreMessageInfo(mi)
  116. }
  117. }
  118. func (x *Config) String() string {
  119. return protoimpl.X.MessageStringOf(x)
  120. }
  121. func (*Config) ProtoMessage() {}
  122. func (x *Config) ProtoReflect() protoreflect.Message {
  123. mi := &file_proxy_vmess_inbound_config_proto_msgTypes[2]
  124. if protoimpl.UnsafeEnabled && x != nil {
  125. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  126. if ms.LoadMessageInfo() == nil {
  127. ms.StoreMessageInfo(mi)
  128. }
  129. return ms
  130. }
  131. return mi.MessageOf(x)
  132. }
  133. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  134. func (*Config) Descriptor() ([]byte, []int) {
  135. return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{2}
  136. }
  137. func (x *Config) GetUser() []*protocol.User {
  138. if x != nil {
  139. return x.User
  140. }
  141. return nil
  142. }
  143. func (x *Config) GetDefault() *DefaultConfig {
  144. if x != nil {
  145. return x.Default
  146. }
  147. return nil
  148. }
  149. func (x *Config) GetDetour() *DetourConfig {
  150. if x != nil {
  151. return x.Detour
  152. }
  153. return nil
  154. }
  155. func (x *Config) GetSecureEncryptionOnly() bool {
  156. if x != nil {
  157. return x.SecureEncryptionOnly
  158. }
  159. return false
  160. }
  161. type SimplifiedConfig struct {
  162. state protoimpl.MessageState
  163. sizeCache protoimpl.SizeCache
  164. unknownFields protoimpl.UnknownFields
  165. Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
  166. }
  167. func (x *SimplifiedConfig) Reset() {
  168. *x = SimplifiedConfig{}
  169. if protoimpl.UnsafeEnabled {
  170. mi := &file_proxy_vmess_inbound_config_proto_msgTypes[3]
  171. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  172. ms.StoreMessageInfo(mi)
  173. }
  174. }
  175. func (x *SimplifiedConfig) String() string {
  176. return protoimpl.X.MessageStringOf(x)
  177. }
  178. func (*SimplifiedConfig) ProtoMessage() {}
  179. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  180. mi := &file_proxy_vmess_inbound_config_proto_msgTypes[3]
  181. if protoimpl.UnsafeEnabled && x != nil {
  182. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  183. if ms.LoadMessageInfo() == nil {
  184. ms.StoreMessageInfo(mi)
  185. }
  186. return ms
  187. }
  188. return mi.MessageOf(x)
  189. }
  190. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  191. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  192. return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{3}
  193. }
  194. func (x *SimplifiedConfig) GetUsers() []string {
  195. if x != nil {
  196. return x.Users
  197. }
  198. return nil
  199. }
  200. var File_proxy_vmess_inbound_config_proto protoreflect.FileDescriptor
  201. var file_proxy_vmess_inbound_config_proto_rawDesc = []byte{
  202. 0x0a, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e,
  203. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
  204. 0x74, 0x6f, 0x12, 0x1e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70,
  205. 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75,
  206. 0x6e, 0x64, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  207. 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20,
  208. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f,
  209. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  210. 0x22, 0x1e, 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  211. 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f,
  212. 0x22, 0x40, 0x0a, 0x0d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  213. 0x67, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
  214. 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05,
  215. 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65, 0x76,
  216. 0x65, 0x6c, 0x22, 0x83, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a,
  217. 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32,
  218. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
  219. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75,
  220. 0x73, 0x65, 0x72, 0x12, 0x47, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x02,
  221. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72,
  222. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e,
  223. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e,
  224. 0x66, 0x69, 0x67, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x44, 0x0a, 0x06,
  225. 0x64, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x76,
  226. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
  227. 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65,
  228. 0x74, 0x6f, 0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x64, 0x65, 0x74, 0x6f,
  229. 0x75, 0x72, 0x12, 0x34, 0x0a, 0x16, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x65, 0x6e, 0x63,
  230. 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01,
  231. 0x28, 0x08, 0x52, 0x14, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70,
  232. 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x6e, 0x6c, 0x79, 0x22, 0x42, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70,
  233. 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05,
  234. 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x75, 0x73, 0x65,
  235. 0x72, 0x73, 0x3a, 0x18, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e,
  236. 0x64, 0x82, 0xb5, 0x18, 0x07, 0x12, 0x05, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x42, 0x7b, 0x0a, 0x22,
  237. 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70,
  238. 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75,
  239. 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  240. 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72,
  241. 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73,
  242. 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1e, 0x56, 0x32, 0x52, 0x61, 0x79,
  243. 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73,
  244. 0x73, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  245. 0x33,
  246. }
  247. var (
  248. file_proxy_vmess_inbound_config_proto_rawDescOnce sync.Once
  249. file_proxy_vmess_inbound_config_proto_rawDescData = file_proxy_vmess_inbound_config_proto_rawDesc
  250. )
  251. func file_proxy_vmess_inbound_config_proto_rawDescGZIP() []byte {
  252. file_proxy_vmess_inbound_config_proto_rawDescOnce.Do(func() {
  253. file_proxy_vmess_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_inbound_config_proto_rawDescData)
  254. })
  255. return file_proxy_vmess_inbound_config_proto_rawDescData
  256. }
  257. var file_proxy_vmess_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  258. var file_proxy_vmess_inbound_config_proto_goTypes = []interface{}{
  259. (*DetourConfig)(nil), // 0: v2ray.core.proxy.vmess.inbound.DetourConfig
  260. (*DefaultConfig)(nil), // 1: v2ray.core.proxy.vmess.inbound.DefaultConfig
  261. (*Config)(nil), // 2: v2ray.core.proxy.vmess.inbound.Config
  262. (*SimplifiedConfig)(nil), // 3: v2ray.core.proxy.vmess.inbound.SimplifiedConfig
  263. (*protocol.User)(nil), // 4: v2ray.core.common.protocol.User
  264. }
  265. var file_proxy_vmess_inbound_config_proto_depIdxs = []int32{
  266. 4, // 0: v2ray.core.proxy.vmess.inbound.Config.user:type_name -> v2ray.core.common.protocol.User
  267. 1, // 1: v2ray.core.proxy.vmess.inbound.Config.default:type_name -> v2ray.core.proxy.vmess.inbound.DefaultConfig
  268. 0, // 2: v2ray.core.proxy.vmess.inbound.Config.detour:type_name -> v2ray.core.proxy.vmess.inbound.DetourConfig
  269. 3, // [3:3] is the sub-list for method output_type
  270. 3, // [3:3] is the sub-list for method input_type
  271. 3, // [3:3] is the sub-list for extension type_name
  272. 3, // [3:3] is the sub-list for extension extendee
  273. 0, // [0:3] is the sub-list for field type_name
  274. }
  275. func init() { file_proxy_vmess_inbound_config_proto_init() }
  276. func file_proxy_vmess_inbound_config_proto_init() {
  277. if File_proxy_vmess_inbound_config_proto != nil {
  278. return
  279. }
  280. if !protoimpl.UnsafeEnabled {
  281. file_proxy_vmess_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  282. switch v := v.(*DetourConfig); i {
  283. case 0:
  284. return &v.state
  285. case 1:
  286. return &v.sizeCache
  287. case 2:
  288. return &v.unknownFields
  289. default:
  290. return nil
  291. }
  292. }
  293. file_proxy_vmess_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  294. switch v := v.(*DefaultConfig); i {
  295. case 0:
  296. return &v.state
  297. case 1:
  298. return &v.sizeCache
  299. case 2:
  300. return &v.unknownFields
  301. default:
  302. return nil
  303. }
  304. }
  305. file_proxy_vmess_inbound_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  306. switch v := v.(*Config); i {
  307. case 0:
  308. return &v.state
  309. case 1:
  310. return &v.sizeCache
  311. case 2:
  312. return &v.unknownFields
  313. default:
  314. return nil
  315. }
  316. }
  317. file_proxy_vmess_inbound_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  318. switch v := v.(*SimplifiedConfig); i {
  319. case 0:
  320. return &v.state
  321. case 1:
  322. return &v.sizeCache
  323. case 2:
  324. return &v.unknownFields
  325. default:
  326. return nil
  327. }
  328. }
  329. }
  330. type x struct{}
  331. out := protoimpl.TypeBuilder{
  332. File: protoimpl.DescBuilder{
  333. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  334. RawDescriptor: file_proxy_vmess_inbound_config_proto_rawDesc,
  335. NumEnums: 0,
  336. NumMessages: 4,
  337. NumExtensions: 0,
  338. NumServices: 0,
  339. },
  340. GoTypes: file_proxy_vmess_inbound_config_proto_goTypes,
  341. DependencyIndexes: file_proxy_vmess_inbound_config_proto_depIdxs,
  342. MessageInfos: file_proxy_vmess_inbound_config_proto_msgTypes,
  343. }.Build()
  344. File_proxy_vmess_inbound_config_proto = out.File
  345. file_proxy_vmess_inbound_config_proto_rawDesc = nil
  346. file_proxy_vmess_inbound_config_proto_goTypes = nil
  347. file_proxy_vmess_inbound_config_proto_depIdxs = nil
  348. }