config.pb.go 12 KB

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