Skip to content

Commit aa3a93a

Browse files
Google APIscopybara-github
authored andcommitted
feat: add product rating fields to CSS API v1. This is in
preparation for an upcoming feature and the new fields are not yet used. docs: A comment for field `name` in message `.google.shopping.css.v1.AccountLabel` is changed docs: A comment for field `size_types` in message `.google.shopping.css.v1.Attributes` is changed docs: A comment for field `name` in message `.google.shopping.css.v1.CssProductInput` is changed docs: A comment for field `name` in message `.google.shopping.css.v1.GetCssProductRequest` is changed PiperOrigin-RevId: 882470295
1 parent 889c549 commit aa3a93a

File tree

6 files changed

+37
-11
lines changed

6 files changed

+37
-11
lines changed

google/shopping/css/v1/accounts.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/shopping/css/v1/accounts_labels.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -93,9 +93,9 @@ message AccountLabel {
9393
AUTOMATIC = 2;
9494
}
9595

96-
// The resource name of the label.
96+
// Identifier. The resource name of the label.
9797
// Format: accounts/{account}/labels/{label}
98-
string name = 1;
98+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
9999

100100
// Output only. The ID of the label.
101101
int64 label_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY];

google/shopping/css/v1/css_product_common.proto

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -137,7 +137,7 @@ message Attributes {
137137

138138
// The cut of the item. It can be used to represent combined size types for
139139
// apparel items. Maximum two of size types can be provided (see
140-
// [https://support.google.com/merchants/answer/6324497](size type)).
140+
// [size type](https://support.google.com/merchants/answer/6324497).
141141
repeated string size_types = 28;
142142

143143
// Shared identifier for all variants of the same product.
@@ -212,6 +212,31 @@ message Attributes {
212212
// Number of periods (months or years) and amount of payment per period
213213
// for an item with an associated subscription contract.
214214
HeadlineOfferSubscriptionCost headline_offer_subscription_cost = 52;
215+
216+
// Number of reviews of the product. Required if
217+
// [`rating`][google.shopping.css.v1.Attributes.rating] is provided.
218+
// This field is for an upcoming feature and is not yet used.
219+
optional int64 review_count = 54;
220+
221+
// Minimum rating score of the product. Required if
222+
// [`rating`][google.shopping.css.v1.Attributes.rating] is provided.
223+
// This field is for an upcoming feature and is not yet used.
224+
optional int64 min_rating = 55;
225+
226+
// Maximum rating score of the product. Required if
227+
// [`rating`][google.shopping.css.v1.Attributes.rating] is provided.
228+
// This field is for an upcoming feature and is not yet used.
229+
optional int64 max_rating = 56;
230+
231+
// Average rating score of the product. The value must be within the
232+
// range of [`min_rating`, `max_rating`], inclusive. When displayed on the
233+
// product page, this rating is normalized to a scale of [1, 5] with one
234+
// decimal place. If provided,
235+
// [`review_count`][google.shopping.css.v1.Attributes.review_count],
236+
// [`min_rating`][google.shopping.css.v1.Attributes.min_rating], and
237+
// [`max_rating`][google.shopping.css.v1.Attributes.max_rating] are also
238+
// required. This field is for an upcoming feature and is not yet used.
239+
optional double rating = 57;
215240
}
216241

217242
// The certification for the product. Use the this attribute to describe

google/shopping/css/v1/css_product_inputs.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -89,13 +89,13 @@ message CssProductInput {
8989
pattern: "accounts/{account}/cssProductInputs/{css_product_input}"
9090
};
9191

92-
// The name of the CSS Product input.
92+
// Identifier. The name of the CSS Product input.
9393
// Format:
9494
// `accounts/{account}/cssProductInputs/{css_product_input}`, where the
9595
// last section `css_product_input` consists of 3 parts:
9696
// contentLanguage~feedLabel~offerId. Example:
9797
// accounts/123/cssProductInputs/de~DE~rawProvidedId123
98-
string name = 1;
98+
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
9999

100100
// Output only. The name of the processed CSS Product.
101101
// Format:

google/shopping/css/v1/css_products.proto

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -66,6 +66,7 @@ service CssProductsService {
6666
// The request message for the `GetCssProduct` method.
6767
message GetCssProductRequest {
6868
// Required. The name of the CSS product to retrieve.
69+
// Format: `accounts/{account}/cssProducts/{css_product}`
6970
string name = 1 [
7071
(google.api.field_behavior) = REQUIRED,
7172
(google.api.resource_reference) = { type: "css.googleapis.com/CssProduct" }

google/shopping/css/v1/quota.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2025 Google LLC
1+
// Copyright 2026 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)