Skip to content

Commit 4f1ea83

Browse files
Google APIscopybara-github
authored andcommitted
feat: Google Workspace Add-ons logging proto for documentation
PiperOrigin-RevId: 399425383
1 parent 1575986 commit 4f1ea83

2 files changed

Lines changed: 205 additions & 0 deletions

File tree

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
# This file was automatically generated by BuildFileGenerator
2+
3+
# This is an API workspace, having public visibility by default makes perfect sense.
4+
package(default_visibility = ["//visibility:public"])
5+
6+
##############################################################################
7+
# Common
8+
##############################################################################
9+
load("@rules_proto//proto:defs.bzl", "proto_library")
10+
11+
proto_library(
12+
name = "logging_proto",
13+
srcs = [
14+
"g_suite_add_ons_log_entry.proto",
15+
],
16+
deps = [
17+
"//google/rpc:status_proto",
18+
],
19+
)
20+
21+
##############################################################################
22+
# Java
23+
##############################################################################
24+
load(
25+
"@com_google_googleapis_imports//:imports.bzl",
26+
"java_grpc_library",
27+
"java_proto_library",
28+
)
29+
30+
java_proto_library(
31+
name = "logging_java_proto",
32+
deps = [":logging_proto"],
33+
)
34+
35+
java_grpc_library(
36+
name = "logging_java_grpc",
37+
srcs = [":logging_proto"],
38+
deps = [":logging_java_proto"],
39+
)
40+
41+
##############################################################################
42+
# Go
43+
##############################################################################
44+
load(
45+
"@com_google_googleapis_imports//:imports.bzl",
46+
"go_proto_library",
47+
)
48+
49+
go_proto_library(
50+
name = "logging_go_proto",
51+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
52+
importpath = "google.golang.org/genproto/googleapis/cloud/gsuiteaddons/logging/v1",
53+
protos = [":logging_proto"],
54+
deps = [
55+
"//google/rpc:status_go_proto",
56+
],
57+
)
58+
59+
##############################################################################
60+
# Python
61+
##############################################################################
62+
load(
63+
"@com_google_googleapis_imports//:imports.bzl",
64+
"moved_proto_library",
65+
"py_grpc_library",
66+
"py_proto_library",
67+
)
68+
69+
moved_proto_library(
70+
name = "logging_moved_proto",
71+
srcs = [":logging_proto"],
72+
deps = [
73+
"//google/rpc:status_proto",
74+
],
75+
)
76+
77+
py_proto_library(
78+
name = "logging_py_proto",
79+
deps = [":logging_moved_proto"],
80+
)
81+
82+
py_grpc_library(
83+
name = "logging_py_grpc",
84+
srcs = [":logging_moved_proto"],
85+
deps = [":logging_py_proto"],
86+
)
87+
88+
##############################################################################
89+
# PHP
90+
##############################################################################
91+
load(
92+
"@com_google_googleapis_imports//:imports.bzl",
93+
"php_grpc_library",
94+
"php_proto_library",
95+
)
96+
97+
php_proto_library(
98+
name = "logging_php_proto",
99+
deps = [":logging_proto"],
100+
)
101+
102+
php_grpc_library(
103+
name = "logging_php_grpc",
104+
srcs = [":logging_proto"],
105+
deps = [":logging_php_proto"],
106+
)
107+
108+
##############################################################################
109+
# Node.js
110+
##############################################################################
111+
load(
112+
"@com_google_googleapis_imports//:imports.bzl",
113+
"nodejs_gapic_assembly_pkg",
114+
"nodejs_gapic_library",
115+
)
116+
117+
##############################################################################
118+
# Ruby
119+
##############################################################################
120+
load(
121+
"@com_google_googleapis_imports//:imports.bzl",
122+
"ruby_grpc_library",
123+
"ruby_proto_library",
124+
)
125+
126+
ruby_proto_library(
127+
name = "logging_ruby_proto",
128+
deps = [":logging_proto"],
129+
)
130+
131+
ruby_grpc_library(
132+
name = "logging_ruby_grpc",
133+
srcs = [":logging_proto"],
134+
deps = [":logging_ruby_proto"],
135+
)
136+
137+
##############################################################################
138+
# C#
139+
##############################################################################
140+
load(
141+
"@com_google_googleapis_imports//:imports.bzl",
142+
"csharp_grpc_library",
143+
"csharp_proto_library",
144+
)
145+
146+
csharp_proto_library(
147+
name = "logging_csharp_proto",
148+
deps = [":logging_proto"],
149+
)
150+
151+
csharp_grpc_library(
152+
name = "logging_csharp_grpc",
153+
srcs = [":logging_proto"],
154+
deps = [":logging_csharp_proto"],
155+
)
156+
157+
##############################################################################
158+
# C++
159+
##############################################################################
160+
# Put your C++ code here
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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+
15+
syntax = "proto3";
16+
17+
package google.cloud.gsuiteaddons.logging.v1;
18+
19+
import "google/rpc/status.proto";
20+
21+
option csharp_namespace = "Google.Cloud.GSuiteAddOns.Logging.V1";
22+
option go_package = "google.golang.org/genproto/googleapis/cloud/gsuiteaddons/logging/v1;logging";
23+
option java_multiple_files = true;
24+
option java_outer_classname = "GSuiteAddOnsLogEntryProto";
25+
option java_package = "com.google.cloud.gsuiteaddons.logging.v1";
26+
option php_namespace = "Google\\Cloud\\GSuiteAddOns\\Logging\\V1";
27+
option 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.
32+
message 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+
}

0 commit comments

Comments
 (0)