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
This commit is contained in:
Google APIs 2025-07-10 03:28:05 -07:00 committed by Copybara-Service
parent 0cdaee64d4
commit d60f969a2b
4 changed files with 15 additions and 8 deletions

View file

@ -51,8 +51,6 @@ publishing:
common:
destinations:
- PACKAGE_MANAGER
cpp_settings:
common: {}
php_settings:
common:
destinations:

View file

@ -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];

View file

@ -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.

View file

@ -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];