xref: /aosp_15_r20/external/googleapis/google/cloud/contentwarehouse/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 = "contentwarehouse_proto",
23    srcs = [
24        "async_document_service_request.proto",
25        "common.proto",
26        "document.proto",
27        "document_link_service.proto",
28        "document_schema.proto",
29        "document_schema_service.proto",
30        "document_service.proto",
31        "document_service_request.proto",
32        "filters.proto",
33        "histogram.proto",
34        "pipeline_service.proto",
35        "pipelines.proto",
36        "rule_engine.proto",
37        "ruleset_service.proto",
38        "ruleset_service_request.proto",
39        "synonymset.proto",
40        "synonymset_service.proto",
41        "synonymset_service_request.proto",
42    ],
43    deps = [
44        "//google/api:annotations_proto",
45        "//google/api:client_proto",
46        "//google/api:field_behavior_proto",
47        "//google/api:resource_proto",
48        "//google/cloud/documentai/v1:documentai_proto",
49        "//google/iam/v1:policy_proto",
50        "//google/longrunning:operations_proto",
51        "//google/rpc:status_proto",
52        "//google/type:datetime_proto",
53        "//google/type:interval_proto",
54        "@com_google_protobuf//:empty_proto",
55        "@com_google_protobuf//:field_mask_proto",
56        "@com_google_protobuf//:timestamp_proto",
57    ],
58)
59
60proto_library_with_info(
61    name = "contentwarehouse_proto_with_info",
62    deps = [
63        ":contentwarehouse_proto",
64        "//google/cloud:common_resources_proto",
65    ],
66)
67
68##############################################################################
69# Java
70##############################################################################
71load(
72    "@com_google_googleapis_imports//:imports.bzl",
73    "java_gapic_assembly_gradle_pkg",
74    "java_gapic_library",
75    "java_gapic_test",
76    "java_grpc_library",
77    "java_proto_library",
78)
79
80java_proto_library(
81    name = "contentwarehouse_java_proto",
82    deps = [":contentwarehouse_proto"],
83)
84
85java_grpc_library(
86    name = "contentwarehouse_java_grpc",
87    srcs = [":contentwarehouse_proto"],
88    deps = [":contentwarehouse_java_proto"],
89)
90
91java_gapic_library(
92    name = "contentwarehouse_java_gapic",
93    srcs = [":contentwarehouse_proto_with_info"],
94    gapic_yaml = None,
95    grpc_service_config = "contentwarehouse_grpc_service_config.json",
96    rest_numeric_enums = True,
97    service_yaml = "contentwarehouse_v1.yaml",
98    test_deps = [
99        "//google/iam/v1:iam_java_grpc",
100        ":contentwarehouse_java_grpc",
101    ],
102    transport = "grpc+rest",
103    deps = [
104        ":contentwarehouse_java_proto",
105        "//google/api:api_java_proto",
106        "//google/iam/v1:iam_java_proto",
107    ],
108)
109
110java_gapic_test(
111    name = "contentwarehouse_java_gapic_test_suite",
112    test_classes = [
113        "com.google.cloud.contentwarehouse.v1.DocumentLinkServiceClientHttpJsonTest",
114        "com.google.cloud.contentwarehouse.v1.DocumentLinkServiceClientTest",
115        "com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceClientHttpJsonTest",
116        "com.google.cloud.contentwarehouse.v1.DocumentSchemaServiceClientTest",
117        "com.google.cloud.contentwarehouse.v1.DocumentServiceClientHttpJsonTest",
118        "com.google.cloud.contentwarehouse.v1.DocumentServiceClientTest",
119        "com.google.cloud.contentwarehouse.v1.PipelineServiceClientHttpJsonTest",
120        "com.google.cloud.contentwarehouse.v1.PipelineServiceClientTest",
121        "com.google.cloud.contentwarehouse.v1.RuleSetServiceClientHttpJsonTest",
122        "com.google.cloud.contentwarehouse.v1.RuleSetServiceClientTest",
123        "com.google.cloud.contentwarehouse.v1.SynonymSetServiceClientHttpJsonTest",
124        "com.google.cloud.contentwarehouse.v1.SynonymSetServiceClientTest",
125    ],
126    runtime_deps = [":contentwarehouse_java_gapic_test"],
127)
128
129# Open Source Packages
130java_gapic_assembly_gradle_pkg(
131    name = "google-cloud-contentwarehouse-v1-java",
132    include_samples = True,
133    transport = "grpc+rest",
134    deps = [
135        ":contentwarehouse_java_gapic",
136        ":contentwarehouse_java_grpc",
137        ":contentwarehouse_java_proto",
138        ":contentwarehouse_proto",
139    ],
140)
141
142##############################################################################
143# Go
144##############################################################################
145load(
146    "@com_google_googleapis_imports//:imports.bzl",
147    "go_gapic_assembly_pkg",
148    "go_gapic_library",
149    "go_proto_library",
150)
151
152go_proto_library(
153    name = "contentwarehouse_go_proto",
154    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
155    importpath = "cloud.google.com/go/contentwarehouse/apiv1/contentwarehousepb",
156    protos = [":contentwarehouse_proto"],
157    deps = [
158        "//google/api:annotations_go_proto",
159        "//google/cloud/documentai/v1:documentai_go_proto",
160        "//google/iam/v1:iam_go_proto",
161        "//google/longrunning:longrunning_go_proto",
162        "//google/rpc:status_go_proto",
163        "//google/type:datetime_go_proto",
164        "//google/type:interval_go_proto",
165    ],
166)
167
168go_gapic_library(
169    name = "contentwarehouse_go_gapic",
170    srcs = [":contentwarehouse_proto_with_info"],
171    grpc_service_config = "contentwarehouse_grpc_service_config.json",
172    importpath = "cloud.google.com/go/contentwarehouse/apiv1;contentwarehouse",
173    metadata = True,
174    release_level = "ga",
175    rest_numeric_enums = True,
176    service_yaml = "contentwarehouse_v1.yaml",
177    transport = "grpc+rest",
178    deps = [
179        ":contentwarehouse_go_proto",
180        "//google/iam/v1:iam_go_proto",
181        "//google/longrunning:longrunning_go_proto",
182        "@com_google_cloud_go_longrunning//:go_default_library",
183        "@com_google_cloud_go_longrunning//autogen:go_default_library",
184    ],
185)
186
187# Open Source Packages
188go_gapic_assembly_pkg(
189    name = "gapi-cloud-contentwarehouse-v1-go",
190    deps = [
191        ":contentwarehouse_go_gapic",
192        ":contentwarehouse_go_gapic_srcjar-metadata.srcjar",
193        ":contentwarehouse_go_gapic_srcjar-snippets.srcjar",
194        ":contentwarehouse_go_gapic_srcjar-test.srcjar",
195        ":contentwarehouse_go_proto",
196    ],
197)
198
199##############################################################################
200# Python
201##############################################################################
202load(
203    "@com_google_googleapis_imports//:imports.bzl",
204    "py_gapic_assembly_pkg",
205    "py_gapic_library",
206    "py_import",
207    "py_test",
208)
209
210py_import(
211    name = "documentai",
212    srcs = [
213        "//google/cloud/documentai/v1:documentai_py_gapic",
214    ],
215)
216
217py_gapic_library(
218    name = "contentwarehouse_py_gapic",
219    srcs = [":contentwarehouse_proto"],
220    grpc_service_config = "contentwarehouse_grpc_service_config.json",
221    opt_args = ["proto-plus-deps=google.cloud.documentai.v1"],
222    rest_numeric_enums = True,
223    service_yaml = "contentwarehouse_v1.yaml",
224    transport = "grpc+rest",
225    deps = [
226        ":documentai",
227        "//google/iam/v1:iam_policy_py_proto",
228    ],
229)
230
231py_test(
232    name = "contentwarehouse_py_gapic_test",
233    srcs = [
234        "contentwarehouse_py_gapic_pytest.py",
235        "contentwarehouse_py_gapic_test.py",
236    ],
237    legacy_create_init = False,
238    deps = [":contentwarehouse_py_gapic"],
239)
240
241# Open Source Packages
242py_gapic_assembly_pkg(
243    name = "contentwarehouse-v1-py",
244    deps = [
245        ":contentwarehouse_py_gapic",
246    ],
247)
248
249##############################################################################
250# PHP
251##############################################################################
252load(
253    "@com_google_googleapis_imports//:imports.bzl",
254    "php_gapic_assembly_pkg",
255    "php_gapic_library",
256    "php_proto_library",
257)
258
259php_proto_library(
260    name = "contentwarehouse_php_proto",
261    deps = [":contentwarehouse_proto"],
262)
263
264php_gapic_library(
265    name = "contentwarehouse_php_gapic",
266    srcs = [":contentwarehouse_proto_with_info"],
267    grpc_service_config = "contentwarehouse_grpc_service_config.json",
268    migration_mode = "PRE_MIGRATION_SURFACE_ONLY",
269    rest_numeric_enums = True,
270    service_yaml = "contentwarehouse_v1.yaml",
271    transport = "grpc+rest",
272    deps = [
273        ":contentwarehouse_php_proto",
274    ],
275)
276
277# Open Source Packages
278php_gapic_assembly_pkg(
279    name = "google-cloud-contentwarehouse-v1-php",
280    deps = [
281        ":contentwarehouse_php_gapic",
282        ":contentwarehouse_php_proto",
283    ],
284)
285
286##############################################################################
287# Node.js
288##############################################################################
289load(
290    "@com_google_googleapis_imports//:imports.bzl",
291    "nodejs_gapic_assembly_pkg",
292    "nodejs_gapic_library",
293)
294
295nodejs_gapic_library(
296    name = "contentwarehouse_nodejs_gapic",
297    package_name = "@google-cloud/contentwarehouse",
298    src = ":contentwarehouse_proto_with_info",
299    extra_protoc_parameters = ["metadata"],
300    grpc_service_config = "contentwarehouse_grpc_service_config.json",
301    package = "google.cloud.contentwarehouse.v1",
302    rest_numeric_enums = True,
303    service_yaml = "contentwarehouse_v1.yaml",
304    transport = "grpc+rest",
305    deps = [],
306)
307
308nodejs_gapic_assembly_pkg(
309    name = "contentwarehouse-v1-nodejs",
310    deps = [
311        ":contentwarehouse_nodejs_gapic",
312        ":contentwarehouse_proto",
313        "//google/cloud/documentai/v1:documentai_proto",
314    ],
315)
316
317##############################################################################
318# Ruby
319##############################################################################
320load(
321    "@com_google_googleapis_imports//:imports.bzl",
322    "ruby_cloud_gapic_library",
323    "ruby_gapic_assembly_pkg",
324    "ruby_grpc_library",
325    "ruby_proto_library",
326)
327
328ruby_proto_library(
329    name = "contentwarehouse_ruby_proto",
330    deps = [":contentwarehouse_proto"],
331)
332
333ruby_grpc_library(
334    name = "contentwarehouse_ruby_grpc",
335    srcs = [":contentwarehouse_proto"],
336    deps = [":contentwarehouse_ruby_proto"],
337)
338
339ruby_cloud_gapic_library(
340    name = "contentwarehouse_ruby_gapic",
341    srcs = [":contentwarehouse_proto_with_info"],
342    extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-contentwarehouse-v1"],
343    grpc_service_config = "contentwarehouse_grpc_service_config.json",
344    rest_numeric_enums = True,
345    service_yaml = "contentwarehouse_v1.yaml",
346    transport = "grpc+rest",
347    deps = [
348        ":contentwarehouse_ruby_grpc",
349        ":contentwarehouse_ruby_proto",
350    ],
351)
352
353# Open Source Packages
354ruby_gapic_assembly_pkg(
355    name = "google-cloud-contentwarehouse-v1-ruby",
356    deps = [
357        ":contentwarehouse_ruby_gapic",
358        ":contentwarehouse_ruby_grpc",
359        ":contentwarehouse_ruby_proto",
360    ],
361)
362
363##############################################################################
364# C#
365##############################################################################
366load(
367    "@com_google_googleapis_imports//:imports.bzl",
368    "csharp_gapic_assembly_pkg",
369    "csharp_gapic_library",
370    "csharp_grpc_library",
371    "csharp_proto_library",
372)
373
374csharp_proto_library(
375    name = "contentwarehouse_csharp_proto",
376    extra_opts = [],
377    deps = [":contentwarehouse_proto"],
378)
379
380csharp_grpc_library(
381    name = "contentwarehouse_csharp_grpc",
382    srcs = [":contentwarehouse_proto"],
383    deps = [":contentwarehouse_csharp_proto"],
384)
385
386csharp_gapic_library(
387    name = "contentwarehouse_csharp_gapic",
388    srcs = [":contentwarehouse_proto_with_info"],
389    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
390    grpc_service_config = "contentwarehouse_grpc_service_config.json",
391    rest_numeric_enums = True,
392    service_yaml = "contentwarehouse_v1.yaml",
393    transport = "grpc+rest",
394    deps = [
395        ":contentwarehouse_csharp_grpc",
396        ":contentwarehouse_csharp_proto",
397    ],
398)
399
400# Open Source Packages
401csharp_gapic_assembly_pkg(
402    name = "google-cloud-contentwarehouse-v1-csharp",
403    deps = [
404        ":contentwarehouse_csharp_gapic",
405        ":contentwarehouse_csharp_grpc",
406        ":contentwarehouse_csharp_proto",
407    ],
408)
409
410##############################################################################
411# C++
412##############################################################################
413load(
414    "@com_google_googleapis_imports//:imports.bzl",
415    "cc_grpc_library",
416    "cc_proto_library",
417)
418
419cc_proto_library(
420    name = "contentwarehouse_cc_proto",
421    deps = [":contentwarehouse_proto"],
422)
423
424cc_grpc_library(
425    name = "contentwarehouse_cc_grpc",
426    srcs = [":contentwarehouse_proto"],
427    grpc_only = True,
428    deps = [":contentwarehouse_cc_proto"],
429)
430