config.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.1
  4. // protoc v5.27.0
  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. Level uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
  64. }
  65. func (x *DefaultConfig) Reset() {
  66. *x = DefaultConfig{}
  67. if protoimpl.UnsafeEnabled {
  68. mi := &file_proxy_vmess_inbound_config_proto_msgTypes[1]
  69. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  70. ms.StoreMessageInfo(mi)
  71. }
  72. }
  73. func (x *DefaultConfig) String() string {
  74. return protoimpl.X.MessageStringOf(x)
  75. }
  76. func (*DefaultConfig) ProtoMessage() {}
  77. func (x *DefaultConfig) ProtoReflect() protoreflect.Message {
  78. mi := &file_proxy_vmess_inbound_config_proto_msgTypes[1]
  79. if protoimpl.UnsafeEnabled && x != nil {
  80. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  81. if ms.LoadMessageInfo() == nil {
  82. ms.StoreMessageInfo(mi)
  83. }
  84. return ms
  85. }
  86. return mi.MessageOf(x)
  87. }
  88. // Deprecated: Use DefaultConfig.ProtoReflect.Descriptor instead.
  89. func (*DefaultConfig) Descriptor() ([]byte, []int) {
  90. return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{1}
  91. }
  92. func (x *DefaultConfig) GetLevel() uint32 {
  93. if x != nil {
  94. return x.Level
  95. }
  96. return 0
  97. }
  98. type Config struct {
  99. state protoimpl.MessageState
  100. sizeCache protoimpl.SizeCache
  101. unknownFields protoimpl.UnknownFields
  102. User []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"`
  103. Default *DefaultConfig `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"`
  104. Detour *DetourConfig `protobuf:"bytes,3,opt,name=detour,proto3" json:"detour,omitempty"` // 4 is for legacy setting
  105. }
  106. func (x *Config) Reset() {
  107. *x = Config{}
  108. if protoimpl.UnsafeEnabled {
  109. mi := &file_proxy_vmess_inbound_config_proto_msgTypes[2]
  110. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  111. ms.StoreMessageInfo(mi)
  112. }
  113. }
  114. func (x *Config) String() string {
  115. return protoimpl.X.MessageStringOf(x)
  116. }
  117. func (*Config) ProtoMessage() {}
  118. func (x *Config) ProtoReflect() protoreflect.Message {
  119. mi := &file_proxy_vmess_inbound_config_proto_msgTypes[2]
  120. if protoimpl.UnsafeEnabled && x != nil {
  121. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  122. if ms.LoadMessageInfo() == nil {
  123. ms.StoreMessageInfo(mi)
  124. }
  125. return ms
  126. }
  127. return mi.MessageOf(x)
  128. }
  129. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  130. func (*Config) Descriptor() ([]byte, []int) {
  131. return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{2}
  132. }
  133. func (x *Config) GetUser() []*protocol.User {
  134. if x != nil {
  135. return x.User
  136. }
  137. return nil
  138. }
  139. func (x *Config) GetDefault() *DefaultConfig {
  140. if x != nil {
  141. return x.Default
  142. }
  143. return nil
  144. }
  145. func (x *Config) GetDetour() *DetourConfig {
  146. if x != nil {
  147. return x.Detour
  148. }
  149. return nil
  150. }
  151. var File_proxy_vmess_inbound_config_proto protoreflect.FileDescriptor
  152. var file_proxy_vmess_inbound_config_proto_rawDesc = []byte{
  153. 0x0a, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e,
  154. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
  155. 0x74, 0x6f, 0x12, 0x18, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76,
  156. 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x1a, 0x1a, 0x63, 0x6f,
  157. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73,
  158. 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1e, 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x6f,
  159. 0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01,
  160. 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x22, 0x25, 0x0a, 0x0d, 0x44, 0x65, 0x66, 0x61,
  161. 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76,
  162. 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22,
  163. 0xbb, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2e, 0x0a, 0x04, 0x75, 0x73,
  164. 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e,
  165. 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e,
  166. 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x07, 0x64, 0x65,
  167. 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x78, 0x72,
  168. 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69,
  169. 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f,
  170. 0x6e, 0x66, 0x69, 0x67, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x3e, 0x0a,
  171. 0x06, 0x64, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e,
  172. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73,
  173. 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x43,
  174. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x64, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x42, 0x6a, 0x0a,
  175. 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e,
  176. 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01, 0x5a,
  177. 0x2d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73,
  178. 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79,
  179. 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02,
  180. 0x18, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73,
  181. 0x73, 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  182. 0x33,
  183. }
  184. var (
  185. file_proxy_vmess_inbound_config_proto_rawDescOnce sync.Once
  186. file_proxy_vmess_inbound_config_proto_rawDescData = file_proxy_vmess_inbound_config_proto_rawDesc
  187. )
  188. func file_proxy_vmess_inbound_config_proto_rawDescGZIP() []byte {
  189. file_proxy_vmess_inbound_config_proto_rawDescOnce.Do(func() {
  190. file_proxy_vmess_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_inbound_config_proto_rawDescData)
  191. })
  192. return file_proxy_vmess_inbound_config_proto_rawDescData
  193. }
  194. var file_proxy_vmess_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  195. var file_proxy_vmess_inbound_config_proto_goTypes = []interface{}{
  196. (*DetourConfig)(nil), // 0: xray.proxy.vmess.inbound.DetourConfig
  197. (*DefaultConfig)(nil), // 1: xray.proxy.vmess.inbound.DefaultConfig
  198. (*Config)(nil), // 2: xray.proxy.vmess.inbound.Config
  199. (*protocol.User)(nil), // 3: xray.common.protocol.User
  200. }
  201. var file_proxy_vmess_inbound_config_proto_depIdxs = []int32{
  202. 3, // 0: xray.proxy.vmess.inbound.Config.user:type_name -> xray.common.protocol.User
  203. 1, // 1: xray.proxy.vmess.inbound.Config.default:type_name -> xray.proxy.vmess.inbound.DefaultConfig
  204. 0, // 2: xray.proxy.vmess.inbound.Config.detour:type_name -> xray.proxy.vmess.inbound.DetourConfig
  205. 3, // [3:3] is the sub-list for method output_type
  206. 3, // [3:3] is the sub-list for method input_type
  207. 3, // [3:3] is the sub-list for extension type_name
  208. 3, // [3:3] is the sub-list for extension extendee
  209. 0, // [0:3] is the sub-list for field type_name
  210. }
  211. func init() { file_proxy_vmess_inbound_config_proto_init() }
  212. func file_proxy_vmess_inbound_config_proto_init() {
  213. if File_proxy_vmess_inbound_config_proto != nil {
  214. return
  215. }
  216. if !protoimpl.UnsafeEnabled {
  217. file_proxy_vmess_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  218. switch v := v.(*DetourConfig); i {
  219. case 0:
  220. return &v.state
  221. case 1:
  222. return &v.sizeCache
  223. case 2:
  224. return &v.unknownFields
  225. default:
  226. return nil
  227. }
  228. }
  229. file_proxy_vmess_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  230. switch v := v.(*DefaultConfig); i {
  231. case 0:
  232. return &v.state
  233. case 1:
  234. return &v.sizeCache
  235. case 2:
  236. return &v.unknownFields
  237. default:
  238. return nil
  239. }
  240. }
  241. file_proxy_vmess_inbound_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  242. switch v := v.(*Config); i {
  243. case 0:
  244. return &v.state
  245. case 1:
  246. return &v.sizeCache
  247. case 2:
  248. return &v.unknownFields
  249. default:
  250. return nil
  251. }
  252. }
  253. }
  254. type x struct{}
  255. out := protoimpl.TypeBuilder{
  256. File: protoimpl.DescBuilder{
  257. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  258. RawDescriptor: file_proxy_vmess_inbound_config_proto_rawDesc,
  259. NumEnums: 0,
  260. NumMessages: 3,
  261. NumExtensions: 0,
  262. NumServices: 0,
  263. },
  264. GoTypes: file_proxy_vmess_inbound_config_proto_goTypes,
  265. DependencyIndexes: file_proxy_vmess_inbound_config_proto_depIdxs,
  266. MessageInfos: file_proxy_vmess_inbound_config_proto_msgTypes,
  267. }.Build()
  268. File_proxy_vmess_inbound_config_proto = out.File
  269. file_proxy_vmess_inbound_config_proto_rawDesc = nil
  270. file_proxy_vmess_inbound_config_proto_goTypes = nil
  271. file_proxy_vmess_inbound_config_proto_depIdxs = nil
  272. }