Skip to content

Commit 4d8abb3

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: 816861978
1 parent 1a87094 commit 4d8abb3

21 files changed

Lines changed: 42 additions & 63 deletions

File tree

google/security/safebrowsing/v5/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 = "safebrowsing_go_proto",
122-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
123122
importpath = "google.golang.org/genproto/googleapis/security/safebrowsing/v5",
124123
protos = [":safebrowsing_proto"],
125124
deps = [

google/security/safebrowsing/v5alpha1/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 = "safebrowsing_go_proto",
122-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
123122
importpath = "google.golang.org/genproto/googleapis/security/safebrowsing/v5alpha1",
124123
protos = [":safebrowsing_proto"],
125124
deps = [

google/security/safebrowsingohttpgateway/v1/BUILD.bazel

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

118-
go_proto_library(
118+
go_grpc_library(
119119
name = "safebrowsingohttpgateway_go_proto",
120-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
121120
importpath = "google.golang.org/genproto/googleapis/security/safebrowsingohttpgateway/v1",
122121
protos = [":safebrowsingohttpgateway_proto"],
123122
deps = [

google/shopping/css/v1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,11 @@ load(
132132
"@com_google_googleapis_imports//:imports.bzl",
133133
"go_gapic_assembly_pkg",
134134
"go_gapic_library",
135-
"go_proto_library",
135+
"go_grpc_library",
136136
)
137137

138-
go_proto_library(
138+
go_grpc_library(
139139
name = "css_go_proto",
140-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
141140
importpath = "cloud.google.com/go/shopping/css/apiv1/csspb",
142141
protos = [":css_proto"],
143142
deps = [

google/shopping/merchant/accounts/v1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,11 @@ load(
191191
"@com_google_googleapis_imports//:imports.bzl",
192192
"go_gapic_assembly_pkg",
193193
"go_gapic_library",
194-
"go_proto_library",
194+
"go_grpc_library",
195195
)
196196

197-
go_proto_library(
197+
go_grpc_library(
198198
name = "accounts_go_proto",
199-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
200199
importpath = "cloud.google.com/go/shopping/merchant/accounts/apiv1/accountspb",
201200
protos = [":accounts_proto"],
202201
deps = [

google/shopping/merchant/accounts/v1beta/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,11 @@ load(
189189
"@com_google_googleapis_imports//:imports.bzl",
190190
"go_gapic_assembly_pkg",
191191
"go_gapic_library",
192-
"go_proto_library",
192+
"go_grpc_library",
193193
)
194194

195-
go_proto_library(
195+
go_grpc_library(
196196
name = "accounts_go_proto",
197-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
198197
importpath = "cloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb",
199198
protos = [":accounts_proto"],
200199
deps = [

google/shopping/merchant/conversions/v1/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 = "conversions_go_proto",
124-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
125124
importpath = "cloud.google.com/go/shopping/merchant/conversions/apiv1/conversionspb",
126125
protos = [":conversions_proto"],
127126
deps = [

google/shopping/merchant/datasources/v1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,11 @@ load(
127127
"@com_google_googleapis_imports//:imports.bzl",
128128
"go_gapic_assembly_pkg",
129129
"go_gapic_library",
130-
"go_proto_library",
130+
"go_grpc_library",
131131
)
132132

133-
go_proto_library(
133+
go_grpc_library(
134134
name = "datasources_go_proto",
135-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
136135
importpath = "cloud.google.com/go/shopping/merchant/datasources/apiv1/datasourcespb",
137136
protos = [":datasources_proto"],
138137
deps = [

google/shopping/merchant/inventories/v1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,11 @@ load(
123123
"@com_google_googleapis_imports//:imports.bzl",
124124
"go_gapic_assembly_pkg",
125125
"go_gapic_library",
126-
"go_proto_library",
126+
"go_grpc_library",
127127
)
128128

129-
go_proto_library(
129+
go_grpc_library(
130130
name = "inventories_go_proto",
131-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
132131
importpath = "cloud.google.com/go/shopping/merchant/inventories/apiv1/inventoriespb",
133132
protos = [":inventories_proto"],
134133
deps = [

google/shopping/merchant/issueresolution/v1/BUILD.bazel

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

126-
go_proto_library(
126+
go_grpc_library(
127127
name = "issueresolution_go_proto",
128-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
129128
importpath = "cloud.google.com/go/shopping/merchant/issueresolution/apiv1/issueresolutionpb",
130129
protos = [":issueresolution_proto"],
131130
deps = [

0 commit comments

Comments
 (0)