config.pb.go 9.4 KB

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