Skip to content

Commit d60f969

Browse files
Google APIscopybara-github
authored andcommitted
docs: A comment for field custom_attributes in message .google.shopping.merchant.reviews.v1beta.MerchantReview is changed
docs: A comment for field `review_language` in message `.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes` is changed docs: A comment for field `content` in message `.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes` is changed feat: A new field `is_verified_purchase` is added to message `.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes` feat: A new field `is_incentivized_review` is added to message `.google.shopping.merchant.reviews.v1beta.ProductReviewAttributes` PiperOrigin-RevId: 781457438
1 parent 0cdaee6 commit d60f969

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

google/shopping/merchant/reviews/v1beta/merchantapi_v1beta.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ publishing:
5151
common:
5252
destinations:
5353
- PACKAGE_MANAGER
54-
cpp_settings:
55-
common: {}
5654
php_settings:
5755
common:
5856
destinations:

google/shopping/merchant/reviews/v1beta/merchantreviews.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ message MerchantReview {
176176
MerchantReviewAttributes attributes = 3
177177
[(google.api.field_behavior) = OPTIONAL];
178178

179-
// Required. A list of custom (merchant-provided) attributes. It can also be
179+
// Optional. A list of custom (merchant-provided) attributes. It can also be
180180
// used for submitting any attribute of the data specification in its generic
181181
// form (for example,
182182
// `{ "name": "size type", "value": "regular" }`).
@@ -188,7 +188,7 @@ message MerchantReview {
188188
// size of 102.4kB. Underscores in custom attribute names are replaced by
189189
// spaces upon insertion.
190190
repeated google.shopping.type.CustomAttribute custom_attributes = 4
191-
[(google.api.field_behavior) = REQUIRED];
191+
[(google.api.field_behavior) = OPTIONAL];
192192

193193
// Output only. The primary data source of the merchant review.
194194
string data_source = 5 [(google.api.field_behavior) = OUTPUT_ONLY];

google/shopping/merchant/reviews/v1beta/merchantreviews_common.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ message MerchantReviewAttributes {
107107
optional google.protobuf.Timestamp review_time = 14
108108
[(google.api.field_behavior) = REQUIRED];
109109

110-
// Required. The language of the review defined by BCP-47 language code.
111-
optional string review_language = 15 [(google.api.field_behavior) = REQUIRED];
110+
// Optional. The language of the review defined by BCP-47 language code.
111+
optional string review_language = 15 [(google.api.field_behavior) = OPTIONAL];
112112

113113
// Optional. The country where the reviewer made the order defined by ISO
114114
// 3166-1 Alpha-2 Country Code.

google/shopping/merchant/reviews/v1beta/productreviews_common.proto

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ message ProductReviewAttributes {
121121
// Optional. The title of the review.
122122
optional string title = 11 [(google.api.field_behavior) = OPTIONAL];
123123

124-
// Required. The content of the review.
125-
optional string content = 12 [(google.api.field_behavior) = REQUIRED];
124+
// Optional. The content of the review. If empty, the content might still get
125+
// populated from pros and cons.
126+
optional string content = 12 [(google.api.field_behavior) = OPTIONAL];
126127

127128
// Optional. Contains the advantages based on the opinion of the reviewer.
128129
// Omit boilerplate text like "pro:" unless it was written by the reviewer.
@@ -183,6 +184,14 @@ message ProductReviewAttributes {
183184
// system.
184185
optional bool is_spam = 27 [(google.api.field_behavior) = OPTIONAL];
185186

187+
// Optional. Indicates whether the reviewer's purchase is verified.
188+
optional bool is_verified_purchase = 30
189+
[(google.api.field_behavior) = OPTIONAL];
190+
191+
// Optional. Indicates whether the review is incentivized.
192+
optional bool is_incentivized_review = 31
193+
[(google.api.field_behavior) = OPTIONAL];
194+
186195
// Optional. The method used to collect the review.
187196
CollectionMethod collection_method = 28
188197
[(google.api.field_behavior) = OPTIONAL];

0 commit comments

Comments
 (0)