• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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")
20load(
21    "@com_google_googleapis_imports//:imports.bzl",
22    "cc_grpc_library",
23    "cc_proto_library",
24    "csharp_gapic_assembly_pkg",
25    "csharp_gapic_library",
26    "csharp_grpc_library",
27    "csharp_proto_library",
28    "go_gapic_assembly_pkg",
29    "go_gapic_library",
30    "go_proto_library",
31    "java_gapic_assembly_gradle_pkg",
32    "java_gapic_library",
33    "java_gapic_test",
34    "java_grpc_library",
35    "java_proto_library",
36    "nodejs_gapic_assembly_pkg",
37    "nodejs_gapic_library",
38    "php_gapic_assembly_pkg",
39    "php_gapic_library",
40    "php_proto_library",
41    "proto_library_with_info",
42    "py_gapic_assembly_pkg",
43    "py_gapic_library",
44    "py_import",
45    "py_test",
46    "ruby_cloud_gapic_library",
47    "ruby_gapic_assembly_pkg",
48    "ruby_grpc_library",
49    "ruby_proto_library",
50)
51
52proto_library(
53    name = "places_proto",
54    srcs = [
55        "attribution.proto",
56        "ev_charging.proto",
57        "fuel_options.proto",
58        "geometry.proto",
59        "photo.proto",
60        "place.proto",
61        "places_service.proto",
62        "review.proto",
63    ],
64    deps = [
65        "//google/api:annotations_proto",
66        "//google/api:client_proto",
67        "//google/api:field_behavior_proto",
68        "//google/api:resource_proto",
69        "//google/geo/type:viewport_proto",
70        "//google/type:date_proto",
71        "//google/type:latlng_proto",
72        "//google/type:localized_text_proto",
73        "//google/type:money_proto",
74        "@com_google_protobuf//:timestamp_proto",
75    ],
76)
77
78proto_library_with_info(
79    name = "places_proto_with_info",
80    deps = [
81        ":places_proto",
82        "//google/cloud:common_resources_proto",
83    ],
84)
85
86py_import(
87    name = "viewport",
88    srcs = [
89        "//google/geo/type:viewport_py_gapic",
90    ],
91)
92
93##############################################################################
94# Java
95##############################################################################
96load(
97    "@com_google_googleapis_imports//:imports.bzl",
98    "java_gapic_assembly_gradle_pkg",
99    "java_gapic_library",
100    "java_gapic_test",
101    "java_grpc_library",
102    "java_proto_library",
103)
104
105java_proto_library(
106    name = "places_java_proto",
107    deps = [":places_proto"],
108)
109
110java_grpc_library(
111    name = "places_java_grpc",
112    srcs = [":places_proto"],
113    deps = [":places_java_proto"],
114)
115
116java_gapic_library(
117    name = "places_java_gapic",
118    srcs = [":places_proto_with_info"],
119    gapic_yaml = None,
120    grpc_service_config = "places_grpc_service_config.json",
121    rest_numeric_enums = True,
122    service_yaml = "places_v1.yaml",
123    test_deps = [
124        ":places_java_grpc",
125    ],
126    transport = "grpc+rest",
127    deps = [
128        ":places_java_proto",
129        "//google/api:api_java_proto",
130    ],
131)
132
133java_gapic_test(
134    name = "places_java_gapic_test_suite",
135    test_classes = [
136        "com.google.maps.places.v1.PlacesClientHttpJsonTest",
137        "com.google.maps.places.v1.PlacesClientTest",
138    ],
139    runtime_deps = [":places_java_gapic_test"],
140)
141
142# Open Source Packages
143java_gapic_assembly_gradle_pkg(
144    name = "google-cloud-maps-places-v1-java",
145    include_samples = True,
146    transport = "grpc+rest",
147    deps = [
148        ":places_java_gapic",
149        ":places_java_grpc",
150        ":places_java_proto",
151        ":places_proto",
152    ],
153)
154
155##############################################################################
156# Go
157##############################################################################
158load(
159    "@com_google_googleapis_imports//:imports.bzl",
160    "go_gapic_assembly_pkg",
161    "go_gapic_library",
162    "go_proto_library",
163)
164
165go_proto_library(
166    name = "places_go_proto",
167    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
168    importpath = "cloud.google.com/go/maps/places/apiv1/placespb",
169    protos = [":places_proto"],
170    deps = [
171        "//google/api:annotations_go_proto",
172        "//google/geo/type:viewport_go_proto",
173        "//google/type:date_go_proto",
174        "//google/type:latlng_go_proto",
175        "//google/type:localized_text_go_proto",
176        "//google/type:money_go_proto",
177    ],
178)
179
180go_gapic_library(
181    name = "places_go_gapic",
182    srcs = [":places_proto_with_info"],
183    grpc_service_config = "places_grpc_service_config.json",
184    importpath = "cloud.google.com/go/maps/places/apiv1;places",
185    metadata = True,
186    release_level = "ga",
187    rest_numeric_enums = True,
188    service_yaml = "places_v1.yaml",
189    transport = "grpc+rest",
190    deps = [
191        ":places_go_proto",
192    ],
193)
194
195# Open Source Packages
196go_gapic_assembly_pkg(
197    name = "gapi-cloud-maps-places-v1-go",
198    deps = [
199        ":places_go_gapic",
200        ":places_go_gapic_srcjar-metadata.srcjar",
201        ":places_go_gapic_srcjar-snippets.srcjar",
202        ":places_go_gapic_srcjar-test.srcjar",
203        ":places_go_proto",
204    ],
205)
206
207##############################################################################
208# Python
209##############################################################################
210load(
211    "@com_google_googleapis_imports//:imports.bzl",
212    "py_gapic_assembly_pkg",
213    "py_gapic_library",
214    "py_test",
215)
216
217py_gapic_library(
218    name = "places_py_gapic",
219    srcs = [":places_proto"],
220    grpc_service_config = "places_grpc_service_config.json",
221    opt_args = ["proto-plus-deps=google.geo.type"],
222    rest_numeric_enums = True,
223    service_yaml = "places_v1.yaml",
224    transport = "grpc+rest",
225    deps = [
226       ":viewport"
227    ],
228)
229
230py_test(
231    name = "places_py_gapic_test",
232    srcs = [
233        "places_py_gapic_pytest.py",
234        "places_py_gapic_test.py",
235    ],
236    legacy_create_init = False,
237    deps = [":places_py_gapic"],
238)
239
240# Open Source Packages
241py_gapic_assembly_pkg(
242    name = "maps-places-v1-py",
243    deps = [
244        ":places_py_gapic",
245    ],
246)
247
248##############################################################################
249# PHP
250##############################################################################
251load(
252    "@com_google_googleapis_imports//:imports.bzl",
253    "php_gapic_assembly_pkg",
254    "php_gapic_library",
255    "php_proto_library",
256)
257
258php_proto_library(
259    name = "places_php_proto",
260    deps = [":places_proto"],
261)
262
263php_gapic_library(
264    name = "places_php_gapic",
265    srcs = [":places_proto_with_info"],
266    grpc_service_config = "places_grpc_service_config.json",
267    migration_mode = "PRE_MIGRATION_SURFACE_ONLY",
268    rest_numeric_enums = True,
269    service_yaml = "places_v1.yaml",
270    transport = "grpc+rest",
271    deps = [
272        ":places_php_proto",
273    ],
274)
275
276# Open Source Packages
277php_gapic_assembly_pkg(
278    name = "google-cloud-maps-places-v1-php",
279    deps = [
280        ":places_php_gapic",
281        ":places_php_proto",
282    ],
283)
284
285##############################################################################
286# Node.js
287##############################################################################
288load(
289    "@com_google_googleapis_imports//:imports.bzl",
290    "nodejs_gapic_assembly_pkg",
291    "nodejs_gapic_library",
292)
293
294nodejs_gapic_library(
295    name = "places_nodejs_gapic",
296    package_name = "@googlemaps/places",
297    src = ":places_proto_with_info",
298    extra_protoc_parameters = ["metadata"],
299    grpc_service_config = "places_grpc_service_config.json",
300    package = "google.maps.places.v1",
301    rest_numeric_enums = True,
302    service_yaml = "places_v1.yaml",
303    transport = "grpc+rest",
304    deps = [],
305)
306
307nodejs_gapic_assembly_pkg(
308    name = "maps-places-v1-nodejs",
309    deps = [
310        ":places_nodejs_gapic",
311        ":places_proto",
312        "//google/geo/type:viewport_proto",
313    ],
314)
315
316##############################################################################
317# Ruby
318##############################################################################
319load(
320    "@com_google_googleapis_imports//:imports.bzl",
321    "ruby_cloud_gapic_library",
322    "ruby_gapic_assembly_pkg",
323    "ruby_grpc_library",
324    "ruby_proto_library",
325)
326
327ruby_proto_library(
328    name = "places_ruby_proto",
329    deps = [":places_proto"],
330)
331
332ruby_grpc_library(
333    name = "places_ruby_grpc",
334    srcs = [":places_proto"],
335    deps = [":places_ruby_proto"],
336)
337
338ruby_cloud_gapic_library(
339    name = "places_ruby_gapic",
340    srcs = [":places_proto_with_info"],
341    extra_protoc_parameters = ["ruby-cloud-gem-name=google-maps-places-v1"],
342    grpc_service_config = "places_grpc_service_config.json",
343    rest_numeric_enums = True,
344    service_yaml = "places_v1.yaml",
345    transport = "grpc+rest",
346    deps = [
347        ":places_ruby_grpc",
348        ":places_ruby_proto",
349    ],
350)
351
352# Open Source Packages
353ruby_gapic_assembly_pkg(
354    name = "google-cloud-maps-places-v1-ruby",
355    deps = [
356        ":places_ruby_gapic",
357        ":places_ruby_grpc",
358        ":places_ruby_proto",
359    ],
360)
361
362##############################################################################
363# C#
364##############################################################################
365load(
366    "@com_google_googleapis_imports//:imports.bzl",
367    "csharp_gapic_assembly_pkg",
368    "csharp_gapic_library",
369    "csharp_grpc_library",
370    "csharp_proto_library",
371)
372
373csharp_proto_library(
374    name = "places_csharp_proto",
375    extra_opts = [],
376    deps = [":places_proto"],
377)
378
379csharp_grpc_library(
380    name = "places_csharp_grpc",
381    srcs = [":places_proto"],
382    deps = [":places_csharp_proto"],
383)
384
385csharp_gapic_library(
386    name = "places_csharp_gapic",
387    srcs = [":places_proto_with_info"],
388    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
389    grpc_service_config = "places_grpc_service_config.json",
390    rest_numeric_enums = True,
391    service_yaml = "places_v1.yaml",
392    transport = "grpc+rest",
393    deps = [
394        ":places_csharp_grpc",
395        ":places_csharp_proto",
396    ],
397)
398
399# Open Source Packages
400csharp_gapic_assembly_pkg(
401    name = "google-cloud-maps-places-v1-csharp",
402    deps = [
403        ":places_csharp_gapic",
404        ":places_csharp_grpc",
405        ":places_csharp_proto",
406    ],
407)
408
409##############################################################################
410# C++
411##############################################################################
412load(
413    "@com_google_googleapis_imports//:imports.bzl",
414    "cc_grpc_library",
415    "cc_proto_library",
416)
417
418cc_proto_library(
419    name = "places_cc_proto",
420    deps = [":places_proto"],
421)
422
423cc_grpc_library(
424    name = "places_cc_grpc",
425    srcs = [":places_proto"],
426    grpc_only = True,
427    deps = [":places_cc_proto"],
428)
429