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
Expand Up @@ -44,6 +44,7 @@
)
from google.shopping.merchant_products_v1beta.types.products_common import (
Attributes,
AutomatedDiscounts,
Certification,
CloudExportAdditionalProperties,
FreeShippingThreshold,
Expand Down Expand Up @@ -81,6 +82,7 @@
"ListProductsResponse",
"Product",
"Attributes",
"AutomatedDiscounts",
"Certification",
"CloudExportAdditionalProperties",
"FreeShippingThreshold",
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.2.3" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
)
from .types.products_common import (
Attributes,
AutomatedDiscounts,
Certification,
CloudExportAdditionalProperties,
FreeShippingThreshold,
Expand Down Expand Up @@ -64,6 +65,7 @@
"ProductInputsServiceAsyncClient",
"ProductsServiceAsyncClient",
"Attributes",
"AutomatedDiscounts",
"Certification",
"CloudExportAdditionalProperties",
"DeleteProductInputRequest",
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.2.3" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@


class ProductsServiceAsyncClient:
"""Service to use Product resource.
This service works for products with online channel only.
"""
"""Service to use Product resource."""

_client: ProductsServiceClient

Expand Down Expand Up @@ -341,9 +339,9 @@ async def sample_get_product():
Required. The name of the product to retrieve. Format:
``accounts/{account}/products/{product}`` where the last
section ``product`` consists of 4 parts:
channel~content_language~feed_label~offer_id example for
product name is
"accounts/123/products/online~en~US~sku123"
``channel~content_language~feed_label~offer_id`` example
for product name is
``accounts/123/products/online~en~US~sku123``

This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
Expand All @@ -362,8 +360,7 @@ async def sample_get_product():
inputs][google.shopping.merchant.products.v1main.ProductInput]
after applying rules and supplemental data sources.
This processed product matches what is shown in your
Merchant Center account and in Shopping ads and other
surfaces across Google. Each product is built from
Merchant Center account. Each product is built from
exactly one primary data source product input, and
multiple supplemental data source inputs. After
inserting, updating, or deleting a product input, it
Expand Down Expand Up @@ -435,14 +432,14 @@ async def list_products(
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> pagers.ListProductsAsyncPager:
r"""Lists the processed products in your Merchant Center
account. The response might contain fewer items than
specified by pageSize. Rely on pageToken to determine if
there are more items to be requested.
r"""Lists the processed products in your Merchant Center account.
The response might contain fewer items than specified by
``pageSize``. Rely on ``pageToken`` to determine if there are
more items to be requested.

After inserting, updating, or deleting a product input,
it may take several minutes before the updated processed
product can be retrieved.
After inserting, updating, or deleting a product input, it may
take several minutes before the updated processed product can be
retrieved.

.. code-block:: python

Expand Down Expand Up @@ -476,9 +473,8 @@ async def sample_list_products():
The request object. Request message for the ListProducts
method.
parent (:class:`str`):
Required. The account to list
processed products for. Format:
accounts/{account}
Required. The account to list processed products for.
Format: ``accounts/{account}``

This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ def get_transport_class(


class ProductsServiceClient(metaclass=ProductsServiceClientMeta):
"""Service to use Product resource.
This service works for products with online channel only.
"""
"""Service to use Product resource."""

@staticmethod
def _get_default_mtls_endpoint(api_endpoint):
Expand Down Expand Up @@ -759,9 +757,9 @@ def sample_get_product():
Required. The name of the product to retrieve. Format:
``accounts/{account}/products/{product}`` where the last
section ``product`` consists of 4 parts:
channel~content_language~feed_label~offer_id example for
product name is
"accounts/123/products/online~en~US~sku123"
``channel~content_language~feed_label~offer_id`` example
for product name is
``accounts/123/products/online~en~US~sku123``

This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
Expand All @@ -780,8 +778,7 @@ def sample_get_product():
inputs][google.shopping.merchant.products.v1main.ProductInput]
after applying rules and supplemental data sources.
This processed product matches what is shown in your
Merchant Center account and in Shopping ads and other
surfaces across Google. Each product is built from
Merchant Center account. Each product is built from
exactly one primary data source product input, and
multiple supplemental data source inputs. After
inserting, updating, or deleting a product input, it
Expand Down Expand Up @@ -850,14 +847,14 @@ def list_products(
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> pagers.ListProductsPager:
r"""Lists the processed products in your Merchant Center
account. The response might contain fewer items than
specified by pageSize. Rely on pageToken to determine if
there are more items to be requested.
r"""Lists the processed products in your Merchant Center account.
The response might contain fewer items than specified by
``pageSize``. Rely on ``pageToken`` to determine if there are
more items to be requested.

After inserting, updating, or deleting a product input,
it may take several minutes before the updated processed
product can be retrieved.
After inserting, updating, or deleting a product input, it may
take several minutes before the updated processed product can be
retrieved.

.. code-block:: python

Expand Down Expand Up @@ -891,9 +888,8 @@ def sample_list_products():
The request object. Request message for the ListProducts
method.
parent (str):
Required. The account to list
processed products for. Format:
accounts/{account}
Required. The account to list processed products for.
Format: ``accounts/{account}``

This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ class ProductsServiceGrpcTransport(ProductsServiceTransport):
"""gRPC backend transport for ProductsService.

Service to use Product resource.
This service works for products with online channel only.

This class defines the same methods as the primary client, so the
primary client can load the underlying transport implementation
Expand Down Expand Up @@ -355,14 +354,14 @@ def list_products(
) -> Callable[[products.ListProductsRequest], products.ListProductsResponse]:
r"""Return a callable for the list products method over gRPC.

Lists the processed products in your Merchant Center
account. The response might contain fewer items than
specified by pageSize. Rely on pageToken to determine if
there are more items to be requested.
Lists the processed products in your Merchant Center account.
The response might contain fewer items than specified by
``pageSize``. Rely on ``pageToken`` to determine if there are
more items to be requested.

After inserting, updating, or deleting a product input,
it may take several minutes before the updated processed
product can be retrieved.
After inserting, updating, or deleting a product input, it may
take several minutes before the updated processed product can be
retrieved.

Returns:
Callable[[~.ListProductsRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ class ProductsServiceGrpcAsyncIOTransport(ProductsServiceTransport):
"""gRPC AsyncIO backend transport for ProductsService.

Service to use Product resource.
This service works for products with online channel only.

This class defines the same methods as the primary client, so the
primary client can load the underlying transport implementation
Expand Down Expand Up @@ -366,14 +365,14 @@ def list_products(
]:
r"""Return a callable for the list products method over gRPC.

Lists the processed products in your Merchant Center
account. The response might contain fewer items than
specified by pageSize. Rely on pageToken to determine if
there are more items to be requested.
Lists the processed products in your Merchant Center account.
The response might contain fewer items than specified by
``pageSize``. Rely on ``pageToken`` to determine if there are
more items to be requested.

After inserting, updating, or deleting a product input,
it may take several minutes before the updated processed
product can be retrieved.
After inserting, updating, or deleting a product input, it may
take several minutes before the updated processed product can be
retrieved.

Returns:
Callable[[~.ListProductsRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ class ProductsServiceRestTransport(_BaseProductsServiceRestTransport):
"""REST backend synchronous transport for ProductsService.

Service to use Product resource.
This service works for products with online channel only.

This class defines the same methods as the primary client, so the
primary client can load the underlying transport implementation
Expand Down Expand Up @@ -324,8 +323,7 @@ def __call__(
inputs][google.shopping.merchant.products.v1main.ProductInput]
after applying rules and supplemental data sources. This
processed product matches what is shown in your Merchant
Center account and in Shopping ads and other surfaces
across Google. Each product is built from exactly one
Center account. Each product is built from exactly one
primary data source product input, and multiple
supplemental data source inputs. After inserting,
updating, or deleting a product input, it may take
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
)
from .products_common import (
Attributes,
AutomatedDiscounts,
Certification,
CloudExportAdditionalProperties,
FreeShippingThreshold,
Expand Down Expand Up @@ -60,6 +61,7 @@
"ListProductsResponse",
"Product",
"Attributes",
"AutomatedDiscounts",
"Certification",
"CloudExportAdditionalProperties",
"FreeShippingThreshold",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class ProductInput(proto.Message):
Attributes:
name (str):
Identifier. The name of the product input. Format:
``"{productinput.name=accounts/{account}/productInputs/{productinput}}"``
where the last section ``productinput`` consists of 4 parts:
accounts/{account}/productInputs/{productinput} where the
last section ``productinput`` consists of 4 parts:
channel~content_language~feed_label~offer_id example for
product input name is
"accounts/123/productInputs/online~en~US~sku123".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ class Product(proto.Message):
r"""The processed product, built from multiple [product
inputs][google.shopping.merchant.products.v1main.ProductInput] after
applying rules and supplemental data sources. This processed product
matches what is shown in your Merchant Center account and in
Shopping ads and other surfaces across Google. Each product is built
from exactly one primary data source product input, and multiple
supplemental data source inputs. After inserting, updating, or
deleting a product input, it may take several minutes before the
matches what is shown in your Merchant Center account. Each product
is built from exactly one primary data source product input, and
multiple supplemental data source inputs. After inserting, updating,
or deleting a product input, it may take several minutes before the
updated processed product can be retrieved.

All fields in the processed product and its sub-messages match the
Expand All @@ -55,10 +54,11 @@ class Product(proto.Message):
Attributes:
name (str):
The name of the product. Format:
``"{product.name=accounts/{account}/products/{product}}"``
where the last section ``product`` consists of 4 parts:
channel~content_language~feed_label~offer_id example for
product name is "accounts/123/products/online~en~US~sku123".
``accounts/{account}/products/{product}`` where the last
section ``product`` consists of 4 parts:
``channel~content_language~feed_label~offer_id`` example for
product name is
``accounts/123/products/online~en~US~sku123``
channel (google.shopping.type.types.Channel.ChannelEnum):
Output only. The
`channel <https://support.google.com/merchants/answer/7361332>`__
Expand Down Expand Up @@ -110,6 +110,9 @@ class Product(proto.Message):
Output only. The status of a product, data
validation issues, that is, information about a
product computed asynchronously.
automated_discounts (google.shopping.merchant_products_v1beta.types.AutomatedDiscounts):
Output only. The automated discounts
information for the product.
"""

name: str = proto.Field(
Expand Down Expand Up @@ -157,6 +160,11 @@ class Product(proto.Message):
number=10,
message=products_common.ProductStatus,
)
automated_discounts: products_common.AutomatedDiscounts = proto.Field(
proto.MESSAGE,
number=12,
message=products_common.AutomatedDiscounts,
)


class GetProductRequest(proto.Message):
Expand All @@ -167,8 +175,9 @@ class GetProductRequest(proto.Message):
Required. The name of the product to retrieve. Format:
``accounts/{account}/products/{product}`` where the last
section ``product`` consists of 4 parts:
channel~content_language~feed_label~offer_id example for
product name is "accounts/123/products/online~en~US~sku123".
``channel~content_language~feed_label~offer_id`` example for
product name is
``accounts/123/products/online~en~US~sku123``
"""

name: str = proto.Field(
Expand All @@ -182,8 +191,8 @@ class ListProductsRequest(proto.Message):

Attributes:
parent (str):
Required. The account to list processed
products for. Format: accounts/{account}
Required. The account to list processed products for.
Format: ``accounts/{account}``
page_size (int):
The maximum number of products to return. The
service may return fewer than this value.
Expand Down
Loading