Skip to content

Commit 868615a

Browse files
Google APIscopybara-github
authored andcommitted
chore: move gaming to python microgenerator bazel rules
PiperOrigin-RevId: 324294521
1 parent fbf9396 commit 868615a

2 files changed

Lines changed: 10 additions & 84 deletions

File tree

google/cloud/gaming/v1/BUILD.bazel

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -168,62 +168,25 @@ go_gapic_assembly_pkg(
168168
##############################################################################
169169
# Python
170170
##############################################################################
171+
# This library is using Python microgenerator.
172+
# DO NOT OVERRIDE this Python section with autogenerated rules.
171173
load(
172174
"@com_google_googleapis_imports//:imports.bzl",
173-
"moved_proto_library",
174-
"py_gapic_assembly_pkg",
175-
"py_gapic_library",
176-
"py_grpc_library",
177-
"py_proto_library",
178-
)
179-
180-
moved_proto_library(
181-
name = "gaming_moved_proto",
182-
srcs = [":gaming_proto"],
183-
deps = [
184-
"//google/api:annotations_proto",
185-
"//google/api:client_proto",
186-
"//google/api:field_behavior_proto",
187-
"//google/api:resource_proto",
188-
"//google/longrunning:operations_proto",
189-
"@com_google_protobuf//:duration_proto",
190-
"@com_google_protobuf//:field_mask_proto",
191-
"@com_google_protobuf//:timestamp_proto",
192-
],
193-
)
194-
195-
py_proto_library(
196-
name = "gaming_py_proto",
197-
plugin = "@protoc_docs_plugin//:docs_plugin",
198-
deps = [":gaming_moved_proto"],
199-
)
200-
201-
py_grpc_library(
202-
name = "gaming_py_grpc",
203-
srcs = [":gaming_moved_proto"],
204-
deps = [":gaming_py_proto"],
175+
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
176+
py_gapic_library = "py_gapic_library2",
205177
)
206178

207179
py_gapic_library(
208180
name = "gaming_py_gapic",
209-
src = ":gaming_proto_with_info",
210-
gapic_yaml = "gaming_gapic.yaml",
181+
srcs = [":gaming_proto"],
211182
grpc_service_config = "gaming_grpc_service_config.json",
212-
package = "google.cloud.gaming.v1",
213-
service_yaml = "gameservices_v1.yaml",
214-
deps = [
215-
":gaming_py_grpc",
216-
":gaming_py_proto",
217-
],
218183
)
219184

220185
# Open Source Packages
221186
py_gapic_assembly_pkg(
222187
name = "gaming-v1-py",
223188
deps = [
224189
":gaming_py_gapic",
225-
":gaming_py_grpc",
226-
":gaming_py_proto",
227190
],
228191
)
229192

google/cloud/gaming/v1beta/BUILD.bazel

Lines changed: 5 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -159,62 +159,25 @@ go_gapic_assembly_pkg(
159159
##############################################################################
160160
# Python
161161
##############################################################################
162+
# This library is using Python microgenerator.
163+
# DO NOT OVERRIDE this Python section with autogenerated rules.
162164
load(
163165
"@com_google_googleapis_imports//:imports.bzl",
164-
"moved_proto_library",
165-
"py_gapic_assembly_pkg",
166-
"py_gapic_library",
167-
"py_grpc_library",
168-
"py_proto_library",
169-
)
170-
171-
moved_proto_library(
172-
name = "gaming_moved_proto",
173-
srcs = [":gaming_proto"],
174-
deps = [
175-
"//google/api:annotations_proto",
176-
"//google/api:client_proto",
177-
"//google/api:field_behavior_proto",
178-
"//google/api:resource_proto",
179-
"//google/longrunning:operations_proto",
180-
"@com_google_protobuf//:duration_proto",
181-
"@com_google_protobuf//:field_mask_proto",
182-
"@com_google_protobuf//:timestamp_proto",
183-
],
184-
)
185-
186-
py_proto_library(
187-
name = "gaming_py_proto",
188-
plugin = "@protoc_docs_plugin//:docs_plugin",
189-
deps = [":gaming_moved_proto"],
190-
)
191-
192-
py_grpc_library(
193-
name = "gaming_py_grpc",
194-
srcs = [":gaming_moved_proto"],
195-
deps = [":gaming_py_proto"],
166+
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
167+
py_gapic_library = "py_gapic_library2",
196168
)
197169

198170
py_gapic_library(
199171
name = "gaming_py_gapic",
200-
src = ":gaming_proto_with_info",
201-
gapic_yaml = "gaming_gapic.yaml",
172+
srcs = [":gaming_proto"],
202173
grpc_service_config = "gaming_grpc_service_config.json",
203-
package = "google.cloud.gaming.v1beta",
204-
service_yaml = "gameservices_v1beta.yaml",
205-
deps = [
206-
":gaming_py_grpc",
207-
":gaming_py_proto",
208-
],
209174
)
210175

211176
# Open Source Packages
212177
py_gapic_assembly_pkg(
213178
name = "gaming-v1beta-py",
214179
deps = [
215180
":gaming_py_gapic",
216-
":gaming_py_grpc",
217-
":gaming_py_proto",
218181
],
219182
)
220183

0 commit comments

Comments
 (0)