Skip to content

Commit

Permalink
chore(ruby): Re-enable bigquery-storage-v1 generation, which also req…
Browse files Browse the repository at this point in the history
…uired updating protobuf from 3.15.3 to 3.18.1 for codegen

PiperOrigin-RevId: 403132955
  • Loading branch information
Google APIs authored and Copybara-Service committed Oct 14, 2021
1 parent c3e8e8c commit d2977af
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 52 deletions.
6 changes: 3 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ http_archive(

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

load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
Expand Down
97 changes: 48 additions & 49 deletions google/cloud/bigquery/storage/v1/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -243,55 +243,54 @@ nodejs_gapic_assembly_pkg(
##############################################################################
# Ruby
##############################################################################
# disabled due to https://github.com/protocolbuffers/protobuf/issues/7992
#
# load(
# "@com_google_googleapis_imports//:imports.bzl",
# "ruby_cloud_gapic_library",
# "ruby_gapic_assembly_pkg",
# "ruby_grpc_library",
# "ruby_proto_library",
# )

# ruby_proto_library(
# name = "storage_ruby_proto",
# deps = [":storage_proto"],
# )

# ruby_grpc_library(
# name = "storage_ruby_grpc",
# srcs = [":storage_proto"],
# deps = [":storage_ruby_proto"],
# )

# ruby_cloud_gapic_library(
# name = "storage_ruby_gapic",
# srcs = [":storage_proto_with_info"],
# extra_protoc_parameters = [
# "ruby-cloud-gem-name=google-cloud-bigquery-storage-v1",
# "ruby-cloud-env-prefix=BIGQUERY_STORAGE",
# "ruby-cloud-product-url=https://cloud.google.com/bigquery/docs/reference/storage",
# "ruby-cloud-api-id=bigquerystorage.googleapis.com",
# "ruby-cloud-api-shortname=bigquerystorage",
# ],
# grpc_service_config = "bigquerystorage_grpc_service_config.json",
# ruby_cloud_description = "The BigQuery Storage API provides fast access to BigQuery managed storage.",
# ruby_cloud_title = "BigQuery Storage V1",
# deps = [
# ":storage_ruby_grpc",
# ":storage_ruby_proto",
# ],
# )

# # Open Source Packages
# ruby_gapic_assembly_pkg(
# name = "google-cloud-bigquery-storage-v1-ruby",
# deps = [
# ":storage_ruby_gapic",
# ":storage_ruby_grpc",
# ":storage_ruby_proto",
# ],
# )

load(
"@com_google_googleapis_imports//:imports.bzl",
"ruby_cloud_gapic_library",
"ruby_gapic_assembly_pkg",
"ruby_grpc_library",
"ruby_proto_library",
)

ruby_proto_library(
name = "storage_ruby_proto",
deps = [":storage_proto"],
)

ruby_grpc_library(
name = "storage_ruby_grpc",
srcs = [":storage_proto"],
deps = [":storage_ruby_proto"],
)

ruby_cloud_gapic_library(
name = "storage_ruby_gapic",
srcs = [":storage_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-cloud-bigquery-storage-v1",
"ruby-cloud-env-prefix=BIGQUERY_STORAGE",
"ruby-cloud-product-url=https://cloud.google.com/bigquery/docs/reference/storage",
"ruby-cloud-api-id=bigquerystorage.googleapis.com",
"ruby-cloud-api-shortname=bigquerystorage",
],
grpc_service_config = "bigquerystorage_grpc_service_config.json",
ruby_cloud_description = "The BigQuery Storage API provides fast access to BigQuery managed storage.",
ruby_cloud_title = "BigQuery Storage V1",
deps = [
":storage_ruby_grpc",
":storage_ruby_proto",
],
)

# Open Source Packages
ruby_gapic_assembly_pkg(
name = "google-cloud-bigquery-storage-v1-ruby",
deps = [
":storage_ruby_gapic",
":storage_ruby_grpc",
":storage_ruby_proto",
],
)

##############################################################################
# C#
Expand Down

0 comments on commit d2977af

Please sign in to comment.