-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:Publish Dataform logging proto for documentation
PiperOrigin-RevId: 520076758
- Loading branch information
1 parent
0f498c7
commit 4e28498
Showing
2 changed files
with
248 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,193 @@ | ||
# This file was automatically generated by BuildFileGenerator | ||
|
||
# This is an API workspace, having public visibility by default makes perfect sense. | ||
package(default_visibility = ["//visibility:public"]) | ||
|
||
############################################################################## | ||
# Common | ||
############################################################################## | ||
load("@rules_proto//proto:defs.bzl", "proto_library") | ||
|
||
proto_library( | ||
name = "logging_proto", | ||
srcs = [ | ||
"logging.proto", | ||
], | ||
deps = [ | ||
"//google/api:field_behavior_proto", | ||
], | ||
) | ||
|
||
############################################################################## | ||
# Java | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"java_grpc_library", | ||
"java_proto_library", | ||
) | ||
|
||
java_proto_library( | ||
name = "logging_java_proto", | ||
deps = [":logging_proto"], | ||
) | ||
|
||
java_grpc_library( | ||
name = "logging_java_grpc", | ||
srcs = [":logging_proto"], | ||
deps = [":logging_java_proto"], | ||
) | ||
|
||
############################################################################## | ||
# Go | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"go_proto_library", | ||
"go_gapic_assembly_pkg", | ||
) | ||
|
||
go_proto_library( | ||
name = "logging_go_proto", | ||
compilers = ["@io_bazel_rules_go//proto:go_grpc"], | ||
importpath = "cloud.google.com/go/dataform/logging/apiv1/loggingpb", | ||
protos = [":logging_proto"], | ||
deps = [ | ||
"//google/api:annotations_go_proto", | ||
], | ||
) | ||
|
||
go_gapic_assembly_pkg( | ||
name = "logging-v1-go", | ||
deps = [ | ||
":logging_go_proto", | ||
], | ||
) | ||
|
||
############################################################################## | ||
# Python | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"moved_proto_library", | ||
"py_grpc_library", | ||
"py_proto_library", | ||
) | ||
|
||
moved_proto_library( | ||
name = "logging_moved_proto", | ||
srcs = [":logging_proto"], | ||
deps = [ | ||
"//google/api:field_behavior_proto", | ||
], | ||
) | ||
|
||
py_proto_library( | ||
name = "logging_py_proto", | ||
deps = [":logging_moved_proto"], | ||
) | ||
|
||
py_grpc_library( | ||
name = "logging_py_grpc", | ||
srcs = [":logging_moved_proto"], | ||
deps = [":logging_py_proto"], | ||
) | ||
|
||
############################################################################## | ||
# PHP | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"php_gapic_assembly_pkg", | ||
"php_grpc_library", | ||
"php_proto_library", | ||
) | ||
|
||
php_proto_library( | ||
name = "logging_php_proto", | ||
deps = [":logging_proto"], | ||
) | ||
|
||
php_grpc_library( | ||
name = "logging_php_grpc", | ||
srcs = [":logging_proto"], | ||
deps = [":logging_php_proto"], | ||
) | ||
|
||
php_gapic_assembly_pkg( | ||
name = "logging-v1-php", | ||
deps = [ | ||
":logging_php_proto", | ||
], | ||
) | ||
|
||
############################################################################## | ||
# Node.js | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"nodejs_gapic_assembly_pkg", | ||
"nodejs_gapic_library", | ||
) | ||
|
||
|
||
############################################################################## | ||
# Ruby | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"ruby_grpc_library", | ||
"ruby_proto_library", | ||
) | ||
|
||
ruby_proto_library( | ||
name = "logging_ruby_proto", | ||
deps = [":logging_proto"], | ||
) | ||
|
||
ruby_grpc_library( | ||
name = "logging_ruby_grpc", | ||
srcs = [":logging_proto"], | ||
deps = [":logging_ruby_proto"], | ||
) | ||
|
||
############################################################################## | ||
# C# | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"csharp_grpc_library", | ||
"csharp_proto_library", | ||
) | ||
|
||
csharp_proto_library( | ||
name = "logging_csharp_proto", | ||
deps = [":logging_proto"], | ||
) | ||
|
||
csharp_grpc_library( | ||
name = "logging_csharp_grpc", | ||
srcs = [":logging_proto"], | ||
deps = [":logging_csharp_proto"], | ||
) | ||
|
||
############################################################################## | ||
# C++ | ||
############################################################################## | ||
load( | ||
"@com_google_googleapis_imports//:imports.bzl", | ||
"cc_grpc_library", | ||
"cc_proto_library", | ||
) | ||
|
||
cc_proto_library( | ||
name = "logging_cc_proto", | ||
deps = [":logging_proto"], | ||
) | ||
|
||
cc_grpc_library( | ||
name = "logging_cc_grpc", | ||
srcs = [":logging_proto"], | ||
grpc_only = True, | ||
deps = [":logging_cc_proto"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Copyright 2023 Google LLC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
package google.cloud.dataform.logging.v1; | ||
|
||
import "google/api/field_behavior.proto"; | ||
|
||
option go_package = "cloud.google.com/go/dataform/logging/apiv1/loggingpb;loggingpb"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "LoggingProto"; | ||
option java_package = "com.google.cloud.dataform.logging.v1"; | ||
|
||
// Structured payload for logs generated from Dataform workflow invocation | ||
// completions. | ||
message WorkflowInvocationCompletionLogEntry { | ||
// Represents the final termination state of a workflow invocation. | ||
enum TerminalState { | ||
// Default value. This value is unused. | ||
TERMINAL_STATE_UNSPECIFIED = 0; | ||
|
||
// The workflow invocation succeeded. | ||
SUCCEEDED = 1; | ||
|
||
// The workflow invocation was cancelled. | ||
CANCELLED = 2; | ||
|
||
// The workflow invocation failed. | ||
FAILED = 3; | ||
} | ||
|
||
// Required. Identifier of the workflow invocation. | ||
string workflow_invocation_id = 1 [(google.api.field_behavior) = REQUIRED]; | ||
|
||
// Optional. Identifier of the workflow config. | ||
string workflow_config_id = 2 [(google.api.field_behavior) = OPTIONAL]; | ||
|
||
// Optional. Identifier of the release config. | ||
string release_config_id = 3 [(google.api.field_behavior) = OPTIONAL]; | ||
|
||
// Required. The workflow invocation's final termination state. | ||
TerminalState terminal_state = 4 [(google.api.field_behavior) = REQUIRED]; | ||
} |