codekingpro/portable-devtools
115k
1// Copyright 2026 Google LLC2//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 at6//7// http://www.apache.org/licenses/LICENSE-2.08//9// Unless required by applicable law or agreed to in writing, software10// 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 and13// limitations under the License.14 15syntax = "proto3";16 17package google.api;18 19option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";20option java_multiple_files = true;21option java_outer_classname = "LoggingProto";22option java_package = "com.google.api";23option objc_class_prefix = "GAPI";24 25// Logging configuration of the service.26//27// The following example shows how to configure logs to be sent to the28// producer and consumer projects. In the example, the `activity_history`29// log is sent to both the producer and consumer projects, whereas the30// `purchase_history` log is only sent to the producer project.31//32// monitored_resources:33// - type: library.googleapis.com/branch34// labels:35// - key: /city36// description: The city where the library branch is located in.37// - key: /name38// description: The name of the branch.39// logs:40// - name: activity_history41// labels:42// - key: /customer_id43// - name: purchase_history44// logging:45// producer_destinations:46// - monitored_resource: library.googleapis.com/branch47// logs:48// - activity_history49// - purchase_history50// consumer_destinations:51// - monitored_resource: library.googleapis.com/branch52// logs:53// - activity_history54message Logging {55 // Configuration of a specific logging destination (the producer project56 // or the consumer project).57 message LoggingDestination {58 // The monitored resource type. The type must be defined in the59 // [Service.monitored_resources][google.api.Service.monitored_resources]60 // section.61 string monitored_resource = 3;62 63 // Names of the logs to be sent to this destination. Each name must64 // be defined in the [Service.logs][google.api.Service.logs] section. If the65 // log name is not a domain scoped name, it will be automatically prefixed66 // with the service name followed by "/".67 repeated string logs = 1;68 }69 70 // Logging configurations for sending logs to the producer project.71 // There can be multiple producer destinations, each one must have a72 // different monitored resource type. A log can be used in at most73 // one producer destination.74 repeated LoggingDestination producer_destinations = 1;75 76 // Logging configurations for sending logs to the consumer project.77 // There can be multiple consumer destinations, each one must have a78 // different monitored resource type. A log can be used in at most79 // one consumer destination.80 repeated LoggingDestination consumer_destinations = 2;81}82 