Skip to content

Commit 2ba9d58

Browse files
feat: [google-shopping-merchant-productstudio] Initial Image API publication (googleapis#14043)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 776238366 Source-Link: googleapis/googleapis@33887f7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e7895c174c2aed9c898c1fe82b2db37beb8ecb63 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LXByb2R1Y3RzdHVkaW8vLk93bEJvdC55YW1sIiwiaCI6ImU3ODk1YzE3NGMyYWVkOWM4OThjMWZlODJiMmRiMzdiZWI4ZWNiNjMifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent cdfb4a3 commit 2ba9d58

29 files changed

+9531
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ImageService
2+
------------------------------
3+
4+
.. automodule:: google.shopping.merchant_productstudio_v1alpha.services.image_service
5+
:members:
6+
:inherited-members:

packages/google-shopping-merchant-productstudio/docs/merchant_productstudio_v1alpha/services_.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ Services for Google Shopping Merchant Productstudio v1alpha API
33
.. toctree::
44
:maxdepth: 2
55

6+
image_service
67
text_suggestions_service

packages/google-shopping-merchant-productstudio/google/shopping/merchant_productstudio/__init__.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,34 @@
1818
__version__ = package_version.__version__
1919

2020

21+
from google.shopping.merchant_productstudio_v1alpha.services.image_service.async_client import (
22+
ImageServiceAsyncClient,
23+
)
24+
from google.shopping.merchant_productstudio_v1alpha.services.image_service.client import (
25+
ImageServiceClient,
26+
)
2127
from google.shopping.merchant_productstudio_v1alpha.services.text_suggestions_service.async_client import (
2228
TextSuggestionsServiceAsyncClient,
2329
)
2430
from google.shopping.merchant_productstudio_v1alpha.services.text_suggestions_service.client import (
2531
TextSuggestionsServiceClient,
2632
)
33+
from google.shopping.merchant_productstudio_v1alpha.types.image import (
34+
GeneratedImage,
35+
GenerateImageBackgroundConfig,
36+
GenerateProductImageBackgroundRequest,
37+
GenerateProductImageBackgroundResponse,
38+
OutputImageConfig,
39+
RemoveImageBackgroundConfig,
40+
RemoveProductImageBackgroundRequest,
41+
RemoveProductImageBackgroundResponse,
42+
RgbColor,
43+
UpscaleProductImageRequest,
44+
UpscaleProductImageResponse,
45+
)
46+
from google.shopping.merchant_productstudio_v1alpha.types.productstudio_common import (
47+
InputImage,
48+
)
2749
from google.shopping.merchant_productstudio_v1alpha.types.textsuggestions import (
2850
GenerateProductTextSuggestionsRequest,
2951
GenerateProductTextSuggestionsResponse,
@@ -36,8 +58,22 @@
3658
)
3759

3860
__all__ = (
61+
"ImageServiceClient",
62+
"ImageServiceAsyncClient",
3963
"TextSuggestionsServiceClient",
4064
"TextSuggestionsServiceAsyncClient",
65+
"GeneratedImage",
66+
"GenerateImageBackgroundConfig",
67+
"GenerateProductImageBackgroundRequest",
68+
"GenerateProductImageBackgroundResponse",
69+
"OutputImageConfig",
70+
"RemoveImageBackgroundConfig",
71+
"RemoveProductImageBackgroundRequest",
72+
"RemoveProductImageBackgroundResponse",
73+
"RgbColor",
74+
"UpscaleProductImageRequest",
75+
"UpscaleProductImageResponse",
76+
"InputImage",
4177
"GenerateProductTextSuggestionsRequest",
4278
"GenerateProductTextSuggestionsResponse",
4379
"Image",

packages/google-shopping-merchant-productstudio/google/shopping/merchant_productstudio/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-shopping-merchant-productstudio/google/shopping/merchant_productstudio_v1alpha/__init__.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,25 @@
2020
__version__ = package_version.__version__
2121

2222

23+
from .services.image_service import ImageServiceAsyncClient, ImageServiceClient
2324
from .services.text_suggestions_service import (
2425
TextSuggestionsServiceAsyncClient,
2526
TextSuggestionsServiceClient,
2627
)
28+
from .types.image import (
29+
GeneratedImage,
30+
GenerateImageBackgroundConfig,
31+
GenerateProductImageBackgroundRequest,
32+
GenerateProductImageBackgroundResponse,
33+
OutputImageConfig,
34+
RemoveImageBackgroundConfig,
35+
RemoveProductImageBackgroundRequest,
36+
RemoveProductImageBackgroundResponse,
37+
RgbColor,
38+
UpscaleProductImageRequest,
39+
UpscaleProductImageResponse,
40+
)
41+
from .types.productstudio_common import InputImage
2742
from .types.textsuggestions import (
2843
GenerateProductTextSuggestionsRequest,
2944
GenerateProductTextSuggestionsResponse,
@@ -36,14 +51,28 @@
3651
)
3752

3853
__all__ = (
54+
"ImageServiceAsyncClient",
3955
"TextSuggestionsServiceAsyncClient",
56+
"GenerateImageBackgroundConfig",
57+
"GenerateProductImageBackgroundRequest",
58+
"GenerateProductImageBackgroundResponse",
4059
"GenerateProductTextSuggestionsRequest",
4160
"GenerateProductTextSuggestionsResponse",
61+
"GeneratedImage",
4262
"Image",
63+
"ImageServiceClient",
64+
"InputImage",
65+
"OutputImageConfig",
4366
"OutputSpec",
4467
"ProductInfo",
4568
"ProductTextGenerationMetadata",
4669
"ProductTextGenerationSuggestion",
70+
"RemoveImageBackgroundConfig",
71+
"RemoveProductImageBackgroundRequest",
72+
"RemoveProductImageBackgroundResponse",
73+
"RgbColor",
4774
"TextSuggestionsServiceClient",
4875
"TitleExample",
76+
"UpscaleProductImageRequest",
77+
"UpscaleProductImageResponse",
4978
)

packages/google-shopping-merchant-productstudio/google/shopping/merchant_productstudio_v1alpha/gapic_metadata.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,70 @@
55
"protoPackage": "google.shopping.merchant.productstudio.v1alpha",
66
"schema": "1.0",
77
"services": {
8+
"ImageService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "ImageServiceClient",
12+
"rpcs": {
13+
"GenerateProductImageBackground": {
14+
"methods": [
15+
"generate_product_image_background"
16+
]
17+
},
18+
"RemoveProductImageBackground": {
19+
"methods": [
20+
"remove_product_image_background"
21+
]
22+
},
23+
"UpscaleProductImage": {
24+
"methods": [
25+
"upscale_product_image"
26+
]
27+
}
28+
}
29+
},
30+
"grpc-async": {
31+
"libraryClient": "ImageServiceAsyncClient",
32+
"rpcs": {
33+
"GenerateProductImageBackground": {
34+
"methods": [
35+
"generate_product_image_background"
36+
]
37+
},
38+
"RemoveProductImageBackground": {
39+
"methods": [
40+
"remove_product_image_background"
41+
]
42+
},
43+
"UpscaleProductImage": {
44+
"methods": [
45+
"upscale_product_image"
46+
]
47+
}
48+
}
49+
},
50+
"rest": {
51+
"libraryClient": "ImageServiceClient",
52+
"rpcs": {
53+
"GenerateProductImageBackground": {
54+
"methods": [
55+
"generate_product_image_background"
56+
]
57+
},
58+
"RemoveProductImageBackground": {
59+
"methods": [
60+
"remove_product_image_background"
61+
]
62+
},
63+
"UpscaleProductImage": {
64+
"methods": [
65+
"upscale_product_image"
66+
]
67+
}
68+
}
69+
}
70+
}
71+
},
872
"TextSuggestionsService": {
973
"clients": {
1074
"grpc": {

packages/google-shopping-merchant-productstudio/google/shopping/merchant_productstudio_v1alpha/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
from .async_client import ImageServiceAsyncClient
17+
from .client import ImageServiceClient
18+
19+
__all__ = (
20+
"ImageServiceClient",
21+
"ImageServiceAsyncClient",
22+
)

0 commit comments

Comments
 (0)