config.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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 Fallback struct {
  17. state protoimpl.MessageState
  18. sizeCache protoimpl.SizeCache
  19. unknownFields protoimpl.UnknownFields
  20. Alpn string `protobuf:"bytes,1,opt,name=alpn,proto3" json:"alpn,omitempty"`
  21. Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
  22. Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
  23. Dest string `protobuf:"bytes,4,opt,name=dest,proto3" json:"dest,omitempty"`
  24. Xver uint64 `protobuf:"varint,5,opt,name=xver,proto3" json:"xver,omitempty"`
  25. }
  26. func (x *Fallback) Reset() {
  27. *x = Fallback{}
  28. if protoimpl.UnsafeEnabled {
  29. mi := &file_proxy_vless_inbound_config_proto_msgTypes[0]
  30. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  31. ms.StoreMessageInfo(mi)
  32. }
  33. }
  34. func (x *Fallback) String() string {
  35. return protoimpl.X.MessageStringOf(x)
  36. }
  37. func (*Fallback) ProtoMessage() {}
  38. func (x *Fallback) ProtoReflect() protoreflect.Message {
  39. mi := &file_proxy_vless_inbound_config_proto_msgTypes[0]
  40. if protoimpl.UnsafeEnabled && x != nil {
  41. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  42. if ms.LoadMessageInfo() == nil {
  43. ms.StoreMessageInfo(mi)
  44. }
  45. return ms
  46. }
  47. return mi.MessageOf(x)
  48. }
  49. // Deprecated: Use Fallback.ProtoReflect.Descriptor instead.
  50. func (*Fallback) Descriptor() ([]byte, []int) {
  51. return file_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{0}
  52. }
  53. func (x *Fallback) GetAlpn() string {
  54. if x != nil {
  55. return x.Alpn
  56. }
  57. return ""
  58. }
  59. func (x *Fallback) GetPath() string {
  60. if x != nil {
  61. return x.Path
  62. }
  63. return ""
  64. }
  65. func (x *Fallback) GetType() string {
  66. if x != nil {
  67. return x.Type
  68. }
  69. return ""
  70. }
  71. func (x *Fallback) GetDest() string {
  72. if x != nil {
  73. return x.Dest
  74. }
  75. return ""
  76. }
  77. func (x *Fallback) GetXver() uint64 {
  78. if x != nil {
  79. return x.Xver
  80. }
  81. return 0
  82. }
  83. type Config struct {
  84. state protoimpl.MessageState
  85. sizeCache protoimpl.SizeCache
  86. unknownFields protoimpl.UnknownFields
  87. Clients []*protocol.User `protobuf:"bytes,1,rep,name=clients,proto3" json:"clients,omitempty"`
  88. // Decryption settings. Only applies to server side, and only accepts "none"
  89. // for now.
  90. Decryption string `protobuf:"bytes,2,opt,name=decryption,proto3" json:"decryption,omitempty"`
  91. Fallbacks []*Fallback `protobuf:"bytes,3,rep,name=fallbacks,proto3" json:"fallbacks,omitempty"`
  92. }
  93. func (x *Config) Reset() {
  94. *x = Config{}
  95. if protoimpl.UnsafeEnabled {
  96. mi := &file_proxy_vless_inbound_config_proto_msgTypes[1]
  97. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  98. ms.StoreMessageInfo(mi)
  99. }
  100. }
  101. func (x *Config) String() string {
  102. return protoimpl.X.MessageStringOf(x)
  103. }
  104. func (*Config) ProtoMessage() {}
  105. func (x *Config) ProtoReflect() protoreflect.Message {
  106. mi := &file_proxy_vless_inbound_config_proto_msgTypes[1]
  107. if protoimpl.UnsafeEnabled && x != nil {
  108. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  109. if ms.LoadMessageInfo() == nil {
  110. ms.StoreMessageInfo(mi)
  111. }
  112. return ms
  113. }
  114. return mi.MessageOf(x)
  115. }
  116. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  117. func (*Config) Descriptor() ([]byte, []int) {
  118. return file_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{1}
  119. }
  120. func (x *Config) GetClients() []*protocol.User {
  121. if x != nil {
  122. return x.Clients
  123. }
  124. return nil
  125. }
  126. func (x *Config) GetDecryption() string {
  127. if x != nil {
  128. return x.Decryption
  129. }
  130. return ""
  131. }
  132. func (x *Config) GetFallbacks() []*Fallback {
  133. if x != nil {
  134. return x.Fallbacks
  135. }
  136. return nil
  137. }
  138. type SimplifiedConfig struct {
  139. state protoimpl.MessageState
  140. sizeCache protoimpl.SizeCache
  141. unknownFields protoimpl.UnknownFields
  142. Users []string `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
  143. }
  144. func (x *SimplifiedConfig) Reset() {
  145. *x = SimplifiedConfig{}
  146. if protoimpl.UnsafeEnabled {
  147. mi := &file_proxy_vless_inbound_config_proto_msgTypes[2]
  148. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  149. ms.StoreMessageInfo(mi)
  150. }
  151. }
  152. func (x *SimplifiedConfig) String() string {
  153. return protoimpl.X.MessageStringOf(x)
  154. }
  155. func (*SimplifiedConfig) ProtoMessage() {}
  156. func (x *SimplifiedConfig) ProtoReflect() protoreflect.Message {
  157. mi := &file_proxy_vless_inbound_config_proto_msgTypes[2]
  158. if protoimpl.UnsafeEnabled && x != nil {
  159. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  160. if ms.LoadMessageInfo() == nil {
  161. ms.StoreMessageInfo(mi)
  162. }
  163. return ms
  164. }
  165. return mi.MessageOf(x)
  166. }
  167. // Deprecated: Use SimplifiedConfig.ProtoReflect.Descriptor instead.
  168. func (*SimplifiedConfig) Descriptor() ([]byte, []int) {
  169. return file_proxy_vless_inbound_config_proto_rawDescGZIP(), []int{2}
  170. }
  171. func (x *SimplifiedConfig) GetUsers() []string {
  172. if x != nil {
  173. return x.Users
  174. }
  175. return nil
  176. }
  177. var File_proxy_vless_inbound_config_proto protoreflect.FileDescriptor
  178. var file_proxy_vless_inbound_config_proto_rawDesc = []byte{
  179. 0x0a, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e,
  180. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
  181. 0x74, 0x6f, 0x12, 0x1e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70,
  182. 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75,
  183. 0x6e, 0x64, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  184. 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20,
  185. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78, 0x74, 0x2f,
  186. 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  187. 0x22, 0x6e, 0x0a, 0x08, 0x46, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x12, 0x0a, 0x04,
  188. 0x61, 0x6c, 0x70, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x6c, 0x70, 0x6e,
  189. 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04,
  190. 0x70, 0x61, 0x74, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
  191. 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x74,
  192. 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04,
  193. 0x78, 0x76, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x78, 0x76, 0x65, 0x72,
  194. 0x22, 0xac, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a, 0x0a, 0x07, 0x63,
  195. 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76,
  196. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
  197. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x07,
  198. 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x64, 0x65, 0x63, 0x72, 0x79,
  199. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x65, 0x63,
  200. 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a, 0x09, 0x66, 0x61, 0x6c, 0x6c, 0x62,
  201. 0x61, 0x63, 0x6b, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x76, 0x32, 0x72,
  202. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c,
  203. 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x46, 0x61, 0x6c, 0x6c,
  204. 0x62, 0x61, 0x63, 0x6b, 0x52, 0x09, 0x66, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x73, 0x22,
  205. 0x42, 0x0a, 0x10, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x69, 0x66, 0x69, 0x65, 0x64, 0x43, 0x6f, 0x6e,
  206. 0x66, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03,
  207. 0x28, 0x09, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x3a, 0x18, 0x82, 0xb5, 0x18, 0x09, 0x0a,
  208. 0x07, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x82, 0xb5, 0x18, 0x07, 0x12, 0x05, 0x76, 0x6c,
  209. 0x65, 0x73, 0x73, 0x42, 0x7b, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  210. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6c, 0x65, 0x73,
  211. 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x32, 0x67, 0x69, 0x74,
  212. 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32,
  213. 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x35, 0x2f, 0x70, 0x72, 0x6f, 0x78,
  214. 0x79, 0x2f, 0x76, 0x6c, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa,
  215. 0x02, 0x1e, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f,
  216. 0x78, 0x79, 0x2e, 0x56, 0x6c, 0x65, 0x73, 0x73, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64,
  217. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  218. }
  219. var (
  220. file_proxy_vless_inbound_config_proto_rawDescOnce sync.Once
  221. file_proxy_vless_inbound_config_proto_rawDescData = file_proxy_vless_inbound_config_proto_rawDesc
  222. )
  223. func file_proxy_vless_inbound_config_proto_rawDescGZIP() []byte {
  224. file_proxy_vless_inbound_config_proto_rawDescOnce.Do(func() {
  225. file_proxy_vless_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vless_inbound_config_proto_rawDescData)
  226. })
  227. return file_proxy_vless_inbound_config_proto_rawDescData
  228. }
  229. var file_proxy_vless_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  230. var file_proxy_vless_inbound_config_proto_goTypes = []interface{}{
  231. (*Fallback)(nil), // 0: v2ray.core.proxy.vless.inbound.Fallback
  232. (*Config)(nil), // 1: v2ray.core.proxy.vless.inbound.Config
  233. (*SimplifiedConfig)(nil), // 2: v2ray.core.proxy.vless.inbound.SimplifiedConfig
  234. (*protocol.User)(nil), // 3: v2ray.core.common.protocol.User
  235. }
  236. var file_proxy_vless_inbound_config_proto_depIdxs = []int32{
  237. 3, // 0: v2ray.core.proxy.vless.inbound.Config.clients:type_name -> v2ray.core.common.protocol.User
  238. 0, // 1: v2ray.core.proxy.vless.inbound.Config.fallbacks:type_name -> v2ray.core.proxy.vless.inbound.Fallback
  239. 2, // [2:2] is the sub-list for method output_type
  240. 2, // [2:2] is the sub-list for method input_type
  241. 2, // [2:2] is the sub-list for extension type_name
  242. 2, // [2:2] is the sub-list for extension extendee
  243. 0, // [0:2] is the sub-list for field type_name
  244. }
  245. func init() { file_proxy_vless_inbound_config_proto_init() }
  246. func file_proxy_vless_inbound_config_proto_init() {
  247. if File_proxy_vless_inbound_config_proto != nil {
  248. return
  249. }
  250. if !protoimpl.UnsafeEnabled {
  251. file_proxy_vless_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  252. switch v := v.(*Fallback); i {
  253. case 0:
  254. return &v.state
  255. case 1:
  256. return &v.sizeCache
  257. case 2:
  258. return &v.unknownFields
  259. default:
  260. return nil
  261. }
  262. }
  263. file_proxy_vless_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  264. switch v := v.(*Config); i {
  265. case 0:
  266. return &v.state
  267. case 1:
  268. return &v.sizeCache
  269. case 2:
  270. return &v.unknownFields
  271. default:
  272. return nil
  273. }
  274. }
  275. file_proxy_vless_inbound_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  276. switch v := v.(*SimplifiedConfig); i {
  277. case 0:
  278. return &v.state
  279. case 1:
  280. return &v.sizeCache
  281. case 2:
  282. return &v.unknownFields
  283. default:
  284. return nil
  285. }
  286. }
  287. }
  288. type x struct{}
  289. out := protoimpl.TypeBuilder{
  290. File: protoimpl.DescBuilder{
  291. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  292. RawDescriptor: file_proxy_vless_inbound_config_proto_rawDesc,
  293. NumEnums: 0,
  294. NumMessages: 3,
  295. NumExtensions: 0,
  296. NumServices: 0,
  297. },
  298. GoTypes: file_proxy_vless_inbound_config_proto_goTypes,
  299. DependencyIndexes: file_proxy_vless_inbound_config_proto_depIdxs,
  300. MessageInfos: file_proxy_vless_inbound_config_proto_msgTypes,
  301. }.Build()
  302. File_proxy_vless_inbound_config_proto = out.File
  303. file_proxy_vless_inbound_config_proto_rawDesc = nil
  304. file_proxy_vless_inbound_config_proto_goTypes = nil
  305. file_proxy_vless_inbound_config_proto_depIdxs = nil
  306. }