config.pb.go 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.14.0
  5. // source: app/log/config.proto
  6. package log
  7. import (
  8. proto "github.com/golang/protobuf/proto"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. log "v2ray.com/core/common/log"
  14. )
  15. const (
  16. // Verify that this generated code is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  18. // Verify that runtime/protoimpl is sufficiently up-to-date.
  19. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  20. )
  21. // This is a compile-time assertion that a sufficiently up-to-date version
  22. // of the legacy proto package is being used.
  23. const _ = proto.ProtoPackageIsVersion4
  24. type LogType int32
  25. const (
  26. LogType_None LogType = 0
  27. LogType_Console LogType = 1
  28. LogType_File LogType = 2
  29. LogType_Event LogType = 3
  30. )
  31. // Enum value maps for LogType.
  32. var (
  33. LogType_name = map[int32]string{
  34. 0: "None",
  35. 1: "Console",
  36. 2: "File",
  37. 3: "Event",
  38. }
  39. LogType_value = map[string]int32{
  40. "None": 0,
  41. "Console": 1,
  42. "File": 2,
  43. "Event": 3,
  44. }
  45. )
  46. func (x LogType) Enum() *LogType {
  47. p := new(LogType)
  48. *p = x
  49. return p
  50. }
  51. func (x LogType) String() string {
  52. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  53. }
  54. func (LogType) Descriptor() protoreflect.EnumDescriptor {
  55. return file_app_log_config_proto_enumTypes[0].Descriptor()
  56. }
  57. func (LogType) Type() protoreflect.EnumType {
  58. return &file_app_log_config_proto_enumTypes[0]
  59. }
  60. func (x LogType) Number() protoreflect.EnumNumber {
  61. return protoreflect.EnumNumber(x)
  62. }
  63. // Deprecated: Use LogType.Descriptor instead.
  64. func (LogType) EnumDescriptor() ([]byte, []int) {
  65. return file_app_log_config_proto_rawDescGZIP(), []int{0}
  66. }
  67. type Config struct {
  68. state protoimpl.MessageState
  69. sizeCache protoimpl.SizeCache
  70. unknownFields protoimpl.UnknownFields
  71. ErrorLogType LogType `protobuf:"varint,1,opt,name=error_log_type,json=errorLogType,proto3,enum=v2ray.core.app.log.LogType" json:"error_log_type,omitempty"`
  72. ErrorLogLevel log.Severity `protobuf:"varint,2,opt,name=error_log_level,json=errorLogLevel,proto3,enum=v2ray.core.common.log.Severity" json:"error_log_level,omitempty"`
  73. ErrorLogPath string `protobuf:"bytes,3,opt,name=error_log_path,json=errorLogPath,proto3" json:"error_log_path,omitempty"`
  74. AccessLogType LogType `protobuf:"varint,4,opt,name=access_log_type,json=accessLogType,proto3,enum=v2ray.core.app.log.LogType" json:"access_log_type,omitempty"`
  75. AccessLogPath string `protobuf:"bytes,5,opt,name=access_log_path,json=accessLogPath,proto3" json:"access_log_path,omitempty"`
  76. }
  77. func (x *Config) Reset() {
  78. *x = Config{}
  79. if protoimpl.UnsafeEnabled {
  80. mi := &file_app_log_config_proto_msgTypes[0]
  81. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  82. ms.StoreMessageInfo(mi)
  83. }
  84. }
  85. func (x *Config) String() string {
  86. return protoimpl.X.MessageStringOf(x)
  87. }
  88. func (*Config) ProtoMessage() {}
  89. func (x *Config) ProtoReflect() protoreflect.Message {
  90. mi := &file_app_log_config_proto_msgTypes[0]
  91. if protoimpl.UnsafeEnabled && x != nil {
  92. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  93. if ms.LoadMessageInfo() == nil {
  94. ms.StoreMessageInfo(mi)
  95. }
  96. return ms
  97. }
  98. return mi.MessageOf(x)
  99. }
  100. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  101. func (*Config) Descriptor() ([]byte, []int) {
  102. return file_app_log_config_proto_rawDescGZIP(), []int{0}
  103. }
  104. func (x *Config) GetErrorLogType() LogType {
  105. if x != nil {
  106. return x.ErrorLogType
  107. }
  108. return LogType_None
  109. }
  110. func (x *Config) GetErrorLogLevel() log.Severity {
  111. if x != nil {
  112. return x.ErrorLogLevel
  113. }
  114. return log.Severity_Unknown
  115. }
  116. func (x *Config) GetErrorLogPath() string {
  117. if x != nil {
  118. return x.ErrorLogPath
  119. }
  120. return ""
  121. }
  122. func (x *Config) GetAccessLogType() LogType {
  123. if x != nil {
  124. return x.AccessLogType
  125. }
  126. return LogType_None
  127. }
  128. func (x *Config) GetAccessLogPath() string {
  129. if x != nil {
  130. return x.AccessLogPath
  131. }
  132. return ""
  133. }
  134. var File_app_log_config_proto protoreflect.FileDescriptor
  135. var file_app_log_config_proto_rawDesc = []byte{
  136. 0x0a, 0x14, 0x61, 0x70, 0x70, 0x2f, 0x6c, 0x6f, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  137. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x12, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f,
  138. 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x1a, 0x14, 0x63, 0x6f, 0x6d, 0x6d,
  139. 0x6f, 0x6e, 0x2f, 0x6c, 0x6f, 0x67, 0x2f, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  140. 0x22, 0xa7, 0x02, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x41, 0x0a, 0x0e, 0x65,
  141. 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
  142. 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  143. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65,
  144. 0x52, 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4c, 0x6f, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x47,
  145. 0x0a, 0x0f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x6c, 0x65, 0x76, 0x65,
  146. 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  147. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6c, 0x6f, 0x67, 0x2e,
  148. 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x52, 0x0d, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4c,
  149. 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x24, 0x0a, 0x0e, 0x65, 0x72, 0x72, 0x6f, 0x72,
  150. 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
  151. 0x0c, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x4c, 0x6f, 0x67, 0x50, 0x61, 0x74, 0x68, 0x12, 0x43, 0x0a,
  152. 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65,
  153. 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  154. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x54,
  155. 0x79, 0x70, 0x65, 0x52, 0x0d, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x54, 0x79,
  156. 0x70, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x6c, 0x6f, 0x67,
  157. 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x63, 0x63,
  158. 0x65, 0x73, 0x73, 0x4c, 0x6f, 0x67, 0x50, 0x61, 0x74, 0x68, 0x2a, 0x35, 0x0a, 0x07, 0x4c, 0x6f,
  159. 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x6f, 0x6e, 0x65, 0x10, 0x00, 0x12,
  160. 0x0b, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x73, 0x6f, 0x6c, 0x65, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04,
  161. 0x46, 0x69, 0x6c, 0x65, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x10,
  162. 0x03, 0x42, 0x47, 0x0a, 0x16, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63,
  163. 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x6c, 0x6f, 0x67, 0x50, 0x01, 0x5a, 0x16, 0x76,
  164. 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70,
  165. 0x70, 0x2f, 0x6c, 0x6f, 0x67, 0xaa, 0x02, 0x12, 0x56, 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f,
  166. 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x4c, 0x6f, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  167. 0x6f, 0x33,
  168. }
  169. var (
  170. file_app_log_config_proto_rawDescOnce sync.Once
  171. file_app_log_config_proto_rawDescData = file_app_log_config_proto_rawDesc
  172. )
  173. func file_app_log_config_proto_rawDescGZIP() []byte {
  174. file_app_log_config_proto_rawDescOnce.Do(func() {
  175. file_app_log_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_log_config_proto_rawDescData)
  176. })
  177. return file_app_log_config_proto_rawDescData
  178. }
  179. var file_app_log_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  180. var file_app_log_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  181. var file_app_log_config_proto_goTypes = []interface{}{
  182. (LogType)(0), // 0: v2ray.core.app.log.LogType
  183. (*Config)(nil), // 1: v2ray.core.app.log.Config
  184. (log.Severity)(0), // 2: v2ray.core.common.log.Severity
  185. }
  186. var file_app_log_config_proto_depIdxs = []int32{
  187. 0, // 0: v2ray.core.app.log.Config.error_log_type:type_name -> v2ray.core.app.log.LogType
  188. 2, // 1: v2ray.core.app.log.Config.error_log_level:type_name -> v2ray.core.common.log.Severity
  189. 0, // 2: v2ray.core.app.log.Config.access_log_type:type_name -> v2ray.core.app.log.LogType
  190. 3, // [3:3] is the sub-list for method output_type
  191. 3, // [3:3] is the sub-list for method input_type
  192. 3, // [3:3] is the sub-list for extension type_name
  193. 3, // [3:3] is the sub-list for extension extendee
  194. 0, // [0:3] is the sub-list for field type_name
  195. }
  196. func init() { file_app_log_config_proto_init() }
  197. func file_app_log_config_proto_init() {
  198. if File_app_log_config_proto != nil {
  199. return
  200. }
  201. if !protoimpl.UnsafeEnabled {
  202. file_app_log_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  203. switch v := v.(*Config); i {
  204. case 0:
  205. return &v.state
  206. case 1:
  207. return &v.sizeCache
  208. case 2:
  209. return &v.unknownFields
  210. default:
  211. return nil
  212. }
  213. }
  214. }
  215. type x struct{}
  216. out := protoimpl.TypeBuilder{
  217. File: protoimpl.DescBuilder{
  218. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  219. RawDescriptor: file_app_log_config_proto_rawDesc,
  220. NumEnums: 1,
  221. NumMessages: 1,
  222. NumExtensions: 0,
  223. NumServices: 0,
  224. },
  225. GoTypes: file_app_log_config_proto_goTypes,
  226. DependencyIndexes: file_app_log_config_proto_depIdxs,
  227. EnumInfos: file_app_log_config_proto_enumTypes,
  228. MessageInfos: file_app_log_config_proto_msgTypes,
  229. }.Build()
  230. File_app_log_config_proto = out.File
  231. file_app_log_config_proto_rawDesc = nil
  232. file_app_log_config_proto_goTypes = nil
  233. file_app_log_config_proto_depIdxs = nil
  234. }