xref: /aosp_15_r20/external/googleapis/google/cloud/filestore/v1beta1/BUILD.bazel (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1# This file was automatically generated by BuildFileGenerator
2# https://github.com/googleapis/rules_gapic/tree/master/bazel
3
4# Most of the manual changes to this file will be overwritten.
5# It's **only** allowed to change the following rule attribute values:
6# - names of *_gapic_assembly_* rules
7# - certain parameters of *_gapic_library rules, including but not limited to:
8#    * extra_protoc_parameters
9#    * extra_protoc_file_parameters
10# The complete list of preserved parameters can be found in the source code.
11
12# This is an API workspace, having public visibility by default makes perfect sense.
13package(default_visibility = ["//visibility:public"])
14
15##############################################################################
16# Common
17##############################################################################
18load("@rules_proto//proto:defs.bzl", "proto_library")
19load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
20
21proto_library(
22    name = "filestore_proto",
23    srcs = [
24        "cloud_filestore_service.proto",
25    ],
26    deps = [
27        "//google/api:annotations_proto",
28        "//google/api:client_proto",
29        "//google/api:field_behavior_proto",
30        "//google/api:resource_proto",
31        "//google/cloud/common:common_proto",
32        "//google/longrunning:operations_proto",
33        "@com_google_protobuf//:empty_proto",
34        "@com_google_protobuf//:field_mask_proto",
35        "@com_google_protobuf//:timestamp_proto",
36        "@com_google_protobuf//:wrappers_proto",
37    ],
38)
39
40proto_library_with_info(
41    name = "filestore_proto_with_info",
42    deps = [
43        ":filestore_proto",
44        "//google/cloud:common_resources_proto",
45        "//google/cloud/common:common_proto",
46    ],
47)
48
49##############################################################################
50# Java
51##############################################################################
52load(
53    "@com_google_googleapis_imports//:imports.bzl",
54    "java_gapic_assembly_gradle_pkg",
55    "java_gapic_library",
56    "java_gapic_test",
57    "java_grpc_library",
58    "java_proto_library",
59)
60
61java_proto_library(
62    name = "filestore_java_proto",
63    deps = [
64        ":filestore_proto",
65        "//google/cloud/common:common_proto",
66    ],
67)
68
69java_grpc_library(
70    name = "filestore_java_grpc",
71    srcs = [":filestore_proto"],
72    deps = [":filestore_java_proto"],
73)
74
75java_gapic_library(
76    name = "filestore_java_gapic",
77    srcs = [":filestore_proto_with_info"],
78    gapic_yaml = "file_gapic.yaml",
79    grpc_service_config = "file_grpc_service_config.json",
80    rest_numeric_enums = True,
81    service_yaml = "file_v1beta1.yaml",
82    test_deps = [
83        ":filestore_java_grpc",
84    ],
85    transport = "grpc+rest",
86    deps = [
87        ":filestore_java_proto",
88        "//google/api:api_java_proto",
89        "//google/cloud/common:common_proto",
90    ],
91)
92
93java_gapic_test(
94    name = "filestore_java_gapic_test_suite",
95    test_classes = [
96        "com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClientHttpJsonTest",
97        "com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClientTest",
98    ],
99    runtime_deps = [":filestore_java_gapic_test"],
100)
101
102# Open Source Packages
103java_gapic_assembly_gradle_pkg(
104    name = "google-cloud-filestore-v1beta1-java",
105    include_samples = True,
106    transport = "grpc+rest",
107    deps = [
108        ":filestore_java_gapic",
109        ":filestore_java_grpc",
110        ":filestore_java_proto",
111        ":filestore_proto",
112    ],
113)
114
115##############################################################################
116# Go
117##############################################################################
118load(
119    "@com_google_googleapis_imports//:imports.bzl",
120    "go_gapic_assembly_pkg",
121    "go_gapic_library",
122    "go_proto_library",
123)
124
125go_proto_library(
126    name = "filestore_go_proto",
127    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
128    importpath = "cloud.google.com/go/filestore/apiv1beta1/filestorepb",
129    protos = [":filestore_proto"],
130    deps = [
131        "//google/api:annotations_go_proto",
132        "//google/cloud/common:common_go_proto",
133        "//google/longrunning:longrunning_go_proto",
134    ],
135)
136
137go_gapic_library(
138    name = "filestore_go_gapic",
139    srcs = [":filestore_proto_with_info"],
140    grpc_service_config = "file_grpc_service_config.json",
141    importpath = "cloud.google.com/go/filestore/apiv1beta1;filestore",
142    metadata = True,
143    release_level = "beta",
144    rest_numeric_enums = True,
145    service_yaml = "file_v1beta1.yaml",
146    transport = "grpc+rest",
147    deps = [
148        ":filestore_go_proto",
149        "//google/cloud/common:common_go_proto",
150        "//google/cloud/location:location_go_proto",
151        "//google/longrunning:longrunning_go_proto",
152        "@com_google_cloud_go_longrunning//:go_default_library",
153        "@com_google_cloud_go_longrunning//autogen:go_default_library",
154    ],
155)
156
157# Open Source Packages
158go_gapic_assembly_pkg(
159    name = "gapi-cloud-filestore-v1beta1-go",
160    deps = [
161        ":filestore_go_gapic",
162        ":filestore_go_gapic_srcjar-metadata.srcjar",
163        ":filestore_go_gapic_srcjar-snippets.srcjar",
164        ":filestore_go_gapic_srcjar-test.srcjar",
165        ":filestore_go_proto",
166    ],
167)
168
169##############################################################################
170# Python
171##############################################################################
172#
173# Commented out: Python generator cannot accept LRO metadata from a different
174# proto namespace.
175#
176# load(
177#     "@com_google_googleapis_imports//:imports.bzl",
178#     "py_gapic_assembly_pkg",
179#     "py_gapic_library",
180#     "py_test",
181# )
182
183# py_gapic_library(
184#     name = "filestore_py_gapic",
185#     srcs = [":filestore_proto_with_info"],
186#     grpc_service_config = "file_grpc_service_config.json",
187# )
188
189# # Open Source Packages
190# py_gapic_assembly_pkg(
191#     name = "filestore-v1beta1-py",
192#     deps = [
193#         ":filestore_py_gapic",
194#     ],
195# )
196
197##############################################################################
198# PHP
199##############################################################################
200load(
201    "@com_google_googleapis_imports//:imports.bzl",
202    "php_gapic_assembly_pkg",
203    "php_gapic_library",
204    "php_proto_library",
205)
206
207php_proto_library(
208    name = "filestore_php_proto",
209    deps = [":filestore_proto"],
210)
211
212php_gapic_library(
213    name = "filestore_php_gapic",
214    srcs = [":filestore_proto_with_info"],
215    gapic_yaml = "file_gapic.yaml",
216    grpc_service_config = "file_grpc_service_config.json",
217    rest_numeric_enums = True,
218    service_yaml = "file_v1beta1.yaml",
219    transport = "grpc+rest",
220    deps = [":filestore_php_proto"],
221)
222
223# Open Source Packages
224php_gapic_assembly_pkg(
225    name = "google-cloud-filestore-v1beta1-php",
226    deps = [
227        ":filestore_php_gapic",
228        ":filestore_php_proto",
229    ],
230)
231
232##############################################################################
233# Node.js
234##############################################################################
235load(
236    "@com_google_googleapis_imports//:imports.bzl",
237    "nodejs_gapic_assembly_pkg",
238    "nodejs_gapic_library",
239)
240
241nodejs_gapic_library(
242    name = "filestore_nodejs_gapic",
243    package_name = "@google-cloud/filestore",
244    src = ":filestore_proto_with_info",
245    extra_protoc_parameters = ["metadata"],
246    grpc_service_config = "file_grpc_service_config.json",
247    package = "google.cloud.filestore.v1beta1",
248    rest_numeric_enums = True,
249    service_yaml = "file_v1beta1.yaml",
250    transport = "grpc+rest",
251    deps = [],
252)
253
254nodejs_gapic_assembly_pkg(
255    name = "filestore-v1beta1-nodejs",
256    deps = [
257        ":filestore_nodejs_gapic",
258        ":filestore_proto",
259        "//google/cloud/common:common_proto",
260    ],
261)
262
263##############################################################################
264# Ruby
265##############################################################################
266load(
267    "@com_google_googleapis_imports//:imports.bzl",
268    "ruby_cloud_gapic_library",
269    "ruby_gapic_assembly_pkg",
270    "ruby_grpc_library",
271    "ruby_proto_library",
272)
273
274ruby_proto_library(
275    name = "filestore_ruby_proto",
276    deps = [":filestore_proto"],
277)
278
279ruby_grpc_library(
280    name = "filestore_ruby_grpc",
281    srcs = [":filestore_proto"],
282    deps = [":filestore_ruby_proto"],
283)
284
285ruby_cloud_gapic_library(
286    name = "filestore_ruby_gapic",
287    srcs = [":filestore_proto_with_info"],
288    extra_protoc_parameters = [
289        "ruby-cloud-gem-name=google-cloud-filestore-v1beta1",
290        "ruby-cloud-api-shortname=file",
291        "ruby-cloud-api-id=file.googleapis.com",
292        "ruby-cloud-product-url=https://cloud.google.com/filestore/",
293        "ruby-cloud-extra-dependencies=google-cloud-common=~>1.0",
294    ],
295    grpc_service_config = "file_grpc_service_config.json",
296    rest_numeric_enums = True,
297    ruby_cloud_description = "Filestore instances are fully managed NFS file servers on Google Cloud for use with applications running on Compute Engine virtual machines (VMs) instances or Google Kubernetes Engine clusters.",
298    ruby_cloud_title = "Filestore V1beta1",
299    service_yaml = "file_v1beta1.yaml",
300    deps = [
301        ":filestore_ruby_grpc",
302        ":filestore_ruby_proto",
303    ],
304)
305
306# Open Source Packages
307ruby_gapic_assembly_pkg(
308    name = "google-cloud-filestore-v1beta1-ruby",
309    deps = [
310        ":filestore_ruby_gapic",
311        ":filestore_ruby_grpc",
312        ":filestore_ruby_proto",
313    ],
314)
315
316##############################################################################
317# C#
318##############################################################################
319load(
320    "@com_google_googleapis_imports//:imports.bzl",
321    "csharp_gapic_assembly_pkg",
322    "csharp_gapic_library",
323    "csharp_grpc_library",
324    "csharp_proto_library",
325)
326
327csharp_proto_library(
328    name = "filestore_csharp_proto",
329    deps = [":filestore_proto"],
330)
331
332csharp_grpc_library(
333    name = "filestore_csharp_grpc",
334    srcs = [":filestore_proto"],
335    deps = [":filestore_csharp_proto"],
336)
337
338csharp_gapic_library(
339    name = "filestore_csharp_gapic",
340    srcs = [":filestore_proto_with_info"],
341    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
342    grpc_service_config = "file_grpc_service_config.json",
343    rest_numeric_enums = True,
344    service_yaml = "file_v1beta1.yaml",
345    transport = "grpc+rest",
346    deps = [
347        ":filestore_csharp_grpc",
348        ":filestore_csharp_proto",
349    ],
350)
351
352# Open Source Packages
353csharp_gapic_assembly_pkg(
354    name = "google-cloud-filestore-v1beta1-csharp",
355    deps = [
356        ":filestore_csharp_gapic",
357        ":filestore_csharp_grpc",
358        ":filestore_csharp_proto",
359    ],
360)
361
362##############################################################################
363# C++
364##############################################################################
365# Put your C++ rules here
366