Skip to content

Commit 2b2815c

Browse files
Google APIscopybara-github
authored andcommitted
feat: Publish Python client libraries for Product studio APIs
PiperOrigin-RevId: 769280656
1 parent e78345f commit 2b2815c

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

google/shopping/merchant/productstudio/v1alpha/BUILD.bazel

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

119-
go_grpc_library(
119+
go_proto_library(
120120
name = "productstudio_go_proto",
121+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
121122
importpath = "cloud.google.com/go/shopping/merchant/productstudio/apiv1alpha/productstudiopb",
122123
protos = [":productstudio_proto"],
123124
deps = [
@@ -167,6 +168,10 @@ py_gapic_library(
167168
name = "productstudio_py_gapic",
168169
srcs = [":productstudio_proto"],
169170
grpc_service_config = "productstudio_grpc_service_config.json",
171+
opt_args = [
172+
"python-gapic-namespace=google.shopping",
173+
"python-gapic-name=merchant_productstudio",
174+
],
170175
rest_numeric_enums = True,
171176
service_yaml = "merchantapi_v1alpha.yaml",
172177
transport = "grpc+rest",
@@ -322,6 +327,7 @@ load(
322327

323328
csharp_proto_library(
324329
name = "productstudio_csharp_proto",
330+
extra_opts = [],
325331
deps = [":productstudio_proto"],
326332
)
327333

google/shopping/merchant/productstudio/v1alpha/merchantapi_v1alpha.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,7 @@ publishing:
4646
common:
4747
destinations:
4848
- PACKAGE_MANAGER
49+
python_settings:
50+
common:
51+
destinations:
52+
- PACKAGE_MANAGER

google/shopping/merchant/productstudio/v1alpha/productstudio_grpc_service_config.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"methodConfig": [{
33
"name": [
4-
{ "service": "google.shopping.merchant.productstudio.v1alpha.TextSuggestionsService" }
4+
{ "service": "google.shopping.merchant.productstudio.v1alpha.TextSuggestionsService" },
5+
{ "service": "google.shopping.merchant.productstudio.v1alpha.ImageService" },
6+
{ "service": "google.shopping.merchant.productstudio.v1alpha.VideosService" }
57
],
68
"timeout": "60s",
79
"retryPolicy": {

0 commit comments

Comments
 (0)