config.pb.go 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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. }
  101. func (x *Config) Reset() {
  102. *x = Config{}
  103. mi := &file_proxy_vmess_inbound_config_proto_msgTypes[2]
  104. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  105. ms.StoreMessageInfo(mi)
  106. }
  107. func (x *Config) String() string {
  108. return protoimpl.X.MessageStringOf(x)
  109. }
  110. func (*Config) ProtoMessage() {}
  111. func (x *Config) ProtoReflect() protoreflect.Message {
  112. mi := &file_proxy_vmess_inbound_config_proto_msgTypes[2]
  113. if x != nil {
  114. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  115. if ms.LoadMessageInfo() == nil {
  116. ms.StoreMessageInfo(mi)
  117. }
  118. return ms
  119. }
  120. return mi.MessageOf(x)
  121. }
  122. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  123. func (*Config) Descriptor() ([]byte, []int) {
  124. return file_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{2}
  125. }
  126. func (x *Config) GetUser() []*protocol.User {
  127. if x != nil {
  128. return x.User
  129. }
  130. return nil
  131. }
  132. func (x *Config) GetDefault() *DefaultConfig {
  133. if x != nil {
  134. return x.Default
  135. }
  136. return nil
  137. }
  138. var File_proxy_vmess_inbound_config_proto protoreflect.FileDescriptor
  139. var file_proxy_vmess_inbound_config_proto_rawDesc = []byte{
  140. 0x0a, 0x20, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e,
  141. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f,
  142. 0x74, 0x6f, 0x12, 0x18, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76,
  143. 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x1a, 0x1a, 0x63, 0x6f,
  144. 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73,
  145. 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1e, 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x6f,
  146. 0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01,
  147. 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x22, 0x25, 0x0a, 0x0d, 0x44, 0x65, 0x66, 0x61,
  148. 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76,
  149. 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22,
  150. 0x7b, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2e, 0x0a, 0x04, 0x75, 0x73, 0x65,
  151. 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x63,
  152. 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55,
  153. 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x07, 0x64, 0x65, 0x66,
  154. 0x61, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x78, 0x72, 0x61,
  155. 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e,
  156. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e,
  157. 0x66, 0x69, 0x67, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x6a, 0x0a, 0x1c,
  158. 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76,
  159. 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x2d,
  160. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f,
  161. 0x78, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f,
  162. 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x18,
  163. 0x58, 0x72, 0x61, 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73, 0x73,
  164. 0x2e, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  165. }
  166. var (
  167. file_proxy_vmess_inbound_config_proto_rawDescOnce sync.Once
  168. file_proxy_vmess_inbound_config_proto_rawDescData = file_proxy_vmess_inbound_config_proto_rawDesc
  169. )
  170. func file_proxy_vmess_inbound_config_proto_rawDescGZIP() []byte {
  171. file_proxy_vmess_inbound_config_proto_rawDescOnce.Do(func() {
  172. file_proxy_vmess_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_inbound_config_proto_rawDescData)
  173. })
  174. return file_proxy_vmess_inbound_config_proto_rawDescData
  175. }
  176. var file_proxy_vmess_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  177. var file_proxy_vmess_inbound_config_proto_goTypes = []any{
  178. (*DetourConfig)(nil), // 0: xray.proxy.vmess.inbound.DetourConfig
  179. (*DefaultConfig)(nil), // 1: xray.proxy.vmess.inbound.DefaultConfig
  180. (*Config)(nil), // 2: xray.proxy.vmess.inbound.Config
  181. (*protocol.User)(nil), // 3: xray.common.protocol.User
  182. }
  183. var file_proxy_vmess_inbound_config_proto_depIdxs = []int32{
  184. 3, // 0: xray.proxy.vmess.inbound.Config.user:type_name -> xray.common.protocol.User
  185. 1, // 1: xray.proxy.vmess.inbound.Config.default:type_name -> xray.proxy.vmess.inbound.DefaultConfig
  186. 2, // [2:2] is the sub-list for method output_type
  187. 2, // [2:2] is the sub-list for method input_type
  188. 2, // [2:2] is the sub-list for extension type_name
  189. 2, // [2:2] is the sub-list for extension extendee
  190. 0, // [0:2] is the sub-list for field type_name
  191. }
  192. func init() { file_proxy_vmess_inbound_config_proto_init() }
  193. func file_proxy_vmess_inbound_config_proto_init() {
  194. if File_proxy_vmess_inbound_config_proto != nil {
  195. return
  196. }
  197. type x struct{}
  198. out := protoimpl.TypeBuilder{
  199. File: protoimpl.DescBuilder{
  200. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  201. RawDescriptor: file_proxy_vmess_inbound_config_proto_rawDesc,
  202. NumEnums: 0,
  203. NumMessages: 3,
  204. NumExtensions: 0,
  205. NumServices: 0,
  206. },
  207. GoTypes: file_proxy_vmess_inbound_config_proto_goTypes,
  208. DependencyIndexes: file_proxy_vmess_inbound_config_proto_depIdxs,
  209. MessageInfos: file_proxy_vmess_inbound_config_proto_msgTypes,
  210. }.Build()
  211. File_proxy_vmess_inbound_config_proto = out.File
  212. file_proxy_vmess_inbound_config_proto_rawDesc = nil
  213. file_proxy_vmess_inbound_config_proto_goTypes = nil
  214. file_proxy_vmess_inbound_config_proto_depIdxs = nil
  215. }