config.pb.go 11 KB

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