config.pb.go 14 KB

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