Skip to content

Commit 0a0dffc

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: 810022369
1 parent 3acfdb6 commit 0a0dffc

79 files changed

Lines changed: 158 additions & 237 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

google/cloud/rapidmigrationassessment/v1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,11 @@ load(
115115
"@com_google_googleapis_imports//:imports.bzl",
116116
"go_gapic_assembly_pkg",
117117
"go_gapic_library",
118-
"go_proto_library",
118+
"go_grpc_library",
119119
)
120120

121-
go_proto_library(
121+
go_grpc_library(
122122
name = "rapidmigrationassessment_go_proto",
123-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
124123
importpath = "cloud.google.com/go/rapidmigrationassessment/apiv1/rapidmigrationassessmentpb",
125124
protos = [":rapidmigrationassessment_proto"],
126125
deps = [

google/cloud/recaptchaenterprise/v1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,11 @@ load(
117117
"@com_google_googleapis_imports//:imports.bzl",
118118
"go_gapic_assembly_pkg",
119119
"go_gapic_library",
120-
"go_proto_library",
120+
"go_grpc_library",
121121
)
122122

123-
go_proto_library(
123+
go_grpc_library(
124124
name = "recaptchaenterprise_go_proto",
125-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
126125
importpath = "cloud.google.com/go/recaptchaenterprise/v2/apiv1/recaptchaenterprisepb",
127126
protos = [":recaptchaenterprise_proto"],
128127
deps = [

google/cloud/recaptchaenterprise/v1beta1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,11 @@ load(
114114
"@com_google_googleapis_imports//:imports.bzl",
115115
"go_gapic_assembly_pkg",
116116
"go_gapic_library",
117-
"go_proto_library",
117+
"go_grpc_library",
118118
)
119119

120-
go_proto_library(
120+
go_grpc_library(
121121
name = "recaptchaenterprise_go_proto",
122-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
123122
importpath = "cloud.google.com/go/recaptchaenterprise/v2/apiv1beta1/recaptchaenterprisepb",
124123
protos = [":recaptchaenterprise_proto"],
125124
deps = [

google/cloud/recommendationengine/v1beta1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ load(
1212
"csharp_proto_library",
1313
"go_gapic_assembly_pkg",
1414
"go_gapic_library",
15-
"go_proto_library",
15+
"go_grpc_library",
1616
"java_gapic_assembly_gradle_pkg",
1717
"java_gapic_library",
1818
"java_gapic_test",
@@ -130,9 +130,8 @@ java_gapic_assembly_gradle_pkg(
130130
],
131131
)
132132

133-
go_proto_library(
133+
go_grpc_library(
134134
name = "recommendationengine_go_proto",
135-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
136135
importpath = "cloud.google.com/go/recommendationengine/apiv1beta1/recommendationenginepb",
137136
protos = [":recommendationengine_proto"],
138137
deps = [

google/cloud/recommender/logging/v1/BUILD.bazel

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

51-
go_proto_library(
51+
go_grpc_library(
5252
name = "logging_go_proto",
53-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
5453
importpath = "cloud.google.com/go/recommender/logging/apiv1/loggingpb",
5554
protos = [":logging_proto"],
5655
deps = [

google/cloud/recommender/logging/v1beta1/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/recommender/logging/apiv1beta1/loggingpb",
5453
protos = [":logging_proto"],
5554
deps = [

google/cloud/recommender/v1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,11 @@ load(
117117
"@com_google_googleapis_imports//:imports.bzl",
118118
"go_gapic_assembly_pkg",
119119
"go_gapic_library",
120-
"go_proto_library",
120+
"go_grpc_library",
121121
)
122122

123-
go_proto_library(
123+
go_grpc_library(
124124
name = "recommender_go_proto",
125-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
126125
importpath = "cloud.google.com/go/recommender/apiv1/recommenderpb",
127126
protos = [":recommender_proto"],
128127
deps = [

google/cloud/recommender/v1beta1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,11 @@ load(
116116
"@com_google_googleapis_imports//:imports.bzl",
117117
"go_gapic_assembly_pkg",
118118
"go_gapic_library",
119-
"go_proto_library",
119+
"go_grpc_library",
120120
)
121121

122-
go_proto_library(
122+
go_grpc_library(
123123
name = "recommender_go_proto",
124-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
125124
importpath = "cloud.google.com/go/recommender/apiv1beta1/recommenderpb",
126125
protos = [":recommender_proto"],
127126
deps = [

google/cloud/redis/cluster/v1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,11 @@ load(
125125
"@com_google_googleapis_imports//:imports.bzl",
126126
"go_gapic_assembly_pkg",
127127
"go_gapic_library",
128-
"go_proto_library",
128+
"go_grpc_library",
129129
)
130130

131-
go_proto_library(
131+
go_grpc_library(
132132
name = "cluster_go_proto",
133-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
134133
importpath = "cloud.google.com/go/redis/cluster/apiv1/clusterpb",
135134
protos = [":cluster_proto"],
136135
deps = [

google/cloud/redis/cluster/v1beta1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,11 @@ load(
125125
"@com_google_googleapis_imports//:imports.bzl",
126126
"go_gapic_assembly_pkg",
127127
"go_gapic_library",
128-
"go_proto_library",
128+
"go_grpc_library",
129129
)
130130

131-
go_proto_library(
131+
go_grpc_library(
132132
name = "cluster_go_proto",
133-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
134133
importpath = "cloud.google.com/go/redis/cluster/apiv1beta1/clusterpb",
135134
protos = [":cluster_proto"],
136135
deps = [

0 commit comments

Comments
 (0)