Skip to content

Commit 2273ea0

Browse files
fix!: [google-shopping-merchant-reviews] An existing field attributes is renamed to merchant_review_attributes in message .google.shopping.merchant.reviews.v1beta.MerchantReview (#14143)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE fix!: An existing field `attributes` is renamed to `product_review_attributes` in message `.google.shopping.merchant.reviews.v1beta.ProductReview` fix!: An existing field `attributes` is renamed to `merchant_review_attributes` in message `.google.shopping.merchant.reviews.v1beta.MerchantReview` END_COMMIT_OVERRIDE PiperOrigin-RevId: 786648704 Source-Link: googleapis/googleapis@dfb458e Source-Link: googleapis/googleapis-gen@18c17a8 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LXJldmlld3MvLk93bEJvdC55YW1sIiwiaCI6IjE4YzE3YThhNWMwM2IxYzQzYjMxOWY5OGZmZDNmMDlmNjQ3MDQzODQifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 1569c8d commit 2273ea0

File tree

7 files changed

+19
-15
lines changed

7 files changed

+19
-15
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.4" # {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.4" # {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: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ class MerchantReview(proto.Message):
174174
merchant_review_id (str):
175175
Required. The user provided merchant review
176176
ID to uniquely identify the merchant review.
177-
attributes (google.shopping.merchant_reviews_v1beta.types.MerchantReviewAttributes):
177+
merchant_review_attributes (google.shopping.merchant_reviews_v1beta.types.MerchantReviewAttributes):
178178
Optional. A list of merchant review
179179
attributes.
180180
custom_attributes (MutableSequence[google.shopping.type.types.CustomAttribute]):
@@ -206,10 +206,12 @@ class MerchantReview(proto.Message):
206206
proto.STRING,
207207
number=2,
208208
)
209-
attributes: merchantreviews_common.MerchantReviewAttributes = proto.Field(
210-
proto.MESSAGE,
211-
number=3,
212-
message=merchantreviews_common.MerchantReviewAttributes,
209+
merchant_review_attributes: merchantreviews_common.MerchantReviewAttributes = (
210+
proto.Field(
211+
proto.MESSAGE,
212+
number=3,
213+
message=merchantreviews_common.MerchantReviewAttributes,
214+
)
213215
)
214216
custom_attributes: MutableSequence[types.CustomAttribute] = proto.RepeatedField(
215217
proto.MESSAGE,

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class ProductReview(proto.Message):
172172
Required. The permanent, unique identifier
173173
for the product review in the publisher’s
174174
system.
175-
attributes (google.shopping.merchant_reviews_v1beta.types.ProductReviewAttributes):
175+
product_review_attributes (google.shopping.merchant_reviews_v1beta.types.ProductReviewAttributes):
176176
Optional. A list of product review
177177
attributes.
178178
custom_attributes (MutableSequence[google.shopping.type.types.CustomAttribute]):
@@ -195,10 +195,12 @@ class ProductReview(proto.Message):
195195
proto.STRING,
196196
number=2,
197197
)
198-
attributes: productreviews_common.ProductReviewAttributes = proto.Field(
199-
proto.MESSAGE,
200-
number=3,
201-
message=productreviews_common.ProductReviewAttributes,
198+
product_review_attributes: productreviews_common.ProductReviewAttributes = (
199+
proto.Field(
200+
proto.MESSAGE,
201+
number=3,
202+
message=productreviews_common.ProductReviewAttributes,
203+
)
202204
)
203205
custom_attributes: MutableSequence[types.CustomAttribute] = proto.RepeatedField(
204206
proto.MESSAGE,

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.4"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4089,7 +4089,7 @@ def test_insert_merchant_review_rest_call_success(request_type):
40894089
request_init["merchant_review"] = {
40904090
"name": "name_value",
40914091
"merchant_review_id": "merchant_review_id_value",
4092-
"attributes": {
4092+
"merchant_review_attributes": {
40934093
"merchant_id": "merchant_id_value",
40944094
"merchant_display_name": "merchant_display_name_value",
40954095
"merchant_link": "merchant_link_value",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4084,7 +4084,7 @@ def test_insert_product_review_rest_call_success(request_type):
40844084
request_init["product_review"] = {
40854085
"name": "name_value",
40864086
"product_review_id": "product_review_id_value",
4087-
"attributes": {
4087+
"product_review_attributes": {
40884088
"aggregator_name": "aggregator_name_value",
40894089
"subclient_name": "subclient_name_value",
40904090
"publisher_name": "publisher_name_value",

0 commit comments

Comments
 (0)