config.pb.go 11 KB

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