Skip to content

Commit 62f7efa

Browse files
feat: [google-shopping-merchant-products] A new field automated_discounts is added to message google.shopping.merchant.products.v1beta.Product (#13742)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: A new field `automated_discounts` is added to message `google.shopping.merchant.products.v1beta.Product` docs: Modified several comments END_COMMIT_OVERRIDE PiperOrigin-RevId: 745136106 Source-Link: googleapis/googleapis@df1d4b2 Source-Link: googleapis/googleapis-gen@b42def2 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LXByb2R1Y3RzLy5Pd2xCb3QueWFtbCIsImgiOiJiNDJkZWYyNDhjYmM4ZGI0NTVmNmY1NzE5ZjlhMGU2OWU0ZGU2ZjE4In0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 2c0c1c8 commit 62f7efa

File tree

14 files changed

+115
-73
lines changed

14 files changed

+115
-73
lines changed

packages/google-shopping-merchant-products/google/shopping/merchant_products/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
)
4545
from google.shopping.merchant_products_v1beta.types.products_common import (
4646
Attributes,
47+
AutomatedDiscounts,
4748
Certification,
4849
CloudExportAdditionalProperties,
4950
FreeShippingThreshold,
@@ -81,6 +82,7 @@
8182
"ListProductsResponse",
8283
"Product",
8384
"Attributes",
85+
"AutomatedDiscounts",
8486
"Certification",
8587
"CloudExportAdditionalProperties",
8688
"FreeShippingThreshold",

packages/google-shopping-merchant-products/google/shopping/merchant_products/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.2.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-shopping-merchant-products/google/shopping/merchant_products_v1beta/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
)
3838
from .types.products_common import (
3939
Attributes,
40+
AutomatedDiscounts,
4041
Certification,
4142
CloudExportAdditionalProperties,
4243
FreeShippingThreshold,
@@ -64,6 +65,7 @@
6465
"ProductInputsServiceAsyncClient",
6566
"ProductsServiceAsyncClient",
6667
"Attributes",
68+
"AutomatedDiscounts",
6769
"Certification",
6870
"CloudExportAdditionalProperties",
6971
"DeleteProductInputRequest",

packages/google-shopping-merchant-products/google/shopping/merchant_products_v1beta/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.2.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-shopping-merchant-products/google/shopping/merchant_products_v1beta/services/products_service/async_client.py

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@
6363

6464

6565
class ProductsServiceAsyncClient:
66-
"""Service to use Product resource.
67-
This service works for products with online channel only.
68-
"""
66+
"""Service to use Product resource."""
6967

7068
_client: ProductsServiceClient
7169

@@ -341,9 +339,9 @@ async def sample_get_product():
341339
Required. The name of the product to retrieve. Format:
342340
``accounts/{account}/products/{product}`` where the last
343341
section ``product`` consists of 4 parts:
344-
channel~content_language~feed_label~offer_id example for
345-
product name is
346-
"accounts/123/products/online~en~US~sku123"
342+
``channel~content_language~feed_label~offer_id`` example
343+
for product name is
344+
``accounts/123/products/online~en~US~sku123``
347345
348346
This corresponds to the ``name`` field
349347
on the ``request`` instance; if ``request`` is provided, this
@@ -362,8 +360,7 @@ async def sample_get_product():
362360
inputs][google.shopping.merchant.products.v1main.ProductInput]
363361
after applying rules and supplemental data sources.
364362
This processed product matches what is shown in your
365-
Merchant Center account and in Shopping ads and other
366-
surfaces across Google. Each product is built from
363+
Merchant Center account. Each product is built from
367364
exactly one primary data source product input, and
368365
multiple supplemental data source inputs. After
369366
inserting, updating, or deleting a product input, it
@@ -435,14 +432,14 @@ async def list_products(
435432
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
436433
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
437434
) -> pagers.ListProductsAsyncPager:
438-
r"""Lists the processed products in your Merchant Center
439-
account. The response might contain fewer items than
440-
specified by pageSize. Rely on pageToken to determine if
441-
there are more items to be requested.
435+
r"""Lists the processed products in your Merchant Center account.
436+
The response might contain fewer items than specified by
437+
``pageSize``. Rely on ``pageToken`` to determine if there are
438+
more items to be requested.
442439
443-
After inserting, updating, or deleting a product input,
444-
it may take several minutes before the updated processed
445-
product can be retrieved.
440+
After inserting, updating, or deleting a product input, it may
441+
take several minutes before the updated processed product can be
442+
retrieved.
446443
447444
.. code-block:: python
448445
@@ -476,9 +473,8 @@ async def sample_list_products():
476473
The request object. Request message for the ListProducts
477474
method.
478475
parent (:class:`str`):
479-
Required. The account to list
480-
processed products for. Format:
481-
accounts/{account}
476+
Required. The account to list processed products for.
477+
Format: ``accounts/{account}``
482478
483479
This corresponds to the ``parent`` field
484480
on the ``request`` instance; if ``request`` is provided, this

packages/google-shopping-merchant-products/google/shopping/merchant_products_v1beta/services/products_service/client.py

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,7 @@ def get_transport_class(
109109

110110

111111
class ProductsServiceClient(metaclass=ProductsServiceClientMeta):
112-
"""Service to use Product resource.
113-
This service works for products with online channel only.
114-
"""
112+
"""Service to use Product resource."""
115113

116114
@staticmethod
117115
def _get_default_mtls_endpoint(api_endpoint):
@@ -759,9 +757,9 @@ def sample_get_product():
759757
Required. The name of the product to retrieve. Format:
760758
``accounts/{account}/products/{product}`` where the last
761759
section ``product`` consists of 4 parts:
762-
channel~content_language~feed_label~offer_id example for
763-
product name is
764-
"accounts/123/products/online~en~US~sku123"
760+
``channel~content_language~feed_label~offer_id`` example
761+
for product name is
762+
``accounts/123/products/online~en~US~sku123``
765763
766764
This corresponds to the ``name`` field
767765
on the ``request`` instance; if ``request`` is provided, this
@@ -780,8 +778,7 @@ def sample_get_product():
780778
inputs][google.shopping.merchant.products.v1main.ProductInput]
781779
after applying rules and supplemental data sources.
782780
This processed product matches what is shown in your
783-
Merchant Center account and in Shopping ads and other
784-
surfaces across Google. Each product is built from
781+
Merchant Center account. Each product is built from
785782
exactly one primary data source product input, and
786783
multiple supplemental data source inputs. After
787784
inserting, updating, or deleting a product input, it
@@ -850,14 +847,14 @@ def list_products(
850847
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
851848
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
852849
) -> pagers.ListProductsPager:
853-
r"""Lists the processed products in your Merchant Center
854-
account. The response might contain fewer items than
855-
specified by pageSize. Rely on pageToken to determine if
856-
there are more items to be requested.
850+
r"""Lists the processed products in your Merchant Center account.
851+
The response might contain fewer items than specified by
852+
``pageSize``. Rely on ``pageToken`` to determine if there are
853+
more items to be requested.
857854
858-
After inserting, updating, or deleting a product input,
859-
it may take several minutes before the updated processed
860-
product can be retrieved.
855+
After inserting, updating, or deleting a product input, it may
856+
take several minutes before the updated processed product can be
857+
retrieved.
861858
862859
.. code-block:: python
863860
@@ -891,9 +888,8 @@ def sample_list_products():
891888
The request object. Request message for the ListProducts
892889
method.
893890
parent (str):
894-
Required. The account to list
895-
processed products for. Format:
896-
accounts/{account}
891+
Required. The account to list processed products for.
892+
Format: ``accounts/{account}``
897893
898894
This corresponds to the ``parent`` field
899895
on the ``request`` instance; if ``request`` is provided, this

packages/google-shopping-merchant-products/google/shopping/merchant_products_v1beta/services/products_service/transports/grpc.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ class ProductsServiceGrpcTransport(ProductsServiceTransport):
112112
"""gRPC backend transport for ProductsService.
113113
114114
Service to use Product resource.
115-
This service works for products with online channel only.
116115
117116
This class defines the same methods as the primary client, so the
118117
primary client can load the underlying transport implementation
@@ -355,14 +354,14 @@ def list_products(
355354
) -> Callable[[products.ListProductsRequest], products.ListProductsResponse]:
356355
r"""Return a callable for the list products method over gRPC.
357356
358-
Lists the processed products in your Merchant Center
359-
account. The response might contain fewer items than
360-
specified by pageSize. Rely on pageToken to determine if
361-
there are more items to be requested.
357+
Lists the processed products in your Merchant Center account.
358+
The response might contain fewer items than specified by
359+
``pageSize``. Rely on ``pageToken`` to determine if there are
360+
more items to be requested.
362361
363-
After inserting, updating, or deleting a product input,
364-
it may take several minutes before the updated processed
365-
product can be retrieved.
362+
After inserting, updating, or deleting a product input, it may
363+
take several minutes before the updated processed product can be
364+
retrieved.
366365
367366
Returns:
368367
Callable[[~.ListProductsRequest],

packages/google-shopping-merchant-products/google/shopping/merchant_products_v1beta/services/products_service/transports/grpc_asyncio.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ class ProductsServiceGrpcAsyncIOTransport(ProductsServiceTransport):
117117
"""gRPC AsyncIO backend transport for ProductsService.
118118
119119
Service to use Product resource.
120-
This service works for products with online channel only.
121120
122121
This class defines the same methods as the primary client, so the
123122
primary client can load the underlying transport implementation
@@ -366,14 +365,14 @@ def list_products(
366365
]:
367366
r"""Return a callable for the list products method over gRPC.
368367
369-
Lists the processed products in your Merchant Center
370-
account. The response might contain fewer items than
371-
specified by pageSize. Rely on pageToken to determine if
372-
there are more items to be requested.
368+
Lists the processed products in your Merchant Center account.
369+
The response might contain fewer items than specified by
370+
``pageSize``. Rely on ``pageToken`` to determine if there are
371+
more items to be requested.
373372
374-
After inserting, updating, or deleting a product input,
375-
it may take several minutes before the updated processed
376-
product can be retrieved.
373+
After inserting, updating, or deleting a product input, it may
374+
take several minutes before the updated processed product can be
375+
retrieved.
377376
378377
Returns:
379378
Callable[[~.ListProductsRequest],

packages/google-shopping-merchant-products/google/shopping/merchant_products_v1beta/services/products_service/transports/rest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ class ProductsServiceRestTransport(_BaseProductsServiceRestTransport):
192192
"""REST backend synchronous transport for ProductsService.
193193
194194
Service to use Product resource.
195-
This service works for products with online channel only.
196195
197196
This class defines the same methods as the primary client, so the
198197
primary client can load the underlying transport implementation
@@ -324,8 +323,7 @@ def __call__(
324323
inputs][google.shopping.merchant.products.v1main.ProductInput]
325324
after applying rules and supplemental data sources. This
326325
processed product matches what is shown in your Merchant
327-
Center account and in Shopping ads and other surfaces
328-
across Google. Each product is built from exactly one
326+
Center account. Each product is built from exactly one
329327
primary data source product input, and multiple
330328
supplemental data source inputs. After inserting,
331329
updating, or deleting a product input, it may take

packages/google-shopping-merchant-products/google/shopping/merchant_products_v1beta/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
)
2828
from .products_common import (
2929
Attributes,
30+
AutomatedDiscounts,
3031
Certification,
3132
CloudExportAdditionalProperties,
3233
FreeShippingThreshold,
@@ -60,6 +61,7 @@
6061
"ListProductsResponse",
6162
"Product",
6263
"Attributes",
64+
"AutomatedDiscounts",
6365
"Certification",
6466
"CloudExportAdditionalProperties",
6567
"FreeShippingThreshold",

0 commit comments

Comments
 (0)