Skip to content

Commit d2977af

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
chore(ruby): Re-enable bigquery-storage-v1 generation, which also required updating protobuf from 3.15.3 to 3.18.1 for codegen
PiperOrigin-RevId: 403132955
1 parent c3e8e8c commit d2977af

File tree

2 files changed

+51
-52
lines changed

2 files changed

+51
-52
lines changed

WORKSPACE

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ http_archive(
4747

4848
http_archive(
4949
name = "com_google_protobuf",
50-
sha256 = "b10bf4e2d1a7586f54e64a5d9e7837e5188fc75ae69e36f215eb01def4f9721b",
51-
strip_prefix = "protobuf-3.15.3",
52-
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.15.3.tar.gz"],
50+
sha256 = "9111bf0b542b631165fadbd80aa60e7fb25b25311c532139ed2089d76ddf6dd7",
51+
strip_prefix = "protobuf-3.18.1",
52+
urls = ["https://github.com/protocolbuffers/protobuf/archive/v3.18.1.tar.gz"],
5353
)
5454

5555
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")

google/cloud/bigquery/storage/v1/BUILD.bazel

+48-49
Original file line numberDiff line numberDiff line change
@@ -243,55 +243,54 @@ nodejs_gapic_assembly_pkg(
243243
##############################################################################
244244
# Ruby
245245
##############################################################################
246-
# disabled due to https://github.com/protocolbuffers/protobuf/issues/7992
247-
#
248-
# load(
249-
# "@com_google_googleapis_imports//:imports.bzl",
250-
# "ruby_cloud_gapic_library",
251-
# "ruby_gapic_assembly_pkg",
252-
# "ruby_grpc_library",
253-
# "ruby_proto_library",
254-
# )
255-
256-
# ruby_proto_library(
257-
# name = "storage_ruby_proto",
258-
# deps = [":storage_proto"],
259-
# )
260-
261-
# ruby_grpc_library(
262-
# name = "storage_ruby_grpc",
263-
# srcs = [":storage_proto"],
264-
# deps = [":storage_ruby_proto"],
265-
# )
266-
267-
# ruby_cloud_gapic_library(
268-
# name = "storage_ruby_gapic",
269-
# srcs = [":storage_proto_with_info"],
270-
# extra_protoc_parameters = [
271-
# "ruby-cloud-gem-name=google-cloud-bigquery-storage-v1",
272-
# "ruby-cloud-env-prefix=BIGQUERY_STORAGE",
273-
# "ruby-cloud-product-url=https://cloud.google.com/bigquery/docs/reference/storage",
274-
# "ruby-cloud-api-id=bigquerystorage.googleapis.com",
275-
# "ruby-cloud-api-shortname=bigquerystorage",
276-
# ],
277-
# grpc_service_config = "bigquerystorage_grpc_service_config.json",
278-
# ruby_cloud_description = "The BigQuery Storage API provides fast access to BigQuery managed storage.",
279-
# ruby_cloud_title = "BigQuery Storage V1",
280-
# deps = [
281-
# ":storage_ruby_grpc",
282-
# ":storage_ruby_proto",
283-
# ],
284-
# )
285-
286-
# # Open Source Packages
287-
# ruby_gapic_assembly_pkg(
288-
# name = "google-cloud-bigquery-storage-v1-ruby",
289-
# deps = [
290-
# ":storage_ruby_gapic",
291-
# ":storage_ruby_grpc",
292-
# ":storage_ruby_proto",
293-
# ],
294-
# )
246+
247+
load(
248+
"@com_google_googleapis_imports//:imports.bzl",
249+
"ruby_cloud_gapic_library",
250+
"ruby_gapic_assembly_pkg",
251+
"ruby_grpc_library",
252+
"ruby_proto_library",
253+
)
254+
255+
ruby_proto_library(
256+
name = "storage_ruby_proto",
257+
deps = [":storage_proto"],
258+
)
259+
260+
ruby_grpc_library(
261+
name = "storage_ruby_grpc",
262+
srcs = [":storage_proto"],
263+
deps = [":storage_ruby_proto"],
264+
)
265+
266+
ruby_cloud_gapic_library(
267+
name = "storage_ruby_gapic",
268+
srcs = [":storage_proto_with_info"],
269+
extra_protoc_parameters = [
270+
"ruby-cloud-gem-name=google-cloud-bigquery-storage-v1",
271+
"ruby-cloud-env-prefix=BIGQUERY_STORAGE",
272+
"ruby-cloud-product-url=https://cloud.google.com/bigquery/docs/reference/storage",
273+
"ruby-cloud-api-id=bigquerystorage.googleapis.com",
274+
"ruby-cloud-api-shortname=bigquerystorage",
275+
],
276+
grpc_service_config = "bigquerystorage_grpc_service_config.json",
277+
ruby_cloud_description = "The BigQuery Storage API provides fast access to BigQuery managed storage.",
278+
ruby_cloud_title = "BigQuery Storage V1",
279+
deps = [
280+
":storage_ruby_grpc",
281+
":storage_ruby_proto",
282+
],
283+
)
284+
285+
# Open Source Packages
286+
ruby_gapic_assembly_pkg(
287+
name = "google-cloud-bigquery-storage-v1-ruby",
288+
deps = [
289+
":storage_ruby_gapic",
290+
":storage_ruby_grpc",
291+
":storage_ruby_proto",
292+
],
293+
)
295294

296295
##############################################################################
297296
# C#

0 commit comments

Comments
 (0)