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