| 1 |
// Copyright 2022 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.26.0 |
| 18 |
// protoc v3.12.2 |
| 19 |
// source: google/logging/type/log_severity.proto |
| 20 |
|
| 21 |
package ltype |
| 22 |
|
| 23 |
import ( |
| 24 |
reflect "reflect" |
| 25 |
sync "sync" |
| 26 |
|
| 27 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 28 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 29 |
) |
| 30 |
|
| 31 |
const ( |
| 32 |
// Verify that this generated code is sufficiently up-to-date. |
| 33 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 34 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 35 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 36 |
) |
| 37 |
|
| 38 |
// The severity of the event described in a log entry, expressed as one of the |
| 39 |
// standard severity levels listed below. For your reference, the levels are |
| 40 |
// assigned the listed numeric values. The effect of using numeric values other |
| 41 |
// than those listed is undefined. |
| 42 |
// |
| 43 |
// You can filter for log entries by severity. For example, the following |
| 44 |
// filter expression will match log entries with severities `INFO`, `NOTICE`, |
| 45 |
// and `WARNING`: |
| 46 |
// |
| 47 |
// severity > DEBUG AND severity <= WARNING |
| 48 |
// |
| 49 |
// If you are writing log entries, you should map other severity encodings to |
| 50 |
// one of these standard levels. For example, you might map all of Java's FINE, |
| 51 |
// FINER, and FINEST levels to `LogSeverity.DEBUG`. You can preserve the |
| 52 |
// original severity level in the log entry payload if you wish. |
| 53 |
type LogSeverity int32 |
| 54 |
|
| 55 |
const ( |
| 56 |
// (0) The log entry has no assigned severity level. |
| 57 |
LogSeverity_DEFAULT LogSeverity = 0 |
| 58 |
// (100) Debug or trace information. |
| 59 |
LogSeverity_DEBUG LogSeverity = 100 |
| 60 |
// (200) Routine information, such as ongoing status or performance. |
| 61 |
LogSeverity_INFO LogSeverity = 200 |
| 62 |
// (300) Normal but significant events, such as start up, shut down, or |
| 63 |
// a configuration change. |
| 64 |
LogSeverity_NOTICE LogSeverity = 300 |
| 65 |
// (400) Warning events might cause problems. |
| 66 |
LogSeverity_WARNING LogSeverity = 400 |
| 67 |
// (500) Error events are likely to cause problems. |
| 68 |
LogSeverity_ERROR LogSeverity = 500 |
| 69 |
// (600) Critical events cause more severe problems or outages. |
| 70 |
LogSeverity_CRITICAL LogSeverity = 600 |
| 71 |
// (700) A person must take an action immediately. |
| 72 |
LogSeverity_ALERT LogSeverity = 700 |
| 73 |
// (800) One or more systems are unusable. |
| 74 |
LogSeverity_EMERGENCY LogSeverity = 800 |
| 75 |
) |
| 76 |
|
| 77 |
// Enum value maps for LogSeverity. |
| 78 |
var ( |
| 79 |
LogSeverity_name = map[int32]string{ |
| 80 |
0: "DEFAULT", |
| 81 |
100: "DEBUG", |
| 82 |
200: "INFO", |
| 83 |
300: "NOTICE", |
| 84 |
400: "WARNING", |
| 85 |
500: "ERROR", |
| 86 |
600: "CRITICAL", |
| 87 |
700: "ALERT", |
| 88 |
800: "EMERGENCY", |
| 89 |
} |
| 90 |
LogSeverity_value = map[string]int32{ |
| 91 |
"DEFAULT": 0, |
| 92 |
"DEBUG": 100, |
| 93 |
"INFO": 200, |
| 94 |
"NOTICE": 300, |
| 95 |
"WARNING": 400, |
| 96 |
"ERROR": 500, |
| 97 |
"CRITICAL": 600, |
| 98 |
"ALERT": 700, |
| 99 |
"EMERGENCY": 800, |
| 100 |
} |
| 101 |
) |
| 102 |
|
| 103 |
func (x LogSeverity) Enum() *LogSeverity { |
| 104 |
p := new(LogSeverity) |
| 105 |
*p = x |
| 106 |
return p |
| 107 |
} |
| 108 |
|
| 109 |
func (x LogSeverity) String() string { |
| 110 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 111 |
} |
| 112 |
|
| 113 |
func (LogSeverity) Descriptor() protoreflect.EnumDescriptor { |
| 114 |
return file_google_logging_type_log_severity_proto_enumTypes[0].Descriptor() |
| 115 |
} |
| 116 |
|
| 117 |
func (LogSeverity) Type() protoreflect.EnumType { |
| 118 |
return &file_google_logging_type_log_severity_proto_enumTypes[0] |
| 119 |
} |
| 120 |
|
| 121 |
func (x LogSeverity) Number() protoreflect.EnumNumber { |
| 122 |
return protoreflect.EnumNumber(x) |
| 123 |
} |
| 124 |
|
| 125 |
// Deprecated: Use LogSeverity.Descriptor instead. |
| 126 |
func (LogSeverity) EnumDescriptor() ([]byte, []int) { |
| 127 |
return file_google_logging_type_log_severity_proto_rawDescGZIP(), []int{0} |
| 128 |
} |
| 129 |
|
| 130 |
var File_google_logging_type_log_severity_proto protoreflect.FileDescriptor |
| 131 |
|
| 132 |
var file_google_logging_type_log_severity_proto_rawDesc = []byte{ |
| 133 |
0x0a, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, |
| 134 |
0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x6c, 0x6f, 0x67, 0x5f, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, |
| 135 |
0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 136 |
0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2a, 0x82, 0x01, |
| 137 |
0x0a, 0x0b, 0x4c, 0x6f, 0x67, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x0b, 0x0a, |
| 138 |
0x07, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x45, |
| 139 |
0x42, 0x55, 0x47, 0x10, 0x64, 0x12, 0x09, 0x0a, 0x04, 0x49, 0x4e, 0x46, 0x4f, 0x10, 0xc8, 0x01, |
| 140 |
0x12, 0x0b, 0x0a, 0x06, 0x4e, 0x4f, 0x54, 0x49, 0x43, 0x45, 0x10, 0xac, 0x02, 0x12, 0x0c, 0x0a, |
| 141 |
0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x90, 0x03, 0x12, 0x0a, 0x0a, 0x05, 0x45, |
| 142 |
0x52, 0x52, 0x4f, 0x52, 0x10, 0xf4, 0x03, 0x12, 0x0d, 0x0a, 0x08, 0x43, 0x52, 0x49, 0x54, 0x49, |
| 143 |
0x43, 0x41, 0x4c, 0x10, 0xd8, 0x04, 0x12, 0x0a, 0x0a, 0x05, 0x41, 0x4c, 0x45, 0x52, 0x54, 0x10, |
| 144 |
0xbc, 0x05, 0x12, 0x0e, 0x0a, 0x09, 0x45, 0x4d, 0x45, 0x52, 0x47, 0x45, 0x4e, 0x43, 0x59, 0x10, |
| 145 |
0xa0, 0x06, 0x42, 0xc5, 0x01, 0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 146 |
0x65, 0x2e, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x42, 0x10, |
| 147 |
0x4c, 0x6f, 0x67, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, |
| 148 |
0x50, 0x01, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, |
| 149 |
0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, |
| 150 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69, 0x6e, |
| 151 |
0x67, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x3b, 0x6c, 0x74, 0x79, 0x70, 0x65, 0xa2, 0x02, 0x04, 0x47, |
| 152 |
0x4c, 0x4f, 0x47, 0xaa, 0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, |
| 153 |
0x75, 0x64, 0x2e, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x54, 0x79, 0x70, 0x65, 0xca, |
| 154 |
0x02, 0x19, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x4c, |
| 155 |
0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x5c, 0x54, 0x79, 0x70, 0x65, 0xea, 0x02, 0x1c, 0x47, 0x6f, |
| 156 |
0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x4c, 0x6f, 0x67, |
| 157 |
0x67, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x54, 0x79, 0x70, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, |
| 158 |
0x6f, 0x33, |
| 159 |
} |
| 160 |
|
| 161 |
var ( |
| 162 |
file_google_logging_type_log_severity_proto_rawDescOnce sync.Once |
| 163 |
file_google_logging_type_log_severity_proto_rawDescData = file_google_logging_type_log_severity_proto_rawDesc |
| 164 |
) |
| 165 |
|
| 166 |
func file_google_logging_type_log_severity_proto_rawDescGZIP() []byte { |
| 167 |
file_google_logging_type_log_severity_proto_rawDescOnce.Do(func() { |
| 168 |
file_google_logging_type_log_severity_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_logging_type_log_severity_proto_rawDescData) |
| 169 |
}) |
| 170 |
return file_google_logging_type_log_severity_proto_rawDescData |
| 171 |
} |
| 172 |
|
| 173 |
var file_google_logging_type_log_severity_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 174 |
var file_google_logging_type_log_severity_proto_goTypes = []interface{}{ |
| 175 |
(LogSeverity)(0), // 0: google.logging.type.LogSeverity |
| 176 |
} |
| 177 |
var file_google_logging_type_log_severity_proto_depIdxs = []int32{ |
| 178 |
0, // [0:0] is the sub-list for method output_type |
| 179 |
0, // [0:0] is the sub-list for method input_type |
| 180 |
0, // [0:0] is the sub-list for extension type_name |
| 181 |
0, // [0:0] is the sub-list for extension extendee |
| 182 |
0, // [0:0] is the sub-list for field type_name |
| 183 |
} |
| 184 |
|
| 185 |
func init() { file_google_logging_type_log_severity_proto_init() } |
| 186 |
func file_google_logging_type_log_severity_proto_init() { |
| 187 |
if File_google_logging_type_log_severity_proto != nil { |
| 188 |
return |
| 189 |
} |
| 190 |
type x struct{} |
| 191 |
out := protoimpl.TypeBuilder{ |
| 192 |
File: protoimpl.DescBuilder{ |
| 193 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 194 |
RawDescriptor: file_google_logging_type_log_severity_proto_rawDesc, |
| 195 |
NumEnums: 1, |
| 196 |
NumMessages: 0, |
| 197 |
NumExtensions: 0, |
| 198 |
NumServices: 0, |
| 199 |
}, |
| 200 |
GoTypes: file_google_logging_type_log_severity_proto_goTypes, |
| 201 |
DependencyIndexes: file_google_logging_type_log_severity_proto_depIdxs, |
| 202 |
EnumInfos: file_google_logging_type_log_severity_proto_enumTypes, |
| 203 |
}.Build() |
| 204 |
File_google_logging_type_log_severity_proto = out.File |
| 205 |
file_google_logging_type_log_severity_proto_rawDesc = nil |
| 206 |
file_google_logging_type_log_severity_proto_goTypes = nil |
| 207 |
file_google_logging_type_log_severity_proto_depIdxs = nil |
| 208 |
} |