• 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")
20
21proto_library(
22    name = "livestream_proto",
23    srcs = [
24        "outputs.proto",
25        "resources.proto",
26        "service.proto",
27    ],
28    deps = [
29        "//google/api:annotations_proto",
30        "//google/api:client_proto",
31        "//google/api:field_behavior_proto",
32        "//google/api:resource_proto",
33        "//google/longrunning:operations_proto",
34        "//google/rpc:status_proto",
35        "//google/type:datetime_proto",
36        "@com_google_protobuf//:duration_proto",
37        "@com_google_protobuf//:empty_proto",
38        "@com_google_protobuf//:field_mask_proto",
39        "@com_google_protobuf//:timestamp_proto",
40    ],
41)
42
43proto_library_with_info(
44    name = "livestream_proto_with_info",
45    deps = [
46        ":livestream_proto",
47        "//google/cloud:common_resources_proto",
48        "//google/cloud/location:location_proto",
49    ],
50)
51
52##############################################################################
53# Java
54##############################################################################
55load(
56    "@com_google_googleapis_imports//:imports.bzl",
57    "java_gapic_assembly_gradle_pkg",
58    "java_gapic_library",
59    "java_gapic_test",
60    "java_grpc_library",
61    "java_proto_library",
62)
63
64java_proto_library(
65    name = "livestream_java_proto",
66    deps = [":livestream_proto"],
67)
68
69java_grpc_library(
70    name = "livestream_java_grpc",
71    srcs = [":livestream_proto"],
72    deps = [":livestream_java_proto"],
73)
74
75java_gapic_library(
76    name = "livestream_java_gapic",
77    srcs = [":livestream_proto_with_info"],
78    gapic_yaml = None,
79    grpc_service_config = "livestream_grpc_service_config.json",
80    rest_numeric_enums = True,
81    service_yaml = "livestream_v1.yaml",
82    test_deps = [
83        ":livestream_java_grpc",
84        "//google/cloud/location:location_java_grpc",
85    ],
86    transport = "grpc+rest",
87    deps = [
88        ":livestream_java_proto",
89        "//google/api:api_java_proto",
90        "//google/cloud/location:location_java_proto",
91    ],
92)
93
94java_gapic_test(
95    name = "livestream_java_gapic_test_suite",
96    test_classes = [
97        "com.google.cloud.video.livestream.v1.LivestreamServiceClientHttpJsonTest",
98        "com.google.cloud.video.livestream.v1.LivestreamServiceClientTest",
99    ],
100    runtime_deps = [":livestream_java_gapic_test"],
101)
102
103# Open Source Packages
104java_gapic_assembly_gradle_pkg(
105    name = "google-cloud-video-livestream-v1-java",
106    include_samples = True,
107    transport = "grpc+rest",
108    deps = [
109        ":livestream_java_gapic",
110        ":livestream_java_grpc",
111        ":livestream_java_proto",
112        ":livestream_proto",
113    ],
114)
115
116##############################################################################
117# Go
118##############################################################################
119load(
120    "@com_google_googleapis_imports//:imports.bzl",
121    "go_gapic_assembly_pkg",
122    "go_gapic_library",
123    "go_proto_library",
124)
125
126go_proto_library(
127    name = "livestream_go_proto",
128    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
129    importpath = "cloud.google.com/go/video/livestream/apiv1/livestreampb",
130    protos = [":livestream_proto"],
131    deps = [
132        "//google/api:annotations_go_proto",
133        "//google/longrunning:longrunning_go_proto",
134        "//google/rpc:status_go_proto",
135        "//google/type:datetime_go_proto",
136    ],
137)
138
139go_gapic_library(
140    name = "livestream_go_gapic",
141    srcs = [":livestream_proto_with_info"],
142    grpc_service_config = "livestream_grpc_service_config.json",
143    importpath = "cloud.google.com/go/video/livestream/apiv1;livestream",
144    metadata = True,
145    release_level = "ga",
146    rest_numeric_enums = True,
147    service_yaml = "livestream_v1.yaml",
148    transport = "grpc+rest",
149    deps = [
150        ":livestream_go_proto",
151        "//google/cloud/location:location_go_proto",
152        "//google/longrunning:longrunning_go_proto",
153        "@com_google_cloud_go_longrunning//:go_default_library",
154        "@com_google_cloud_go_longrunning//autogen:go_default_library",
155        "@io_bazel_rules_go//proto/wkt:duration_go_proto",
156    ],
157)
158
159# Open Source Packages
160go_gapic_assembly_pkg(
161    name = "gapi-cloud-video-livestream-v1-go",
162    deps = [
163        ":livestream_go_gapic",
164        ":livestream_go_gapic_srcjar-metadata.srcjar",
165        ":livestream_go_gapic_srcjar-snippets.srcjar",
166        ":livestream_go_gapic_srcjar-test.srcjar",
167        ":livestream_go_proto",
168    ],
169)
170
171##############################################################################
172# Python
173##############################################################################
174load(
175    "@com_google_googleapis_imports//:imports.bzl",
176    "py_gapic_assembly_pkg",
177    "py_gapic_library",
178    "py_test",
179)
180
181py_gapic_library(
182    name = "livestream_py_gapic",
183    srcs = [":livestream_proto"],
184    grpc_service_config = "livestream_grpc_service_config.json",
185    opt_args = [
186        "python-gapic-name=live_stream",
187        "python-gapic-namespace=google.cloud.video",
188        "warehouse-package-name=google-cloud-video-live-stream",
189    ],
190    rest_numeric_enums = True,
191    service_yaml = "livestream_v1.yaml",
192    transport = "grpc+rest",
193    deps = [
194    ],
195)
196
197py_test(
198    name = "livestream_py_gapic_test",
199    srcs = [
200        "livestream_py_gapic_pytest.py",
201        "livestream_py_gapic_test.py",
202    ],
203    legacy_create_init = False,
204    deps = [":livestream_py_gapic"],
205)
206
207# Open Source Packages
208py_gapic_assembly_pkg(
209    name = "video-livestream-v1-py",
210    deps = [
211        ":livestream_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 = "livestream_php_proto",
227    deps = [":livestream_proto"],
228)
229
230php_gapic_library(
231    name = "livestream_php_gapic",
232    srcs = [":livestream_proto_with_info"],
233    grpc_service_config = "livestream_grpc_service_config.json",
234    migration_mode = "MIGRATING",
235    rest_numeric_enums = True,
236    service_yaml = "livestream_v1.yaml",
237    transport = "grpc+rest",
238    deps = [":livestream_php_proto"],
239)
240
241# Open Source Packages
242php_gapic_assembly_pkg(
243    name = "google-cloud-video-livestream-v1-php",
244    deps = [
245        ":livestream_php_gapic",
246        ":livestream_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 = "livestream_nodejs_gapic",
261    package_name = "@google-cloud/livestream",
262    src = ":livestream_proto_with_info",
263    extra_protoc_parameters = ["metadata"],
264    grpc_service_config = "livestream_grpc_service_config.json",
265    package = "google.cloud.video.livestream.v1",
266    rest_numeric_enums = True,
267    service_yaml = "livestream_v1.yaml",
268    transport = "grpc+rest",
269    deps = [],
270)
271
272nodejs_gapic_assembly_pkg(
273    name = "video-livestream-v1-nodejs",
274    deps = [
275        ":livestream_nodejs_gapic",
276        ":livestream_proto",
277    ],
278)
279
280##############################################################################
281# Ruby
282##############################################################################
283load(
284    "@com_google_googleapis_imports//:imports.bzl",
285    "ruby_cloud_gapic_library",
286    "ruby_gapic_assembly_pkg",
287    "ruby_grpc_library",
288    "ruby_proto_library",
289)
290
291ruby_proto_library(
292    name = "livestream_ruby_proto",
293    deps = [":livestream_proto"],
294)
295
296ruby_grpc_library(
297    name = "livestream_ruby_grpc",
298    srcs = [":livestream_proto"],
299    deps = [":livestream_ruby_proto"],
300)
301
302ruby_cloud_gapic_library(
303    name = "livestream_ruby_gapic",
304    srcs = [":livestream_proto_with_info"],
305    extra_protoc_parameters = [
306        "ruby-cloud-api-id=livestream.googleapis.com",
307        "ruby-cloud-api-shortname=livestream",
308        "ruby-cloud-gem-name=google-cloud-video-live_stream-v1",
309        "ruby-cloud-product-url=https://cloud.google.com/livestream/",
310    ],
311    grpc_service_config = "livestream_grpc_service_config.json",
312    rest_numeric_enums = True,
313    ruby_cloud_description = "The Live Stream API transcodes mezzanine live signals into direct-to-consumer streaming formats, including Dynamic Adaptive Streaming over HTTP (DASH/MPEG-DASH), and HTTP Live Streaming (HLS), for multiple device platforms.",
314    ruby_cloud_title = "Live Stream V1",
315    service_yaml = "livestream_v1.yaml",
316    transport = "grpc+rest",
317    deps = [
318        ":livestream_ruby_grpc",
319        ":livestream_ruby_proto",
320    ],
321)
322
323# Open Source Packages
324ruby_gapic_assembly_pkg(
325    name = "google-cloud-video-livestream-v1-ruby",
326    deps = [
327        ":livestream_ruby_gapic",
328        ":livestream_ruby_grpc",
329        ":livestream_ruby_proto",
330    ],
331)
332
333##############################################################################
334# C#
335##############################################################################
336load(
337    "@com_google_googleapis_imports//:imports.bzl",
338    "csharp_gapic_assembly_pkg",
339    "csharp_gapic_library",
340    "csharp_grpc_library",
341    "csharp_proto_library",
342)
343
344csharp_proto_library(
345    name = "livestream_csharp_proto",
346    deps = [":livestream_proto"],
347)
348
349csharp_grpc_library(
350    name = "livestream_csharp_grpc",
351    srcs = [":livestream_proto"],
352    deps = [":livestream_csharp_proto"],
353)
354
355csharp_gapic_library(
356    name = "livestream_csharp_gapic",
357    srcs = [":livestream_proto_with_info"],
358    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
359    grpc_service_config = "livestream_grpc_service_config.json",
360    rest_numeric_enums = True,
361    service_yaml = "livestream_v1.yaml",
362    transport = "grpc+rest",
363    deps = [
364        ":livestream_csharp_grpc",
365        ":livestream_csharp_proto",
366    ],
367)
368
369# Open Source Packages
370csharp_gapic_assembly_pkg(
371    name = "google-cloud-video-livestream-v1-csharp",
372    deps = [
373        ":livestream_csharp_gapic",
374        ":livestream_csharp_grpc",
375        ":livestream_csharp_proto",
376    ],
377)
378
379##############################################################################
380# C++
381##############################################################################
382load(
383    "@com_google_googleapis_imports//:imports.bzl",
384    "cc_grpc_library",
385    "cc_proto_library",
386)
387
388cc_proto_library(
389    name = "livestream_cc_proto",
390    deps = [":livestream_proto"],
391)
392
393cc_grpc_library(
394    name = "livestream_cc_grpc",
395    srcs = [":livestream_proto"],
396    grpc_only = True,
397    deps = [":livestream_cc_proto"],
398)
399