config.pb.go 13 KB

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