Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [merchantapi] Changed repeated flag of an existing field gtin in message .google.shopping.merchant.products.v1beta.Attributes #5871

Merged
merged 2 commits into from
Dec 17, 2024
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
4 changes: 2 additions & 2 deletions packages/google-shopping-merchant-products/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
1. [Select or create a Cloud Platform project][projects].
1. [Enable billing for your project][billing].
1. [Enable the Merchant API API][enable_api].
1. [Set up authentication with a service account][auth] so you can access the
1. [Set up authentication][auth] so you can access the
API from your local workstation.

### Installing the client library
Expand Down Expand Up @@ -187,4 +187,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
[projects]: https://console.cloud.google.com/project
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=merchantapi.googleapis.com
[auth]: https://cloud.google.com/docs/authentication/getting-started
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ service ProductInputsService {
// processed product that you see in Merchant Center, in Shopping ads, or across
// Google surfaces. Product inputs, rules and supplemental data source data are
// combined to create the processed
// [product][google.shopping.content.bundles.Products.Product].
// [Product][google.shopping.merchant.products.v1beta.Product].
//
// Required product input attributes to pass data validation checks are
// primarily defined in the [Products Data
// Specification](https://support.google.com/merchants/answer/188494).
//
// The following attributes are required:
// [feedLabel][google.shopping.content.bundles.Products.feed_label],
// [contentLanguage][google.shopping.content.bundles.Products.content_language]
// and [offerId][google.shopping.content.bundles.Products.offer_id].
// [feedLabel][google.shopping.merchant.products.v1beta.Product.feed_label],
// [contentLanguage][google.shopping.merchant.products.v1beta.Product.content_language]
// and [offerId][google.shopping.merchant.products.v1beta.Product.offer_id].
//
// After inserting, updating, or deleting a product input, it may take several
// minutes before the processed product can be retrieved.
Expand All @@ -93,6 +93,10 @@ message ProductInput {
// Identifier. The name of the product input.
// Format:
// `"{productinput.name=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"
string name = 1 [(google.api.field_behavior) = IDENTIFIER];

// Output only. The name of the processed product.
Expand Down Expand Up @@ -193,6 +197,10 @@ message InsertProductInputRequest {
message DeleteProductInputRequest {
// Required. The name of the product input resource to delete.
// Format: accounts/{account}/productInputs/{product}
// where the last section `product` consists of 4 parts:
// channel~content_language~feed_label~offer_id
// example for product name is
// "accounts/123/productInputs/online~en~US~sku123"
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ service ProductsService {
}

// The processed product, built from multiple [product
// inputs][[google.shopping.content.bundles.Products.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
// 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 updated processed product can be retrieved.
Expand All @@ -84,7 +84,10 @@ message Product {

// The name of the product.
// Format:
// `"{product.name=accounts/{account}/products/{product}}"`
// `"{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"
string name = 1;

// Output only. The
Expand Down Expand Up @@ -148,6 +151,10 @@ message Product {
message GetProductRequest {
// 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"
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -169,7 +176,7 @@ message ListProductsRequest {

// The maximum number of products to return. The service may return fewer than
// this value.
// The maximum value is 1000; values above 1000 will be coerced to 1000.
// The maximum value is 250; values above 250 will be coerced to 250.
// If unspecified, the maximum number of products will be returned.
int32 page_size = 2;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,11 @@ message Attributes {
// categories through the API.
optional string google_product_category = 25;

// Global Trade Item Number
// Global Trade Item Numbers
// ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
// item.
optional string gtin = 26;
// You can provide up to 10 GTINs.
repeated string gtin = 26;

// Shared identifier for all variants of the same product.
optional string item_group_id = 27;
Expand Down Expand Up @@ -235,8 +236,7 @@ message Attributes {
// Tax information.
repeated Tax taxes = 51;

// The tax category of the product, used to configure detailed tax nexus
// in account-level tax settings.
// The tax category of the product.
optional string tax_category = 52;

// The energy efficiency class as defined in EU directive 2010/30/EU.
Expand Down Expand Up @@ -521,6 +521,17 @@ message LoyaltyProgram {

// The amount of loyalty points earned on a purchase.
optional int64 loyalty_points = 5;

// A date range during which the item is eligible for member price. If not
// specified, the member price is always applicable. The date range is
// represented by a pair of ISO 8601 dates separated by a space,
// comma, or slash.
optional google.type.Interval member_price_effective_date = 6;

// The label of the shipping benefit. If the field has value, this offer has
// loyalty shipping benefit. If the field value isn't provided, the item is
// not eligible for loyalty shipping for the given loyalty tier.
optional string shipping_label = 7;
}

// The Shipping of the product.
Expand Down Expand Up @@ -558,48 +569,48 @@ message Shipping {
// Minimum handling time (inclusive) between when the order is received and
// shipped in business days. 0 means that the order is shipped on the same
// day as it is received if it happens before the cut-off time.
// [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time]
// [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time]
// can only be present together with
// [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time];
// [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time];
// but it is not required if
// [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time]
// [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time]
// is present.
optional int64 min_handling_time = 8;

// Maximum handling time (inclusive) between when the order is received and
// shipped in business days. 0 means that the order is shipped on the same
// day as it is received if it happens before the cut-off time. Both
// [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time]
// [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time]
// and
// [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time]
// [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time]
// are required if providing shipping speeds.
// [minHandlingTime][google.shopping.content.bundles.Products.Shipping.min_handling_time]
// [minHandlingTime][google.shopping.merchant.products.v1beta.Shipping.min_handling_time]
// is optional if
// [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time]
// [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time]
// is present.
optional int64 max_handling_time = 9;

// Minimum transit time (inclusive) between when the order has shipped and
// when it is delivered in business days. 0 means that the order is
// delivered on the same day as it ships.
// [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time]
// [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time]
// can only be present together with
// [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time];
// [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time];
// but it is not required if
// [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time]
// [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time]
// is present.
optional int64 min_transit_time = 10;

// Maximum transit time (inclusive) between when the order has shipped and
// when it is delivered in business days. 0 means that the order is
// delivered on the same day as it ships. Both
// [maxHandlingTime][google.shopping.content.bundles.Products.Shipping.max_handling_time]
// [maxHandlingTime][google.shopping.merchant.products.v1beta.Shipping.max_handling_time]
// and
// [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time]
// [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time]
// are required if providing shipping speeds.
// [minTransitTime][google.shopping.content.bundles.Products.Shipping.min_transit_time]
// [minTransitTime][google.shopping.merchant.products.v1beta.Shipping.min_transit_time]
// is optional if
// [maxTransitTime][google.shopping.content.bundles.Products.Shipping.max_transit_time]
// [maxTransitTime][google.shopping.merchant.products.v1beta.Shipping.max_transit_time]
// is present.
optional int64 max_transit_time = 11;
}
Expand Down
25 changes: 20 additions & 5 deletions packages/google-shopping-merchant-products/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading