Debian Codegraph @

googleapis/api/serviceconfig/logging.pb.go

raw
1 // Copyright 2026 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 v4.24.4
19 // source: google/api/logging.proto
20
21 package serviceconfig
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 // Logging configuration of the service.
39 //
40 // The following example shows how to configure logs to be sent to the
41 // producer and consumer projects. In the example, the `activity_history`
42 // log is sent to both the producer and consumer projects, whereas the
43 // `purchase_history` log is only sent to the producer project.
44 //
45 // monitored_resources:
46 // - type: library.googleapis.com/branch
47 // labels:
48 // - key: /city
49 // description: The city where the library branch is located in.
50 // - key: /name
51 // description: The name of the branch.
52 // logs:
53 // - name: activity_history
54 // labels:
55 // - key: /customer_id
56 // - name: purchase_history
57 // logging:
58 // producer_destinations:
59 // - monitored_resource: library.googleapis.com/branch
60 // logs:
61 // - activity_history
62 // - purchase_history
63 // consumer_destinations:
64 // - monitored_resource: library.googleapis.com/branch
65 // logs:
66 // - activity_history
67 type Logging struct {
68 state protoimpl.MessageState
69 sizeCache protoimpl.SizeCache
70 unknownFields protoimpl.UnknownFields
71
72 // Logging configurations for sending logs to the producer project.
73 // There can be multiple producer destinations, each one must have a
74 // different monitored resource type. A log can be used in at most
75 // one producer destination.
76 ProducerDestinations []*Logging_LoggingDestination `protobuf:"bytes,1,rep,name=producer_destinations,json=producerDestinations,proto3" json:"producer_destinations,omitempty"`
77 // Logging configurations for sending logs to the consumer project.
78 // There can be multiple consumer destinations, each one must have a
79 // different monitored resource type. A log can be used in at most
80 // one consumer destination.
81 ConsumerDestinations []*Logging_LoggingDestination `protobuf:"bytes,2,rep,name=consumer_destinations,json=consumerDestinations,proto3" json:"consumer_destinations,omitempty"`
82 }
83
84 func (x *Logging) Reset() {
85 *x = Logging{}
86 if protoimpl.UnsafeEnabled {
87 mi := &file_google_api_logging_proto_msgTypes[0]
88 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
89 ms.StoreMessageInfo(mi)
90 }
91 }
92
93 func (x *Logging) String() string {
94 return protoimpl.X.MessageStringOf(x)
95 }
96
97 func (*Logging) ProtoMessage() {}
98
99 func (x *Logging) ProtoReflect() protoreflect.Message {
100 mi := &file_google_api_logging_proto_msgTypes[0]
101 if protoimpl.UnsafeEnabled && x != nil {
102 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
103 if ms.LoadMessageInfo() == nil {
104 ms.StoreMessageInfo(mi)
105 }
106 return ms
107 }
108 return mi.MessageOf(x)
109 }
110
111 // Deprecated: Use Logging.ProtoReflect.Descriptor instead.
112 func (*Logging) Descriptor() ([]byte, []int) {
113 return file_google_api_logging_proto_rawDescGZIP(), []int{0}
114 }
115
116 func (x *Logging) GetProducerDestinations() []*Logging_LoggingDestination {
117 if x != nil {
118 return x.ProducerDestinations
119 }
120 return nil
121 }
122
123 func (x *Logging) GetConsumerDestinations() []*Logging_LoggingDestination {
124 if x != nil {
125 return x.ConsumerDestinations
126 }
127 return nil
128 }
129
130 // Configuration of a specific logging destination (the producer project
131 // or the consumer project).
132 type Logging_LoggingDestination struct {
133 state protoimpl.MessageState
134 sizeCache protoimpl.SizeCache
135 unknownFields protoimpl.UnknownFields
136
137 // The monitored resource type. The type must be defined in the
138 // [Service.monitored_resources][google.api.Service.monitored_resources]
139 // section.
140 MonitoredResource string `protobuf:"bytes,3,opt,name=monitored_resource,json=monitoredResource,proto3" json:"monitored_resource,omitempty"`
141 // Names of the logs to be sent to this destination. Each name must
142 // be defined in the [Service.logs][google.api.Service.logs] section. If the
143 // log name is not a domain scoped name, it will be automatically prefixed
144 // with the service name followed by "/".
145 Logs []string `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"`
146 }
147
148 func (x *Logging_LoggingDestination) Reset() {
149 *x = Logging_LoggingDestination{}
150 if protoimpl.UnsafeEnabled {
151 mi := &file_google_api_logging_proto_msgTypes[1]
152 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
153 ms.StoreMessageInfo(mi)
154 }
155 }
156
157 func (x *Logging_LoggingDestination) String() string {
158 return protoimpl.X.MessageStringOf(x)
159 }
160
161 func (*Logging_LoggingDestination) ProtoMessage() {}
162
163 func (x *Logging_LoggingDestination) ProtoReflect() protoreflect.Message {
164 mi := &file_google_api_logging_proto_msgTypes[1]
165 if protoimpl.UnsafeEnabled && x != nil {
166 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
167 if ms.LoadMessageInfo() == nil {
168 ms.StoreMessageInfo(mi)
169 }
170 return ms
171 }
172 return mi.MessageOf(x)
173 }
174
175 // Deprecated: Use Logging_LoggingDestination.ProtoReflect.Descriptor instead.
176 func (*Logging_LoggingDestination) Descriptor() ([]byte, []int) {
177 return file_google_api_logging_proto_rawDescGZIP(), []int{0, 0}
178 }
179
180 func (x *Logging_LoggingDestination) GetMonitoredResource() string {
181 if x != nil {
182 return x.MonitoredResource
183 }
184 return ""
185 }
186
187 func (x *Logging_LoggingDestination) GetLogs() []string {
188 if x != nil {
189 return x.Logs
190 }
191 return nil
192 }
193
194 var File_google_api_logging_proto protoreflect.FileDescriptor
195
196 var file_google_api_logging_proto_rawDesc = []byte{
197 0x0a, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6c, 0x6f, 0x67,
198 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x6f, 0x67,
199 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x22, 0x9c, 0x02, 0x0a, 0x07, 0x4c, 0x6f, 0x67, 0x67, 0x69,
200 0x6e, 0x67, 0x12, 0x5b, 0x0a, 0x15, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x72, 0x5f, 0x64,
201 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
202 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c,
203 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x44, 0x65,
204 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x70, 0x72, 0x6f, 0x64, 0x75,
205 0x63, 0x65, 0x72, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12,
206 0x5b, 0x0a, 0x15, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72, 0x5f, 0x64, 0x65, 0x73, 0x74,
207 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26,
208 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x4c, 0x6f, 0x67, 0x67,
209 0x69, 0x6e, 0x67, 0x2e, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x73, 0x74, 0x69,
210 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x14, 0x63, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x72,
211 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x57, 0x0a, 0x12,
212 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69,
213 0x6f, 0x6e, 0x12, 0x2d, 0x0a, 0x12, 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x5f,
214 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11,
215 0x6d, 0x6f, 0x6e, 0x69, 0x74, 0x6f, 0x72, 0x65, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
216 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52,
217 0x04, 0x6c, 0x6f, 0x67, 0x73, 0x42, 0x6e, 0x0a, 0x0e, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
218 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x70, 0x69, 0x42, 0x0c, 0x4c, 0x6f, 0x67, 0x67, 0x69, 0x6e, 0x67,
219 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x45, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
220 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72,
221 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61,
222 0x70, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67,
223 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0xa2, 0x02,
224 0x04, 0x47, 0x41, 0x50, 0x49, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
225 }
226
227 var (
228 file_google_api_logging_proto_rawDescOnce sync.Once
229 file_google_api_logging_proto_rawDescData = file_google_api_logging_proto_rawDesc
230 )
231
232 func file_google_api_logging_proto_rawDescGZIP() []byte {
233 file_google_api_logging_proto_rawDescOnce.Do(func() {
234 file_google_api_logging_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_api_logging_proto_rawDescData)
235 })
236 return file_google_api_logging_proto_rawDescData
237 }
238
239 var file_google_api_logging_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
240 var file_google_api_logging_proto_goTypes = []interface{}{
241 (*Logging)(nil), // 0: google.api.Logging
242 (*Logging_LoggingDestination)(nil), // 1: google.api.Logging.LoggingDestination
243 }
244 var file_google_api_logging_proto_depIdxs = []int32{
245 1, // 0: google.api.Logging.producer_destinations:type_name -> google.api.Logging.LoggingDestination
246 1, // 1: google.api.Logging.consumer_destinations:type_name -> google.api.Logging.LoggingDestination
247 2, // [2:2] is the sub-list for method output_type
248 2, // [2:2] is the sub-list for method input_type
249 2, // [2:2] is the sub-list for extension type_name
250 2, // [2:2] is the sub-list for extension extendee
251 0, // [0:2] is the sub-list for field type_name
252 }
253
254 func init() { file_google_api_logging_proto_init() }
255 func file_google_api_logging_proto_init() {
256 if File_google_api_logging_proto != nil {
257 return
258 }
259 if !protoimpl.UnsafeEnabled {
260 file_google_api_logging_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
261 switch v := v.(*Logging); i {
262 case 0:
263 return &v.state
264 case 1:
265 return &v.sizeCache
266 case 2:
267 return &v.unknownFields
268 default:
269 return nil
270 }
271 }
272 file_google_api_logging_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
273 switch v := v.(*Logging_LoggingDestination); i {
274 case 0:
275 return &v.state
276 case 1:
277 return &v.sizeCache
278 case 2:
279 return &v.unknownFields
280 default:
281 return nil
282 }
283 }
284 }
285 type x struct{}
286 out := protoimpl.TypeBuilder{
287 File: protoimpl.DescBuilder{
288 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
289 RawDescriptor: file_google_api_logging_proto_rawDesc,
290 NumEnums: 0,
291 NumMessages: 2,
292 NumExtensions: 0,
293 NumServices: 0,
294 },
295 GoTypes: file_google_api_logging_proto_goTypes,
296 DependencyIndexes: file_google_api_logging_proto_depIdxs,
297 MessageInfos: file_google_api_logging_proto_msgTypes,
298 }.Build()
299 File_google_api_logging_proto = out.File
300 file_google_api_logging_proto_rawDesc = nil
301 file_google_api_logging_proto_goTypes = nil
302 file_google_api_logging_proto_depIdxs = nil
303 }