Skip to content

Commit 9215671

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: 817164257
1 parent 7186b66 commit 9215671

File tree

21 files changed

+42
-63
lines changed

21 files changed

+42
-63
lines changed

google/devtools/clouderrorreporting/v1beta1/BUILD.bazel

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

128-
go_proto_library(
128+
go_grpc_library(
129129
name = "clouderrorreporting_go_proto",
130-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
131130
importpath = "cloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb",
132131
protos = [":clouderrorreporting_proto"],
133132
deps = [

google/devtools/cloudprofiler/v2/BUILD.bazel

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

124-
go_proto_library(
124+
go_grpc_library(
125125
name = "cloudprofiler_go_proto",
126-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
127126
importpath = "cloud.google.com/go/cloudprofiler/apiv2/cloudprofilerpb",
128127
protos = [":cloudprofiler_proto"],
129128
deps = [

google/devtools/cloudtrace/v1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ load(
2323
"csharp_proto_library",
2424
"go_gapic_assembly_pkg",
2525
"go_gapic_library",
26-
"go_proto_library",
26+
"go_grpc_library",
2727
"java_gapic_assembly_gradle_pkg",
2828
"java_gapic_library",
2929
"java_gapic_test",
@@ -119,9 +119,8 @@ java_gapic_assembly_gradle_pkg(
119119
],
120120
)
121121

122-
go_proto_library(
122+
go_grpc_library(
123123
name = "cloudtrace_go_proto",
124-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
125124
importpath = "cloud.google.com/go/trace/apiv1/tracepb",
126125
protos = [":cloudtrace_proto"],
127126
deps = [

google/devtools/cloudtrace/v2/BUILD.bazel

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

119-
go_proto_library(
119+
go_grpc_library(
120120
name = "cloudtrace_go_proto",
121-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
122121
importpath = "cloud.google.com/go/trace/apiv2/tracepb",
123122
protos = [":cloudtrace_proto"],
124123
deps = [

google/devtools/containeranalysis/v1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ load(
2323
"csharp_proto_library",
2424
"go_gapic_assembly_pkg",
2525
"go_gapic_library",
26-
"go_proto_library",
26+
"go_grpc_library",
2727
"java_gapic_assembly_gradle_pkg",
2828
"java_gapic_library",
2929
"java_gapic_test",
@@ -137,9 +137,8 @@ java_gapic_assembly_gradle_pkg(
137137
],
138138
)
139139

140-
go_proto_library(
140+
go_grpc_library(
141141
name = "containeranalysis_go_proto",
142-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
143142
importpath = "cloud.google.com/go/containeranalysis/apiv1/containeranalysispb",
144143
protos = [":containeranalysis_proto"],
145144
deps = [

google/devtools/containeranalysis/v1beta1/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,11 @@ load(
146146
"@com_google_googleapis_imports//:imports.bzl",
147147
"go_gapic_assembly_pkg",
148148
"go_gapic_library",
149-
"go_proto_library",
149+
"go_grpc_library",
150150
)
151151

152-
go_proto_library(
152+
go_grpc_library(
153153
name = "containeranalysis_go_proto",
154-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
155154
importpath = "cloud.google.com/go/containeranalysis/apiv1beta1/containeranalysispb",
156155
protos = [":containeranalysis_proto"],
157156
deps = [

google/devtools/containeranalysis/v1beta1/attestation/BUILD.bazel

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@ java_grpc_library(
4646
##############################################################################
4747
# Go
4848
##############################################################################
49-
load("@com_google_googleapis_imports//:imports.bzl", "go_proto_library")
49+
load("@com_google_googleapis_imports//:imports.bzl", "go_grpc_library")
5050

51-
go_proto_library(
51+
go_grpc_library(
5252
name = "attestation_go_proto",
53-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
5453
importpath = "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/attestation",
5554
protos = [":attestation_proto"],
5655
deps = [

google/devtools/containeranalysis/v1beta1/build/BUILD.bazel

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

50-
go_proto_library(
50+
go_grpc_library(
5151
name = "build_go_proto",
52-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
5352
importpath = "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/build",
5453
protos = [":build_proto"],
5554
deps = [

google/devtools/containeranalysis/v1beta1/common/BUILD.bazel

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

49-
go_proto_library(
49+
go_grpc_library(
5050
name = "common_go_proto",
51-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
5251
importpath = "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/common",
5352
protos = [":common_proto"],
5453
deps = [],

google/devtools/containeranalysis/v1beta1/cvss/BUILD.bazel

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

49-
go_proto_library(
49+
go_grpc_library(
5050
name = "cvss_go_proto",
51-
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
5251
importpath = "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/cvss",
5352
protos = [":cvss_proto"],
5453
deps = [],

0 commit comments

Comments
 (0)