Skip to content

Commit 30eeb27

Browse files
Google APIscopybara-github
authored andcommitted
feat: Publish Traffic Director log entry proto
Committer: @karthikbox PiperOrigin-RevId: 404630120
1 parent dc83df8 commit 30eeb27

2 files changed

Lines changed: 258 additions & 0 deletions

File tree

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
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 = "type_proto",
13+
srcs = [
14+
"traffic_director_log_entry.proto",
15+
],
16+
deps = [
17+
],
18+
)
19+
20+
##############################################################################
21+
# Java
22+
##############################################################################
23+
load(
24+
"@com_google_googleapis_imports//:imports.bzl",
25+
"java_grpc_library",
26+
"java_proto_library",
27+
)
28+
29+
java_proto_library(
30+
name = "type_java_proto",
31+
deps = [":type_proto"],
32+
)
33+
34+
java_grpc_library(
35+
name = "type_java_grpc",
36+
srcs = [":type_proto"],
37+
deps = [":type_java_proto"],
38+
)
39+
40+
##############################################################################
41+
# Go
42+
##############################################################################
43+
load(
44+
"@com_google_googleapis_imports//:imports.bzl",
45+
"go_proto_library",
46+
)
47+
48+
go_proto_library(
49+
name = "type_go_proto",
50+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
51+
importpath = "google.golang.org/genproto/googleapis/networking/trafficdirector/type",
52+
protos = [":type_proto"],
53+
deps = [
54+
],
55+
)
56+
57+
##############################################################################
58+
# Python
59+
##############################################################################
60+
load(
61+
"@com_google_googleapis_imports//:imports.bzl",
62+
"moved_proto_library",
63+
"py_grpc_library",
64+
"py_proto_library",
65+
)
66+
67+
moved_proto_library(
68+
name = "type_moved_proto",
69+
srcs = [":type_proto"],
70+
deps = [
71+
],
72+
)
73+
74+
py_proto_library(
75+
name = "type_py_proto",
76+
deps = [":type_moved_proto"],
77+
)
78+
79+
py_grpc_library(
80+
name = "type_py_grpc",
81+
srcs = [":type_moved_proto"],
82+
deps = [":type_py_proto"],
83+
)
84+
85+
##############################################################################
86+
# PHP
87+
##############################################################################
88+
load(
89+
"@com_google_googleapis_imports//:imports.bzl",
90+
"php_grpc_library",
91+
"php_proto_library",
92+
)
93+
94+
php_proto_library(
95+
name = "type_php_proto",
96+
deps = [":type_proto"],
97+
)
98+
99+
php_grpc_library(
100+
name = "type_php_grpc",
101+
srcs = [":type_proto"],
102+
deps = [":type_php_proto"],
103+
)
104+
105+
##############################################################################
106+
# Node.js
107+
##############################################################################
108+
load(
109+
"@com_google_googleapis_imports//:imports.bzl",
110+
"nodejs_gapic_assembly_pkg",
111+
"nodejs_gapic_library",
112+
)
113+
114+
##############################################################################
115+
# Ruby
116+
##############################################################################
117+
load(
118+
"@com_google_googleapis_imports//:imports.bzl",
119+
"ruby_grpc_library",
120+
"ruby_proto_library",
121+
)
122+
123+
ruby_proto_library(
124+
name = "type_ruby_proto",
125+
deps = [":type_proto"],
126+
)
127+
128+
ruby_grpc_library(
129+
name = "type_ruby_grpc",
130+
srcs = [":type_proto"],
131+
deps = [":type_ruby_proto"],
132+
)
133+
134+
##############################################################################
135+
# C#
136+
##############################################################################
137+
load(
138+
"@com_google_googleapis_imports//:imports.bzl",
139+
"csharp_grpc_library",
140+
"csharp_proto_library",
141+
)
142+
143+
csharp_proto_library(
144+
name = "type_csharp_proto",
145+
deps = [":type_proto"],
146+
)
147+
148+
csharp_grpc_library(
149+
name = "type_csharp_grpc",
150+
srcs = [":type_proto"],
151+
deps = [":type_csharp_proto"],
152+
)
153+
154+
##############################################################################
155+
# C++
156+
##############################################################################
157+
# Put your C++ code here
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
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.networking.trafficdirector.type;
18+
19+
option csharp_namespace = "Google.Cloud.Networking.TrafficDirector.Type";
20+
option go_package = "google.golang.org/genproto/googleapis/networking/trafficdirector/type";
21+
option java_multiple_files = true;
22+
option java_outer_classname = "TrafficDirectorLogEntryProto";
23+
option java_package = "com.google.networking.trafficdirector.type";
24+
option objc_class_prefix = "TRFCD";
25+
option php_namespace = "Google\\Cloud\\Networking\\TrafficDirector\\Type";
26+
option ruby_package = "Google::Cloud::Networking::TrafficDirector::Type";
27+
28+
// A common proto for describing how the Traffic Director handles
29+
// xDS-connections/requests/responses.
30+
message TrafficDirectorLogEntry {
31+
// Defines possible values of client type.
32+
enum ClientType {
33+
// Unspecified.
34+
CLIENT_TYPE_UNSPECIFIED = 0;
35+
36+
// Envoy client.
37+
ENVOY = 1;
38+
39+
// gRPC Java client.
40+
GRPC_JAVA = 2;
41+
42+
// gRPC C++ client.
43+
GRPC_CPP = 3;
44+
45+
// gRPC Python client.
46+
GRPC_PYTHON = 4;
47+
48+
// gRPC Go client.
49+
GRPC_GO = 5;
50+
51+
// gRPC Ruby client.
52+
GRPC_RUBY = 6;
53+
54+
// gRPC Ruby client.
55+
GRPC_PHP = 7;
56+
57+
// gRPC Node client.
58+
GRPC_NODE = 8;
59+
60+
// gRPC CSharp client.
61+
GRPC_CSHARP = 9;
62+
63+
// unknown client type.
64+
UNKNOWN = 10;
65+
}
66+
67+
// Defines possible values of API version.
68+
enum TransportApiVersion {
69+
// Unspecified.
70+
TRANSPORT_API_VERSION_UNSPECIFIED = 0;
71+
72+
// v2 xDS version.
73+
V2 = 1;
74+
75+
// v3 xDS version.
76+
V3 = 2;
77+
}
78+
79+
// An ID of xDS-client connecting to the Traffic Director.
80+
string node_id = 1;
81+
82+
// The string representation of IPv4 or IPv6 address of xDS-client
83+
// connecting to the Traffic Director.
84+
// IPv4 address must be in the format defined in RFC791, four octets separated
85+
// by a period. Size of a string is between 7-15 characters. Example: 1.2.3.4
86+
// IPv6 address must be in one of the formats defined in RFC4291. Size of a
87+
// string is between 7-39 characters. Example: 2001:DB8:0:0:8:800:200C:417A
88+
string node_ip = 2;
89+
90+
// A free text describing details of the event.
91+
string description = 4;
92+
93+
// Type of xDS-client connecting to Traffic Director
94+
ClientType client_type = 5;
95+
96+
// The version of xDS-client connecting to Traffic Director.
97+
string client_version = 6;
98+
99+
// The xDS API version used by xDS clients connecting to Traffic Director.
100+
TransportApiVersion transport_api_version = 7;
101+
}

0 commit comments

Comments
 (0)