Skip to content

Commit 422e8b7

Browse files
Google APIscopybara-github
authored andcommitted
feat: add RuntimeEvent log entry to Cloud Notebooks API
PiperOrigin-RevId: 437094843
1 parent abfc24e commit 422e8b7

2 files changed

Lines changed: 221 additions & 0 deletions

File tree

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
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+
"runtime_log.proto",
15+
],
16+
deps = [
17+
"//google/api:field_behavior_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/notebooks/logging/v1",
53+
protos = [":logging_proto"],
54+
deps = [
55+
"//google/api:annotations_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/api:field_behavior_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+
##############################################################################
119+
# Ruby
120+
##############################################################################
121+
load(
122+
"@com_google_googleapis_imports//:imports.bzl",
123+
"ruby_grpc_library",
124+
"ruby_proto_library",
125+
)
126+
127+
ruby_proto_library(
128+
name = "logging_ruby_proto",
129+
deps = [":logging_proto"],
130+
)
131+
132+
ruby_grpc_library(
133+
name = "logging_ruby_grpc",
134+
srcs = [":logging_proto"],
135+
deps = [":logging_ruby_proto"],
136+
)
137+
138+
##############################################################################
139+
# C#
140+
##############################################################################
141+
load(
142+
"@com_google_googleapis_imports//:imports.bzl",
143+
"csharp_grpc_library",
144+
"csharp_proto_library",
145+
)
146+
147+
csharp_proto_library(
148+
name = "logging_csharp_proto",
149+
deps = [":logging_proto"],
150+
)
151+
152+
csharp_grpc_library(
153+
name = "logging_csharp_grpc",
154+
srcs = [":logging_proto"],
155+
deps = [":logging_csharp_proto"],
156+
)
157+
158+
##############################################################################
159+
# C++
160+
##############################################################################
161+
load(
162+
"@com_google_googleapis_imports//:imports.bzl",
163+
"cc_grpc_library",
164+
"cc_proto_library",
165+
)
166+
167+
cc_proto_library(
168+
name = "logging_cc_proto",
169+
deps = [":logging_proto"],
170+
)
171+
172+
cc_grpc_library(
173+
name = "logging_cc_grpc",
174+
srcs = [":logging_proto"],
175+
grpc_only = True,
176+
deps = [":logging_cc_proto"],
177+
)
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Copyright 2022 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.notebooks.logging.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
21+
option go_package = "google.golang.org/genproto/googleapis/cloud/notebooks/logging/v1;logging";
22+
option java_multiple_files = true;
23+
option java_outer_classname = "RuntimeLogProto";
24+
option java_package = "com.google.cloud.notebooks.logging.v1";
25+
26+
// Defines protos for runtime related platform logs
27+
28+
// Log content of an event related to a runtime.
29+
message RuntimeEvent {
30+
// Defines event type.
31+
enum EventType {
32+
// Event is not specified.
33+
EVENT_TYPE_UNSPECIFIED = 0;
34+
35+
// Runtime state has been updated.
36+
RUNTIME_STATE_CHANGE_EVENT = 1;
37+
}
38+
39+
// Required. Type of event.
40+
EventType type = 1 [(google.api.field_behavior) = REQUIRED];
41+
42+
// Optional. Additional metadata for the event.
43+
map<string, string> details = 2 [(google.api.field_behavior) = OPTIONAL];
44+
}

0 commit comments

Comments
 (0)