Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ImageService
------------------------------

.. automodule:: google.shopping.merchant_productstudio_v1alpha.services.image_service
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ Services for Google Shopping Merchant Productstudio v1alpha API
.. toctree::
:maxdepth: 2

image_service
text_suggestions_service
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,34 @@
__version__ = package_version.__version__


from google.shopping.merchant_productstudio_v1alpha.services.image_service.async_client import (
ImageServiceAsyncClient,
)
from google.shopping.merchant_productstudio_v1alpha.services.image_service.client import (
ImageServiceClient,
)
from google.shopping.merchant_productstudio_v1alpha.services.text_suggestions_service.async_client import (
TextSuggestionsServiceAsyncClient,
)
from google.shopping.merchant_productstudio_v1alpha.services.text_suggestions_service.client import (
TextSuggestionsServiceClient,
)
from google.shopping.merchant_productstudio_v1alpha.types.image import (
GeneratedImage,
GenerateImageBackgroundConfig,
GenerateProductImageBackgroundRequest,
GenerateProductImageBackgroundResponse,
OutputImageConfig,
RemoveImageBackgroundConfig,
RemoveProductImageBackgroundRequest,
RemoveProductImageBackgroundResponse,
RgbColor,
UpscaleProductImageRequest,
UpscaleProductImageResponse,
)
from google.shopping.merchant_productstudio_v1alpha.types.productstudio_common import (
InputImage,
)
from google.shopping.merchant_productstudio_v1alpha.types.textsuggestions import (
GenerateProductTextSuggestionsRequest,
GenerateProductTextSuggestionsResponse,
Expand All @@ -36,8 +58,22 @@
)

__all__ = (
"ImageServiceClient",
"ImageServiceAsyncClient",
"TextSuggestionsServiceClient",
"TextSuggestionsServiceAsyncClient",
"GeneratedImage",
"GenerateImageBackgroundConfig",
"GenerateProductImageBackgroundRequest",
"GenerateProductImageBackgroundResponse",
"OutputImageConfig",
"RemoveImageBackgroundConfig",
"RemoveProductImageBackgroundRequest",
"RemoveProductImageBackgroundResponse",
"RgbColor",
"UpscaleProductImageRequest",
"UpscaleProductImageResponse",
"InputImage",
"GenerateProductTextSuggestionsRequest",
"GenerateProductTextSuggestionsResponse",
"Image",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.1.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,25 @@
__version__ = package_version.__version__


from .services.image_service import ImageServiceAsyncClient, ImageServiceClient
from .services.text_suggestions_service import (
TextSuggestionsServiceAsyncClient,
TextSuggestionsServiceClient,
)
from .types.image import (
GeneratedImage,
GenerateImageBackgroundConfig,
GenerateProductImageBackgroundRequest,
GenerateProductImageBackgroundResponse,
OutputImageConfig,
RemoveImageBackgroundConfig,
RemoveProductImageBackgroundRequest,
RemoveProductImageBackgroundResponse,
RgbColor,
UpscaleProductImageRequest,
UpscaleProductImageResponse,
)
from .types.productstudio_common import InputImage
from .types.textsuggestions import (
GenerateProductTextSuggestionsRequest,
GenerateProductTextSuggestionsResponse,
Expand All @@ -36,14 +51,28 @@
)

__all__ = (
"ImageServiceAsyncClient",
"TextSuggestionsServiceAsyncClient",
"GenerateImageBackgroundConfig",
"GenerateProductImageBackgroundRequest",
"GenerateProductImageBackgroundResponse",
"GenerateProductTextSuggestionsRequest",
"GenerateProductTextSuggestionsResponse",
"GeneratedImage",
"Image",
"ImageServiceClient",
"InputImage",
"OutputImageConfig",
"OutputSpec",
"ProductInfo",
"ProductTextGenerationMetadata",
"ProductTextGenerationSuggestion",
"RemoveImageBackgroundConfig",
"RemoveProductImageBackgroundRequest",
"RemoveProductImageBackgroundResponse",
"RgbColor",
"TextSuggestionsServiceClient",
"TitleExample",
"UpscaleProductImageRequest",
"UpscaleProductImageResponse",
)
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,70 @@
"protoPackage": "google.shopping.merchant.productstudio.v1alpha",
"schema": "1.0",
"services": {
"ImageService": {
"clients": {
"grpc": {
"libraryClient": "ImageServiceClient",
"rpcs": {
"GenerateProductImageBackground": {
"methods": [
"generate_product_image_background"
]
},
"RemoveProductImageBackground": {
"methods": [
"remove_product_image_background"
]
},
"UpscaleProductImage": {
"methods": [
"upscale_product_image"
]
}
}
},
"grpc-async": {
"libraryClient": "ImageServiceAsyncClient",
"rpcs": {
"GenerateProductImageBackground": {
"methods": [
"generate_product_image_background"
]
},
"RemoveProductImageBackground": {
"methods": [
"remove_product_image_background"
]
},
"UpscaleProductImage": {
"methods": [
"upscale_product_image"
]
}
}
},
"rest": {
"libraryClient": "ImageServiceClient",
"rpcs": {
"GenerateProductImageBackground": {
"methods": [
"generate_product_image_background"
]
},
"RemoveProductImageBackground": {
"methods": [
"remove_product_image_background"
]
},
"UpscaleProductImage": {
"methods": [
"upscale_product_image"
]
}
}
}
}
},
"TextSuggestionsService": {
"clients": {
"grpc": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "0.1.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .async_client import ImageServiceAsyncClient
from .client import ImageServiceClient

__all__ = (
"ImageServiceClient",
"ImageServiceAsyncClient",
)
Loading
Loading