123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215 |
- load("@rules_proto//proto:defs.bzl", "proto_library")
- # This is an API workspace, having public visibility by default makes perfect sense.
- package(default_visibility = ["//visibility:public"])
- ##############################################################################
- # Common
- ##############################################################################
- load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
- proto_library(
- name = "operations_proto",
- srcs = ["operations.proto"],
- deps = [
- "//google/api:annotations_proto",
- "//google/api:client_proto",
- "//google/rpc:status_proto",
- "@com_google_protobuf//:any_proto",
- "@com_google_protobuf//:descriptor_proto",
- "@com_google_protobuf//:duration_proto",
- "@com_google_protobuf//:empty_proto",
- ],
- )
- proto_library_with_info(
- name = "longrunning_proto_with_info",
- deps = [":operations_proto"],
- )
- ##############################################################################
- # Java
- ##############################################################################
- load(
- "@com_google_googleapis_imports//:imports.bzl",
- "java_gapic_assembly_gradle_pkg",
- "java_grpc_library",
- "java_proto_library",
- )
- java_proto_library(
- name = "longrunning_java_proto",
- deps = [":operations_proto"],
- )
- java_grpc_library(
- name = "longrunning_java_grpc",
- srcs = [":operations_proto"],
- deps = [":longrunning_java_proto"],
- )
- # Please DO-NOT-REMOVE this section.
- # This is required to generate java files for these protos.
- # Open Source Packages
- java_gapic_assembly_gradle_pkg(
- name = "google-longrunning-java",
- transport = "grpc+rest",
- deps = [
- ":longrunning_java_grpc",
- ":longrunning_java_proto",
- ":operations_proto",
- ],
- )
- ##############################################################################
- # Go
- ##############################################################################
- load(
- "@com_google_googleapis_imports//:imports.bzl",
- "go_gapic_assembly_pkg",
- "go_gapic_library",
- "go_proto_library",
- )
- go_proto_library(
- name = "longrunning_go_proto",
- compilers = ["@io_bazel_rules_go//proto:go_grpc"],
- importpath = "google.golang.org/genproto/googleapis/longrunning",
- protos = [":operations_proto"],
- visibility = ["//visibility:public"],
- deps = [
- "//google/api:annotations_go_proto",
- "//google/rpc:status_go_proto",
- ],
- )
- go_gapic_library(
- name = "longrunning_go_gapic",
- srcs = [":longrunning_proto_with_info"],
- grpc_service_config = "longrunning_grpc_service_config.json",
- importpath = "cloud.google.com/go/longrunning/autogen;longrunning",
- rest_numeric_enums = False,
- service_yaml = "//google/longrunning:longrunning.yaml",
- transport = "grpc+rest",
- deps = [":longrunning_go_proto"],
- )
- # Open Source Packages
- go_gapic_assembly_pkg(
- name = "gapi-cloud-longrunning-go",
- deps = [
- ":longrunning_go_gapic",
- ":longrunning_go_proto",
- ],
- )
- ##############################################################################
- # C++
- ##############################################################################
- load(
- "@com_google_googleapis_imports//:imports.bzl",
- "cc_grpc_library",
- "cc_proto_library",
- )
- cc_proto_library(
- name = "longrunning_cc_proto",
- deps = [":operations_proto"],
- )
- cc_grpc_library(
- name = "longrunning_cc_grpc",
- srcs = [":operations_proto"],
- grpc_only = True,
- deps = [":longrunning_cc_proto"],
- )
- ##############################################################################
- # C#
- ##############################################################################
- load(
- "@com_google_googleapis_imports//:imports.bzl",
- "csharp_gapic_assembly_pkg",
- "csharp_gapic_library",
- "csharp_grpc_library",
- "csharp_proto_library",
- )
- csharp_proto_library(
- name = "longrunning_csharp_proto",
- deps = [":operations_proto"],
- )
- csharp_grpc_library(
- name = "longrunning_csharp_grpc",
- srcs = [":operations_proto"],
- deps = [":longrunning_csharp_proto"],
- )
- csharp_gapic_library(
- name = "longrunning_csharp_gapic",
- srcs = [":longrunning_proto_with_info"],
- common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
- grpc_service_config = "longrunning_grpc_service_config.json",
- rest_numeric_enums = False,
- service_yaml = "//google/longrunning:longrunning.yaml",
- deps = [
- ":longrunning_csharp_grpc",
- ":longrunning_csharp_proto",
- ],
- )
- # Open Source Packages
- csharp_gapic_assembly_pkg(
- name = "google-longrunning-csharp",
- deps = [
- ":longrunning_csharp_gapic",
- ":longrunning_csharp_grpc",
- ":longrunning_csharp_proto",
- ],
- )
- ##############################################################################
- # PHP
- ##############################################################################
- load(
- "@com_google_googleapis_imports//:imports.bzl",
- "php_gapic_assembly_pkg",
- "php_gapic_library",
- "php_grpc_library",
- "php_proto_library",
- )
- php_proto_library(
- name = "longrunning_php_proto",
- deps = [":operations_proto"],
- )
- php_grpc_library(
- name = "longrunning_php_grpc",
- srcs = [":operations_proto"],
- deps = [":longrunning_php_proto"],
- )
- php_gapic_library(
- name = "longrunning_php_gapic",
- srcs = [":longrunning_proto_with_info"],
- grpc_service_config = "longrunning_grpc_service_config.json",
- rest_numeric_enums = False,
- service_yaml = "//google/longrunning:longrunning.yaml",
- transport = "grpc+rest",
- deps = [
- ":longrunning_php_grpc",
- ":longrunning_php_proto",
- ],
- )
- # Open Source Packages
- php_gapic_assembly_pkg(
- name = "google-longrunning-php",
- deps = [
- ":longrunning_php_gapic",
- ":longrunning_php_grpc",
- ":longrunning_php_proto",
- ],
- )
|