xref: /aosp_15_r20/external/googleapis/google/cloud/talent/v4/BUILD.bazel (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1# This file was automatically generated by BuildFileGenerator
2# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/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 = "talent_proto",
23    srcs = [
24        "common.proto",
25        "company.proto",
26        "company_service.proto",
27        "completion_service.proto",
28        "event.proto",
29        "event_service.proto",
30        "filters.proto",
31        "histogram.proto",
32        "job.proto",
33        "job_service.proto",
34        "tenant.proto",
35        "tenant_service.proto",
36    ],
37    deps = [
38        "//google/api:annotations_proto",
39        "//google/api:client_proto",
40        "//google/api:field_behavior_proto",
41        "//google/api:resource_proto",
42        "//google/longrunning:operations_proto",
43        "//google/rpc:status_proto",
44        "//google/type:latlng_proto",
45        "//google/type:money_proto",
46        "//google/type:postal_address_proto",
47        "//google/type:timeofday_proto",
48        "@com_google_protobuf//:any_proto",
49        "@com_google_protobuf//:duration_proto",
50        "@com_google_protobuf//:empty_proto",
51        "@com_google_protobuf//:field_mask_proto",
52        "@com_google_protobuf//:timestamp_proto",
53        "@com_google_protobuf//:wrappers_proto",
54    ],
55)
56
57proto_library_with_info(
58    name = "talent_proto_with_info",
59    deps = [
60        ":talent_proto",
61        "//google/cloud:common_resources_proto",
62    ],
63)
64
65##############################################################################
66# Java
67##############################################################################
68load(
69    "@com_google_googleapis_imports//:imports.bzl",
70    "java_gapic_assembly_gradle_pkg",
71    "java_gapic_library",
72    "java_gapic_test",
73    "java_grpc_library",
74    "java_proto_library",
75)
76
77java_proto_library(
78    name = "talent_java_proto",
79    deps = [":talent_proto"],
80)
81
82java_grpc_library(
83    name = "talent_java_grpc",
84    srcs = [":talent_proto"],
85    deps = [":talent_java_proto"],
86)
87
88java_gapic_library(
89    name = "talent_java_gapic",
90    srcs = [":talent_proto_with_info"],
91    grpc_service_config = "talent_grpc_service_config.json",
92    rest_numeric_enums = True,
93    service_yaml = "jobs_v4.yaml",
94    test_deps = [
95        ":talent_java_grpc",
96    ],
97    transport = "grpc+rest",
98    deps = [
99        ":talent_java_proto",
100        "//google/api:api_java_proto",
101    ],
102)
103
104java_gapic_test(
105    name = "talent_java_gapic_test_suite",
106    test_classes = [
107        "com.google.cloud.talent.v4.CompanyServiceClientHttpJsonTest",
108        "com.google.cloud.talent.v4.CompanyServiceClientTest",
109        "com.google.cloud.talent.v4.CompletionClientHttpJsonTest",
110        "com.google.cloud.talent.v4.CompletionClientTest",
111        "com.google.cloud.talent.v4.EventServiceClientHttpJsonTest",
112        "com.google.cloud.talent.v4.EventServiceClientTest",
113        "com.google.cloud.talent.v4.JobServiceClientHttpJsonTest",
114        "com.google.cloud.talent.v4.JobServiceClientTest",
115        "com.google.cloud.talent.v4.TenantServiceClientHttpJsonTest",
116        "com.google.cloud.talent.v4.TenantServiceClientTest",
117    ],
118    runtime_deps = [":talent_java_gapic_test"],
119)
120
121# Open Source Packages
122java_gapic_assembly_gradle_pkg(
123    name = "google-cloud-talent-v4-java",
124    include_samples = True,
125    transport = "grpc+rest",
126    deps = [
127        ":talent_java_gapic",
128        ":talent_java_grpc",
129        ":talent_java_proto",
130        ":talent_proto",
131    ],
132)
133
134##############################################################################
135# Go
136##############################################################################
137load(
138    "@com_google_googleapis_imports//:imports.bzl",
139    "go_gapic_assembly_pkg",
140    "go_gapic_library",
141    "go_proto_library",
142)
143
144go_proto_library(
145    name = "talent_go_proto",
146    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
147    importpath = "cloud.google.com/go/talent/apiv4/talentpb",
148    protos = [":talent_proto"],
149    deps = [
150        "//google/api:annotations_go_proto",
151        "//google/longrunning:longrunning_go_proto",
152        "//google/rpc:status_go_proto",
153        "//google/type:latlng_go_proto",
154        "//google/type:money_go_proto",
155        "//google/type:postaladdress_go_proto",
156        "//google/type:timeofday_go_proto",
157    ],
158)
159
160go_gapic_library(
161    name = "talent_go_gapic",
162    srcs = [":talent_proto_with_info"],
163    grpc_service_config = "talent_grpc_service_config.json",
164    importpath = "cloud.google.com/go/talent/apiv4;talent",
165    metadata = True,
166    release_level = "ga",
167    rest_numeric_enums = True,
168    service_yaml = "jobs_v4.yaml",
169    transport = "grpc+rest",
170    deps = [
171        ":talent_go_proto",
172        "//google/longrunning:longrunning_go_proto",
173        "@com_google_cloud_go_longrunning//:go_default_library",
174        "@com_google_cloud_go_longrunning//autogen:go_default_library",
175        "@io_bazel_rules_go//proto/wkt:any_go_proto",
176        "@io_bazel_rules_go//proto/wkt:duration_go_proto",
177    ],
178)
179
180# Open Source Packages
181go_gapic_assembly_pkg(
182    name = "gapi-cloud-talent-v4-go",
183    deps = [
184        ":talent_go_gapic",
185        ":talent_go_gapic_srcjar-snippets.srcjar",
186        ":talent_go_gapic_srcjar-test.srcjar",
187        ":talent_go_proto",
188    ],
189)
190
191##############################################################################
192# Python
193##############################################################################
194load(
195    "@com_google_googleapis_imports//:imports.bzl",
196    "py_gapic_assembly_pkg",
197    "py_gapic_library",
198    "py_test",
199)
200
201py_gapic_library(
202    name = "talent_py_gapic",
203    srcs = [":talent_proto"],
204    grpc_service_config = "talent_grpc_service_config.json",
205    rest_numeric_enums = True,
206    service_yaml = "jobs_v4.yaml",
207    transport = "grpc+rest",
208)
209
210py_test(
211    name = "talent_py_gapic_test",
212    srcs = [
213        "talent_py_gapic_pytest.py",
214        "talent_py_gapic_test.py",
215    ],
216    legacy_create_init = False,
217    deps = [":talent_py_gapic"],
218)
219
220py_gapic_assembly_pkg(
221    name = "talent-v4-py",
222    deps = [
223        ":talent_py_gapic",
224    ],
225)
226
227##############################################################################
228# PHP
229##############################################################################
230load(
231    "@com_google_googleapis_imports//:imports.bzl",
232    "php_gapic_assembly_pkg",
233    "php_gapic_library",
234    "php_proto_library",
235)
236
237php_proto_library(
238    name = "talent_php_proto",
239    deps = [":talent_proto"],
240)
241
242php_gapic_library(
243    name = "talent_php_gapic",
244    srcs = [":talent_proto_with_info"],
245    grpc_service_config = "talent_grpc_service_config.json",
246    migration_mode = "MIGRATING",
247    rest_numeric_enums = True,
248    service_yaml = "jobs_v4.yaml",
249    transport = "grpc+rest",
250    deps = [":talent_php_proto"],
251)
252
253# Open Source Packages
254php_gapic_assembly_pkg(
255    name = "google-cloud-talent-v4-php",
256    deps = [
257        ":talent_php_gapic",
258        ":talent_php_proto",
259    ],
260)
261
262##############################################################################
263# Node.js
264##############################################################################
265load(
266    "@com_google_googleapis_imports//:imports.bzl",
267    "nodejs_gapic_assembly_pkg",
268    "nodejs_gapic_library",
269)
270
271nodejs_gapic_library(
272    name = "talent_nodejs_gapic",
273    package_name = "@google-cloud/talent",
274    src = ":talent_proto_with_info",
275    extra_protoc_parameters = ["metadata"],
276    grpc_service_config = "talent_grpc_service_config.json",
277    main_service = "talent",
278    package = "google.cloud.talent.v4",
279    rest_numeric_enums = True,
280    service_yaml = "jobs_v4.yaml",
281    transport = "grpc+rest",
282    deps = [],
283)
284
285nodejs_gapic_assembly_pkg(
286    name = "talent-v4-nodejs",
287    deps = [
288        ":talent_nodejs_gapic",
289        ":talent_proto",
290    ],
291)
292
293##############################################################################
294# Ruby
295##############################################################################
296load(
297    "@com_google_googleapis_imports//:imports.bzl",
298    "ruby_cloud_gapic_library",
299    "ruby_gapic_assembly_pkg",
300    "ruby_grpc_library",
301    "ruby_proto_library",
302)
303
304ruby_proto_library(
305    name = "talent_ruby_proto",
306    deps = [":talent_proto"],
307)
308
309ruby_grpc_library(
310    name = "talent_ruby_grpc",
311    srcs = [":talent_proto"],
312    deps = [":talent_ruby_proto"],
313)
314
315ruby_cloud_gapic_library(
316    name = "talent_ruby_gapic",
317    srcs = [":talent_proto_with_info"],
318    extra_protoc_parameters = [
319        "ruby-cloud-gem-name=google-cloud-talent-v4",
320        "ruby-cloud-env-prefix=TALENT",
321        "ruby-cloud-product-url=https://cloud.google.com/solutions/talent-solution",
322        "ruby-cloud-api-id=jobs.googleapis.com",
323        "ruby-cloud-api-shortname=jobs",
324    ],
325    grpc_service_config = "talent_grpc_service_config.json",
326    rest_numeric_enums = True,
327    ruby_cloud_description = "Transform your job search and candidate matching capabilities with Cloud Talent Solution, designed to support enterprise talent acquisition technology and evolve with your growing needs. This AI solution includes features such as Job Search and Profile Search to provide candidates and employers with an enhanced talent acquisition experience.",
328    ruby_cloud_title = "Cloud Talent Solution V4",
329    service_yaml = "jobs_v4.yaml",
330    transport = "grpc+rest",
331    deps = [
332        ":talent_ruby_grpc",
333        ":talent_ruby_proto",
334    ],
335)
336
337# Open Source Packages
338ruby_gapic_assembly_pkg(
339    name = "google-cloud-talent-v4-ruby",
340    deps = [
341        ":talent_ruby_gapic",
342        ":talent_ruby_grpc",
343        ":talent_ruby_proto",
344    ],
345)
346
347##############################################################################
348# C#
349##############################################################################
350load(
351    "@com_google_googleapis_imports//:imports.bzl",
352    "csharp_gapic_assembly_pkg",
353    "csharp_gapic_library",
354    "csharp_grpc_library",
355    "csharp_proto_library",
356)
357
358csharp_proto_library(
359    name = "talent_csharp_proto",
360    deps = [":talent_proto"],
361)
362
363csharp_grpc_library(
364    name = "talent_csharp_grpc",
365    srcs = [":talent_proto"],
366    deps = [":talent_csharp_proto"],
367)
368
369csharp_gapic_library(
370    name = "talent_csharp_gapic",
371    srcs = [":talent_proto_with_info"],
372    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
373    grpc_service_config = "talent_grpc_service_config.json",
374    rest_numeric_enums = True,
375    service_yaml = "jobs_v4.yaml",
376    transport = "grpc+rest",
377    deps = [
378        ":talent_csharp_grpc",
379        ":talent_csharp_proto",
380    ],
381)
382
383# Open Source Packages
384csharp_gapic_assembly_pkg(
385    name = "google-cloud-talent-v4-csharp",
386    deps = [
387        ":talent_csharp_gapic",
388        ":talent_csharp_grpc",
389        ":talent_csharp_proto",
390    ],
391)
392
393##############################################################################
394# C++
395##############################################################################
396load(
397    "@com_google_googleapis_imports//:imports.bzl",
398    "cc_grpc_library",
399    "cc_proto_library",
400)
401
402cc_proto_library(
403    name = "talent_cc_proto",
404    deps = [":talent_proto"],
405)
406
407cc_grpc_library(
408    name = "talent_cc_grpc",
409    srcs = [":talent_proto"],
410    grpc_only = True,
411    deps = [":talent_cc_proto"],
412)
413