config.pb.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. package log
  2. import (
  3. log "github.com/v2fly/v2ray-core/v5/common/log"
  4. _ "github.com/v2fly/v2ray-core/v5/common/protoext"
  5. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  6. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  7. reflect "reflect"
  8. sync "sync"
  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. type LogType int32
  17. const (
  18. LogType_None LogType = 0
  19. LogType_Console LogType = 1
  20. LogType_File LogType = 2
  21. LogType_Event LogType = 3
  22. )
  23. // Enum value maps for LogType.
  24. var (
  25. LogType_name = map[int32]string{
  26. 0: "None",
  27. 1: "Console",
  28. 2: "File",
  29. 3: "Event",
  30. }
  31. LogType_value = map[string]int32{
  32. "None": 0,
  33. "Console": 1,
  34. "File": 2,
  35. "Event": 3,
  36. }
  37. )
  38. func (x LogType) Enum() *LogType {
  39. p := new(LogType)
  40. *p = x
  41. return p
  42. }
  43. func (x LogType) String() string {
  44. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  45. }
  46. func (LogType) Descriptor() protoreflect.EnumDescriptor {
  47. return file_app_log_config_proto_enumTypes[0].Descriptor()
  48. }
  49. func (LogType) Type() protoreflect.EnumType {
  50. return &file_app_log_config_proto_enumTypes[0]
  51. }
  52. func (x LogType) Number() protoreflect.EnumNumber {
  53. return protoreflect.EnumNumber(x)
  54. }
  55. // Deprecated: Use LogType.Descriptor instead.
  56. func (LogType) EnumDescriptor() ([]byte, []int) {
  57. return file_app_log_config_proto_rawDescGZIP(), []int{0}
  58. }
  59. type LogSpecification struct {
  60. state protoimpl.MessageState
  61. sizeCache protoimpl.SizeCache
  62. unknownFields protoimpl.UnknownFields
  63. Type LogType `protobuf:"varint,1,opt,name=type,proto3,enum=v2ray.core.app.log.LogType" json:"type,omitempty"`
  64. Level log.Severity `protobuf:"varint,2,opt,name=level,proto3,enum=v2ray.core.common.log.Severity" json:"level,omitempty"`
  65. Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
  66. }
  67. func (x *LogSpecification) Reset() {
  68. *x = LogSpecification{}
  69. if protoimpl.UnsafeEnabled {
  70. mi := &file_app_log_config_proto_msgTypes[0]
  71. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  72. ms.StoreMessageInfo(mi)
  73. }
  74. }
  75. func (x *LogSpecification) String() string {
  76. return protoimpl.X.MessageStringOf(x)
  77. }
  78. func (*LogSpecification) ProtoMessage() {}
  79. func (x *LogSpecification) ProtoReflect() protoreflect.Message {
  80. mi := &file_app_log_config_proto_msgTypes[0]
  81. if protoimpl.UnsafeEnabled && x != nil {
  82. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83. if ms.LoadMessageInfo() == nil {
  84. ms.StoreMessageInfo(mi)
  85. }
  86. return ms
  87. }
  88. return mi.MessageOf(x)
  89. }
  90. // Deprecated: Use LogSpecification.ProtoReflect.Descriptor instead.
  91. func (*LogSpecification) Descriptor() ([]byte, []int) {
  92. return file_app_log_config_proto_rawDescGZIP(), []int{0}
  93. }
  94. func (x *LogSpecification) GetType() LogType {
  95. if x != nil {
  96. return x.Type
  97. }
  98. return LogType_None
  99. }
  100. func (x *LogSpecification) GetLevel() log.Severity {
  101. if x != nil {
  102. return x.Level
  103. }
  104. return log.Severity(0)
  105. }
  106. func (x *LogSpecification) GetPath() string {
  107. if x != nil {
  108. return x.Path
  109. }
  110. return ""
  111. }
  112. type Config struct {
  113. state protoimpl.MessageState
  114. sizeCache protoimpl.SizeCache
  115. unknownFields protoimpl.UnknownFields
  116. Error *LogSpecification `protobuf:"bytes,6,opt,name=error,proto3" json:"error,omitempty"`
  117. Access *LogSpecification `protobuf:"bytes,7,opt,name=access,proto3" json:"access,omitempty"`
  118. }
  119. func (x *Config) Reset() {
  120. *x = Config{}
  121. if protoimpl.UnsafeEnabled {
  122. mi := &file_app_log_config_proto_msgTypes[1]
  123. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  124. ms.StoreMessageInfo(mi)
  125. }
  126. }
  127. func (x *Config) String() string {
  128. return protoimpl.X.MessageStringOf(x)
  129. }
  130. func (*Config) ProtoMessage() {}
  131. func (x *Config) ProtoReflect() protoreflect.Message {
  132. mi := &file_app_log_config_proto_msgTypes[1]
  133. if protoimpl.UnsafeEnabled && x != nil {
  134. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  135. if ms.LoadMessageInfo() == nil {
  136. ms.StoreMessageInfo(mi)
  137. }
  138. return ms
  139. }
  140. return mi.MessageOf(x)
  141. }
  142. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  143. func (*Config) Descriptor() ([]byte, []int) {
  144. return file_app_log_config_proto_rawDescGZIP(), []int{1}
  145. }
  146. func (x *Config) GetError() *LogSpecification {
  147. if x != nil {
  148. return x.Error
  149. }
  150. return nil
  151. }
  152. func (x *Config) GetAccess() *LogSpecification {
  153. if x != nil {
  154. return x.Access
  155. }
  156. return nil
  157. }
  158. var File_app_log_config_proto protoreflect.FileDescriptor
  159. var file_app_log_config_proto_rawDesc = []byte{
  160. 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x6c, 0x6f, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  161. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  162. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x1a, 0x14, 0x63, 0x6f, 0x6d, 0x6d,
  163. 0x6f, 0x6e, 0x2f, 0x6c, 0x6f, 0x67, 0x2f, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  164. 0x1a, 0x20, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x65, 0x78,
  165. 0x74, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f,
  166. 0x74, 0x6f, 0x22, 0x8e, 0x01, 0x0a, 0x10, 0x4c, 0x6f, 0x67, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66,
  167. 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
  168. 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  169. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x54, 0x79,
  170. 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x35, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65,
  171. 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  172. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6c, 0x6f, 0x67, 0x2e,
  173. 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12,
  174. 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70,
  175. 0x61, 0x74, 0x68, 0x22, 0xb8, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a,
  176. 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e,
  177. 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c,
  178. 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
  179. 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x3c, 0x0a, 0x06, 0x61, 0x63,
  180. 0x63, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x76, 0x32, 0x72,
  181. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x2e,
  182. 0x4c, 0x6f, 0x67, 0x53, 0x70, 0x65, 0x63, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
  183. 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x3a, 0x16, 0x82, 0xb5, 0x18, 0x09, 0x0a, 0x07,
  184. 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x82, 0xb5, 0x18, 0x05, 0x12, 0x03, 0x6c, 0x6f, 0x67,
  185. 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x4a, 0x04, 0x08, 0x02, 0x10, 0x03, 0x4a, 0x04, 0x08, 0x03,
  186. 0x10, 0x04, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x2a, 0x35,
  187. 0x0a, 0x07, 0x4c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x6f, 0x6e,
  188. 0x65, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x10, 0x01,
  189. 0x12, 0x08, 0x0a, 0x04, 0x46, 0x69, 0x6c, 0x65, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x76,
  190. 0x65, 0x6e, 0x74, 0x10, 0x03, 0x42, 0x57, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72,
  191. 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x50,
  192. 0x01, 0x5a, 0x26, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32,
  193. 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76,
  194. 0x35, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x6c, 0x6f, 0x67, 0xaa, 0x02, 0x12, 0x56, 0x32, 0x52, 0x61,
  195. 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x4c, 0x6f, 0x67, 0x62, 0x06,
  196. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  197. }
  198. var (
  199. file_app_log_config_proto_rawDescOnce sync.Once
  200. file_app_log_config_proto_rawDescData = file_app_log_config_proto_rawDesc
  201. )
  202. func file_app_log_config_proto_rawDescGZIP() []byte {
  203. file_app_log_config_proto_rawDescOnce.Do(func() {
  204. file_app_log_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_log_config_proto_rawDescData)
  205. })
  206. return file_app_log_config_proto_rawDescData
  207. }
  208. var file_app_log_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  209. var file_app_log_config_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  210. var file_app_log_config_proto_goTypes = []interface{}{
  211. (LogType)(0), // 0: v2ray.core.app.log.LogType
  212. (*LogSpecification)(nil), // 1: v2ray.core.app.log.LogSpecification
  213. (*Config)(nil), // 2: v2ray.core.app.log.Config
  214. (log.Severity)(0), // 3: v2ray.core.common.log.Severity
  215. }
  216. var file_app_log_config_proto_depIdxs = []int32{
  217. 0, // 0: v2ray.core.app.log.LogSpecification.type:type_name -> v2ray.core.app.log.LogType
  218. 3, // 1: v2ray.core.app.log.LogSpecification.level:type_name -> v2ray.core.common.log.Severity
  219. 1, // 2: v2ray.core.app.log.Config.error:type_name -> v2ray.core.app.log.LogSpecification
  220. 1, // 3: v2ray.core.app.log.Config.access:type_name -> v2ray.core.app.log.LogSpecification
  221. 4, // [4:4] is the sub-list for method output_type
  222. 4, // [4:4] is the sub-list for method input_type
  223. 4, // [4:4] is the sub-list for extension type_name
  224. 4, // [4:4] is the sub-list for extension extendee
  225. 0, // [0:4] is the sub-list for field type_name
  226. }
  227. func init() { file_app_log_config_proto_init() }
  228. func file_app_log_config_proto_init() {
  229. if File_app_log_config_proto != nil {
  230. return
  231. }
  232. if !protoimpl.UnsafeEnabled {
  233. file_app_log_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  234. switch v := v.(*LogSpecification); i {
  235. case 0:
  236. return &v.state
  237. case 1:
  238. return &v.sizeCache
  239. case 2:
  240. return &v.unknownFields
  241. default:
  242. return nil
  243. }
  244. }
  245. file_app_log_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  246. switch v := v.(*Config); i {
  247. case 0:
  248. return &v.state
  249. case 1:
  250. return &v.sizeCache
  251. case 2:
  252. return &v.unknownFields
  253. default:
  254. return nil
  255. }
  256. }
  257. }
  258. type x struct{}
  259. out := protoimpl.TypeBuilder{
  260. File: protoimpl.DescBuilder{
  261. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  262. RawDescriptor: file_app_log_config_proto_rawDesc,
  263. NumEnums: 1,
  264. NumMessages: 2,
  265. NumExtensions: 0,
  266. NumServices: 0,
  267. },
  268. GoTypes: file_app_log_config_proto_goTypes,
  269. DependencyIndexes: file_app_log_config_proto_depIdxs,
  270. EnumInfos: file_app_log_config_proto_enumTypes,
  271. MessageInfos: file_app_log_config_proto_msgTypes,
  272. }.Build()
  273. File_app_log_config_proto = out.File
  274. file_app_log_config_proto_rawDesc = nil
  275. file_app_log_config_proto_goTypes = nil
  276. file_app_log_config_proto_depIdxs = nil
  277. }