config.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. package inbound
  2. import (
  3. proto "github.com/golang/protobuf/proto"
  4. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  5. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  6. reflect "reflect"
  7. sync "sync"
  8. protocol "v2ray.com/core/common/protocol"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. // This is a compile-time assertion that a sufficiently up-to-date version
  17. // of the legacy proto package is being used.
  18. const _ = proto.ProtoPackageIsVersion4
  19. type DetourConfig struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. To string `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
  24. }
  25. func (x *DetourConfig) Reset() {
  26. *x = DetourConfig{}
  27. if protoimpl.UnsafeEnabled {
  28. mi := &file_v2ray_com_core_proxy_vmess_inbound_config_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. }
  33. func (x *DetourConfig) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*DetourConfig) ProtoMessage() {}
  37. func (x *DetourConfig) ProtoReflect() protoreflect.Message {
  38. mi := &file_v2ray_com_core_proxy_vmess_inbound_config_proto_msgTypes[0]
  39. if protoimpl.UnsafeEnabled && x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use DetourConfig.ProtoReflect.Descriptor instead.
  49. func (*DetourConfig) Descriptor() ([]byte, []int) {
  50. return file_v2ray_com_core_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *DetourConfig) GetTo() string {
  53. if x != nil {
  54. return x.To
  55. }
  56. return ""
  57. }
  58. type DefaultConfig struct {
  59. state protoimpl.MessageState
  60. sizeCache protoimpl.SizeCache
  61. unknownFields protoimpl.UnknownFields
  62. AlterId uint32 `protobuf:"varint,1,opt,name=alter_id,json=alterId,proto3" json:"alter_id,omitempty"`
  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_v2ray_com_core_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_v2ray_com_core_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_v2ray_com_core_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{1}
  91. }
  92. func (x *DefaultConfig) GetAlterId() uint32 {
  93. if x != nil {
  94. return x.AlterId
  95. }
  96. return 0
  97. }
  98. func (x *DefaultConfig) GetLevel() uint32 {
  99. if x != nil {
  100. return x.Level
  101. }
  102. return 0
  103. }
  104. type Config struct {
  105. state protoimpl.MessageState
  106. sizeCache protoimpl.SizeCache
  107. unknownFields protoimpl.UnknownFields
  108. User []*protocol.User `protobuf:"bytes,1,rep,name=user,proto3" json:"user,omitempty"`
  109. Default *DefaultConfig `protobuf:"bytes,2,opt,name=default,proto3" json:"default,omitempty"`
  110. Detour *DetourConfig `protobuf:"bytes,3,opt,name=detour,proto3" json:"detour,omitempty"`
  111. SecureEncryptionOnly bool `protobuf:"varint,4,opt,name=secure_encryption_only,json=secureEncryptionOnly,proto3" json:"secure_encryption_only,omitempty"`
  112. }
  113. func (x *Config) Reset() {
  114. *x = Config{}
  115. if protoimpl.UnsafeEnabled {
  116. mi := &file_v2ray_com_core_proxy_vmess_inbound_config_proto_msgTypes[2]
  117. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  118. ms.StoreMessageInfo(mi)
  119. }
  120. }
  121. func (x *Config) String() string {
  122. return protoimpl.X.MessageStringOf(x)
  123. }
  124. func (*Config) ProtoMessage() {}
  125. func (x *Config) ProtoReflect() protoreflect.Message {
  126. mi := &file_v2ray_com_core_proxy_vmess_inbound_config_proto_msgTypes[2]
  127. if protoimpl.UnsafeEnabled && x != nil {
  128. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  129. if ms.LoadMessageInfo() == nil {
  130. ms.StoreMessageInfo(mi)
  131. }
  132. return ms
  133. }
  134. return mi.MessageOf(x)
  135. }
  136. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  137. func (*Config) Descriptor() ([]byte, []int) {
  138. return file_v2ray_com_core_proxy_vmess_inbound_config_proto_rawDescGZIP(), []int{2}
  139. }
  140. func (x *Config) GetUser() []*protocol.User {
  141. if x != nil {
  142. return x.User
  143. }
  144. return nil
  145. }
  146. func (x *Config) GetDefault() *DefaultConfig {
  147. if x != nil {
  148. return x.Default
  149. }
  150. return nil
  151. }
  152. func (x *Config) GetDetour() *DetourConfig {
  153. if x != nil {
  154. return x.Detour
  155. }
  156. return nil
  157. }
  158. func (x *Config) GetSecureEncryptionOnly() bool {
  159. if x != nil {
  160. return x.SecureEncryptionOnly
  161. }
  162. return false
  163. }
  164. var File_v2ray_com_core_proxy_vmess_inbound_config_proto protoreflect.FileDescriptor
  165. var file_v2ray_com_core_proxy_vmess_inbound_config_proto_rawDesc = []byte{
  166. 0x0a, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65,
  167. 0x2f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 0x62,
  168. 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  169. 0x6f, 0x12, 0x1e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72,
  170. 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e,
  171. 0x64, 0x1a, 0x29, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72,
  172. 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
  173. 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1e, 0x0a, 0x0c,
  174. 0x44, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e, 0x0a, 0x02,
  175. 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x22, 0x40, 0x0a, 0x0d,
  176. 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x19, 0x0a,
  177. 0x08, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
  178. 0x07, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65,
  179. 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x22, 0x83,
  180. 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x04, 0x75, 0x73, 0x65,
  181. 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  182. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  183. 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12,
  184. 0x47, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  185. 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72,
  186. 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e,
  187. 0x64, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52,
  188. 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x44, 0x0a, 0x06, 0x64, 0x65, 0x74, 0x6f,
  189. 0x75, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79,
  190. 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73,
  191. 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65, 0x74, 0x6f, 0x75, 0x72,
  192. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x64, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x12, 0x34,
  193. 0x0a, 0x16, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74,
  194. 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14,
  195. 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e,
  196. 0x4f, 0x6e, 0x6c, 0x79, 0x42, 0x50, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61,
  197. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65,
  198. 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x07, 0x69, 0x6e,
  199. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0xaa, 0x02, 0x1e, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  200. 0x72, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x49,
  201. 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  202. }
  203. var (
  204. file_v2ray_com_core_proxy_vmess_inbound_config_proto_rawDescOnce sync.Once
  205. file_v2ray_com_core_proxy_vmess_inbound_config_proto_rawDescData = file_v2ray_com_core_proxy_vmess_inbound_config_proto_rawDesc
  206. )
  207. func file_v2ray_com_core_proxy_vmess_inbound_config_proto_rawDescGZIP() []byte {
  208. file_v2ray_com_core_proxy_vmess_inbound_config_proto_rawDescOnce.Do(func() {
  209. file_v2ray_com_core_proxy_vmess_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_v2ray_com_core_proxy_vmess_inbound_config_proto_rawDescData)
  210. })
  211. return file_v2ray_com_core_proxy_vmess_inbound_config_proto_rawDescData
  212. }
  213. var file_v2ray_com_core_proxy_vmess_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  214. var file_v2ray_com_core_proxy_vmess_inbound_config_proto_goTypes = []interface{}{
  215. (*DetourConfig)(nil), // 0: v2ray.core.proxy.vmess.inbound.DetourConfig
  216. (*DefaultConfig)(nil), // 1: v2ray.core.proxy.vmess.inbound.DefaultConfig
  217. (*Config)(nil), // 2: v2ray.core.proxy.vmess.inbound.Config
  218. (*protocol.User)(nil), // 3: v2ray.core.common.protocol.User
  219. }
  220. var file_v2ray_com_core_proxy_vmess_inbound_config_proto_depIdxs = []int32{
  221. 3, // 0: v2ray.core.proxy.vmess.inbound.Config.user:type_name -> v2ray.core.common.protocol.User
  222. 1, // 1: v2ray.core.proxy.vmess.inbound.Config.default:type_name -> v2ray.core.proxy.vmess.inbound.DefaultConfig
  223. 0, // 2: v2ray.core.proxy.vmess.inbound.Config.detour:type_name -> v2ray.core.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_v2ray_com_core_proxy_vmess_inbound_config_proto_init() }
  231. func file_v2ray_com_core_proxy_vmess_inbound_config_proto_init() {
  232. if File_v2ray_com_core_proxy_vmess_inbound_config_proto != nil {
  233. return
  234. }
  235. if !protoimpl.UnsafeEnabled {
  236. file_v2ray_com_core_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_v2ray_com_core_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_v2ray_com_core_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_v2ray_com_core_proxy_vmess_inbound_config_proto_rawDesc,
  278. NumEnums: 0,
  279. NumMessages: 3,
  280. NumExtensions: 0,
  281. NumServices: 0,
  282. },
  283. GoTypes: file_v2ray_com_core_proxy_vmess_inbound_config_proto_goTypes,
  284. DependencyIndexes: file_v2ray_com_core_proxy_vmess_inbound_config_proto_depIdxs,
  285. MessageInfos: file_v2ray_com_core_proxy_vmess_inbound_config_proto_msgTypes,
  286. }.Build()
  287. File_v2ray_com_core_proxy_vmess_inbound_config_proto = out.File
  288. file_v2ray_com_core_proxy_vmess_inbound_config_proto_rawDesc = nil
  289. file_v2ray_com_core_proxy_vmess_inbound_config_proto_goTypes = nil
  290. file_v2ray_com_core_proxy_vmess_inbound_config_proto_depIdxs = nil
  291. }