1// Copyright 2021 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 15syntax = "proto3"; 16 17package google.cloud.gsuiteaddons.logging.v1; 18 19import "google/rpc/status.proto"; 20 21option csharp_namespace = "Google.Cloud.GSuiteAddOns.Logging.V1"; 22option go_package = "cloud.google.com/go/gsuiteaddons/logging/apiv1/loggingpb;loggingpb"; 23option java_multiple_files = true; 24option java_outer_classname = "GSuiteAddOnsLogEntryProto"; 25option java_package = "com.google.cloud.gsuiteaddons.logging.v1"; 26option php_namespace = "Google\\Cloud\\GSuiteAddOns\\Logging\\V1"; 27option ruby_package = "Google::Cloud::GSuiteAddOns::Logging::V1"; 28 29// JSON payload of error messages that are logged to Cloud Logging. An error 30// message (in English) is written to Cloud Logging (if not disabled) when an 31// error is encountered while using an add-on. 32message GSuiteAddOnsLogEntry { 33 // The deployment that caused the error. For add-ons built in Apps Script, 34 // this is the deployment ID defined by Apps Script. For add-ons built in 35 // other languages, this is the deployment ID defined in Google Cloud. 36 string deployment = 1; 37 38 // The error code and message. 39 google.rpc.Status error = 2; 40 41 // The function name that was running when the error occurred. This field 42 // might not always be set, for example, if an error happens when fetching the 43 // list of installed add-ons for a user. 44 string deployment_function = 3; 45} 46