From d60f969a2b193fa22cc3e993e2c4e14d38535574 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 10 Jul 2025 03:28:05 -0700 Subject: [PATCH] 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 --- .../merchant/reviews/v1beta/merchantapi_v1beta.yaml | 2 -- .../merchant/reviews/v1beta/merchantreviews.proto | 4 ++-- .../reviews/v1beta/merchantreviews_common.proto | 4 ++-- .../reviews/v1beta/productreviews_common.proto | 13 +++++++++++-- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/google/shopping/merchant/reviews/v1beta/merchantapi_v1beta.yaml b/google/shopping/merchant/reviews/v1beta/merchantapi_v1beta.yaml index 0260140279..02f4c0bcfc 100644 --- a/google/shopping/merchant/reviews/v1beta/merchantapi_v1beta.yaml +++ b/google/shopping/merchant/reviews/v1beta/merchantapi_v1beta.yaml @@ -51,8 +51,6 @@ publishing: common: destinations: - PACKAGE_MANAGER - cpp_settings: - common: {} php_settings: common: destinations: diff --git a/google/shopping/merchant/reviews/v1beta/merchantreviews.proto b/google/shopping/merchant/reviews/v1beta/merchantreviews.proto index 9ace5d36cf..a7ddce1ff1 100644 --- a/google/shopping/merchant/reviews/v1beta/merchantreviews.proto +++ b/google/shopping/merchant/reviews/v1beta/merchantreviews.proto @@ -176,7 +176,7 @@ message MerchantReview { MerchantReviewAttributes attributes = 3 [(google.api.field_behavior) = OPTIONAL]; - // Required. A list of custom (merchant-provided) attributes. It can also be + // Optional. A list of custom (merchant-provided) attributes. It can also be // used for submitting any attribute of the data specification in its generic // form (for example, // `{ "name": "size type", "value": "regular" }`). @@ -188,7 +188,7 @@ message MerchantReview { // size of 102.4kB. Underscores in custom attribute names are replaced by // spaces upon insertion. repeated google.shopping.type.CustomAttribute custom_attributes = 4 - [(google.api.field_behavior) = REQUIRED]; + [(google.api.field_behavior) = OPTIONAL]; // Output only. The primary data source of the merchant review. string data_source = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/google/shopping/merchant/reviews/v1beta/merchantreviews_common.proto b/google/shopping/merchant/reviews/v1beta/merchantreviews_common.proto index 551723fc1b..52d1aa333d 100644 --- a/google/shopping/merchant/reviews/v1beta/merchantreviews_common.proto +++ b/google/shopping/merchant/reviews/v1beta/merchantreviews_common.proto @@ -107,8 +107,8 @@ message MerchantReviewAttributes { optional google.protobuf.Timestamp review_time = 14 [(google.api.field_behavior) = REQUIRED]; - // Required. The language of the review defined by BCP-47 language code. - optional string review_language = 15 [(google.api.field_behavior) = REQUIRED]; + // Optional. The language of the review defined by BCP-47 language code. + optional string review_language = 15 [(google.api.field_behavior) = OPTIONAL]; // Optional. The country where the reviewer made the order defined by ISO // 3166-1 Alpha-2 Country Code. diff --git a/google/shopping/merchant/reviews/v1beta/productreviews_common.proto b/google/shopping/merchant/reviews/v1beta/productreviews_common.proto index fcfe13d43d..3d5da828cc 100644 --- a/google/shopping/merchant/reviews/v1beta/productreviews_common.proto +++ b/google/shopping/merchant/reviews/v1beta/productreviews_common.proto @@ -121,8 +121,9 @@ message ProductReviewAttributes { // Optional. The title of the review. optional string title = 11 [(google.api.field_behavior) = OPTIONAL]; - // Required. The content of the review. - optional string content = 12 [(google.api.field_behavior) = REQUIRED]; + // Optional. The content of the review. If empty, the content might still get + // populated from pros and cons. + optional string content = 12 [(google.api.field_behavior) = OPTIONAL]; // Optional. Contains the advantages based on the opinion of the reviewer. // Omit boilerplate text like "pro:" unless it was written by the reviewer. @@ -183,6 +184,14 @@ message ProductReviewAttributes { // system. optional bool is_spam = 27 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Indicates whether the reviewer's purchase is verified. + optional bool is_verified_purchase = 30 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether the review is incentivized. + optional bool is_incentivized_review = 31 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The method used to collect the review. CollectionMethod collection_method = 28 [(google.api.field_behavior) = OPTIONAL];