Skip to content

Commit 6e4f2a5

Browse files
Google APIscopybara-github
authored andcommitted
fix: upgrade gRPC service registration func
An update to Go gRPC Protobuf generation will change service registration function signatures to use an interface instead of a concrete type in generated .pb.go service files. This change should affect very few client library users. See release notes advisories in googleapis/google-cloud-go#11025. PiperOrigin-RevId: 823187922
1 parent 98fef44 commit 6e4f2a5

File tree

13 files changed

+25
-36
lines changed

13 files changed

+25
-36
lines changed

google/cloud/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ java_gapic_assembly_gradle_pkg(
4949
##############################################################################
5050
# Go
5151
##############################################################################
52-
load("@com_google_googleapis_imports//:imports.bzl", "go_proto_library")
52+
load("@com_google_googleapis_imports//:imports.bzl", "go_grpc_library")
5353

54-
go_proto_library(
54+
go_grpc_library(
5555
name = "extended_operations_go_proto",
5656
importpath = "google.golang.org/genproto/googleapis/cloud/extendedops",
5757
protos = [

google/cloud/aiplatform/logging/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ java_grpc_library(
4343
##############################################################################
4444
load(
4545
"@com_google_googleapis_imports//:imports.bzl",
46-
"go_proto_library",
46+
"go_grpc_library",
4747
)
4848

49-
go_proto_library(
49+
go_grpc_library(
5050
name = "logging_go_proto",
51-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
5251
importpath = "cloud.google.com/go/aiplatform/logging/loggingpb",
5352
protos = [":logging_proto"],
5453
deps = [

google/cloud/audit/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,12 @@ java_gapic_assembly_gradle_pkg(
5858
# buildifier: disable=same-origin-load
5959
load(
6060
"@com_google_googleapis_imports//:imports.bzl",
61-
"go_proto_library",
61+
"go_grpc_library",
6262
"go_gapic_assembly_pkg",
6363
)
6464

65-
go_proto_library(
65+
go_grpc_library(
6666
name = "audit_go_proto",
67-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
6867
importpath = "google.golang.org/genproto/googleapis/cloud/audit",
6968
protos = [":audit_proto"],
7069
deps = [

google/cloud/common/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,11 @@ java_grpc_library(
5050
##############################################################################
5151
load(
5252
"@com_google_googleapis_imports//:imports.bzl",
53-
"go_proto_library",
53+
"go_grpc_library",
5454
)
5555

56-
go_proto_library(
56+
go_grpc_library(
5757
name = "common_go_proto",
58-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
5958
importpath = "google.golang.org/genproto/googleapis/cloud/common",
6059
protos = [":common_proto"],
6160
deps = [

google/cloud/dataproc/logging/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,12 @@ java_gapic_assembly_gradle_pkg(
5151
# buildifier: disable=same-origin-load
5252
load(
5353
"@com_google_googleapis_imports//:imports.bzl",
54-
"go_proto_library",
54+
"go_grpc_library",
5555
"go_gapic_assembly_pkg",
5656
)
5757

58-
go_proto_library(
58+
go_grpc_library(
5959
name = "logging_go_proto",
60-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
6160
importpath = "cloud.google.com/go/dataproc/logging/loggingpb",
6261
protos = [":logging_proto"],
6362
deps = [],

google/cloud/geminidataanalytics/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ ruby_gapic_assembly_pkg(
3333
deps = [
3434
":geminidataanalytics_ruby_wrapper",
3535
],
36-
)
36+
)

google/cloud/healthcare/logging/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,11 @@ java_grpc_library(
4848
##############################################################################
4949
load(
5050
"@com_google_googleapis_imports//:imports.bzl",
51-
"go_proto_library",
51+
"go_grpc_library",
5252
)
5353

54-
go_proto_library(
54+
go_grpc_library(
5555
name = "logging_go_proto",
56-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
5756
importpath = "cloud.google.com/go/healthcare/logging/loggingpb",
5857
protos = [":logging_proto"],
5958
deps = [

google/cloud/identitytoolkit/logging/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ java_grpc_library(
4444
##############################################################################
4545
load(
4646
"@com_google_googleapis_imports//:imports.bzl",
47-
"go_proto_library",
47+
"go_grpc_library",
4848
)
4949

50-
go_proto_library(
50+
go_grpc_library(
5151
name = "logging_go_proto",
52-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
5352
importpath = "cloud.google.com/go/identitytoolkit/logging/loggingpb",
5453
protos = [":logging_proto"],
5554
deps = [

google/cloud/kubernetes/security/containersecurity_logging/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ java_grpc_library(
4343
##############################################################################
4444
load(
4545
"@com_google_googleapis_imports//:imports.bzl",
46-
"go_proto_library",
46+
"go_grpc_library",
4747
)
4848

49-
go_proto_library(
49+
go_grpc_library(
5050
name = "containersecurity_logging_go_proto",
51-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
5251
importpath = "cloud.google.com/go/cloud/kubernetes/security/containersecurity_logging/containersecurity_loggingpb",
5352
protos = [":containersecurity_logging_proto"],
5453
deps = [],

google/cloud/location/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,11 @@ java_gapic_assembly_gradle_pkg(
6868
##############################################################################
6969
load(
7070
"@com_google_googleapis_imports//:imports.bzl",
71-
"go_proto_library",
71+
"go_grpc_library",
7272
)
7373

74-
go_proto_library(
74+
go_grpc_library(
7575
name = "location_go_proto",
76-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
7776
importpath = "google.golang.org/genproto/googleapis/cloud/location",
7877
protos = [":location_proto"],
7978
deps = [

0 commit comments

Comments
 (0)