Skip to content

Commit 7f52277

Browse files
Google APIscopybara-github
authored andcommitted
feat: Publish Cloud Integrations logging proto for documentation
Committer: @jinmichaelgu PiperOrigin-RevId: 405667694
1 parent 4381242 commit 7f52277

7 files changed

Lines changed: 857 additions & 0 deletions

File tree

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
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 = "integrations_proto",
13+
srcs = [
14+
"event_parameter.proto",
15+
"json_validation.proto",
16+
"log_entries.proto",
17+
"product.proto",
18+
"task_config.proto",
19+
"value_type.proto",
20+
],
21+
deps = [
22+
"//google/api:field_behavior_proto",
23+
"@com_google_protobuf//:timestamp_proto",
24+
],
25+
)
26+
27+
##############################################################################
28+
# Java
29+
##############################################################################
30+
load(
31+
"@com_google_googleapis_imports//:imports.bzl",
32+
"java_grpc_library",
33+
"java_proto_library",
34+
)
35+
36+
java_proto_library(
37+
name = "integrations_java_proto",
38+
deps = [":integrations_proto"],
39+
)
40+
41+
java_grpc_library(
42+
name = "integrations_java_grpc",
43+
srcs = [":integrations_proto"],
44+
deps = [":integrations_java_proto"],
45+
)
46+
47+
##############################################################################
48+
# Go
49+
##############################################################################
50+
load(
51+
"@com_google_googleapis_imports//:imports.bzl",
52+
"go_proto_library",
53+
)
54+
55+
go_proto_library(
56+
name = "integrations_go_proto",
57+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
58+
importpath = "google.golang.org/genproto/googleapis/cloud/integrations/v1alpha",
59+
protos = [":integrations_proto"],
60+
deps = [
61+
"//google/api:annotations_go_proto",
62+
],
63+
)
64+
65+
##############################################################################
66+
# Python
67+
##############################################################################
68+
load(
69+
"@com_google_googleapis_imports//:imports.bzl",
70+
"moved_proto_library",
71+
"py_grpc_library",
72+
"py_proto_library",
73+
)
74+
75+
moved_proto_library(
76+
name = "integrations_moved_proto",
77+
srcs = [":integrations_proto"],
78+
deps = [
79+
"//google/api:field_behavior_proto",
80+
"@com_google_protobuf//:timestamp_proto",
81+
],
82+
)
83+
84+
py_proto_library(
85+
name = "integrations_py_proto",
86+
deps = [":integrations_moved_proto"],
87+
)
88+
89+
py_grpc_library(
90+
name = "integrations_py_grpc",
91+
srcs = [":integrations_moved_proto"],
92+
deps = [":integrations_py_proto"],
93+
)
94+
95+
##############################################################################
96+
# PHP
97+
##############################################################################
98+
load(
99+
"@com_google_googleapis_imports//:imports.bzl",
100+
"php_grpc_library",
101+
"php_proto_library",
102+
)
103+
104+
php_proto_library(
105+
name = "integrations_php_proto",
106+
deps = [":integrations_proto"],
107+
)
108+
109+
php_grpc_library(
110+
name = "integrations_php_grpc",
111+
srcs = [":integrations_proto"],
112+
deps = [":integrations_php_proto"],
113+
)
114+
115+
##############################################################################
116+
# Node.js
117+
##############################################################################
118+
load(
119+
"@com_google_googleapis_imports//:imports.bzl",
120+
"nodejs_gapic_assembly_pkg",
121+
"nodejs_gapic_library",
122+
)
123+
124+
125+
##############################################################################
126+
# Ruby
127+
##############################################################################
128+
load(
129+
"@com_google_googleapis_imports//:imports.bzl",
130+
"ruby_grpc_library",
131+
"ruby_proto_library",
132+
)
133+
134+
ruby_proto_library(
135+
name = "integrations_ruby_proto",
136+
deps = [":integrations_proto"],
137+
)
138+
139+
ruby_grpc_library(
140+
name = "integrations_ruby_grpc",
141+
srcs = [":integrations_proto"],
142+
deps = [":integrations_ruby_proto"],
143+
)
144+
145+
##############################################################################
146+
# C#
147+
##############################################################################
148+
load(
149+
"@com_google_googleapis_imports//:imports.bzl",
150+
"csharp_grpc_library",
151+
"csharp_proto_library",
152+
)
153+
154+
csharp_proto_library(
155+
name = "integrations_csharp_proto",
156+
deps = [":integrations_proto"],
157+
)
158+
159+
csharp_grpc_library(
160+
name = "integrations_csharp_grpc",
161+
srcs = [":integrations_proto"],
162+
deps = [":integrations_csharp_proto"],
163+
)
164+
165+
##############################################################################
166+
# C++
167+
##############################################################################
168+
# Put your C++ code here
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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.integrations.v1alpha;
18+
19+
import "google/cloud/integrations/v1alpha/value_type.proto";
20+
21+
option go_package = "google.golang.org/genproto/googleapis/cloud/integrations/v1alpha;integrations";
22+
option java_multiple_files = true;
23+
option java_outer_classname = "EventParameterProto";
24+
option java_package = "com.google.cloud.integrations.v1alpha";
25+
26+
// This message is used for processing and persisting (when applicable) key
27+
// value pair parameters for each event in the event bus.
28+
message EventParameter {
29+
// Key is used to retrieve the corresponding parameter value. This should be
30+
// unique for a given fired event. These parameters must be predefined in the
31+
// integration definition.
32+
string key = 1;
33+
34+
// Values for the defined keys. Each value can either be string, int, double
35+
// or any proto message.
36+
ValueType value = 2;
37+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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.integrations.v1alpha;
18+
19+
option go_package = "google.golang.org/genproto/googleapis/cloud/integrations/v1alpha;integrations";
20+
option java_multiple_files = true;
21+
option java_outer_classname = "JsonValidationProto";
22+
option java_package = "com.google.cloud.integrations.v1alpha";
23+
24+
// Options for how to validate json schemas.
25+
enum JsonValidationOption {
26+
// As per the default behavior, no validation will be run. Will not override
27+
// any option set in a Task.
28+
JSON_VALIDATION_OPTION_UNSPECIFIED = 0;
29+
30+
// Do not run any validation against JSON schemas.
31+
SKIP = 1;
32+
33+
// Validate all potential input JSON parameters against schemas specified in
34+
// IntegrationParameter.
35+
PRE_EXECUTION = 2;
36+
37+
// Validate all potential output JSON parameters against schemas specified in
38+
// IntegrationParameter.
39+
POST_EXECUTION = 3;
40+
41+
// Perform both PRE_EXECUTION and POST_EXECUTION validations.
42+
PRE_POST_EXECUTION = 4;
43+
}

0 commit comments

Comments
 (0)