Debian Codegraph @

eventarc/apiv1/eventarcpb/logging_config.pb.go

raw
1 // Copyright 2025 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.35.2
18 // protoc v4.25.7
19 // source: google/cloud/eventarc/v1/logging_config.proto
20
21 package eventarcpb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 reflect "reflect"
28 sync "sync"
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 different severities for logging supported by Eventarc Advanced
39 // resources.
40 // This enum is an exhaustive list of log severities and is FROZEN. Do not
41 // expect new values to be added.
42 type LoggingConfig_LogSeverity int32
43
44 const (
45 // Log severity is not specified. This value is treated the same as NONE,
46 // but is used to distinguish between no update and update to NONE in
47 // update_masks.
48 LoggingConfig_LOG_SEVERITY_UNSPECIFIED LoggingConfig_LogSeverity = 0
49 // Default value at resource creation, presence of this value must be
50 // treated as no logging/disable logging.
51 LoggingConfig_NONE LoggingConfig_LogSeverity = 1
52 // Debug or trace level logging.
53 LoggingConfig_DEBUG LoggingConfig_LogSeverity = 2
54 // Routine information, such as ongoing status or performance.
55 LoggingConfig_INFO LoggingConfig_LogSeverity = 3
56 // Normal but significant events, such as start up, shut down, or a
57 // configuration change.
58 LoggingConfig_NOTICE LoggingConfig_LogSeverity = 4
59 // Warning events might cause problems.
60 LoggingConfig_WARNING LoggingConfig_LogSeverity = 5
61 // Error events are likely to cause problems.
62 LoggingConfig_ERROR LoggingConfig_LogSeverity = 6
63 // Critical events cause more severe problems or outages.
64 LoggingConfig_CRITICAL LoggingConfig_LogSeverity = 7
65 // A person must take action immediately.
66 LoggingConfig_ALERT LoggingConfig_LogSeverity = 8
67 // One or more systems are unusable.
68 LoggingConfig_EMERGENCY LoggingConfig_LogSeverity = 9
69 )
70
71 // Enum value maps for LoggingConfig_LogSeverity.
72 var (
73 LoggingConfig_LogSeverity_name = map[int32]string{
74 0: "LOG_SEVERITY_UNSPECIFIED",
75 1: "NONE",
76 2: "DEBUG",
77 3: "INFO",
78 4: "NOTICE",
79 5: "WARNING",
80 6: "ERROR",
81 7: "CRITICAL",
82 8: "ALERT",
83 9: "EMERGENCY",
84 }
85 LoggingConfig_LogSeverity_value = map[string]int32{
86 "LOG_SEVERITY_UNSPECIFIED": 0,
87 "NONE": 1,
88 "DEBUG": 2,
89 "INFO": 3,
90 "NOTICE": 4,
91 "WARNING": 5,
92 "ERROR": 6,
93 "CRITICAL": 7,
94 "ALERT": 8,
95 "EMERGENCY": 9,
96 }
97 )
98
99 func (x LoggingConfig_LogSeverity) Enum() *LoggingConfig_LogSeverity {
100 p := new(LoggingConfig_LogSeverity)
101 *p = x
102 return p
103 }
104
105 func (x LoggingConfig_LogSeverity) String() string {
106 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
107 }
108
109 func (LoggingConfig_LogSeverity) Descriptor() protoreflect.EnumDescriptor {
110 return file_google_cloud_eventarc_v1_logging_config_proto_enumTypes[0].Descriptor()
111 }
112
113 func (LoggingConfig_LogSeverity) Type() protoreflect.EnumType {
114 return &file_google_cloud_eventarc_v1_logging_config_proto_enumTypes[0]
115 }
116
117 func (x LoggingConfig_LogSeverity) Number() protoreflect.EnumNumber {
118 return protoreflect.EnumNumber(x)
119 }
120
121 // Deprecated: Use LoggingConfig_LogSeverity.Descriptor instead.
122 func (LoggingConfig_LogSeverity) EnumDescriptor() ([]byte, []int) {
123 return file_google_cloud_eventarc_v1_logging_config_proto_rawDescGZIP(), []int{0, 0}
124 }
125
126 // The configuration for Platform Telemetry logging for Eventarc Advanced
127 // resources.
128 type LoggingConfig struct {
129 state protoimpl.MessageState
130 sizeCache protoimpl.SizeCache
131 unknownFields protoimpl.UnknownFields
132
133 // Optional. The minimum severity of logs that will be sent to
134 // Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be
135 // sent, unless it is NONE.
136 LogSeverity LoggingConfig_LogSeverity `protobuf:"varint,1,opt,name=log_severity,json=logSeverity,proto3,enum=google.cloud.eventarc.v1.LoggingConfig_LogSeverity" json:"log_severity,omitempty"`
137 }
138
139 func (x *LoggingConfig) Reset() {
140 *x = LoggingConfig{}
141 mi := &file_google_cloud_eventarc_v1_logging_config_proto_msgTypes[0]
142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
143 ms.StoreMessageInfo(mi)
144 }
145
146 func (x *LoggingConfig) String() string {
147 return protoimpl.X.MessageStringOf(x)
148 }
149
150 func (*LoggingConfig) ProtoMessage() {}
151
152 func (x *LoggingConfig) ProtoReflect() protoreflect.Message {
153 mi := &file_google_cloud_eventarc_v1_logging_config_proto_msgTypes[0]
154 if x != nil {
155 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
156 if ms.LoadMessageInfo() == nil {
157 ms.StoreMessageInfo(mi)
158 }
159 return ms
160 }
161 return mi.MessageOf(x)
162 }
163
164 // Deprecated: Use LoggingConfig.ProtoReflect.Descriptor instead.
165 func (*LoggingConfig) Descriptor() ([]byte, []int) {
166 return file_google_cloud_eventarc_v1_logging_config_proto_rawDescGZIP(), []int{0}
167 }
168
169 func (x *LoggingConfig) GetLogSeverity() LoggingConfig_LogSeverity {
170 if x != nil {
171 return x.LogSeverity
172 }
173 return LoggingConfig_LOG_SEVERITY_UNSPECIFIED
174 }
175
176 var File_google_cloud_eventarc_v1_logging_config_proto protoreflect.FileDescriptor
177
178 var file_google_cloud_eventarc_v1_logging_config_proto_rawDesc = []byte{
179 0x0a, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x65,
180 0x76, 0x65, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x2f, 0x76, 0x31, 0x2f, 0x6c, 0x6f, 0x67, 0x67, 0x69,
181 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
182 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x65, 0x76,
183 0x65, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
184 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61,
185 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x85, 0x02, 0x0a, 0x0d, 0x4c,
186 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5b, 0x0a, 0x0c,
187 0x6c, 0x6f, 0x67, 0x5f, 0x73, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01,
188 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
189 0x64, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f,
190 0x67, 0x67, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x53,
191 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b, 0x6c, 0x6f,
192 0x67, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x22, 0x96, 0x01, 0x0a, 0x0b, 0x4c, 0x6f,
193 0x67, 0x53, 0x65, 0x76, 0x65, 0x72, 0x69, 0x74, 0x79, 0x12, 0x1c, 0x0a, 0x18, 0x4c, 0x4f, 0x47,
194 0x5f, 0x53, 0x45, 0x56, 0x45, 0x52, 0x49, 0x54, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43,
195 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x4f, 0x4e, 0x45, 0x10,
196 0x01, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x45, 0x42, 0x55, 0x47, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04,
197 0x49, 0x4e, 0x46, 0x4f, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x54, 0x49, 0x43, 0x45,
198 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x57, 0x41, 0x52, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12,
199 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x06, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x52,
200 0x49, 0x54, 0x49, 0x43, 0x41, 0x4c, 0x10, 0x07, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x4c, 0x45, 0x52,
201 0x54, 0x10, 0x08, 0x12, 0x0d, 0x0a, 0x09, 0x45, 0x4d, 0x45, 0x52, 0x47, 0x45, 0x4e, 0x43, 0x59,
202 0x10, 0x09, 0x42, 0xc2, 0x01, 0x0a, 0x1c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
203 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x61, 0x72, 0x63,
204 0x2e, 0x76, 0x31, 0x42, 0x12, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66,
205 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x38, 0x63, 0x6c, 0x6f, 0x75, 0x64,
206 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x65,
207 0x76, 0x65, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x65, 0x76,
208 0x65, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x70, 0x62, 0x3b, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x61, 0x72,
209 0x63, 0x70, 0x62, 0xaa, 0x02, 0x18, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f,
210 0x75, 0x64, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x2e, 0x56, 0x31, 0xca, 0x02,
211 0x18, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x45, 0x76,
212 0x65, 0x6e, 0x74, 0x61, 0x72, 0x63, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x1b, 0x47, 0x6f, 0x6f, 0x67,
213 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x45, 0x76, 0x65, 0x6e, 0x74,
214 0x61, 0x72, 0x63, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
215 }
216
217 var (
218 file_google_cloud_eventarc_v1_logging_config_proto_rawDescOnce sync.Once
219 file_google_cloud_eventarc_v1_logging_config_proto_rawDescData = file_google_cloud_eventarc_v1_logging_config_proto_rawDesc
220 )
221
222 func file_google_cloud_eventarc_v1_logging_config_proto_rawDescGZIP() []byte {
223 file_google_cloud_eventarc_v1_logging_config_proto_rawDescOnce.Do(func() {
224 file_google_cloud_eventarc_v1_logging_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_eventarc_v1_logging_config_proto_rawDescData)
225 })
226 return file_google_cloud_eventarc_v1_logging_config_proto_rawDescData
227 }
228
229 var file_google_cloud_eventarc_v1_logging_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
230 var file_google_cloud_eventarc_v1_logging_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
231 var file_google_cloud_eventarc_v1_logging_config_proto_goTypes = []any{
232 (LoggingConfig_LogSeverity)(0), // 0: google.cloud.eventarc.v1.LoggingConfig.LogSeverity
233 (*LoggingConfig)(nil), // 1: google.cloud.eventarc.v1.LoggingConfig
234 }
235 var file_google_cloud_eventarc_v1_logging_config_proto_depIdxs = []int32{
236 0, // 0: google.cloud.eventarc.v1.LoggingConfig.log_severity:type_name -> google.cloud.eventarc.v1.LoggingConfig.LogSeverity
237 1, // [1:1] is the sub-list for method output_type
238 1, // [1:1] is the sub-list for method input_type
239 1, // [1:1] is the sub-list for extension type_name
240 1, // [1:1] is the sub-list for extension extendee
241 0, // [0:1] is the sub-list for field type_name
242 }
243
244 func init() { file_google_cloud_eventarc_v1_logging_config_proto_init() }
245 func file_google_cloud_eventarc_v1_logging_config_proto_init() {
246 if File_google_cloud_eventarc_v1_logging_config_proto != nil {
247 return
248 }
249 type x struct{}
250 out := protoimpl.TypeBuilder{
251 File: protoimpl.DescBuilder{
252 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
253 RawDescriptor: file_google_cloud_eventarc_v1_logging_config_proto_rawDesc,
254 NumEnums: 1,
255 NumMessages: 1,
256 NumExtensions: 0,
257 NumServices: 0,
258 },
259 GoTypes: file_google_cloud_eventarc_v1_logging_config_proto_goTypes,
260 DependencyIndexes: file_google_cloud_eventarc_v1_logging_config_proto_depIdxs,
261 EnumInfos: file_google_cloud_eventarc_v1_logging_config_proto_enumTypes,
262 MessageInfos: file_google_cloud_eventarc_v1_logging_config_proto_msgTypes,
263 }.Build()
264 File_google_cloud_eventarc_v1_logging_config_proto = out.File
265 file_google_cloud_eventarc_v1_logging_config_proto_rawDesc = nil
266 file_google_cloud_eventarc_v1_logging_config_proto_goTypes = nil
267 file_google_cloud_eventarc_v1_logging_config_proto_depIdxs = nil
268 }