config.pb.go 12 KB

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