config.pb.go 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  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, 0x3e, 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, 0x14, 0x82, 0xb5, 0x18, 0x10, 0x0a, 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e,
  236. 0x64, 0x12, 0x05, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x42, 0x7b, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e,
  237. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79,
  238. 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01,
  239. 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66,
  240. 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35,
  241. 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 0x62,
  242. 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1e, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72,
  243. 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x49, 0x6e,
  244. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  245. }
  246. var (
  247. file_proxy_vmess_inbound_config_proto_rawDescOnce sync.Once
  248. file_proxy_vmess_inbound_config_proto_rawDescData = file_proxy_vmess_inbound_config_proto_rawDesc
  249. )
  250. func file_proxy_vmess_inbound_config_proto_rawDescGZIP() []byte {
  251. file_proxy_vmess_inbound_config_proto_rawDescOnce.Do(func() {
  252. file_proxy_vmess_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_inbound_config_proto_rawDescData)
  253. })
  254. return file_proxy_vmess_inbound_config_proto_rawDescData
  255. }
  256. var file_proxy_vmess_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  257. var file_proxy_vmess_inbound_config_proto_goTypes = []interface{}{
  258. (*DetourConfig)(nil), // 0: v2ray.core.proxy.vmess.inbound.DetourConfig
  259. (*DefaultConfig)(nil), // 1: v2ray.core.proxy.vmess.inbound.DefaultConfig
  260. (*Config)(nil), // 2: v2ray.core.proxy.vmess.inbound.Config
  261. (*SimplifiedConfig)(nil), // 3: v2ray.core.proxy.vmess.inbound.SimplifiedConfig
  262. (*protocol.User)(nil), // 4: v2ray.core.common.protocol.User
  263. }
  264. var file_proxy_vmess_inbound_config_proto_depIdxs = []int32{
  265. 4, // 0: v2ray.core.proxy.vmess.inbound.Config.user:type_name -> v2ray.core.common.protocol.User
  266. 1, // 1: v2ray.core.proxy.vmess.inbound.Config.default:type_name -> v2ray.core.proxy.vmess.inbound.DefaultConfig
  267. 0, // 2: v2ray.core.proxy.vmess.inbound.Config.detour:type_name -> v2ray.core.proxy.vmess.inbound.DetourConfig
  268. 3, // [3:3] is the sub-list for method output_type
  269. 3, // [3:3] is the sub-list for method input_type
  270. 3, // [3:3] is the sub-list for extension type_name
  271. 3, // [3:3] is the sub-list for extension extendee
  272. 0, // [0:3] is the sub-list for field type_name
  273. }
  274. func init() { file_proxy_vmess_inbound_config_proto_init() }
  275. func file_proxy_vmess_inbound_config_proto_init() {
  276. if File_proxy_vmess_inbound_config_proto != nil {
  277. return
  278. }
  279. if !protoimpl.UnsafeEnabled {
  280. file_proxy_vmess_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  281. switch v := v.(*DetourConfig); i {
  282. case 0:
  283. return &v.state
  284. case 1:
  285. return &v.sizeCache
  286. case 2:
  287. return &v.unknownFields
  288. default:
  289. return nil
  290. }
  291. }
  292. file_proxy_vmess_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  293. switch v := v.(*DefaultConfig); i {
  294. case 0:
  295. return &v.state
  296. case 1:
  297. return &v.sizeCache
  298. case 2:
  299. return &v.unknownFields
  300. default:
  301. return nil
  302. }
  303. }
  304. file_proxy_vmess_inbound_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  305. switch v := v.(*Config); i {
  306. case 0:
  307. return &v.state
  308. case 1:
  309. return &v.sizeCache
  310. case 2:
  311. return &v.unknownFields
  312. default:
  313. return nil
  314. }
  315. }
  316. file_proxy_vmess_inbound_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  317. switch v := v.(*SimplifiedConfig); i {
  318. case 0:
  319. return &v.state
  320. case 1:
  321. return &v.sizeCache
  322. case 2:
  323. return &v.unknownFields
  324. default:
  325. return nil
  326. }
  327. }
  328. }
  329. type x struct{}
  330. out := protoimpl.TypeBuilder{
  331. File: protoimpl.DescBuilder{
  332. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  333. RawDescriptor: file_proxy_vmess_inbound_config_proto_rawDesc,
  334. NumEnums: 0,
  335. NumMessages: 4,
  336. NumExtensions: 0,
  337. NumServices: 0,
  338. },
  339. GoTypes: file_proxy_vmess_inbound_config_proto_goTypes,
  340. DependencyIndexes: file_proxy_vmess_inbound_config_proto_depIdxs,
  341. MessageInfos: file_proxy_vmess_inbound_config_proto_msgTypes,
  342. }.Build()
  343. File_proxy_vmess_inbound_config_proto = out.File
  344. file_proxy_vmess_inbound_config_proto_rawDesc = nil
  345. file_proxy_vmess_inbound_config_proto_goTypes = nil
  346. file_proxy_vmess_inbound_config_proto_depIdxs = nil
  347. }