config.pb.go 12 KB

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