diff options
| author | n1c00o <git.n1c00o@gmail.com> | 2022-10-12 18:05:45 +0200 | 
|---|---|---|
| committer | n1c00o <git.n1c00o@gmail.com> | 2022-10-12 18:05:45 +0200 | 
| commit | 9bcf3fedd50bd6c8dfef1673482d9b61fab49cd0 (patch) | |
| tree | 45f3b754ece09b90bde859bc6e7eae4d3c31a848 /third_party/googleapis/google/networking | |
| parent | 2e1a2ee3d6c12d8367cbbe005fe7dcf8d253d9ac (diff) | |
Revendor correctly googleapis
Diffstat (limited to 'third_party/googleapis/google/networking')
| -rw-r--r-- | third_party/googleapis/google/networking/trafficdirector/type/BUILD.bazel | 173 | ||||
| -rw-r--r-- | third_party/googleapis/google/networking/trafficdirector/type/traffic_director_log_entry.proto | 101 | 
2 files changed, 274 insertions, 0 deletions
diff --git a/third_party/googleapis/google/networking/trafficdirector/type/BUILD.bazel b/third_party/googleapis/google/networking/trafficdirector/type/BUILD.bazel new file mode 100644 index 0000000..341a04a --- /dev/null +++ b/third_party/googleapis/google/networking/trafficdirector/type/BUILD.bazel @@ -0,0 +1,173 @@ +# 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 = "type_proto", +    srcs = [ +        "traffic_director_log_entry.proto", +    ], +    deps = [ +    ], +) + +############################################################################## +# Java +############################################################################## +load( +    "@com_google_googleapis_imports//:imports.bzl", +    "java_grpc_library", +    "java_proto_library", +) + +java_proto_library( +    name = "type_java_proto", +    deps = [":type_proto"], +) + +java_grpc_library( +    name = "type_java_grpc", +    srcs = [":type_proto"], +    deps = [":type_java_proto"], +) + +############################################################################## +# Go +############################################################################## +load( +    "@com_google_googleapis_imports//:imports.bzl", +    "go_proto_library", +) + +go_proto_library( +    name = "type_go_proto", +    compilers = ["@io_bazel_rules_go//proto:go_grpc"], +    importpath = "google.golang.org/genproto/googleapis/networking/trafficdirector/type", +    protos = [":type_proto"], +    deps = [ +    ], +) + +############################################################################## +# Python +############################################################################## +load( +    "@com_google_googleapis_imports//:imports.bzl", +    "moved_proto_library", +    "py_grpc_library", +    "py_proto_library", +) + +moved_proto_library( +    name = "type_moved_proto", +    srcs = [":type_proto"], +    deps = [ +    ], +) + +py_proto_library( +    name = "type_py_proto", +    deps = [":type_moved_proto"], +) + +py_grpc_library( +    name = "type_py_grpc", +    srcs = [":type_moved_proto"], +    deps = [":type_py_proto"], +) + +############################################################################## +# PHP +############################################################################## +load( +    "@com_google_googleapis_imports//:imports.bzl", +    "php_grpc_library", +    "php_proto_library", +) + +php_proto_library( +    name = "type_php_proto", +    deps = [":type_proto"], +) + +php_grpc_library( +    name = "type_php_grpc", +    srcs = [":type_proto"], +    deps = [":type_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 = "type_ruby_proto", +    deps = [":type_proto"], +) + +ruby_grpc_library( +    name = "type_ruby_grpc", +    srcs = [":type_proto"], +    deps = [":type_ruby_proto"], +) + +############################################################################## +# C# +############################################################################## +load( +    "@com_google_googleapis_imports//:imports.bzl", +    "csharp_grpc_library", +    "csharp_proto_library", +) + +csharp_proto_library( +    name = "type_csharp_proto", +    deps = [":type_proto"], +) + +csharp_grpc_library( +    name = "type_csharp_grpc", +    srcs = [":type_proto"], +    deps = [":type_csharp_proto"], +) + +############################################################################## +# C++ +############################################################################## +load( +    "@com_google_googleapis_imports//:imports.bzl", +    "cc_grpc_library", +    "cc_proto_library", +) + +cc_proto_library( +    name = "type_cc_proto", +    deps = [":type_proto"], +) + +cc_grpc_library( +    name = "type_cc_grpc", +    srcs = [":type_proto"], +    grpc_only = True, +    deps = [":type_cc_proto"], +) diff --git a/third_party/googleapis/google/networking/trafficdirector/type/traffic_director_log_entry.proto b/third_party/googleapis/google/networking/trafficdirector/type/traffic_director_log_entry.proto new file mode 100644 index 0000000..8f6b4ee --- /dev/null +++ b/third_party/googleapis/google/networking/trafficdirector/type/traffic_director_log_entry.proto @@ -0,0 +1,101 @@ +// Copyright 2021 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.networking.trafficdirector.type; + +option csharp_namespace = "Google.Cloud.Networking.TrafficDirector.Type"; +option go_package = "google.golang.org/genproto/googleapis/networking/trafficdirector/type"; +option java_multiple_files = true; +option java_outer_classname = "TrafficDirectorLogEntryProto"; +option java_package = "com.google.networking.trafficdirector.type"; +option objc_class_prefix = "TRFCD"; +option php_namespace = "Google\\Cloud\\Networking\\TrafficDirector\\Type"; +option ruby_package = "Google::Cloud::Networking::TrafficDirector::Type"; + +// A common proto for describing how the Traffic Director handles +// xDS-connections/requests/responses. +message TrafficDirectorLogEntry { +  // Defines possible values of client type. +  enum ClientType { +    // Unspecified. +    CLIENT_TYPE_UNSPECIFIED = 0; + +    // Envoy client. +    ENVOY = 1; + +    // gRPC Java client. +    GRPC_JAVA = 2; + +    // gRPC C++ client. +    GRPC_CPP = 3; + +    // gRPC Python client. +    GRPC_PYTHON = 4; + +    // gRPC Go client. +    GRPC_GO = 5; + +    // gRPC Ruby client. +    GRPC_RUBY = 6; + +    // gRPC Ruby client. +    GRPC_PHP = 7; + +    // gRPC Node client. +    GRPC_NODE = 8; + +    // gRPC CSharp client. +    GRPC_CSHARP = 9; + +    // unknown client type. +    UNKNOWN = 10; +  } + +  // Defines possible values of API version. +  enum TransportApiVersion { +    // Unspecified. +    TRANSPORT_API_VERSION_UNSPECIFIED = 0; + +    // v2 xDS version. +    V2 = 1; + +    // v3 xDS version. +    V3 = 2; +  } + +  // An ID of xDS-client connecting to the Traffic Director. +  string node_id = 1; + +  // The string representation of IPv4 or IPv6 address of xDS-client +  // connecting to the Traffic Director. +  // IPv4 address must be in the format defined in RFC791, four octets separated +  // by a period. Size of a string is between 7-15 characters. Example: 1.2.3.4 +  // IPv6 address must be in one of the formats defined in RFC4291. Size of a +  // string is between 7-39 characters. Example: 2001:DB8:0:0:8:800:200C:417A +  string node_ip = 2; + +  // A free text describing details of the event. +  string description = 4; + +  // Type of xDS-client connecting to Traffic Director +  ClientType client_type = 5; + +  // The version of xDS-client connecting to Traffic Director. +  string client_version = 6; + +  // The xDS API version used by xDS clients connecting to Traffic Director. +  TransportApiVersion transport_api_version = 7; +}  | 
