Skip to content

Commit c2b35a3

Browse files
docs: [google-shopping-merchant-reviews] A comment for field custom_attributes in message .google.shopping.merchant.reviews.v1beta.MerchantReview is changed (googleapis#14080)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE 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` END_COMMIT_OVERRIDE 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 Source-Link: googleapis/googleapis@d60f969 Source-Link: https://github.com/googleapis/googleapis-gen/commit/eac475d7c4f6b31109a0d85f756d3b9ac3818c54 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LXJldmlld3MvLk93bEJvdC55YW1sIiwiaCI6ImVhYzQ3NWQ3YzRmNmIzMTEwOWEwZDg1Zjc1NmQzYjlhYzM4MThjNTQifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 5430901 commit c2b35a3

File tree

7 files changed

+30
-6
lines changed

7 files changed

+30
-6
lines changed

packages/google-shopping-merchant-reviews/google/shopping/merchant_reviews/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-shopping-merchant-reviews/google/shopping/merchant_reviews_v1beta/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.3" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-shopping-merchant-reviews/google/shopping/merchant_reviews_v1beta/types/merchantreviews.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ class MerchantReview(proto.Message):
178178
Optional. A list of merchant review
179179
attributes.
180180
custom_attributes (MutableSequence[google.shopping.type.types.CustomAttribute]):
181-
Required. A list of custom (merchant-provided) attributes.
181+
Optional. A list of custom (merchant-provided) attributes.
182182
It can also be used for submitting any attribute of the data
183183
specification in its generic form (for example,
184184
``{ "name": "size type", "value": "regular" }``). This is

packages/google-shopping-merchant-reviews/google/shopping/merchant_reviews_v1beta/types/merchantreviews_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class MerchantReviewAttributes(proto.Message):
118118
119119
This field is a member of `oneof`_ ``_review_time``.
120120
review_language (str):
121-
Required. The language of the review defined
121+
Optional. The language of the review defined
122122
by BCP-47 language code.
123123
124124
This field is a member of `oneof`_ ``_review_language``.

packages/google-shopping-merchant-reviews/google/shopping/merchant_reviews_v1beta/types/productreviews_common.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ class ProductReviewAttributes(proto.Message):
104104
105105
This field is a member of `oneof`_ ``_title``.
106106
content (str):
107-
Required. The content of the review.
107+
Optional. The content of the review. If
108+
empty, the content might still get populated
109+
from pros and cons.
108110
109111
This field is a member of `oneof`_ ``_content``.
110112
pros (MutableSequence[str]):
@@ -171,6 +173,16 @@ class ProductReviewAttributes(proto.Message):
171173
marked as spam in the publisher's system.
172174
173175
This field is a member of `oneof`_ ``_is_spam``.
176+
is_verified_purchase (bool):
177+
Optional. Indicates whether the reviewer's
178+
purchase is verified.
179+
180+
This field is a member of `oneof`_ ``_is_verified_purchase``.
181+
is_incentivized_review (bool):
182+
Optional. Indicates whether the review is
183+
incentivized.
184+
185+
This field is a member of `oneof`_ ``_is_incentivized_review``.
174186
collection_method (google.shopping.merchant_reviews_v1beta.types.ProductReviewAttributes.CollectionMethod):
175187
Optional. The method used to collect the
176188
review.
@@ -363,6 +375,16 @@ class Type(proto.Enum):
363375
number=27,
364376
optional=True,
365377
)
378+
is_verified_purchase: bool = proto.Field(
379+
proto.BOOL,
380+
number=30,
381+
optional=True,
382+
)
383+
is_incentivized_review: bool = proto.Field(
384+
proto.BOOL,
385+
number=31,
386+
optional=True,
387+
)
366388
collection_method: CollectionMethod = proto.Field(
367389
proto.ENUM,
368390
number=28,

packages/google-shopping-merchant-reviews/samples/generated_samples/snippet_metadata_google.shopping.merchant.reviews.v1beta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-shopping-merchant-reviews",
11-
"version": "0.1.3"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-shopping-merchant-reviews/tests/unit/gapic/merchant_reviews_v1beta/test_product_reviews_service.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4115,6 +4115,8 @@ def test_insert_product_review_rest_call_success(request_type):
41154115
"skus": ["skus_value1", "skus_value2"],
41164116
"brands": ["brands_value1", "brands_value2"],
41174117
"is_spam": True,
4118+
"is_verified_purchase": True,
4119+
"is_incentivized_review": True,
41184120
"collection_method": 1,
41194121
"transaction_id": "transaction_id_value",
41204122
},

0 commit comments

Comments
 (0)