xref: /aosp_15_r20/external/googleapis/google/cloud/filestore/v1/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    ],
46)
47
48##############################################################################
49# Java
50##############################################################################
51load(
52    "@com_google_googleapis_imports//:imports.bzl",
53    "java_gapic_assembly_gradle_pkg",
54    "java_gapic_library",
55    "java_gapic_test",
56    "java_grpc_library",
57    "java_proto_library",
58)
59
60java_proto_library(
61    name = "filestore_java_proto",
62    deps = [":filestore_proto"],
63)
64
65java_grpc_library(
66    name = "filestore_java_grpc",
67    srcs = [":filestore_proto"],
68    deps = [":filestore_java_proto"],
69)
70
71java_gapic_library(
72    name = "filestore_java_gapic",
73    srcs = [":filestore_proto_with_info"],
74    gapic_yaml = None,
75    grpc_service_config = "file_grpc_service_config.json",
76    rest_numeric_enums = True,
77    service_yaml = "file_v1.yaml",
78    test_deps = [
79        ":filestore_java_grpc",
80    ],
81    transport = "grpc+rest",
82    deps = [
83        ":filestore_java_proto",
84        "//google/api:api_java_proto",
85        "//google/cloud/common:common_java_proto",
86    ],
87)
88
89java_gapic_test(
90    name = "filestore_java_gapic_test_suite",
91    test_classes = [
92        "com.google.cloud.filestore.v1.CloudFilestoreManagerClientHttpJsonTest",
93        "com.google.cloud.filestore.v1.CloudFilestoreManagerClientTest",
94    ],
95    runtime_deps = [":filestore_java_gapic_test"],
96)
97
98# Open Source Packages
99java_gapic_assembly_gradle_pkg(
100    name = "google-cloud-filestore-v1-java",
101    include_samples = True,
102    transport = "grpc+rest",
103    deps = [
104        ":filestore_java_gapic",
105        ":filestore_java_grpc",
106        ":filestore_java_proto",
107        ":filestore_proto",
108        "//google/cloud/common:common_java_proto",
109    ],
110)
111
112##############################################################################
113# Go
114##############################################################################
115load(
116    "@com_google_googleapis_imports//:imports.bzl",
117    "go_gapic_assembly_pkg",
118    "go_gapic_library",
119    "go_proto_library",
120)
121
122go_proto_library(
123    name = "filestore_go_proto",
124    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
125    importpath = "cloud.google.com/go/filestore/apiv1/filestorepb",
126    protos = [":filestore_proto"],
127    deps = [
128        "//google/api:annotations_go_proto",
129        "//google/cloud/common:common_go_proto",
130        "//google/longrunning:longrunning_go_proto",
131    ],
132)
133
134go_gapic_library(
135    name = "filestore_go_gapic",
136    srcs = [":filestore_proto_with_info"],
137    grpc_service_config = "file_grpc_service_config.json",
138    importpath = "cloud.google.com/go/filestore/apiv1;filestore",
139    metadata = True,
140    release_level = "ga",
141    rest_numeric_enums = True,
142    service_yaml = "file_v1.yaml",
143    transport = "grpc+rest",
144    deps = [
145        ":filestore_go_proto",
146        "//google/cloud/common:common_go_proto",
147        "//google/cloud/location:location_go_proto",
148        "//google/longrunning:longrunning_go_proto",
149        "@com_google_cloud_go_longrunning//:go_default_library",
150        "@com_google_cloud_go_longrunning//autogen:go_default_library",
151    ],
152)
153
154# Open Source Packages
155go_gapic_assembly_pkg(
156    name = "gapi-cloud-filestore-v1-go",
157    deps = [
158        ":filestore_go_gapic",
159        ":filestore_go_gapic_srcjar-metadata.srcjar",
160        ":filestore_go_gapic_srcjar-snippets.srcjar",
161        ":filestore_go_gapic_srcjar-test.srcjar",
162        ":filestore_go_proto",
163    ],
164)
165
166##############################################################################
167# Python
168##############################################################################
169load(
170    "@com_google_googleapis_imports//:imports.bzl",
171    "py_gapic_assembly_pkg",
172    "py_gapic_library",
173    "py_import",
174    "py_test",
175)
176
177py_import(
178    name = "common",
179    srcs = [
180        "//google/cloud/common:common_py_gapic",
181    ],
182)
183
184py_gapic_library(
185    name = "filestore_py_gapic",
186    srcs = [":filestore_proto"],
187    grpc_service_config = "file_grpc_service_config.json",
188    opt_args = ["proto-plus-deps=google.cloud.common"],
189    rest_numeric_enums = True,
190    service_yaml = "file_v1.yaml",
191    transport = "grpc+rest",
192    deps = [
193        ":common",
194    ],
195)
196
197py_test(
198    name = "filestore_py_gapic_test",
199    srcs = [
200        "filestore_py_gapic_pytest.py",
201        "filestore_py_gapic_test.py",
202    ],
203    legacy_create_init = False,
204    deps = [":filestore_py_gapic"],
205)
206
207# Open Source Packages
208py_gapic_assembly_pkg(
209    name = "filestore-v1-py",
210    deps = [
211        ":filestore_py_gapic",
212    ],
213)
214
215##############################################################################
216# PHP
217##############################################################################
218load(
219    "@com_google_googleapis_imports//:imports.bzl",
220    "php_gapic_assembly_pkg",
221    "php_gapic_library",
222    "php_proto_library",
223)
224
225php_proto_library(
226    name = "filestore_php_proto",
227    deps = [":filestore_proto"],
228)
229
230php_gapic_library(
231    name = "filestore_php_gapic",
232    srcs = [":filestore_proto_with_info"],
233    grpc_service_config = "file_grpc_service_config.json",
234    migration_mode = "MIGRATING",
235    rest_numeric_enums = True,
236    service_yaml = "file_v1.yaml",
237    transport = "grpc+rest",
238    deps = [":filestore_php_proto"],
239)
240
241# Open Source Packages
242php_gapic_assembly_pkg(
243    name = "google-cloud-filestore-v1-php",
244    deps = [
245        ":filestore_php_gapic",
246        ":filestore_php_proto",
247    ],
248)
249
250##############################################################################
251# Node.js
252##############################################################################
253load(
254    "@com_google_googleapis_imports//:imports.bzl",
255    "nodejs_gapic_assembly_pkg",
256    "nodejs_gapic_library",
257)
258
259nodejs_gapic_library(
260    name = "filestore_nodejs_gapic",
261    package_name = "@google-cloud/filestore",
262    src = ":filestore_proto_with_info",
263    extra_protoc_parameters = ["metadata"],
264    grpc_service_config = "file_grpc_service_config.json",
265    package = "google.cloud.filestore.v1",
266    rest_numeric_enums = True,
267    service_yaml = "file_v1.yaml",
268    transport = "grpc+rest",
269    deps = [],
270)
271
272nodejs_gapic_assembly_pkg(
273    name = "filestore-v1-nodejs",
274    deps = [
275        ":filestore_nodejs_gapic",
276        ":filestore_proto",
277        "//google/cloud/common:common_proto",
278    ],
279)
280
281##############################################################################
282# Ruby
283##############################################################################
284load(
285    "@com_google_googleapis_imports//:imports.bzl",
286    "ruby_cloud_gapic_library",
287    "ruby_gapic_assembly_pkg",
288    "ruby_grpc_library",
289    "ruby_proto_library",
290)
291
292ruby_proto_library(
293    name = "filestore_ruby_proto",
294    deps = [":filestore_proto"],
295)
296
297ruby_grpc_library(
298    name = "filestore_ruby_grpc",
299    srcs = [":filestore_proto"],
300    deps = [":filestore_ruby_proto"],
301)
302
303ruby_cloud_gapic_library(
304    name = "filestore_ruby_gapic",
305    srcs = [":filestore_proto_with_info"],
306    extra_protoc_parameters = [
307        "ruby-cloud-api-id=file.googleapis.com",
308        "ruby-cloud-api-shortname=file",
309        "ruby-cloud-gem-name=google-cloud-filestore-v1",
310        "ruby-cloud-product-url=https://cloud.google.com/filestore/",
311        "ruby-cloud-extra-dependencies=google-cloud-common=~>1.0",
312    ],
313    grpc_service_config = "file_grpc_service_config.json",
314    rest_numeric_enums = True,
315    ruby_cloud_description = "Filestore instances are fully managed NFS file servers on Google Cloud for use with applications running on Compute Engine virtual machine (VM) instances, Google Kubernetes Engine clusters, external datastores such as Google Cloud VMware Engine, or your on-premises machines.",
316    ruby_cloud_title = "Filestore V1",
317    service_yaml = "file_v1.yaml",
318    transport = "grpc+rest",
319    deps = [
320        ":filestore_ruby_grpc",
321        ":filestore_ruby_proto",
322    ],
323)
324
325# Open Source Packages
326ruby_gapic_assembly_pkg(
327    name = "google-cloud-filestore-v1-ruby",
328    deps = [
329        ":filestore_ruby_gapic",
330        ":filestore_ruby_grpc",
331        ":filestore_ruby_proto",
332    ],
333)
334
335##############################################################################
336# C#
337##############################################################################
338load(
339    "@com_google_googleapis_imports//:imports.bzl",
340    "csharp_gapic_assembly_pkg",
341    "csharp_gapic_library",
342    "csharp_grpc_library",
343    "csharp_proto_library",
344)
345
346csharp_proto_library(
347    name = "filestore_csharp_proto",
348    deps = [":filestore_proto"],
349)
350
351csharp_grpc_library(
352    name = "filestore_csharp_grpc",
353    srcs = [":filestore_proto"],
354    deps = [":filestore_csharp_proto"],
355)
356
357csharp_gapic_library(
358    name = "filestore_csharp_gapic",
359    srcs = [":filestore_proto_with_info"],
360    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
361    grpc_service_config = "file_grpc_service_config.json",
362    rest_numeric_enums = True,
363    service_yaml = "file_v1.yaml",
364    transport = "grpc+rest",
365    deps = [
366        ":filestore_csharp_grpc",
367        ":filestore_csharp_proto",
368    ],
369)
370
371# Open Source Packages
372csharp_gapic_assembly_pkg(
373    name = "google-cloud-filestore-v1-csharp",
374    deps = [
375        ":filestore_csharp_gapic",
376        ":filestore_csharp_grpc",
377        ":filestore_csharp_proto",
378    ],
379)
380
381##############################################################################
382# C++
383##############################################################################
384load(
385    "@com_google_googleapis_imports//:imports.bzl",
386    "cc_grpc_library",
387    "cc_proto_library",
388)
389
390cc_proto_library(
391    name = "filestore_cc_proto",
392    deps = [":filestore_proto"],
393)
394
395cc_grpc_library(
396    name = "filestore_cc_grpc",
397    srcs = [":filestore_proto"],
398    grpc_only = True,
399    deps = [":filestore_cc_proto"],
400)
401