Skip to content

Commit 4e28498

Browse files
Google APIscopybara-github
authored andcommitted
feat:Publish Dataform logging proto for documentation
PiperOrigin-RevId: 520076758
1 parent 0f498c7 commit 4e28498

2 files changed

Lines changed: 248 additions & 0 deletions

File tree

Lines changed: 193 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,193 @@
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+
"logging.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+
"go_gapic_assembly_pkg",
48+
)
49+
50+
go_proto_library(
51+
name = "logging_go_proto",
52+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
53+
importpath = "cloud.google.com/go/dataform/logging/apiv1/loggingpb",
54+
protos = [":logging_proto"],
55+
deps = [
56+
"//google/api:annotations_go_proto",
57+
],
58+
)
59+
60+
go_gapic_assembly_pkg(
61+
name = "logging-v1-go",
62+
deps = [
63+
":logging_go_proto",
64+
],
65+
)
66+
67+
##############################################################################
68+
# Python
69+
##############################################################################
70+
load(
71+
"@com_google_googleapis_imports//:imports.bzl",
72+
"moved_proto_library",
73+
"py_grpc_library",
74+
"py_proto_library",
75+
)
76+
77+
moved_proto_library(
78+
name = "logging_moved_proto",
79+
srcs = [":logging_proto"],
80+
deps = [
81+
"//google/api:field_behavior_proto",
82+
],
83+
)
84+
85+
py_proto_library(
86+
name = "logging_py_proto",
87+
deps = [":logging_moved_proto"],
88+
)
89+
90+
py_grpc_library(
91+
name = "logging_py_grpc",
92+
srcs = [":logging_moved_proto"],
93+
deps = [":logging_py_proto"],
94+
)
95+
96+
##############################################################################
97+
# PHP
98+
##############################################################################
99+
load(
100+
"@com_google_googleapis_imports//:imports.bzl",
101+
"php_gapic_assembly_pkg",
102+
"php_grpc_library",
103+
"php_proto_library",
104+
)
105+
106+
php_proto_library(
107+
name = "logging_php_proto",
108+
deps = [":logging_proto"],
109+
)
110+
111+
php_grpc_library(
112+
name = "logging_php_grpc",
113+
srcs = [":logging_proto"],
114+
deps = [":logging_php_proto"],
115+
)
116+
117+
php_gapic_assembly_pkg(
118+
name = "logging-v1-php",
119+
deps = [
120+
":logging_php_proto",
121+
],
122+
)
123+
124+
##############################################################################
125+
# Node.js
126+
##############################################################################
127+
load(
128+
"@com_google_googleapis_imports//:imports.bzl",
129+
"nodejs_gapic_assembly_pkg",
130+
"nodejs_gapic_library",
131+
)
132+
133+
134+
##############################################################################
135+
# Ruby
136+
##############################################################################
137+
load(
138+
"@com_google_googleapis_imports//:imports.bzl",
139+
"ruby_grpc_library",
140+
"ruby_proto_library",
141+
)
142+
143+
ruby_proto_library(
144+
name = "logging_ruby_proto",
145+
deps = [":logging_proto"],
146+
)
147+
148+
ruby_grpc_library(
149+
name = "logging_ruby_grpc",
150+
srcs = [":logging_proto"],
151+
deps = [":logging_ruby_proto"],
152+
)
153+
154+
##############################################################################
155+
# C#
156+
##############################################################################
157+
load(
158+
"@com_google_googleapis_imports//:imports.bzl",
159+
"csharp_grpc_library",
160+
"csharp_proto_library",
161+
)
162+
163+
csharp_proto_library(
164+
name = "logging_csharp_proto",
165+
deps = [":logging_proto"],
166+
)
167+
168+
csharp_grpc_library(
169+
name = "logging_csharp_grpc",
170+
srcs = [":logging_proto"],
171+
deps = [":logging_csharp_proto"],
172+
)
173+
174+
##############################################################################
175+
# C++
176+
##############################################################################
177+
load(
178+
"@com_google_googleapis_imports//:imports.bzl",
179+
"cc_grpc_library",
180+
"cc_proto_library",
181+
)
182+
183+
cc_proto_library(
184+
name = "logging_cc_proto",
185+
deps = [":logging_proto"],
186+
)
187+
188+
cc_grpc_library(
189+
name = "logging_cc_grpc",
190+
srcs = [":logging_proto"],
191+
grpc_only = True,
192+
deps = [":logging_cc_proto"],
193+
)
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
// Copyright 2023 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.dataform.logging.v1;
18+
19+
import "google/api/field_behavior.proto";
20+
21+
option go_package = "cloud.google.com/go/dataform/logging/apiv1/loggingpb;loggingpb";
22+
option java_multiple_files = true;
23+
option java_outer_classname = "LoggingProto";
24+
option java_package = "com.google.cloud.dataform.logging.v1";
25+
26+
// Structured payload for logs generated from Dataform workflow invocation
27+
// completions.
28+
message WorkflowInvocationCompletionLogEntry {
29+
// Represents the final termination state of a workflow invocation.
30+
enum TerminalState {
31+
// Default value. This value is unused.
32+
TERMINAL_STATE_UNSPECIFIED = 0;
33+
34+
// The workflow invocation succeeded.
35+
SUCCEEDED = 1;
36+
37+
// The workflow invocation was cancelled.
38+
CANCELLED = 2;
39+
40+
// The workflow invocation failed.
41+
FAILED = 3;
42+
}
43+
44+
// Required. Identifier of the workflow invocation.
45+
string workflow_invocation_id = 1 [(google.api.field_behavior) = REQUIRED];
46+
47+
// Optional. Identifier of the workflow config.
48+
string workflow_config_id = 2 [(google.api.field_behavior) = OPTIONAL];
49+
50+
// Optional. Identifier of the release config.
51+
string release_config_id = 3 [(google.api.field_behavior) = OPTIONAL];
52+
53+
// Required. The workflow invocation's final termination state.
54+
TerminalState terminal_state = 4 [(google.api.field_behavior) = REQUIRED];
55+
}

0 commit comments

Comments
 (0)