config.pb.go 9.5 KB

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