config.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.17.3
  5. // source: proxy/vmess/inbound/config.proto
  6. package inbound
  7. import (
  8. protocol "github.com/v2fly/v2ray-core/v4/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, 0x1e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70,
  170. 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75,
  171. 0x6e, 0x64, 0x1a, 0x1a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  172. 0x63, 0x6f, 0x6c, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x1e,
  173. 0x0a, 0x0c, 0x44, 0x65, 0x74, 0x6f, 0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x0e,
  174. 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x74, 0x6f, 0x22, 0x40,
  175. 0x0a, 0x0d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12,
  176. 0x19, 0x0a, 0x08, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
  177. 0x0d, 0x52, 0x07, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x6c, 0x65,
  178. 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c,
  179. 0x22, 0x83, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x34, 0x0a, 0x04, 0x75,
  180. 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x76, 0x32, 0x72, 0x61,
  181. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72,
  182. 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65,
  183. 0x72, 0x12, 0x47, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x02, 0x20, 0x01,
  184. 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  185. 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f,
  186. 0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69,
  187. 0x67, 0x52, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x44, 0x0a, 0x06, 0x64, 0x65,
  188. 0x74, 0x6f, 0x75, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x76, 0x32, 0x72,
  189. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76, 0x6d,
  190. 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x2e, 0x44, 0x65, 0x74, 0x6f,
  191. 0x75, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x64, 0x65, 0x74, 0x6f, 0x75, 0x72,
  192. 0x12, 0x34, 0x0a, 0x16, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x65, 0x6e, 0x63, 0x72, 0x79,
  193. 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08,
  194. 0x52, 0x14, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69,
  195. 0x6f, 0x6e, 0x4f, 0x6e, 0x6c, 0x79, 0x42, 0x7b, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32,
  196. 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x76,
  197. 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x32,
  198. 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79,
  199. 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x70,
  200. 0x72, 0x6f, 0x78, 0x79, 0x2f, 0x76, 0x6d, 0x65, 0x73, 0x73, 0x2f, 0x69, 0x6e, 0x62, 0x6f, 0x75,
  201. 0x6e, 0x64, 0xaa, 0x02, 0x1e, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e,
  202. 0x50, 0x72, 0x6f, 0x78, 0x79, 0x2e, 0x56, 0x6d, 0x65, 0x73, 0x73, 0x2e, 0x49, 0x6e, 0x62, 0x6f,
  203. 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  204. }
  205. var (
  206. file_proxy_vmess_inbound_config_proto_rawDescOnce sync.Once
  207. file_proxy_vmess_inbound_config_proto_rawDescData = file_proxy_vmess_inbound_config_proto_rawDesc
  208. )
  209. func file_proxy_vmess_inbound_config_proto_rawDescGZIP() []byte {
  210. file_proxy_vmess_inbound_config_proto_rawDescOnce.Do(func() {
  211. file_proxy_vmess_inbound_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_proxy_vmess_inbound_config_proto_rawDescData)
  212. })
  213. return file_proxy_vmess_inbound_config_proto_rawDescData
  214. }
  215. var file_proxy_vmess_inbound_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  216. var file_proxy_vmess_inbound_config_proto_goTypes = []interface{}{
  217. (*DetourConfig)(nil), // 0: v2ray.core.proxy.vmess.inbound.DetourConfig
  218. (*DefaultConfig)(nil), // 1: v2ray.core.proxy.vmess.inbound.DefaultConfig
  219. (*Config)(nil), // 2: v2ray.core.proxy.vmess.inbound.Config
  220. (*protocol.User)(nil), // 3: v2ray.core.common.protocol.User
  221. }
  222. var file_proxy_vmess_inbound_config_proto_depIdxs = []int32{
  223. 3, // 0: v2ray.core.proxy.vmess.inbound.Config.user:type_name -> v2ray.core.common.protocol.User
  224. 1, // 1: v2ray.core.proxy.vmess.inbound.Config.default:type_name -> v2ray.core.proxy.vmess.inbound.DefaultConfig
  225. 0, // 2: v2ray.core.proxy.vmess.inbound.Config.detour:type_name -> v2ray.core.proxy.vmess.inbound.DetourConfig
  226. 3, // [3:3] is the sub-list for method output_type
  227. 3, // [3:3] is the sub-list for method input_type
  228. 3, // [3:3] is the sub-list for extension type_name
  229. 3, // [3:3] is the sub-list for extension extendee
  230. 0, // [0:3] is the sub-list for field type_name
  231. }
  232. func init() { file_proxy_vmess_inbound_config_proto_init() }
  233. func file_proxy_vmess_inbound_config_proto_init() {
  234. if File_proxy_vmess_inbound_config_proto != nil {
  235. return
  236. }
  237. if !protoimpl.UnsafeEnabled {
  238. file_proxy_vmess_inbound_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  239. switch v := v.(*DetourConfig); i {
  240. case 0:
  241. return &v.state
  242. case 1:
  243. return &v.sizeCache
  244. case 2:
  245. return &v.unknownFields
  246. default:
  247. return nil
  248. }
  249. }
  250. file_proxy_vmess_inbound_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  251. switch v := v.(*DefaultConfig); i {
  252. case 0:
  253. return &v.state
  254. case 1:
  255. return &v.sizeCache
  256. case 2:
  257. return &v.unknownFields
  258. default:
  259. return nil
  260. }
  261. }
  262. file_proxy_vmess_inbound_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  263. switch v := v.(*Config); i {
  264. case 0:
  265. return &v.state
  266. case 1:
  267. return &v.sizeCache
  268. case 2:
  269. return &v.unknownFields
  270. default:
  271. return nil
  272. }
  273. }
  274. }
  275. type x struct{}
  276. out := protoimpl.TypeBuilder{
  277. File: protoimpl.DescBuilder{
  278. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  279. RawDescriptor: file_proxy_vmess_inbound_config_proto_rawDesc,
  280. NumEnums: 0,
  281. NumMessages: 3,
  282. NumExtensions: 0,
  283. NumServices: 0,
  284. },
  285. GoTypes: file_proxy_vmess_inbound_config_proto_goTypes,
  286. DependencyIndexes: file_proxy_vmess_inbound_config_proto_depIdxs,
  287. MessageInfos: file_proxy_vmess_inbound_config_proto_msgTypes,
  288. }.Build()
  289. File_proxy_vmess_inbound_config_proto = out.File
  290. file_proxy_vmess_inbound_config_proto_rawDesc = nil
  291. file_proxy_vmess_inbound_config_proto_goTypes = nil
  292. file_proxy_vmess_inbound_config_proto_depIdxs = nil
  293. }