From d0d195cb1ecbaa334751f71a6d24ee5590d6c619 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 19 Dec 2024 02:59:06 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../metadata/V1Beta/Merchantreviews.php | 6 +- .../metadata/V1Beta/MerchantreviewsCommon.php | Bin 3177 -> 3313 bytes .../metadata/V1Beta/Productreviews.php | 6 +- .../metadata/V1Beta/ProductreviewsCommon.php | Bin 3683 -> 3819 bytes .../Reviews/V1Beta/Merchantreviews.php | 67 - .../Reviews/V1Beta/MerchantreviewsCommon.php | Bin 3313 -> 0 bytes .../Reviews/V1Beta/Productreviews.php | 66 - .../Reviews/V1Beta/ProductreviewsCommon.php | Bin 3819 -> 0 bytes .../V1beta/DeleteMerchantReviewRequest.php | 86 -- .../V1beta/DeleteProductReviewRequest.php | 86 -- .../V1beta/GetMerchantReviewRequest.php | 86 -- .../V1beta/GetProductReviewRequest.php | 86 -- .../V1beta/InsertMerchantReviewRequest.php | 161 -- .../V1beta/InsertProductReviewRequest.php | 153 -- .../V1beta/ListMerchantReviewsRequest.php | 178 --- .../V1beta/ListMerchantReviewsResponse.php | 101 -- .../V1beta/ListProductReviewsRequest.php | 170 --- .../V1beta/ListProductReviewsResponse.php | 105 -- .../Reviews/V1beta/MerchantReview.php | 315 ---- .../V1beta/MerchantReviewAttributes.php | 789 ---------- .../CollectionMethod.php | 74 - .../Reviews/V1beta/MerchantReviewStatus.php | 198 --- .../MerchantReviewDestinationStatus.php | 70 - .../MerchantReviewItemLevelIssue.php | 312 ---- .../MerchantReviewItemLevelIssue/Severity.php | 65 - .../Merchant/Reviews/V1beta/ProductReview.php | 275 ---- .../V1beta/ProductReviewAttributes.php | 1305 ----------------- .../CollectionMethod.php | 66 - .../ProductReviewAttributes/ReviewLink.php | 108 -- .../ReviewLink/Type.php | 64 - .../Reviews/V1beta/ProductReviewStatus.php | 197 --- .../ProductReviewDestinationStatus.php | 70 - .../ProductReviewItemLevelIssue.php | 312 ---- .../ProductReviewItemLevelIssue/Severity.php | 65 - .../delete_merchant_review.php | 70 - .../get_merchant_review.php | 72 - .../insert_merchant_review.php | 90 -- .../list_merchant_reviews.php | 77 - .../delete_product_review.php | 70 - .../get_product_review.php | 72 - .../insert_product_review.php | 84 -- .../list_product_reviews.php | 77 - .../Client/MerchantReviewsServiceClient.php | 365 ----- .../Client/ProductReviewsServiceClient.php | 364 ----- .../v1beta/src/V1beta/gapic_metadata.json | 67 - ...erchant_reviews_service_client_config.json | 54 - ...hant_reviews_service_descriptor_config.php | 88 -- ...ant_reviews_service_rest_client_config.php | 74 - ...product_reviews_service_client_config.json | 54 - ...duct_reviews_service_descriptor_config.php | 88 -- ...uct_reviews_service_rest_client_config.php | 74 - .../MerchantReviewsServiceClientTest.php | 382 ----- .../ProductReviewsServiceClientTest.php | 378 ----- 53 files changed, 6 insertions(+), 8236 deletions(-) delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/GPBMetadata/Google/Shopping/Merchant/Reviews/V1Beta/Merchantreviews.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/GPBMetadata/Google/Shopping/Merchant/Reviews/V1Beta/MerchantreviewsCommon.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/GPBMetadata/Google/Shopping/Merchant/Reviews/V1Beta/Productreviews.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/GPBMetadata/Google/Shopping/Merchant/Reviews/V1Beta/ProductreviewsCommon.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/DeleteMerchantReviewRequest.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/DeleteProductReviewRequest.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/GetMerchantReviewRequest.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/GetProductReviewRequest.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/InsertMerchantReviewRequest.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/InsertProductReviewRequest.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListMerchantReviewsRequest.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListMerchantReviewsResponse.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListProductReviewsRequest.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListProductReviewsResponse.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReview.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewAttributes.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewAttributes/CollectionMethod.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus/MerchantReviewDestinationStatus.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus/MerchantReviewItemLevelIssue.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus/MerchantReviewItemLevelIssue/Severity.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReview.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes/CollectionMethod.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes/ReviewLink.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes/ReviewLink/Type.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus/ProductReviewDestinationStatus.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus/ProductReviewItemLevelIssue.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus/ProductReviewItemLevelIssue/Severity.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/delete_merchant_review.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/get_merchant_review.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/insert_merchant_review.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/list_merchant_reviews.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/delete_product_review.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/get_product_review.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/insert_product_review.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/list_product_reviews.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/Client/MerchantReviewsServiceClient.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/Client/ProductReviewsServiceClient.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/gapic_metadata.json delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/merchant_reviews_service_client_config.json delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/merchant_reviews_service_descriptor_config.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/merchant_reviews_service_rest_client_config.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/product_reviews_service_client_config.json delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/product_reviews_service_descriptor_config.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/product_reviews_service_rest_client_config.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/tests/Unit/V1beta/Client/MerchantReviewsServiceClientTest.php delete mode 100644 owl-bot-staging/ShoppingMerchantReviews/v1beta/tests/Unit/V1beta/Client/ProductReviewsServiceClientTest.php diff --git a/ShoppingMerchantReviews/metadata/V1Beta/Merchantreviews.php b/ShoppingMerchantReviews/metadata/V1Beta/Merchantreviews.php index 4afe44d98a2..77e7486a68c 100644 --- a/ShoppingMerchantReviews/metadata/V1Beta/Merchantreviews.php +++ b/ShoppingMerchantReviews/metadata/V1Beta/Merchantreviews.php @@ -23,7 +23,7 @@ public static function initOnce() { \GPBMetadata\Google\Shopping\Type\Types::initOnce(); $pool->internalAddGeneratedFile( ' - + =google/shopping/merchant/reviews/v1beta/merchantreviews.proto\'google.shopping.merchant.reviews.v1betagoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.protoDgoogle/shopping/merchant/reviews/v1beta/merchantreviews_common.proto google/shopping/type/types.proto"[ GetMerchantReviewRequest? name ( B1AA+ @@ -56,8 +56,8 @@ public static function initOnce() { GetMerchantReviewA.google.shopping.merchant.reviews.v1beta.GetMerchantReviewRequest7.google.shopping.merchant.reviews.v1beta.MerchantReview"BAname53/reviews/v1beta/{name=accounts/*/merchantReviews/*} ListMerchantReviewsC.google.shopping.merchant.reviews.v1beta.ListMerchantReviewsRequestD.google.shopping.merchant.reviews.v1beta.ListMerchantReviewsResponse"DAparent53/reviews/v1beta/{parent=accounts/*}/merchantReviews InsertMerchantReviewD.google.shopping.merchant.reviews.v1beta.InsertMerchantReviewRequest7.google.shopping.merchant.reviews.v1beta.MerchantReview"SM":/reviews/v1beta/{parent=accounts/*}/merchantReviews:insert:merchant_review -DeleteMerchantReviewD.google.shopping.merchant.reviews.v1beta.DeleteMerchantReviewRequest.google.protobuf.Empty"BAname5*3/reviews/v1beta/{name=accounts/*/merchantReviews/*}GAmerchantapi.googleapis.comA\'https://www.googleapis.com/auth/contentB -+com.google.shopping.merchant.reviews.v1betaBMerchantReviewsProtoPZKcloud.google.com/go/shopping/merchant/reviews/apiv1beta/reviewspb;reviewspbA8 +DeleteMerchantReviewD.google.shopping.merchant.reviews.v1beta.DeleteMerchantReviewRequest.google.protobuf.Empty"BAname5*3/reviews/v1beta/{name=accounts/*/merchantReviews/*}GAmerchantapi.googleapis.comA\'https://www.googleapis.com/auth/contentB ++com.google.shopping.merchant.reviews.v1betaBMerchantReviewsProtoPZKcloud.google.com/go/shopping/merchant/reviews/apiv1beta/reviewspb;reviewspb\'Google.Shopping.Merchant.Reviews.V1Beta\'Google\\Shopping\\Merchant\\Reviews\\V1beta+Google::Shopping::Merchant::Reviews::V1betaA8 "merchantapi.googleapis.com/Accountaccounts/{account}bproto3' , true); diff --git a/ShoppingMerchantReviews/metadata/V1Beta/MerchantreviewsCommon.php b/ShoppingMerchantReviews/metadata/V1Beta/MerchantreviewsCommon.php index dacd6194b6168ea6f32ca11dea8413ae012804e3..e9dbeb796c43393b483e321cb14322fa3695d9a5 100644 GIT binary patch delta 173 zcmaDU@lkTa2_~jn!kbSq?ciXa#l)qZoS!@S0lUWJjojJwtC(Wc-ShL)b5iw!Gx7@x zGV{{)d{c{(GZOPk^ny~$GE>Wo^}-CDQcDs~!Ij3uz|_XXz!b;CKvl=Ygc&9QmA_)r dh8S#R1ygNh1ygNh1yRjeY-I&eK3Rsx7XVR&KrsLS delta 35 tcmV+;0Nnra8R;0X$N~b`60^zzxCjTB0SYT)Z*7y{2Pl)V3u}|43{3-`4Y2?K diff --git a/ShoppingMerchantReviews/metadata/V1Beta/Productreviews.php b/ShoppingMerchantReviews/metadata/V1Beta/Productreviews.php index f75f186688f..bb9b8d84d58 100644 --- a/ShoppingMerchantReviews/metadata/V1Beta/Productreviews.php +++ b/ShoppingMerchantReviews/metadata/V1Beta/Productreviews.php @@ -23,7 +23,7 @@ public static function initOnce() { \GPBMetadata\Google\Shopping\Type\Types::initOnce(); $pool->internalAddGeneratedFile( ' - + name ( B0AA* @@ -56,8 +56,8 @@ public static function initOnce() { GetProductReview@.google.shopping.merchant.reviews.v1beta.GetProductReviewRequest6.google.shopping.merchant.reviews.v1beta.ProductReview"AAname42/reviews/v1beta/{name=accounts/*/productReviews/*} ListProductReviewsB.google.shopping.merchant.reviews.v1beta.ListProductReviewsRequestC.google.shopping.merchant.reviews.v1beta.ListProductReviewsResponse"CAparent42/reviews/v1beta/{parent=accounts/*}/productReviews InsertProductReviewC.google.shopping.merchant.reviews.v1beta.InsertProductReviewRequest6.google.shopping.merchant.reviews.v1beta.ProductReview"QK"9/reviews/v1beta/{parent=accounts/*}/productReviews:insert:product_review -DeleteProductReviewC.google.shopping.merchant.reviews.v1beta.DeleteProductReviewRequest.google.protobuf.Empty"AAname4*2/reviews/v1beta/{name=accounts/*/productReviews/*}GAmerchantapi.googleapis.comA\'https://www.googleapis.com/auth/contentB -+com.google.shopping.merchant.reviews.v1betaBProductReviewsProtoPZKcloud.google.com/go/shopping/merchant/reviews/apiv1beta/reviewspb;reviewspbbproto3' +DeleteProductReviewC.google.shopping.merchant.reviews.v1beta.DeleteProductReviewRequest.google.protobuf.Empty"AAname4*2/reviews/v1beta/{name=accounts/*/productReviews/*}GAmerchantapi.googleapis.comA\'https://www.googleapis.com/auth/contentB ++com.google.shopping.merchant.reviews.v1betaBProductReviewsProtoPZKcloud.google.com/go/shopping/merchant/reviews/apiv1beta/reviewspb;reviewspb\'Google.Shopping.Merchant.Reviews.V1Beta\'Google\\Shopping\\Merchant\\Reviews\\V1beta+Google::Shopping::Merchant::Reviews::V1betabproto3' , true); static::$is_initialized = true; diff --git a/ShoppingMerchantReviews/metadata/V1Beta/ProductreviewsCommon.php b/ShoppingMerchantReviews/metadata/V1Beta/ProductreviewsCommon.php index 6634ac2558a769b92a32154b3b78b77d97cf6cfd..a12416ed438e93439bc03b5993c06bdfc61bdd6a 100644 GIT binary patch delta 169 zcmaDX^ICSpF(#I);#|%Xy`4AnG8b?$&19Nf&pW+-6;q75dwza;PO4sTMt(s-W?s6U zZ)#C;Mq*xxUQlXTW@>q{UYMa%YDwZLxYC#ynA(^anBtfisOp%QFvBFE@>fjS5QD9( ZV5+UGV5+UGAgVcwt*ju*CyVj<0sxS2J#qj5 delta 31 ncmaDY`&eefF(#JFVqDG>y`4AnG8b?$O=p~3&pUncJU(9lyNwF+ diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/GPBMetadata/Google/Shopping/Merchant/Reviews/V1Beta/Merchantreviews.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/GPBMetadata/Google/Shopping/Merchant/Reviews/V1Beta/Merchantreviews.php deleted file mode 100644 index 77e7486a68c..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/GPBMetadata/Google/Shopping/Merchant/Reviews/V1Beta/Merchantreviews.php +++ /dev/null @@ -1,67 +0,0 @@ -internalAddGeneratedFile( - ' - -=google/shopping/merchant/reviews/v1beta/merchantreviews.proto\'google.shopping.merchant.reviews.v1betagoogle/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.protogoogle/protobuf/empty.protoDgoogle/shopping/merchant/reviews/v1beta/merchantreviews_common.proto google/shopping/type/types.proto"[ -GetMerchantReviewRequest? -name ( B1AA+ -)merchantapi.googleapis.com/MerchantReview"^ -DeleteMerchantReviewRequest? -name ( B1AA+ -)merchantapi.googleapis.com/MerchantReview" -ListMerchantReviewsRequestA -parent ( B1AA+)merchantapi.googleapis.com/MerchantReview - page_size (BA - -page_token ( BA" -InsertMerchantReviewRequest -parent ( BAU -merchant_review ( 27.google.shopping.merchant.reviews.v1beta.MerchantReviewBA - data_source ( BA" -ListMerchantReviewsResponseQ -merchant_reviews ( 27.google.shopping.merchant.reviews.v1beta.MerchantReview -next_page_token ( " -MerchantReview -name ( BA -merchant_review_id ( BAZ - -attributes ( 2A.google.shopping.merchant.reviews.v1beta.MerchantReviewAttributesBAE -custom_attributes ( 2%.google.shopping.type.CustomAttributeBA - data_source ( BAb -merchant_review_status ( 2=.google.shopping.merchant.reviews.v1beta.MerchantReviewStatusBA:zAw -)merchantapi.googleapis.com/MerchantReview)accounts/{account}/merchantReviews/{name}*merchantReviews2merchantReview2 -MerchantReviewsService -GetMerchantReviewA.google.shopping.merchant.reviews.v1beta.GetMerchantReviewRequest7.google.shopping.merchant.reviews.v1beta.MerchantReview"BAname53/reviews/v1beta/{name=accounts/*/merchantReviews/*} -ListMerchantReviewsC.google.shopping.merchant.reviews.v1beta.ListMerchantReviewsRequestD.google.shopping.merchant.reviews.v1beta.ListMerchantReviewsResponse"DAparent53/reviews/v1beta/{parent=accounts/*}/merchantReviews -InsertMerchantReviewD.google.shopping.merchant.reviews.v1beta.InsertMerchantReviewRequest7.google.shopping.merchant.reviews.v1beta.MerchantReview"SM":/reviews/v1beta/{parent=accounts/*}/merchantReviews:insert:merchant_review -DeleteMerchantReviewD.google.shopping.merchant.reviews.v1beta.DeleteMerchantReviewRequest.google.protobuf.Empty"BAname5*3/reviews/v1beta/{name=accounts/*/merchantReviews/*}GAmerchantapi.googleapis.comA\'https://www.googleapis.com/auth/contentB -+com.google.shopping.merchant.reviews.v1betaBMerchantReviewsProtoPZKcloud.google.com/go/shopping/merchant/reviews/apiv1beta/reviewspb;reviewspb\'Google.Shopping.Merchant.Reviews.V1Beta\'Google\\Shopping\\Merchant\\Reviews\\V1beta+Google::Shopping::Merchant::Reviews::V1betaA8 -"merchantapi.googleapis.com/Accountaccounts/{account}bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/GPBMetadata/Google/Shopping/Merchant/Reviews/V1Beta/MerchantreviewsCommon.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/GPBMetadata/Google/Shopping/Merchant/Reviews/V1Beta/MerchantreviewsCommon.php deleted file mode 100644 index e9dbeb796c43393b483e321cb14322fa3695d9a5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3313 zcmb_f&2HO95RN3rmPfWMD^9{1Ny9in?I5j$xV@BaT8Of236U&8QUWwpLD1A%UX&sU za_K}VQuNqo=)IRdN-w<@J@wqD=q#5@+LqDe5Fc!5=i8atnQwml)i>U$2M^Rk;t=0t zWUL;~RCY>K&v%(?xwd*7o}3V0wcM#kZQ@r{b-$|~b%$zWzcsv%R|7ZnEuyIt*PYm; z8l1YGN1aJ^N_^|obXe6VXOz4Os%KA*2{V)P_}DZO+N3D)U2f-ny##goVDd7x~Q< zyiGoht_Wq#qoV^#?6FQx%`@uynwGvQRdUtUdR3y zKl_@-v8#>8NvIBxhdasR_*1vx?;EiHAqZF=Z3{IO$>WOTaU~{GMeum@UTiNSF6Oz) zWH2JlmWZyn2+ZL}r>9j=Tq}3DBm_4@xctWI5my*hm1_1h9CG2)B^pavXOD zU`icBK$Pn!&2fh^%>^knUrXs?D!tC73M|I=mQa!r_ZGS2He6?v*+j{w=9akNBUrLr z%)i5wWhu%w^IU|n5!oO3`-#e0SA2yD_Hxc<2tjc8wSb> z%Jagn0++vnb?kpOiAvs>5_am2l~n{4cl(w1BuS+cH>%6ot<)3M*yK>NFucMIe<>el za7HObG+Ef)lqMzJDoOS6tJ&r%zj`0m#KR5SbS9xWAS@=aK;9Sj?NYCJh^jBcQp{OB4~rObq@oUx$GH@7 zFY+m26Z*6PWh416*`=?+s&Sr95p0e>=afas)yq(dl_eR|*I`Yb#VOkQYYBsUfl31$ zUtv)GIRhJGY{JyRx^*3cPYm=az#7jXYrdDPc~>{PL{y>u(jks7X-CL8@p9!iuud77 z8a6p2HpU-$Em8ZllFb2-{yk!SV_2EuvI-OL}LixFs+n^l-U| zukwEN?yH+W!M%%lmfXiOy}5YsX;A4)c%4)3HJdwVIN>yU z@aCU6xO35gi($c9Td>?QNyi0GP(Hx8`IOC~*-+fI=KPRFcWKC7V!)NOxadG-5StPS zx((oyz_mlp&UEnP%C}(Il(P=m63@2W)zRa5{Q%L!7FEDviFPpV4$pZsQgh`SusFsA zlG+L%Px0X6V_X>A0u!{{jBZJ{F2K vO={LO`7TY1b!(bHA1_8T@AK_s=lfKwzvs4P-uI|=#ikq~#XkEM-U9pws4zC$ diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/GPBMetadata/Google/Shopping/Merchant/Reviews/V1Beta/Productreviews.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/GPBMetadata/Google/Shopping/Merchant/Reviews/V1Beta/Productreviews.php deleted file mode 100644 index bb9b8d84d58..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/GPBMetadata/Google/Shopping/Merchant/Reviews/V1Beta/Productreviews.php +++ /dev/null @@ -1,66 +0,0 @@ -internalAddGeneratedFile( - ' - - -name ( B0AA* -(merchantapi.googleapis.com/ProductReview"\\ -DeleteProductReviewRequest> -name ( B0AA* -(merchantapi.googleapis.com/ProductReview" -ListProductReviewsRequest@ -parent ( B0AA*(merchantapi.googleapis.com/ProductReview - page_size (BA - -page_token ( BA" -InsertProductReviewRequest -parent ( BAS -product_review ( 26.google.shopping.merchant.reviews.v1beta.ProductReviewBA - data_source ( BA" -ListProductReviewsResponseO -product_reviews ( 26.google.shopping.merchant.reviews.v1beta.ProductReview -next_page_token ( " - ProductReview -name ( BA -product_review_id ( BAY - -attributes ( 2@.google.shopping.merchant.reviews.v1beta.ProductReviewAttributesBAE -custom_attributes ( 2%.google.shopping.type.CustomAttributeBA - data_source ( BA` -product_review_status ( 2<.google.shopping.merchant.reviews.v1beta.ProductReviewStatusBA:A| -(merchantapi.googleapis.com/ProductReview1accounts/{account}/productReviews/{productreview}*productReviews2 productReview2 -ProductReviewsService -GetProductReview@.google.shopping.merchant.reviews.v1beta.GetProductReviewRequest6.google.shopping.merchant.reviews.v1beta.ProductReview"AAname42/reviews/v1beta/{name=accounts/*/productReviews/*} -ListProductReviewsB.google.shopping.merchant.reviews.v1beta.ListProductReviewsRequestC.google.shopping.merchant.reviews.v1beta.ListProductReviewsResponse"CAparent42/reviews/v1beta/{parent=accounts/*}/productReviews -InsertProductReviewC.google.shopping.merchant.reviews.v1beta.InsertProductReviewRequest6.google.shopping.merchant.reviews.v1beta.ProductReview"QK"9/reviews/v1beta/{parent=accounts/*}/productReviews:insert:product_review -DeleteProductReviewC.google.shopping.merchant.reviews.v1beta.DeleteProductReviewRequest.google.protobuf.Empty"AAname4*2/reviews/v1beta/{name=accounts/*/productReviews/*}GAmerchantapi.googleapis.comA\'https://www.googleapis.com/auth/contentB -+com.google.shopping.merchant.reviews.v1betaBProductReviewsProtoPZKcloud.google.com/go/shopping/merchant/reviews/apiv1beta/reviewspb;reviewspb\'Google.Shopping.Merchant.Reviews.V1Beta\'Google\\Shopping\\Merchant\\Reviews\\V1beta+Google::Shopping::Merchant::Reviews::V1betabproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/GPBMetadata/Google/Shopping/Merchant/Reviews/V1Beta/ProductreviewsCommon.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/GPBMetadata/Google/Shopping/Merchant/Reviews/V1Beta/ProductreviewsCommon.php deleted file mode 100644 index a12416ed438e93439bc03b5993c06bdfc61bdd6a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3819 zcmb_fUvC>l5XW}@juXeZrp+~N;hI)Ts)DTsgoHyuvE!sxo!G=~MX9CJ`MhyfJ>MO- zdm#apXTAbo0r3&|1PJlQJI{OyW^eCq<0PdOZ5|wZW_D(F{`_|4^Dq4)AMO~t#3g~n z$-wBJ8vKYDe&BJ>_8g-h9v+gwu)UE_9TJobW4mSSx4K4syV1RkN0}D}HmMjx&l@_V z%#J+Yr|z&kB7uEmxx5^ZV@keb<>Lo^!mToD9)vcJsU|8Od2T7P2jE&G!hFjn#%{a1 zhvEZ^TfN;#b*~ev?(M~@dk0c=@9Bdo%5DPKj>VYK9y3vkEWi(7;GZA%9cmklTO9x0 zrOc!*<t*K&H>gxLZ0xfiriv{D%ooN{YCY6mcmo*ODyal@DTb zQQ2ae%RGsOtmKso?ZEN2W%0qJ#OkkeupAevEaNTC1KJNcVcKn2u!h5c3@t1dQ#6I1 zF*573)!g4(nMd#al*woY6j<1|9ZFm-C9+B)6H7$Z&W=c|Bc~*?LgEfADv3iZ1lx1< z2_=*hLbo6>BtM2K82Dq(&Ne4S}GVa(G+;CX{ByT z2;t48km*?NFtmn5pHU*yLIiIfi`ZW1^59gTRT48o;*-Q>Q=~-)Wal?lN^x?NoR!iF z7EWfhWtilYJ4DYbb+baW@R+ z7y3fv&*Q|O*A-jo6;)C?h|sTzDx)Z4?3U61(-DTw6y}&-RG!=f7*W?ms7Hv_7txWN z%urt3MsTf@gsUm;oZ#v(6`#9;oQym-FE}eOk5Le)9#taKmz2dbJn79<#nWKYViaR_ zZHzWV=a{~%Xc*Fwk0gDJ#9m;LU00+lFx3w%cfj-&Ma0}8#^aMR(r=*GaXl7<*Wbb- zK5!0+P~996e&h}GnEnvstfo8?AkFuikys+CHao0rF^~ z)oj!nT{MvqhTE-9*W7v1+-WqMd-eTpFLM(d;~*H36s8G?sV;$LDpCw{ z)dI|!s#^wC9j=}EeFn#(^QmM4T#-MLnj%$XJf_9aRGon-1R+F~D!>d5I}waj=OJ&Z zK9oPx#;eZ4blii{p}2lm|D1*^V^Gk+Atq$nkFYermzcWP)ShdKu>rkgdJelFzw!M4 z6^_(B4m~)*BvvF_)KE@4fkn#6$aKgtaZJish{h)(<6pl!;|(;?6c!r7fV7M_ZwCa& zR*CcCX?iWr=d{nDh*KgrLm!9B_^5cRUVn7uCA>eDfeR7Qp2K25d@m6AD${+!;}+h$ z5Dd}Zh~lw$O%%rozd)$F;V8QA${#tnF=l@}DDvqUoS79wa%LDtEuj2V7foK+ur9dq ziXmq_`Ii;MxcO2iHYAg?3=k0JIiaXZEXEk;a@sYRwUSXsO&ht(Lnm@t*m&#E;p3IZ zCW!`c;f~061iLv6pN#=757be!NKU+H1J4de_~u7lrG}8)>MqPAH$}Beo%+-IL8JTZ z9IO>#4!0z;vDeTuL+?M9G0Ug%J|+Q+`TfoG+b`MP+HSOSm6DOYlgoogle.shopping.merchant.reviews.v1beta.DeleteMerchantReviewRequest - */ -class DeleteMerchantReviewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the merchant review. - * Format: accounts/{account}/merchantReviews/{merchantReview} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The ID of the merchant review. - * Format: accounts/{account}/merchantReviews/{merchantReview} - * Please see {@see MerchantReviewsServiceClient::merchantReviewName()} for help formatting this field. - * - * @return \Google\Shopping\Merchant\Reviews\V1beta\DeleteMerchantReviewRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ID of the merchant review. - * Format: accounts/{account}/merchantReviews/{merchantReview} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\Merchantreviews::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the merchant review. - * Format: accounts/{account}/merchantReviews/{merchantReview} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ID of the merchant review. - * Format: accounts/{account}/merchantReviews/{merchantReview} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/DeleteProductReviewRequest.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/DeleteProductReviewRequest.php deleted file mode 100644 index 68784f743d3..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/DeleteProductReviewRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.shopping.merchant.reviews.v1beta.DeleteProductReviewRequest - */ -class DeleteProductReviewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the Product review. - * Format: accounts/{account}/productReviews/{productReview} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The ID of the Product review. - * Format: accounts/{account}/productReviews/{productReview} - * Please see {@see ProductReviewsServiceClient::productReviewName()} for help formatting this field. - * - * @return \Google\Shopping\Merchant\Reviews\V1beta\DeleteProductReviewRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ID of the Product review. - * Format: accounts/{account}/productReviews/{productReview} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\Productreviews::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the Product review. - * Format: accounts/{account}/productReviews/{productReview} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ID of the Product review. - * Format: accounts/{account}/productReviews/{productReview} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/GetMerchantReviewRequest.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/GetMerchantReviewRequest.php deleted file mode 100644 index fe49f63c300..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/GetMerchantReviewRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.shopping.merchant.reviews.v1beta.GetMerchantReviewRequest - */ -class GetMerchantReviewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the merchant review. - * Format: accounts/{account}/merchantReviews/{merchantReview} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The ID of the merchant review. - * Format: accounts/{account}/merchantReviews/{merchantReview} - * Please see {@see MerchantReviewsServiceClient::merchantReviewName()} for help formatting this field. - * - * @return \Google\Shopping\Merchant\Reviews\V1beta\GetMerchantReviewRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ID of the merchant review. - * Format: accounts/{account}/merchantReviews/{merchantReview} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\Merchantreviews::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the merchant review. - * Format: accounts/{account}/merchantReviews/{merchantReview} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ID of the merchant review. - * Format: accounts/{account}/merchantReviews/{merchantReview} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/GetProductReviewRequest.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/GetProductReviewRequest.php deleted file mode 100644 index 4b054cd5b7d..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/GetProductReviewRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.shopping.merchant.reviews.v1beta.GetProductReviewRequest - */ -class GetProductReviewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the merchant review. - * Format: accounts/{account}/productReviews/{productReview} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The ID of the merchant review. - * Format: accounts/{account}/productReviews/{productReview} - * Please see {@see ProductReviewsServiceClient::productReviewName()} for help formatting this field. - * - * @return \Google\Shopping\Merchant\Reviews\V1beta\GetProductReviewRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The ID of the merchant review. - * Format: accounts/{account}/productReviews/{productReview} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\Productreviews::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the merchant review. - * Format: accounts/{account}/productReviews/{productReview} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The ID of the merchant review. - * Format: accounts/{account}/productReviews/{productReview} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/InsertMerchantReviewRequest.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/InsertMerchantReviewRequest.php deleted file mode 100644 index f00eb0f658f..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/InsertMerchantReviewRequest.php +++ /dev/null @@ -1,161 +0,0 @@ -google.shopping.merchant.reviews.v1beta.InsertMerchantReviewRequest - */ -class InsertMerchantReviewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account where the merchant review will be inserted. - * Format: accounts/{account} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Required. The merchant review to insert. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.MerchantReview merchant_review = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $merchant_review = null; - /** - * Required. The data source of the - * [merchantreview](https://support.google.com/merchants/answer/7045996?sjid=5253581244217581976-EU) - * Format: - * `accounts/{account}/dataSources/{datasource}`. - * - * Generated from protobuf field string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_source = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The account where the merchant review will be inserted. - * Format: accounts/{account} - * @type \Google\Shopping\Merchant\Reviews\V1beta\MerchantReview $merchant_review - * Required. The merchant review to insert. - * @type string $data_source - * Required. The data source of the - * [merchantreview](https://support.google.com/merchants/answer/7045996?sjid=5253581244217581976-EU) - * Format: - * `accounts/{account}/dataSources/{datasource}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\Merchantreviews::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account where the merchant review will be inserted. - * Format: accounts/{account} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The account where the merchant review will be inserted. - * Format: accounts/{account} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The merchant review to insert. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.MerchantReview merchant_review = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Shopping\Merchant\Reviews\V1beta\MerchantReview|null - */ - public function getMerchantReview() - { - return $this->merchant_review; - } - - public function hasMerchantReview() - { - return isset($this->merchant_review); - } - - public function clearMerchantReview() - { - unset($this->merchant_review); - } - - /** - * Required. The merchant review to insert. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.MerchantReview merchant_review = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Shopping\Merchant\Reviews\V1beta\MerchantReview $var - * @return $this - */ - public function setMerchantReview($var) - { - GPBUtil::checkMessage($var, \Google\Shopping\Merchant\Reviews\V1beta\MerchantReview::class); - $this->merchant_review = $var; - - return $this; - } - - /** - * Required. The data source of the - * [merchantreview](https://support.google.com/merchants/answer/7045996?sjid=5253581244217581976-EU) - * Format: - * `accounts/{account}/dataSources/{datasource}`. - * - * Generated from protobuf field string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataSource() - { - return $this->data_source; - } - - /** - * Required. The data source of the - * [merchantreview](https://support.google.com/merchants/answer/7045996?sjid=5253581244217581976-EU) - * Format: - * `accounts/{account}/dataSources/{datasource}`. - * - * Generated from protobuf field string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataSource($var) - { - GPBUtil::checkString($var, True); - $this->data_source = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/InsertProductReviewRequest.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/InsertProductReviewRequest.php deleted file mode 100644 index 0df4c4c9e93..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/InsertProductReviewRequest.php +++ /dev/null @@ -1,153 +0,0 @@ -google.shopping.merchant.reviews.v1beta.InsertProductReviewRequest - */ -class InsertProductReviewRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account where the product review will be inserted. - * Format: accounts/{account} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * Required. The product review to insert. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $product_review = null; - /** - * Required. Format: - * `accounts/{account}/dataSources/{datasource}`. - * - * Generated from protobuf field string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_source = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The account where the product review will be inserted. - * Format: accounts/{account} - * @type \Google\Shopping\Merchant\Reviews\V1beta\ProductReview $product_review - * Required. The product review to insert. - * @type string $data_source - * Required. Format: - * `accounts/{account}/dataSources/{datasource}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\Productreviews::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account where the product review will be inserted. - * Format: accounts/{account} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The account where the product review will be inserted. - * Format: accounts/{account} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The product review to insert. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Shopping\Merchant\Reviews\V1beta\ProductReview|null - */ - public function getProductReview() - { - return $this->product_review; - } - - public function hasProductReview() - { - return isset($this->product_review); - } - - public function clearProductReview() - { - unset($this->product_review); - } - - /** - * Required. The product review to insert. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReview product_review = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Shopping\Merchant\Reviews\V1beta\ProductReview $var - * @return $this - */ - public function setProductReview($var) - { - GPBUtil::checkMessage($var, \Google\Shopping\Merchant\Reviews\V1beta\ProductReview::class); - $this->product_review = $var; - - return $this; - } - - /** - * Required. Format: - * `accounts/{account}/dataSources/{datasource}`. - * - * Generated from protobuf field string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataSource() - { - return $this->data_source; - } - - /** - * Required. Format: - * `accounts/{account}/dataSources/{datasource}`. - * - * Generated from protobuf field string data_source = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataSource($var) - { - GPBUtil::checkString($var, True); - $this->data_source = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListMerchantReviewsRequest.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListMerchantReviewsRequest.php deleted file mode 100644 index 226d81aac0e..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListMerchantReviewsRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.shopping.merchant.reviews.v1beta.ListMerchantReviewsRequest - */ -class ListMerchantReviewsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account to list merchant reviews for. - * Format: accounts/{account} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of merchant reviews to return. The service can - * return fewer than this value. The maximum value is 1000; values above 1000 - * are coerced to 1000. If unspecified, the maximum number of reviews is - * returned. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListMerchantReviews` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMerchantReviews` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The account to list merchant reviews for. - * Format: accounts/{account} - * Please see {@see MerchantReviewsServiceClient::accountName()} for help formatting this field. - * - * @return \Google\Shopping\Merchant\Reviews\V1beta\ListMerchantReviewsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The account to list merchant reviews for. - * Format: accounts/{account} - * @type int $page_size - * Optional. The maximum number of merchant reviews to return. The service can - * return fewer than this value. The maximum value is 1000; values above 1000 - * are coerced to 1000. If unspecified, the maximum number of reviews is - * returned. - * @type string $page_token - * Optional. A page token, received from a previous `ListMerchantReviews` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMerchantReviews` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\Merchantreviews::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account to list merchant reviews for. - * Format: accounts/{account} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The account to list merchant reviews for. - * Format: accounts/{account} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of merchant reviews to return. The service can - * return fewer than this value. The maximum value is 1000; values above 1000 - * are coerced to 1000. If unspecified, the maximum number of reviews is - * returned. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of merchant reviews to return. The service can - * return fewer than this value. The maximum value is 1000; values above 1000 - * are coerced to 1000. If unspecified, the maximum number of reviews is - * returned. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListMerchantReviews` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMerchantReviews` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListMerchantReviews` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListMerchantReviews` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListMerchantReviewsResponse.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListMerchantReviewsResponse.php deleted file mode 100644 index dc9d6945fde..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListMerchantReviewsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.shopping.merchant.reviews.v1beta.ListMerchantReviewsResponse - */ -class ListMerchantReviewsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The merchant review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.MerchantReview merchant_reviews = 1; - */ - private $merchant_reviews; - /** - * The token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Shopping\Merchant\Reviews\V1beta\MerchantReview>|\Google\Protobuf\Internal\RepeatedField $merchant_reviews - * The merchant review. - * @type string $next_page_token - * The token to retrieve the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\Merchantreviews::initOnce(); - parent::__construct($data); - } - - /** - * The merchant review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.MerchantReview merchant_reviews = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMerchantReviews() - { - return $this->merchant_reviews; - } - - /** - * The merchant review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.MerchantReview merchant_reviews = 1; - * @param array<\Google\Shopping\Merchant\Reviews\V1beta\MerchantReview>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMerchantReviews($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Shopping\Merchant\Reviews\V1beta\MerchantReview::class); - $this->merchant_reviews = $arr; - - return $this; - } - - /** - * The token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The token to retrieve the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListProductReviewsRequest.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListProductReviewsRequest.php deleted file mode 100644 index 06f50ac7118..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListProductReviewsRequest.php +++ /dev/null @@ -1,170 +0,0 @@ -google.shopping.merchant.reviews.v1beta.ListProductReviewsRequest - */ -class ListProductReviewsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The account to list product reviews for. - * Format: accounts/{account} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of products to return. The service may return - * fewer than this value. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous `ListProductReviews` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProductReviews` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The account to list product reviews for. - * Format: accounts/{account} - * Please see {@see ProductReviewsServiceClient::accountName()} for help formatting this field. - * - * @return \Google\Shopping\Merchant\Reviews\V1beta\ListProductReviewsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The account to list product reviews for. - * Format: accounts/{account} - * @type int $page_size - * Optional. The maximum number of products to return. The service may return - * fewer than this value. - * @type string $page_token - * Optional. A page token, received from a previous `ListProductReviews` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProductReviews` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\Productreviews::initOnce(); - parent::__construct($data); - } - - /** - * Required. The account to list product reviews for. - * Format: accounts/{account} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The account to list product reviews for. - * Format: accounts/{account} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of products to return. The service may return - * fewer than this value. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of products to return. The service may return - * fewer than this value. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous `ListProductReviews` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProductReviews` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A page token, received from a previous `ListProductReviews` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProductReviews` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListProductReviewsResponse.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListProductReviewsResponse.php deleted file mode 100644 index 5cb55c035e3..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ListProductReviewsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.shopping.merchant.reviews.v1beta.ListProductReviewsResponse - */ -class ListProductReviewsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The product review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.ProductReview product_reviews = 1; - */ - private $product_reviews; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Shopping\Merchant\Reviews\V1beta\ProductReview>|\Google\Protobuf\Internal\RepeatedField $product_reviews - * The product review. - * @type string $next_page_token - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\Productreviews::initOnce(); - parent::__construct($data); - } - - /** - * The product review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.ProductReview product_reviews = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProductReviews() - { - return $this->product_reviews; - } - - /** - * The product review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.ProductReview product_reviews = 1; - * @param array<\Google\Shopping\Merchant\Reviews\V1beta\ProductReview>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProductReviews($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Shopping\Merchant\Reviews\V1beta\ProductReview::class); - $this->product_reviews = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReview.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReview.php deleted file mode 100644 index 3da0814bf15..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReview.php +++ /dev/null @@ -1,315 +0,0 @@ -google.shopping.merchant.reviews.v1beta.MerchantReview - */ -class MerchantReview extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the merchant review. - * Format: - * `"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}"` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The user provided merchant review ID to uniquely identify the - * merchant review. - * - * Generated from protobuf field string merchant_review_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $merchant_review_id = ''; - /** - * Optional. A list of merchant review attributes. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $attributes = null; - /** - * Required. 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" }`). - * This is useful for submitting attributes not explicitly exposed by the - * API, such as experimental attributes. - * Maximum allowed number of characters for each - * custom attribute is 10240 (represents sum of characters for name and - * value). Maximum 2500 custom attributes can be set per product, with total - * size of 102.4kB. Underscores in custom attribute names are replaced by - * spaces upon insertion. - * - * Generated from protobuf field repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $custom_attributes; - /** - * Output only. The primary data source of the merchant review. - * - * Generated from protobuf field string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_source = ''; - /** - * Output only. The status of a merchant review, data validation issues, that - * is, information about a merchant review computed asynchronously. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.MerchantReviewStatus merchant_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $merchant_review_status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of the merchant review. - * Format: - * `"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}"` - * @type string $merchant_review_id - * Required. The user provided merchant review ID to uniquely identify the - * merchant review. - * @type \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewAttributes $attributes - * Optional. A list of merchant review attributes. - * @type array<\Google\Shopping\Type\CustomAttribute>|\Google\Protobuf\Internal\RepeatedField $custom_attributes - * Required. 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" }`). - * This is useful for submitting attributes not explicitly exposed by the - * API, such as experimental attributes. - * Maximum allowed number of characters for each - * custom attribute is 10240 (represents sum of characters for name and - * value). Maximum 2500 custom attributes can be set per product, with total - * size of 102.4kB. Underscores in custom attribute names are replaced by - * spaces upon insertion. - * @type string $data_source - * Output only. The primary data source of the merchant review. - * @type \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewStatus $merchant_review_status - * Output only. The status of a merchant review, data validation issues, that - * is, information about a merchant review computed asynchronously. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\Merchantreviews::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the merchant review. - * Format: - * `"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}"` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the merchant review. - * Format: - * `"{merchantreview.name=accounts/{account}/merchantReviews/{merchantReview}}"` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The user provided merchant review ID to uniquely identify the - * merchant review. - * - * Generated from protobuf field string merchant_review_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMerchantReviewId() - { - return $this->merchant_review_id; - } - - /** - * Required. The user provided merchant review ID to uniquely identify the - * merchant review. - * - * Generated from protobuf field string merchant_review_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMerchantReviewId($var) - { - GPBUtil::checkString($var, True); - $this->merchant_review_id = $var; - - return $this; - } - - /** - * Optional. A list of merchant review attributes. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewAttributes|null - */ - public function getAttributes() - { - return $this->attributes; - } - - public function hasAttributes() - { - return isset($this->attributes); - } - - public function clearAttributes() - { - unset($this->attributes); - } - - /** - * Optional. A list of merchant review attributes. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewAttributes $var - * @return $this - */ - public function setAttributes($var) - { - GPBUtil::checkMessage($var, \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewAttributes::class); - $this->attributes = $var; - - return $this; - } - - /** - * Required. 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" }`). - * This is useful for submitting attributes not explicitly exposed by the - * API, such as experimental attributes. - * Maximum allowed number of characters for each - * custom attribute is 10240 (represents sum of characters for name and - * value). Maximum 2500 custom attributes can be set per product, with total - * size of 102.4kB. Underscores in custom attribute names are replaced by - * spaces upon insertion. - * - * Generated from protobuf field repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomAttributes() - { - return $this->custom_attributes; - } - - /** - * Required. 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" }`). - * This is useful for submitting attributes not explicitly exposed by the - * API, such as experimental attributes. - * Maximum allowed number of characters for each - * custom attribute is 10240 (represents sum of characters for name and - * value). Maximum 2500 custom attributes can be set per product, with total - * size of 102.4kB. Underscores in custom attribute names are replaced by - * spaces upon insertion. - * - * Generated from protobuf field repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Shopping\Type\CustomAttribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Shopping\Type\CustomAttribute::class); - $this->custom_attributes = $arr; - - return $this; - } - - /** - * Output only. The primary data source of the merchant review. - * - * Generated from protobuf field string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDataSource() - { - return $this->data_source; - } - - /** - * Output only. The primary data source of the merchant review. - * - * Generated from protobuf field string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDataSource($var) - { - GPBUtil::checkString($var, True); - $this->data_source = $var; - - return $this; - } - - /** - * Output only. The status of a merchant review, data validation issues, that - * is, information about a merchant review computed asynchronously. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.MerchantReviewStatus merchant_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewStatus|null - */ - public function getMerchantReviewStatus() - { - return $this->merchant_review_status; - } - - public function hasMerchantReviewStatus() - { - return isset($this->merchant_review_status); - } - - public function clearMerchantReviewStatus() - { - unset($this->merchant_review_status); - } - - /** - * Output only. The status of a merchant review, data validation issues, that - * is, information about a merchant review computed asynchronously. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.MerchantReviewStatus merchant_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewStatus $var - * @return $this - */ - public function setMerchantReviewStatus($var) - { - GPBUtil::checkMessage($var, \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewStatus::class); - $this->merchant_review_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewAttributes.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewAttributes.php deleted file mode 100644 index 3f9b48fa169..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewAttributes.php +++ /dev/null @@ -1,789 +0,0 @@ -google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes - */ -class MerchantReviewAttributes extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Must be unique and stable across all requests. In other words, if - * a request today and another 90 days ago refer to the same merchant, they - * must have the same id. - * - * Generated from protobuf field optional string merchant_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $merchant_id = null; - /** - * Optional. Human-readable display name for the merchant. - * - * Generated from protobuf field optional string merchant_display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $merchant_display_name = null; - /** - * Optional. URL to the merchant's main website. Do not use a redirect URL for - * this value. In other words, the value should point directly to the - * merchant's site. - * - * Generated from protobuf field optional string merchant_link = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $merchant_link = null; - /** - * Optional. URL to the landing page that hosts the reviews for this merchant. - * Do not use a redirect URL. - * - * Generated from protobuf field optional string merchant_rating_link = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $merchant_rating_link = null; - /** - * Optional. The minimum possible number for the rating. This should be the - * worst possible rating and should not be a value for no rating. - * - * Generated from protobuf field optional int64 min_rating = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $min_rating = null; - /** - * Optional. The maximum possible number for the rating. The value of the max - * rating must be greater than the value of the min rating. - * - * Generated from protobuf field optional int64 max_rating = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $max_rating = null; - /** - * Optional. The reviewer's overall rating of the merchant. - * - * Generated from protobuf field optional double rating = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $rating = null; - /** - * Optional. The title of the review. - * - * Generated from protobuf field optional string title = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $title = null; - /** - * Required. This should be any freeform text provided by the user and should - * not be truncated. If multiple responses to different questions are - * provided, all responses should be included, with the minimal context for - * the responses to make sense. Context should not be provided if questions - * were left unanswered. - * - * Generated from protobuf field optional string content = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $content = null; - /** - * Optional. A permanent, unique identifier for the author of the review in - * the publisher's system. - * - * Generated from protobuf field optional string reviewer_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $reviewer_id = null; - /** - * Optional. Display name of the review author. - * - * Generated from protobuf field optional string reviewer_username = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $reviewer_username = null; - /** - * Optional. Set to true if the reviewer should remain anonymous. - * - * Generated from protobuf field optional bool is_anonymous = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $is_anonymous = null; - /** - * Optional. The method used to collect the review. - * - * Generated from protobuf field optional .google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes.CollectionMethod collection_method = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $collection_method = null; - /** - * Required. The timestamp indicating when the review was written. - * - * Generated from protobuf field optional .google.protobuf.Timestamp review_time = 14 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $review_time = null; - /** - * Required. The language of the review defined by BCP-47 language code. - * - * Generated from protobuf field optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $review_language = null; - /** - * Optional. The country where the reviewer made the order defined by ISO - * 3166-1 Alpha-2 Country Code. - * - * Generated from protobuf field optional string review_country = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $review_country = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $merchant_id - * Required. Must be unique and stable across all requests. In other words, if - * a request today and another 90 days ago refer to the same merchant, they - * must have the same id. - * @type string $merchant_display_name - * Optional. Human-readable display name for the merchant. - * @type string $merchant_link - * Optional. URL to the merchant's main website. Do not use a redirect URL for - * this value. In other words, the value should point directly to the - * merchant's site. - * @type string $merchant_rating_link - * Optional. URL to the landing page that hosts the reviews for this merchant. - * Do not use a redirect URL. - * @type int|string $min_rating - * Optional. The minimum possible number for the rating. This should be the - * worst possible rating and should not be a value for no rating. - * @type int|string $max_rating - * Optional. The maximum possible number for the rating. The value of the max - * rating must be greater than the value of the min rating. - * @type float $rating - * Optional. The reviewer's overall rating of the merchant. - * @type string $title - * Optional. The title of the review. - * @type string $content - * Required. This should be any freeform text provided by the user and should - * not be truncated. If multiple responses to different questions are - * provided, all responses should be included, with the minimal context for - * the responses to make sense. Context should not be provided if questions - * were left unanswered. - * @type string $reviewer_id - * Optional. A permanent, unique identifier for the author of the review in - * the publisher's system. - * @type string $reviewer_username - * Optional. Display name of the review author. - * @type bool $is_anonymous - * Optional. Set to true if the reviewer should remain anonymous. - * @type int $collection_method - * Optional. The method used to collect the review. - * @type \Google\Protobuf\Timestamp $review_time - * Required. The timestamp indicating when the review was written. - * @type string $review_language - * Required. The language of the review defined by BCP-47 language code. - * @type string $review_country - * Optional. The country where the reviewer made the order defined by ISO - * 3166-1 Alpha-2 Country Code. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\MerchantreviewsCommon::initOnce(); - parent::__construct($data); - } - - /** - * Required. Must be unique and stable across all requests. In other words, if - * a request today and another 90 days ago refer to the same merchant, they - * must have the same id. - * - * Generated from protobuf field optional string merchant_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMerchantId() - { - return isset($this->merchant_id) ? $this->merchant_id : ''; - } - - public function hasMerchantId() - { - return isset($this->merchant_id); - } - - public function clearMerchantId() - { - unset($this->merchant_id); - } - - /** - * Required. Must be unique and stable across all requests. In other words, if - * a request today and another 90 days ago refer to the same merchant, they - * must have the same id. - * - * Generated from protobuf field optional string merchant_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMerchantId($var) - { - GPBUtil::checkString($var, True); - $this->merchant_id = $var; - - return $this; - } - - /** - * Optional. Human-readable display name for the merchant. - * - * Generated from protobuf field optional string merchant_display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMerchantDisplayName() - { - return isset($this->merchant_display_name) ? $this->merchant_display_name : ''; - } - - public function hasMerchantDisplayName() - { - return isset($this->merchant_display_name); - } - - public function clearMerchantDisplayName() - { - unset($this->merchant_display_name); - } - - /** - * Optional. Human-readable display name for the merchant. - * - * Generated from protobuf field optional string merchant_display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMerchantDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->merchant_display_name = $var; - - return $this; - } - - /** - * Optional. URL to the merchant's main website. Do not use a redirect URL for - * this value. In other words, the value should point directly to the - * merchant's site. - * - * Generated from protobuf field optional string merchant_link = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMerchantLink() - { - return isset($this->merchant_link) ? $this->merchant_link : ''; - } - - public function hasMerchantLink() - { - return isset($this->merchant_link); - } - - public function clearMerchantLink() - { - unset($this->merchant_link); - } - - /** - * Optional. URL to the merchant's main website. Do not use a redirect URL for - * this value. In other words, the value should point directly to the - * merchant's site. - * - * Generated from protobuf field optional string merchant_link = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMerchantLink($var) - { - GPBUtil::checkString($var, True); - $this->merchant_link = $var; - - return $this; - } - - /** - * Optional. URL to the landing page that hosts the reviews for this merchant. - * Do not use a redirect URL. - * - * Generated from protobuf field optional string merchant_rating_link = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMerchantRatingLink() - { - return isset($this->merchant_rating_link) ? $this->merchant_rating_link : ''; - } - - public function hasMerchantRatingLink() - { - return isset($this->merchant_rating_link); - } - - public function clearMerchantRatingLink() - { - unset($this->merchant_rating_link); - } - - /** - * Optional. URL to the landing page that hosts the reviews for this merchant. - * Do not use a redirect URL. - * - * Generated from protobuf field optional string merchant_rating_link = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMerchantRatingLink($var) - { - GPBUtil::checkString($var, True); - $this->merchant_rating_link = $var; - - return $this; - } - - /** - * Optional. The minimum possible number for the rating. This should be the - * worst possible rating and should not be a value for no rating. - * - * Generated from protobuf field optional int64 min_rating = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getMinRating() - { - return isset($this->min_rating) ? $this->min_rating : 0; - } - - public function hasMinRating() - { - return isset($this->min_rating); - } - - public function clearMinRating() - { - unset($this->min_rating); - } - - /** - * Optional. The minimum possible number for the rating. This should be the - * worst possible rating and should not be a value for no rating. - * - * Generated from protobuf field optional int64 min_rating = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setMinRating($var) - { - GPBUtil::checkInt64($var); - $this->min_rating = $var; - - return $this; - } - - /** - * Optional. The maximum possible number for the rating. The value of the max - * rating must be greater than the value of the min rating. - * - * Generated from protobuf field optional int64 max_rating = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getMaxRating() - { - return isset($this->max_rating) ? $this->max_rating : 0; - } - - public function hasMaxRating() - { - return isset($this->max_rating); - } - - public function clearMaxRating() - { - unset($this->max_rating); - } - - /** - * Optional. The maximum possible number for the rating. The value of the max - * rating must be greater than the value of the min rating. - * - * Generated from protobuf field optional int64 max_rating = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setMaxRating($var) - { - GPBUtil::checkInt64($var); - $this->max_rating = $var; - - return $this; - } - - /** - * Optional. The reviewer's overall rating of the merchant. - * - * Generated from protobuf field optional double rating = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getRating() - { - return isset($this->rating) ? $this->rating : 0.0; - } - - public function hasRating() - { - return isset($this->rating); - } - - public function clearRating() - { - unset($this->rating); - } - - /** - * Optional. The reviewer's overall rating of the merchant. - * - * Generated from protobuf field optional double rating = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setRating($var) - { - GPBUtil::checkDouble($var); - $this->rating = $var; - - return $this; - } - - /** - * Optional. The title of the review. - * - * Generated from protobuf field optional string title = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTitle() - { - return isset($this->title) ? $this->title : ''; - } - - public function hasTitle() - { - return isset($this->title); - } - - public function clearTitle() - { - unset($this->title); - } - - /** - * Optional. The title of the review. - * - * Generated from protobuf field optional string title = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * Required. This should be any freeform text provided by the user and should - * not be truncated. If multiple responses to different questions are - * provided, all responses should be included, with the minimal context for - * the responses to make sense. Context should not be provided if questions - * were left unanswered. - * - * Generated from protobuf field optional string content = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getContent() - { - return isset($this->content) ? $this->content : ''; - } - - public function hasContent() - { - return isset($this->content); - } - - public function clearContent() - { - unset($this->content); - } - - /** - * Required. This should be any freeform text provided by the user and should - * not be truncated. If multiple responses to different questions are - * provided, all responses should be included, with the minimal context for - * the responses to make sense. Context should not be provided if questions - * were left unanswered. - * - * Generated from protobuf field optional string content = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, True); - $this->content = $var; - - return $this; - } - - /** - * Optional. A permanent, unique identifier for the author of the review in - * the publisher's system. - * - * Generated from protobuf field optional string reviewer_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getReviewerId() - { - return isset($this->reviewer_id) ? $this->reviewer_id : ''; - } - - public function hasReviewerId() - { - return isset($this->reviewer_id); - } - - public function clearReviewerId() - { - unset($this->reviewer_id); - } - - /** - * Optional. A permanent, unique identifier for the author of the review in - * the publisher's system. - * - * Generated from protobuf field optional string reviewer_id = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setReviewerId($var) - { - GPBUtil::checkString($var, True); - $this->reviewer_id = $var; - - return $this; - } - - /** - * Optional. Display name of the review author. - * - * Generated from protobuf field optional string reviewer_username = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getReviewerUsername() - { - return isset($this->reviewer_username) ? $this->reviewer_username : ''; - } - - public function hasReviewerUsername() - { - return isset($this->reviewer_username); - } - - public function clearReviewerUsername() - { - unset($this->reviewer_username); - } - - /** - * Optional. Display name of the review author. - * - * Generated from protobuf field optional string reviewer_username = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setReviewerUsername($var) - { - GPBUtil::checkString($var, True); - $this->reviewer_username = $var; - - return $this; - } - - /** - * Optional. Set to true if the reviewer should remain anonymous. - * - * Generated from protobuf field optional bool is_anonymous = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIsAnonymous() - { - return isset($this->is_anonymous) ? $this->is_anonymous : false; - } - - public function hasIsAnonymous() - { - return isset($this->is_anonymous); - } - - public function clearIsAnonymous() - { - unset($this->is_anonymous); - } - - /** - * Optional. Set to true if the reviewer should remain anonymous. - * - * Generated from protobuf field optional bool is_anonymous = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIsAnonymous($var) - { - GPBUtil::checkBool($var); - $this->is_anonymous = $var; - - return $this; - } - - /** - * Optional. The method used to collect the review. - * - * Generated from protobuf field optional .google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes.CollectionMethod collection_method = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getCollectionMethod() - { - return isset($this->collection_method) ? $this->collection_method : 0; - } - - public function hasCollectionMethod() - { - return isset($this->collection_method); - } - - public function clearCollectionMethod() - { - unset($this->collection_method); - } - - /** - * Optional. The method used to collect the review. - * - * Generated from protobuf field optional .google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes.CollectionMethod collection_method = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setCollectionMethod($var) - { - GPBUtil::checkEnum($var, \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewAttributes\CollectionMethod::class); - $this->collection_method = $var; - - return $this; - } - - /** - * Required. The timestamp indicating when the review was written. - * - * Generated from protobuf field optional .google.protobuf.Timestamp review_time = 14 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReviewTime() - { - return $this->review_time; - } - - public function hasReviewTime() - { - return isset($this->review_time); - } - - public function clearReviewTime() - { - unset($this->review_time); - } - - /** - * Required. The timestamp indicating when the review was written. - * - * Generated from protobuf field optional .google.protobuf.Timestamp review_time = 14 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReviewTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->review_time = $var; - - return $this; - } - - /** - * Required. The language of the review defined by BCP-47 language code. - * - * Generated from protobuf field optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getReviewLanguage() - { - return isset($this->review_language) ? $this->review_language : ''; - } - - public function hasReviewLanguage() - { - return isset($this->review_language); - } - - public function clearReviewLanguage() - { - unset($this->review_language); - } - - /** - * Required. The language of the review defined by BCP-47 language code. - * - * Generated from protobuf field optional string review_language = 15 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setReviewLanguage($var) - { - GPBUtil::checkString($var, True); - $this->review_language = $var; - - return $this; - } - - /** - * Optional. The country where the reviewer made the order defined by ISO - * 3166-1 Alpha-2 Country Code. - * - * Generated from protobuf field optional string review_country = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getReviewCountry() - { - return isset($this->review_country) ? $this->review_country : ''; - } - - public function hasReviewCountry() - { - return isset($this->review_country); - } - - public function clearReviewCountry() - { - unset($this->review_country); - } - - /** - * Optional. The country where the reviewer made the order defined by ISO - * 3166-1 Alpha-2 Country Code. - * - * Generated from protobuf field optional string review_country = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setReviewCountry($var) - { - GPBUtil::checkString($var, True); - $this->review_country = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewAttributes/CollectionMethod.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewAttributes/CollectionMethod.php deleted file mode 100644 index 2a29fe67f2e..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewAttributes/CollectionMethod.php +++ /dev/null @@ -1,74 +0,0 @@ -google.shopping.merchant.reviews.v1beta.MerchantReviewAttributes.CollectionMethod - */ -class CollectionMethod -{ - /** - * Collection method unspecified. - * - * Generated from protobuf enum COLLECTION_METHOD_UNSPECIFIED = 0; - */ - const COLLECTION_METHOD_UNSPECIFIED = 0; - /** - * The user was not responding to a specific solicitation when they - * submitted the review. - * - * Generated from protobuf enum MERCHANT_UNSOLICITED = 1; - */ - const MERCHANT_UNSOLICITED = 1; - /** - * The user submitted the review in response to a solicitation when the - * user placed an order. - * - * Generated from protobuf enum POINT_OF_SALE = 2; - */ - const POINT_OF_SALE = 2; - /** - * The user submitted the review in response to a solicitation after - * fulfillment of the user's order. - * - * Generated from protobuf enum AFTER_FULFILLMENT = 3; - */ - const AFTER_FULFILLMENT = 3; - - private static $valueToName = [ - self::COLLECTION_METHOD_UNSPECIFIED => 'COLLECTION_METHOD_UNSPECIFIED', - self::MERCHANT_UNSOLICITED => 'MERCHANT_UNSOLICITED', - self::POINT_OF_SALE => 'POINT_OF_SALE', - self::AFTER_FULFILLMENT => 'AFTER_FULFILLMENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CollectionMethod::class, \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewAttributes_CollectionMethod::class); - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus.php deleted file mode 100644 index 5656c463e39..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus.php +++ /dev/null @@ -1,198 +0,0 @@ -google.shopping.merchant.reviews.v1beta.MerchantReviewStatus - */ -class MerchantReviewStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The intended destinations for the merchant review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.MerchantReviewStatus.MerchantReviewDestinationStatus destination_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $destination_statuses; - /** - * Output only. A list of all issues associated with the merchant review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.MerchantReviewStatus.MerchantReviewItemLevelIssue item_level_issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $item_level_issues; - /** - * Output only. Date on which the item has been created, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Date on which the item has been last updated, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewStatus\MerchantReviewDestinationStatus>|\Google\Protobuf\Internal\RepeatedField $destination_statuses - * Output only. The intended destinations for the merchant review. - * @type array<\Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewStatus\MerchantReviewItemLevelIssue>|\Google\Protobuf\Internal\RepeatedField $item_level_issues - * Output only. A list of all issues associated with the merchant review. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Date on which the item has been created, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * @type \Google\Protobuf\Timestamp $last_update_time - * Output only. Date on which the item has been last updated, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\MerchantreviewsCommon::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The intended destinations for the merchant review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.MerchantReviewStatus.MerchantReviewDestinationStatus destination_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDestinationStatuses() - { - return $this->destination_statuses; - } - - /** - * Output only. The intended destinations for the merchant review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.MerchantReviewStatus.MerchantReviewDestinationStatus destination_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewStatus\MerchantReviewDestinationStatus>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDestinationStatuses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewStatus\MerchantReviewDestinationStatus::class); - $this->destination_statuses = $arr; - - return $this; - } - - /** - * Output only. A list of all issues associated with the merchant review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.MerchantReviewStatus.MerchantReviewItemLevelIssue item_level_issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getItemLevelIssues() - { - return $this->item_level_issues; - } - - /** - * Output only. A list of all issues associated with the merchant review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.MerchantReviewStatus.MerchantReviewItemLevelIssue item_level_issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewStatus\MerchantReviewItemLevelIssue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setItemLevelIssues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewStatus\MerchantReviewItemLevelIssue::class); - $this->item_level_issues = $arr; - - return $this; - } - - /** - * Output only. Date on which the item has been created, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Date on which the item has been created, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Date on which the item has been last updated, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastUpdateTime() - { - return $this->last_update_time; - } - - public function hasLastUpdateTime() - { - return isset($this->last_update_time); - } - - public function clearLastUpdateTime() - { - unset($this->last_update_time); - } - - /** - * Output only. Date on which the item has been last updated, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus/MerchantReviewDestinationStatus.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus/MerchantReviewDestinationStatus.php deleted file mode 100644 index 3dfc4b12b61..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus/MerchantReviewDestinationStatus.php +++ /dev/null @@ -1,70 +0,0 @@ -google.shopping.merchant.reviews.v1beta.MerchantReviewStatus.MerchantReviewDestinationStatus - */ -class MerchantReviewDestinationStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the reporting context. - * - * Generated from protobuf field .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reporting_context = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $reporting_context - * Output only. The name of the reporting context. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\MerchantreviewsCommon::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the reporting context. - * - * Generated from protobuf field .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getReportingContext() - { - return $this->reporting_context; - } - - /** - * Output only. The name of the reporting context. - * - * Generated from protobuf field .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setReportingContext($var) - { - GPBUtil::checkEnum($var, \Google\Shopping\Type\ReportingContext\ReportingContextEnum::class); - $this->reporting_context = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MerchantReviewDestinationStatus::class, \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewStatus_MerchantReviewDestinationStatus::class); - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus/MerchantReviewItemLevelIssue.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus/MerchantReviewItemLevelIssue.php deleted file mode 100644 index fdada9810ac..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus/MerchantReviewItemLevelIssue.php +++ /dev/null @@ -1,312 +0,0 @@ -google.shopping.merchant.reviews.v1beta.MerchantReviewStatus.MerchantReviewItemLevelIssue - */ -class MerchantReviewItemLevelIssue extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The error code of the issue. - * - * Generated from protobuf field string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $code = ''; - /** - * Output only. How this issue affects serving of the merchant review. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.MerchantReviewStatus.MerchantReviewItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $severity = 0; - /** - * Output only. Whether the issue can be resolved by the merchant. - * - * Generated from protobuf field string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $resolution = ''; - /** - * Output only. The attribute's name, if the issue is caused by a single - * attribute. - * - * Generated from protobuf field string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $attribute = ''; - /** - * Output only. The reporting context the issue applies to. - * - * Generated from protobuf field .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reporting_context = 0; - /** - * Output only. A short issue description in English. - * - * Generated from protobuf field string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - /** - * Output only. A detailed issue description in English. - * - * Generated from protobuf field string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $detail = ''; - /** - * Output only. The URL of a web page to help with resolving this issue. - * - * Generated from protobuf field string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $documentation = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $code - * Output only. The error code of the issue. - * @type int $severity - * Output only. How this issue affects serving of the merchant review. - * @type string $resolution - * Output only. Whether the issue can be resolved by the merchant. - * @type string $attribute - * Output only. The attribute's name, if the issue is caused by a single - * attribute. - * @type int $reporting_context - * Output only. The reporting context the issue applies to. - * @type string $description - * Output only. A short issue description in English. - * @type string $detail - * Output only. A detailed issue description in English. - * @type string $documentation - * Output only. The URL of a web page to help with resolving this issue. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\MerchantreviewsCommon::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The error code of the issue. - * - * Generated from protobuf field string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCode() - { - return $this->code; - } - - /** - * Output only. The error code of the issue. - * - * Generated from protobuf field string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkString($var, True); - $this->code = $var; - - return $this; - } - - /** - * Output only. How this issue affects serving of the merchant review. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.MerchantReviewStatus.MerchantReviewItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * Output only. How this issue affects serving of the merchant review. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.MerchantReviewStatus.MerchantReviewItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewStatus\MerchantReviewItemLevelIssue\Severity::class); - $this->severity = $var; - - return $this; - } - - /** - * Output only. Whether the issue can be resolved by the merchant. - * - * Generated from protobuf field string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getResolution() - { - return $this->resolution; - } - - /** - * Output only. Whether the issue can be resolved by the merchant. - * - * Generated from protobuf field string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setResolution($var) - { - GPBUtil::checkString($var, True); - $this->resolution = $var; - - return $this; - } - - /** - * Output only. The attribute's name, if the issue is caused by a single - * attribute. - * - * Generated from protobuf field string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAttribute() - { - return $this->attribute; - } - - /** - * Output only. The attribute's name, if the issue is caused by a single - * attribute. - * - * Generated from protobuf field string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAttribute($var) - { - GPBUtil::checkString($var, True); - $this->attribute = $var; - - return $this; - } - - /** - * Output only. The reporting context the issue applies to. - * - * Generated from protobuf field .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getReportingContext() - { - return $this->reporting_context; - } - - /** - * Output only. The reporting context the issue applies to. - * - * Generated from protobuf field .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setReportingContext($var) - { - GPBUtil::checkEnum($var, \Google\Shopping\Type\ReportingContext\ReportingContextEnum::class); - $this->reporting_context = $var; - - return $this; - } - - /** - * Output only. A short issue description in English. - * - * Generated from protobuf field string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. A short issue description in English. - * - * Generated from protobuf field string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. A detailed issue description in English. - * - * Generated from protobuf field string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDetail() - { - return $this->detail; - } - - /** - * Output only. A detailed issue description in English. - * - * Generated from protobuf field string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDetail($var) - { - GPBUtil::checkString($var, True); - $this->detail = $var; - - return $this; - } - - /** - * Output only. The URL of a web page to help with resolving this issue. - * - * Generated from protobuf field string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDocumentation() - { - return $this->documentation; - } - - /** - * Output only. The URL of a web page to help with resolving this issue. - * - * Generated from protobuf field string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDocumentation($var) - { - GPBUtil::checkString($var, True); - $this->documentation = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MerchantReviewItemLevelIssue::class, \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewStatus_MerchantReviewItemLevelIssue::class); - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus/MerchantReviewItemLevelIssue/Severity.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus/MerchantReviewItemLevelIssue/Severity.php deleted file mode 100644 index 7f39ef0591f..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/MerchantReviewStatus/MerchantReviewItemLevelIssue/Severity.php +++ /dev/null @@ -1,65 +0,0 @@ -google.shopping.merchant.reviews.v1beta.MerchantReviewStatus.MerchantReviewItemLevelIssue.Severity - */ -class Severity -{ - /** - * Not specified. - * - * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0; - */ - const SEVERITY_UNSPECIFIED = 0; - /** - * This issue represents a warning and does not have a direct affect - * on the merchant review. - * - * Generated from protobuf enum NOT_IMPACTED = 1; - */ - const NOT_IMPACTED = 1; - /** - * Issue disapproves the merchant review. - * - * Generated from protobuf enum DISAPPROVED = 2; - */ - const DISAPPROVED = 2; - - private static $valueToName = [ - self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED', - self::NOT_IMPACTED => 'NOT_IMPACTED', - self::DISAPPROVED => 'DISAPPROVED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Severity::class, \Google\Shopping\Merchant\Reviews\V1beta\MerchantReviewStatus_MerchantReviewItemLevelIssue_Severity::class); - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReview.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReview.php deleted file mode 100644 index e4e0a4f07f0..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReview.php +++ /dev/null @@ -1,275 +0,0 @@ -google.shopping.merchant.reviews.v1beta.ProductReview - */ -class ProductReview extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The name of the product review. - * Format: - * `"{productreview.name=accounts/{account}/productReviews/{productReview}}"` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. The permanent, unique identifier for the product review in the - * publisher’s system. - * - * Generated from protobuf field string product_review_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $product_review_id = ''; - /** - * Optional. A list of product review attributes. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $attributes = null; - /** - * Optional. A list of custom (merchant-provided) attributes. - * - * Generated from protobuf field repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $custom_attributes; - /** - * Output only. The primary data source of the product review. - * - * Generated from protobuf field string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_source = ''; - /** - * Output only. The status of a product review, data validation issues, that - * is, information about a product review computed asynchronously. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewStatus product_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $product_review_status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The name of the product review. - * Format: - * `"{productreview.name=accounts/{account}/productReviews/{productReview}}"` - * @type string $product_review_id - * Required. The permanent, unique identifier for the product review in the - * publisher’s system. - * @type \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewAttributes $attributes - * Optional. A list of product review attributes. - * @type array<\Google\Shopping\Type\CustomAttribute>|\Google\Protobuf\Internal\RepeatedField $custom_attributes - * Optional. A list of custom (merchant-provided) attributes. - * @type string $data_source - * Output only. The primary data source of the product review. - * @type \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewStatus $product_review_status - * Output only. The status of a product review, data validation issues, that - * is, information about a product review computed asynchronously. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\Productreviews::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The name of the product review. - * Format: - * `"{productreview.name=accounts/{account}/productReviews/{productReview}}"` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The name of the product review. - * Format: - * `"{productreview.name=accounts/{account}/productReviews/{productReview}}"` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. The permanent, unique identifier for the product review in the - * publisher’s system. - * - * Generated from protobuf field string product_review_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProductReviewId() - { - return $this->product_review_id; - } - - /** - * Required. The permanent, unique identifier for the product review in the - * publisher’s system. - * - * Generated from protobuf field string product_review_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProductReviewId($var) - { - GPBUtil::checkString($var, True); - $this->product_review_id = $var; - - return $this; - } - - /** - * Optional. A list of product review attributes. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewAttributes|null - */ - public function getAttributes() - { - return $this->attributes; - } - - public function hasAttributes() - { - return isset($this->attributes); - } - - public function clearAttributes() - { - unset($this->attributes); - } - - /** - * Optional. A list of product review attributes. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewAttributes attributes = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewAttributes $var - * @return $this - */ - public function setAttributes($var) - { - GPBUtil::checkMessage($var, \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewAttributes::class); - $this->attributes = $var; - - return $this; - } - - /** - * Optional. A list of custom (merchant-provided) attributes. - * - * Generated from protobuf field repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomAttributes() - { - return $this->custom_attributes; - } - - /** - * Optional. A list of custom (merchant-provided) attributes. - * - * Generated from protobuf field repeated .google.shopping.type.CustomAttribute custom_attributes = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Shopping\Type\CustomAttribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Shopping\Type\CustomAttribute::class); - $this->custom_attributes = $arr; - - return $this; - } - - /** - * Output only. The primary data source of the product review. - * - * Generated from protobuf field string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDataSource() - { - return $this->data_source; - } - - /** - * Output only. The primary data source of the product review. - * - * Generated from protobuf field string data_source = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDataSource($var) - { - GPBUtil::checkString($var, True); - $this->data_source = $var; - - return $this; - } - - /** - * Output only. The status of a product review, data validation issues, that - * is, information about a product review computed asynchronously. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewStatus product_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewStatus|null - */ - public function getProductReviewStatus() - { - return $this->product_review_status; - } - - public function hasProductReviewStatus() - { - return isset($this->product_review_status); - } - - public function clearProductReviewStatus() - { - unset($this->product_review_status); - } - - /** - * Output only. The status of a product review, data validation issues, that - * is, information about a product review computed asynchronously. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewStatus product_review_status = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewStatus $var - * @return $this - */ - public function setProductReviewStatus($var) - { - GPBUtil::checkMessage($var, \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewStatus::class); - $this->product_review_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes.php deleted file mode 100644 index 3d54149fc49..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes.php +++ /dev/null @@ -1,1305 +0,0 @@ -google.shopping.merchant.reviews.v1beta.ProductReviewAttributes - */ -class ProductReviewAttributes extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The name of the aggregator of the product reviews. - * A publisher may use a reviews aggregator to manage reviews and provide - * the feeds. This element indicates the use of an aggregator and contains - * information about the aggregator. - * - * Generated from protobuf field optional string aggregator_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $aggregator_name = null; - /** - * Optional. The name of the subclient of the product reviews. - * The subclient is an identifier of the product review source. - * It should be equivalent to the directory provided in the file data source - * path. - * - * Generated from protobuf field optional string subclient_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $subclient_name = null; - /** - * Optional. The name of the publisher of the product reviews. - * The information about the publisher, which may be a retailer, - * manufacturer, reviews service company, or any entity that publishes - * product reviews. - * - * Generated from protobuf field optional string publisher_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $publisher_name = null; - /** - * Optional. A link to the company favicon of the publisher. The image - * dimensions should be favicon size: 16x16 pixels. The image format should be - * GIF, JPG or PNG. - * - * Generated from protobuf field optional string publisher_favicon = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $publisher_favicon = null; - /** - * Optional. The author of the product review. - * A permanent, unique identifier for the author of the review in the - * publisher's system. - * - * Generated from protobuf field optional string reviewer_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $reviewer_id = null; - /** - * Optional. Set to true if the reviewer should remain anonymous. - * - * Generated from protobuf field optional bool reviewer_is_anonymous = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $reviewer_is_anonymous = null; - /** - * Optional. The name of the reviewer of the product review. - * - * Generated from protobuf field optional string reviewer_username = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $reviewer_username = null; - /** - * Optional. The language of the review defined by BCP-47 language code. - * - * Generated from protobuf field optional string review_language = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $review_language = null; - /** - * Optional. The country of the review defined by ISO 3166-1 Alpha-2 Country - * Code. - * - * Generated from protobuf field optional string review_country = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $review_country = null; - /** - * Required. The timestamp indicating when the review was written. - * - * Generated from protobuf field .google.protobuf.Timestamp review_time = 10 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $review_time = null; - /** - * Optional. The title of the review. - * - * Generated from protobuf field optional string title = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $title = null; - /** - * Required. The content of the review. - * - * Generated from protobuf field optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $content = null; - /** - * Optional. Contains the advantages based on the opinion of the reviewer. - * Omit boilerplate text like "pro:" unless it was written by the reviewer. - * - * Generated from protobuf field repeated string pros = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $pros; - /** - * Optional. Contains the disadvantages based on the opinion of the reviewer. - * Omit boilerplate text like "con:" unless it was written by the reviewer. - * - * Generated from protobuf field repeated string cons = 14 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $cons; - /** - * Optional. The URI of the review landing page. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink review_link = 15 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $review_link = null; - /** - * Optional. A URI to an image of the reviewed product created by the review - * author. The URI does not have to end with an image file extension. - * - * Generated from protobuf field repeated string reviewer_image_links = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $reviewer_image_links; - /** - * Optional. Contains the ratings associated with the review. - * The minimum possible number for the rating. This should be the worst - * possible rating and should not be a value for no rating. - * - * Generated from protobuf field optional int64 min_rating = 17 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $min_rating = null; - /** - * Optional. The maximum possible number for the rating. The value of the max - * rating must be greater than the value of the min attribute. - * - * Generated from protobuf field optional int64 max_rating = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $max_rating = null; - /** - * Optional. The reviewer's overall rating of the product. - * - * Generated from protobuf field optional double rating = 19 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $rating = null; - /** - * Optional. Descriptive name of a product. - * - * Generated from protobuf field repeated string product_names = 20 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $product_names; - /** - * Optional. The URI of the product. This URI can have the same value as the - * `review_link` element, if the review URI and the product URI are the - * same. - * - * Generated from protobuf field repeated string product_links = 21 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $product_links; - /** - * Optional. Contains ASINs (Amazon Standard Identification Numbers) - * associated with a product. - * - * Generated from protobuf field repeated string asins = 22 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $asins; - /** - * Optional. Contains GTINs (global trade item numbers) associated with a - * product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported. - * - * Generated from protobuf field repeated string gtins = 23 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $gtins; - /** - * Optional. Contains MPNs (manufacturer part numbers) associated with a - * product. - * - * Generated from protobuf field repeated string mpns = 24 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $mpns; - /** - * Optional. Contains SKUs (stock keeping units) associated with a product. - * Often this matches the product Offer Id in the product feed. - * - * Generated from protobuf field repeated string skus = 25 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $skus; - /** - * Optional. Contains brand names associated with a product. - * - * Generated from protobuf field repeated string brands = 26 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $brands; - /** - * Optional. Indicates whether the review is marked as spam in the publisher's - * system. - * - * Generated from protobuf field optional bool is_spam = 27 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $is_spam = null; - /** - * Optional. The method used to collect the review. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.CollectionMethod collection_method = 28 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $collection_method = 0; - /** - * Optional. A permanent, unique identifier for the transaction associated - * with the review in the publisher's system. This ID can be used to indicate - * that multiple reviews are associated with the same transaction. - * - * Generated from protobuf field string transaction_id = 29 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $transaction_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $aggregator_name - * Optional. The name of the aggregator of the product reviews. - * A publisher may use a reviews aggregator to manage reviews and provide - * the feeds. This element indicates the use of an aggregator and contains - * information about the aggregator. - * @type string $subclient_name - * Optional. The name of the subclient of the product reviews. - * The subclient is an identifier of the product review source. - * It should be equivalent to the directory provided in the file data source - * path. - * @type string $publisher_name - * Optional. The name of the publisher of the product reviews. - * The information about the publisher, which may be a retailer, - * manufacturer, reviews service company, or any entity that publishes - * product reviews. - * @type string $publisher_favicon - * Optional. A link to the company favicon of the publisher. The image - * dimensions should be favicon size: 16x16 pixels. The image format should be - * GIF, JPG or PNG. - * @type string $reviewer_id - * Optional. The author of the product review. - * A permanent, unique identifier for the author of the review in the - * publisher's system. - * @type bool $reviewer_is_anonymous - * Optional. Set to true if the reviewer should remain anonymous. - * @type string $reviewer_username - * Optional. The name of the reviewer of the product review. - * @type string $review_language - * Optional. The language of the review defined by BCP-47 language code. - * @type string $review_country - * Optional. The country of the review defined by ISO 3166-1 Alpha-2 Country - * Code. - * @type \Google\Protobuf\Timestamp $review_time - * Required. The timestamp indicating when the review was written. - * @type string $title - * Optional. The title of the review. - * @type string $content - * Required. The content of the review. - * @type array|\Google\Protobuf\Internal\RepeatedField $pros - * Optional. Contains the advantages based on the opinion of the reviewer. - * Omit boilerplate text like "pro:" unless it was written by the reviewer. - * @type array|\Google\Protobuf\Internal\RepeatedField $cons - * Optional. Contains the disadvantages based on the opinion of the reviewer. - * Omit boilerplate text like "con:" unless it was written by the reviewer. - * @type \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewAttributes\ReviewLink $review_link - * Optional. The URI of the review landing page. - * @type array|\Google\Protobuf\Internal\RepeatedField $reviewer_image_links - * Optional. A URI to an image of the reviewed product created by the review - * author. The URI does not have to end with an image file extension. - * @type int|string $min_rating - * Optional. Contains the ratings associated with the review. - * The minimum possible number for the rating. This should be the worst - * possible rating and should not be a value for no rating. - * @type int|string $max_rating - * Optional. The maximum possible number for the rating. The value of the max - * rating must be greater than the value of the min attribute. - * @type float $rating - * Optional. The reviewer's overall rating of the product. - * @type array|\Google\Protobuf\Internal\RepeatedField $product_names - * Optional. Descriptive name of a product. - * @type array|\Google\Protobuf\Internal\RepeatedField $product_links - * Optional. The URI of the product. This URI can have the same value as the - * `review_link` element, if the review URI and the product URI are the - * same. - * @type array|\Google\Protobuf\Internal\RepeatedField $asins - * Optional. Contains ASINs (Amazon Standard Identification Numbers) - * associated with a product. - * @type array|\Google\Protobuf\Internal\RepeatedField $gtins - * Optional. Contains GTINs (global trade item numbers) associated with a - * product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported. - * @type array|\Google\Protobuf\Internal\RepeatedField $mpns - * Optional. Contains MPNs (manufacturer part numbers) associated with a - * product. - * @type array|\Google\Protobuf\Internal\RepeatedField $skus - * Optional. Contains SKUs (stock keeping units) associated with a product. - * Often this matches the product Offer Id in the product feed. - * @type array|\Google\Protobuf\Internal\RepeatedField $brands - * Optional. Contains brand names associated with a product. - * @type bool $is_spam - * Optional. Indicates whether the review is marked as spam in the publisher's - * system. - * @type int $collection_method - * Optional. The method used to collect the review. - * @type string $transaction_id - * Optional. A permanent, unique identifier for the transaction associated - * with the review in the publisher's system. This ID can be used to indicate - * that multiple reviews are associated with the same transaction. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\ProductreviewsCommon::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The name of the aggregator of the product reviews. - * A publisher may use a reviews aggregator to manage reviews and provide - * the feeds. This element indicates the use of an aggregator and contains - * information about the aggregator. - * - * Generated from protobuf field optional string aggregator_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAggregatorName() - { - return isset($this->aggregator_name) ? $this->aggregator_name : ''; - } - - public function hasAggregatorName() - { - return isset($this->aggregator_name); - } - - public function clearAggregatorName() - { - unset($this->aggregator_name); - } - - /** - * Optional. The name of the aggregator of the product reviews. - * A publisher may use a reviews aggregator to manage reviews and provide - * the feeds. This element indicates the use of an aggregator and contains - * information about the aggregator. - * - * Generated from protobuf field optional string aggregator_name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAggregatorName($var) - { - GPBUtil::checkString($var, True); - $this->aggregator_name = $var; - - return $this; - } - - /** - * Optional. The name of the subclient of the product reviews. - * The subclient is an identifier of the product review source. - * It should be equivalent to the directory provided in the file data source - * path. - * - * Generated from protobuf field optional string subclient_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSubclientName() - { - return isset($this->subclient_name) ? $this->subclient_name : ''; - } - - public function hasSubclientName() - { - return isset($this->subclient_name); - } - - public function clearSubclientName() - { - unset($this->subclient_name); - } - - /** - * Optional. The name of the subclient of the product reviews. - * The subclient is an identifier of the product review source. - * It should be equivalent to the directory provided in the file data source - * path. - * - * Generated from protobuf field optional string subclient_name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSubclientName($var) - { - GPBUtil::checkString($var, True); - $this->subclient_name = $var; - - return $this; - } - - /** - * Optional. The name of the publisher of the product reviews. - * The information about the publisher, which may be a retailer, - * manufacturer, reviews service company, or any entity that publishes - * product reviews. - * - * Generated from protobuf field optional string publisher_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPublisherName() - { - return isset($this->publisher_name) ? $this->publisher_name : ''; - } - - public function hasPublisherName() - { - return isset($this->publisher_name); - } - - public function clearPublisherName() - { - unset($this->publisher_name); - } - - /** - * Optional. The name of the publisher of the product reviews. - * The information about the publisher, which may be a retailer, - * manufacturer, reviews service company, or any entity that publishes - * product reviews. - * - * Generated from protobuf field optional string publisher_name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPublisherName($var) - { - GPBUtil::checkString($var, True); - $this->publisher_name = $var; - - return $this; - } - - /** - * Optional. A link to the company favicon of the publisher. The image - * dimensions should be favicon size: 16x16 pixels. The image format should be - * GIF, JPG or PNG. - * - * Generated from protobuf field optional string publisher_favicon = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPublisherFavicon() - { - return isset($this->publisher_favicon) ? $this->publisher_favicon : ''; - } - - public function hasPublisherFavicon() - { - return isset($this->publisher_favicon); - } - - public function clearPublisherFavicon() - { - unset($this->publisher_favicon); - } - - /** - * Optional. A link to the company favicon of the publisher. The image - * dimensions should be favicon size: 16x16 pixels. The image format should be - * GIF, JPG or PNG. - * - * Generated from protobuf field optional string publisher_favicon = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPublisherFavicon($var) - { - GPBUtil::checkString($var, True); - $this->publisher_favicon = $var; - - return $this; - } - - /** - * Optional. The author of the product review. - * A permanent, unique identifier for the author of the review in the - * publisher's system. - * - * Generated from protobuf field optional string reviewer_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getReviewerId() - { - return isset($this->reviewer_id) ? $this->reviewer_id : ''; - } - - public function hasReviewerId() - { - return isset($this->reviewer_id); - } - - public function clearReviewerId() - { - unset($this->reviewer_id); - } - - /** - * Optional. The author of the product review. - * A permanent, unique identifier for the author of the review in the - * publisher's system. - * - * Generated from protobuf field optional string reviewer_id = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setReviewerId($var) - { - GPBUtil::checkString($var, True); - $this->reviewer_id = $var; - - return $this; - } - - /** - * Optional. Set to true if the reviewer should remain anonymous. - * - * Generated from protobuf field optional bool reviewer_is_anonymous = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getReviewerIsAnonymous() - { - return isset($this->reviewer_is_anonymous) ? $this->reviewer_is_anonymous : false; - } - - public function hasReviewerIsAnonymous() - { - return isset($this->reviewer_is_anonymous); - } - - public function clearReviewerIsAnonymous() - { - unset($this->reviewer_is_anonymous); - } - - /** - * Optional. Set to true if the reviewer should remain anonymous. - * - * Generated from protobuf field optional bool reviewer_is_anonymous = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setReviewerIsAnonymous($var) - { - GPBUtil::checkBool($var); - $this->reviewer_is_anonymous = $var; - - return $this; - } - - /** - * Optional. The name of the reviewer of the product review. - * - * Generated from protobuf field optional string reviewer_username = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getReviewerUsername() - { - return isset($this->reviewer_username) ? $this->reviewer_username : ''; - } - - public function hasReviewerUsername() - { - return isset($this->reviewer_username); - } - - public function clearReviewerUsername() - { - unset($this->reviewer_username); - } - - /** - * Optional. The name of the reviewer of the product review. - * - * Generated from protobuf field optional string reviewer_username = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setReviewerUsername($var) - { - GPBUtil::checkString($var, True); - $this->reviewer_username = $var; - - return $this; - } - - /** - * Optional. The language of the review defined by BCP-47 language code. - * - * Generated from protobuf field optional string review_language = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getReviewLanguage() - { - return isset($this->review_language) ? $this->review_language : ''; - } - - public function hasReviewLanguage() - { - return isset($this->review_language); - } - - public function clearReviewLanguage() - { - unset($this->review_language); - } - - /** - * Optional. The language of the review defined by BCP-47 language code. - * - * Generated from protobuf field optional string review_language = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setReviewLanguage($var) - { - GPBUtil::checkString($var, True); - $this->review_language = $var; - - return $this; - } - - /** - * Optional. The country of the review defined by ISO 3166-1 Alpha-2 Country - * Code. - * - * Generated from protobuf field optional string review_country = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getReviewCountry() - { - return isset($this->review_country) ? $this->review_country : ''; - } - - public function hasReviewCountry() - { - return isset($this->review_country); - } - - public function clearReviewCountry() - { - unset($this->review_country); - } - - /** - * Optional. The country of the review defined by ISO 3166-1 Alpha-2 Country - * Code. - * - * Generated from protobuf field optional string review_country = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setReviewCountry($var) - { - GPBUtil::checkString($var, True); - $this->review_country = $var; - - return $this; - } - - /** - * Required. The timestamp indicating when the review was written. - * - * Generated from protobuf field .google.protobuf.Timestamp review_time = 10 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReviewTime() - { - return $this->review_time; - } - - public function hasReviewTime() - { - return isset($this->review_time); - } - - public function clearReviewTime() - { - unset($this->review_time); - } - - /** - * Required. The timestamp indicating when the review was written. - * - * Generated from protobuf field .google.protobuf.Timestamp review_time = 10 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReviewTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->review_time = $var; - - return $this; - } - - /** - * Optional. The title of the review. - * - * Generated from protobuf field optional string title = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTitle() - { - return isset($this->title) ? $this->title : ''; - } - - public function hasTitle() - { - return isset($this->title); - } - - public function clearTitle() - { - unset($this->title); - } - - /** - * Optional. The title of the review. - * - * Generated from protobuf field optional string title = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * Required. The content of the review. - * - * Generated from protobuf field optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getContent() - { - return isset($this->content) ? $this->content : ''; - } - - public function hasContent() - { - return isset($this->content); - } - - public function clearContent() - { - unset($this->content); - } - - /** - * Required. The content of the review. - * - * Generated from protobuf field optional string content = 12 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, True); - $this->content = $var; - - return $this; - } - - /** - * Optional. Contains the advantages based on the opinion of the reviewer. - * Omit boilerplate text like "pro:" unless it was written by the reviewer. - * - * Generated from protobuf field repeated string pros = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPros() - { - return $this->pros; - } - - /** - * Optional. Contains the advantages based on the opinion of the reviewer. - * Omit boilerplate text like "pro:" unless it was written by the reviewer. - * - * Generated from protobuf field repeated string pros = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPros($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->pros = $arr; - - return $this; - } - - /** - * Optional. Contains the disadvantages based on the opinion of the reviewer. - * Omit boilerplate text like "con:" unless it was written by the reviewer. - * - * Generated from protobuf field repeated string cons = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCons() - { - return $this->cons; - } - - /** - * Optional. Contains the disadvantages based on the opinion of the reviewer. - * Omit boilerplate text like "con:" unless it was written by the reviewer. - * - * Generated from protobuf field repeated string cons = 14 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCons($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->cons = $arr; - - return $this; - } - - /** - * Optional. The URI of the review landing page. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink review_link = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewAttributes\ReviewLink|null - */ - public function getReviewLink() - { - return $this->review_link; - } - - public function hasReviewLink() - { - return isset($this->review_link); - } - - public function clearReviewLink() - { - unset($this->review_link); - } - - /** - * Optional. The URI of the review landing page. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink review_link = 15 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewAttributes\ReviewLink $var - * @return $this - */ - public function setReviewLink($var) - { - GPBUtil::checkMessage($var, \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewAttributes\ReviewLink::class); - $this->review_link = $var; - - return $this; - } - - /** - * Optional. A URI to an image of the reviewed product created by the review - * author. The URI does not have to end with an image file extension. - * - * Generated from protobuf field repeated string reviewer_image_links = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReviewerImageLinks() - { - return $this->reviewer_image_links; - } - - /** - * Optional. A URI to an image of the reviewed product created by the review - * author. The URI does not have to end with an image file extension. - * - * Generated from protobuf field repeated string reviewer_image_links = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReviewerImageLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->reviewer_image_links = $arr; - - return $this; - } - - /** - * Optional. Contains the ratings associated with the review. - * The minimum possible number for the rating. This should be the worst - * possible rating and should not be a value for no rating. - * - * Generated from protobuf field optional int64 min_rating = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getMinRating() - { - return isset($this->min_rating) ? $this->min_rating : 0; - } - - public function hasMinRating() - { - return isset($this->min_rating); - } - - public function clearMinRating() - { - unset($this->min_rating); - } - - /** - * Optional. Contains the ratings associated with the review. - * The minimum possible number for the rating. This should be the worst - * possible rating and should not be a value for no rating. - * - * Generated from protobuf field optional int64 min_rating = 17 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setMinRating($var) - { - GPBUtil::checkInt64($var); - $this->min_rating = $var; - - return $this; - } - - /** - * Optional. The maximum possible number for the rating. The value of the max - * rating must be greater than the value of the min attribute. - * - * Generated from protobuf field optional int64 max_rating = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getMaxRating() - { - return isset($this->max_rating) ? $this->max_rating : 0; - } - - public function hasMaxRating() - { - return isset($this->max_rating); - } - - public function clearMaxRating() - { - unset($this->max_rating); - } - - /** - * Optional. The maximum possible number for the rating. The value of the max - * rating must be greater than the value of the min attribute. - * - * Generated from protobuf field optional int64 max_rating = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setMaxRating($var) - { - GPBUtil::checkInt64($var); - $this->max_rating = $var; - - return $this; - } - - /** - * Optional. The reviewer's overall rating of the product. - * - * Generated from protobuf field optional double rating = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getRating() - { - return isset($this->rating) ? $this->rating : 0.0; - } - - public function hasRating() - { - return isset($this->rating); - } - - public function clearRating() - { - unset($this->rating); - } - - /** - * Optional. The reviewer's overall rating of the product. - * - * Generated from protobuf field optional double rating = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setRating($var) - { - GPBUtil::checkDouble($var); - $this->rating = $var; - - return $this; - } - - /** - * Optional. Descriptive name of a product. - * - * Generated from protobuf field repeated string product_names = 20 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProductNames() - { - return $this->product_names; - } - - /** - * Optional. Descriptive name of a product. - * - * Generated from protobuf field repeated string product_names = 20 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProductNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->product_names = $arr; - - return $this; - } - - /** - * Optional. The URI of the product. This URI can have the same value as the - * `review_link` element, if the review URI and the product URI are the - * same. - * - * Generated from protobuf field repeated string product_links = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProductLinks() - { - return $this->product_links; - } - - /** - * Optional. The URI of the product. This URI can have the same value as the - * `review_link` element, if the review URI and the product URI are the - * same. - * - * Generated from protobuf field repeated string product_links = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProductLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->product_links = $arr; - - return $this; - } - - /** - * Optional. Contains ASINs (Amazon Standard Identification Numbers) - * associated with a product. - * - * Generated from protobuf field repeated string asins = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAsins() - { - return $this->asins; - } - - /** - * Optional. Contains ASINs (Amazon Standard Identification Numbers) - * associated with a product. - * - * Generated from protobuf field repeated string asins = 22 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAsins($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->asins = $arr; - - return $this; - } - - /** - * Optional. Contains GTINs (global trade item numbers) associated with a - * product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported. - * - * Generated from protobuf field repeated string gtins = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGtins() - { - return $this->gtins; - } - - /** - * Optional. Contains GTINs (global trade item numbers) associated with a - * product. Sub-types of GTINs (e.g. UPC, EAN, ISBN, JAN) are supported. - * - * Generated from protobuf field repeated string gtins = 23 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGtins($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->gtins = $arr; - - return $this; - } - - /** - * Optional. Contains MPNs (manufacturer part numbers) associated with a - * product. - * - * Generated from protobuf field repeated string mpns = 24 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMpns() - { - return $this->mpns; - } - - /** - * Optional. Contains MPNs (manufacturer part numbers) associated with a - * product. - * - * Generated from protobuf field repeated string mpns = 24 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMpns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->mpns = $arr; - - return $this; - } - - /** - * Optional. Contains SKUs (stock keeping units) associated with a product. - * Often this matches the product Offer Id in the product feed. - * - * Generated from protobuf field repeated string skus = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSkus() - { - return $this->skus; - } - - /** - * Optional. Contains SKUs (stock keeping units) associated with a product. - * Often this matches the product Offer Id in the product feed. - * - * Generated from protobuf field repeated string skus = 25 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSkus($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->skus = $arr; - - return $this; - } - - /** - * Optional. Contains brand names associated with a product. - * - * Generated from protobuf field repeated string brands = 26 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBrands() - { - return $this->brands; - } - - /** - * Optional. Contains brand names associated with a product. - * - * Generated from protobuf field repeated string brands = 26 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBrands($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->brands = $arr; - - return $this; - } - - /** - * Optional. Indicates whether the review is marked as spam in the publisher's - * system. - * - * Generated from protobuf field optional bool is_spam = 27 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIsSpam() - { - return isset($this->is_spam) ? $this->is_spam : false; - } - - public function hasIsSpam() - { - return isset($this->is_spam); - } - - public function clearIsSpam() - { - unset($this->is_spam); - } - - /** - * Optional. Indicates whether the review is marked as spam in the publisher's - * system. - * - * Generated from protobuf field optional bool is_spam = 27 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIsSpam($var) - { - GPBUtil::checkBool($var); - $this->is_spam = $var; - - return $this; - } - - /** - * Optional. The method used to collect the review. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.CollectionMethod collection_method = 28 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getCollectionMethod() - { - return $this->collection_method; - } - - /** - * Optional. The method used to collect the review. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.CollectionMethod collection_method = 28 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setCollectionMethod($var) - { - GPBUtil::checkEnum($var, \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewAttributes\CollectionMethod::class); - $this->collection_method = $var; - - return $this; - } - - /** - * Optional. A permanent, unique identifier for the transaction associated - * with the review in the publisher's system. This ID can be used to indicate - * that multiple reviews are associated with the same transaction. - * - * Generated from protobuf field string transaction_id = 29 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTransactionId() - { - return $this->transaction_id; - } - - /** - * Optional. A permanent, unique identifier for the transaction associated - * with the review in the publisher's system. This ID can be used to indicate - * that multiple reviews are associated with the same transaction. - * - * Generated from protobuf field string transaction_id = 29 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTransactionId($var) - { - GPBUtil::checkString($var, True); - $this->transaction_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes/CollectionMethod.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes/CollectionMethod.php deleted file mode 100644 index f7138271fe5..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes/CollectionMethod.php +++ /dev/null @@ -1,66 +0,0 @@ -google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.CollectionMethod - */ -class CollectionMethod -{ - /** - * Collection method unspecified. - * - * Generated from protobuf enum COLLECTION_METHOD_UNSPECIFIED = 0; - */ - const COLLECTION_METHOD_UNSPECIFIED = 0; - /** - * The user was not responding to a specific solicitation when they - * submitted the review. - * - * Generated from protobuf enum UNSOLICITED = 1; - */ - const UNSOLICITED = 1; - /** - * The user submitted the review in response to a solicitation after - * fulfillment of the user's order. - * - * Generated from protobuf enum POST_FULFILLMENT = 2; - */ - const POST_FULFILLMENT = 2; - - private static $valueToName = [ - self::COLLECTION_METHOD_UNSPECIFIED => 'COLLECTION_METHOD_UNSPECIFIED', - self::UNSOLICITED => 'UNSOLICITED', - self::POST_FULFILLMENT => 'POST_FULFILLMENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CollectionMethod::class, \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewAttributes_CollectionMethod::class); - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes/ReviewLink.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes/ReviewLink.php deleted file mode 100644 index 68be9dced67..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes/ReviewLink.php +++ /dev/null @@ -1,108 +0,0 @@ -google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink - */ -class ReviewLink extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Type of the review URI. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type = 0; - /** - * Optional. The URI of the review landing page. - * For example: `http://www.example.com/review_5.html`. - * - * Generated from protobuf field string link = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $link = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Optional. Type of the review URI. - * @type string $link - * Optional. The URI of the review landing page. - * For example: `http://www.example.com/review_5.html`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\ProductreviewsCommon::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Type of the review URI. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Optional. Type of the review URI. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewAttributes\ReviewLink\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. The URI of the review landing page. - * For example: `http://www.example.com/review_5.html`. - * - * Generated from protobuf field string link = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getLink() - { - return $this->link; - } - - /** - * Optional. The URI of the review landing page. - * For example: `http://www.example.com/review_5.html`. - * - * Generated from protobuf field string link = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setLink($var) - { - GPBUtil::checkString($var, True); - $this->link = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReviewLink::class, \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewAttributes_ReviewLink::class); - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes/ReviewLink/Type.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes/ReviewLink/Type.php deleted file mode 100644 index ea6b71928b1..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewAttributes/ReviewLink/Type.php +++ /dev/null @@ -1,64 +0,0 @@ -google.shopping.merchant.reviews.v1beta.ProductReviewAttributes.ReviewLink.Type - */ -class Type -{ - /** - * Type unspecified. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * The review page contains only this single review. - * - * Generated from protobuf enum SINGLETON = 1; - */ - const SINGLETON = 1; - /** - * The review page contains a group of reviews including this review. - * - * Generated from protobuf enum GROUP = 2; - */ - const GROUP = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::SINGLETON => 'SINGLETON', - self::GROUP => 'GROUP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Type::class, \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewAttributes_ReviewLink_Type::class); - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus.php deleted file mode 100644 index 38c48c19f05..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus.php +++ /dev/null @@ -1,197 +0,0 @@ -google.shopping.merchant.reviews.v1beta.ProductReviewStatus - */ -class ProductReviewStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The intended destinations for the product review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.ProductReviewStatus.ProductReviewDestinationStatus destination_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $destination_statuses; - /** - * Output only. A list of all issues associated with the product review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.ProductReviewStatus.ProductReviewItemLevelIssue item_level_issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $item_level_issues; - /** - * Output only. Date on which the item has been created, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Date on which the item has been last updated, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Shopping\Merchant\Reviews\V1beta\ProductReviewStatus\ProductReviewDestinationStatus>|\Google\Protobuf\Internal\RepeatedField $destination_statuses - * Output only. The intended destinations for the product review. - * @type array<\Google\Shopping\Merchant\Reviews\V1beta\ProductReviewStatus\ProductReviewItemLevelIssue>|\Google\Protobuf\Internal\RepeatedField $item_level_issues - * Output only. A list of all issues associated with the product review. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Date on which the item has been created, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * @type \Google\Protobuf\Timestamp $last_update_time - * Output only. Date on which the item has been last updated, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\ProductreviewsCommon::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The intended destinations for the product review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.ProductReviewStatus.ProductReviewDestinationStatus destination_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDestinationStatuses() - { - return $this->destination_statuses; - } - - /** - * Output only. The intended destinations for the product review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.ProductReviewStatus.ProductReviewDestinationStatus destination_statuses = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Shopping\Merchant\Reviews\V1beta\ProductReviewStatus\ProductReviewDestinationStatus>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDestinationStatuses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewStatus\ProductReviewDestinationStatus::class); - $this->destination_statuses = $arr; - - return $this; - } - - /** - * Output only. A list of all issues associated with the product review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.ProductReviewStatus.ProductReviewItemLevelIssue item_level_issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getItemLevelIssues() - { - return $this->item_level_issues; - } - - /** - * Output only. A list of all issues associated with the product review. - * - * Generated from protobuf field repeated .google.shopping.merchant.reviews.v1beta.ProductReviewStatus.ProductReviewItemLevelIssue item_level_issues = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Shopping\Merchant\Reviews\V1beta\ProductReviewStatus\ProductReviewItemLevelIssue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setItemLevelIssues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewStatus\ProductReviewItemLevelIssue::class); - $this->item_level_issues = $arr; - - return $this; - } - - /** - * Output only. Date on which the item has been created, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Date on which the item has been created, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Date on which the item has been last updated, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastUpdateTime() - { - return $this->last_update_time; - } - - public function hasLastUpdateTime() - { - return isset($this->last_update_time); - } - - public function clearLastUpdateTime() - { - unset($this->last_update_time); - } - - /** - * Output only. Date on which the item has been last updated, in [ISO - * 8601](http://en.wikipedia.org/wiki/ISO_8601) format. - * - * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus/ProductReviewDestinationStatus.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus/ProductReviewDestinationStatus.php deleted file mode 100644 index 3f1b7e50ede..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus/ProductReviewDestinationStatus.php +++ /dev/null @@ -1,70 +0,0 @@ -google.shopping.merchant.reviews.v1beta.ProductReviewStatus.ProductReviewDestinationStatus - */ -class ProductReviewDestinationStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The name of the reporting context. - * - * Generated from protobuf field .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reporting_context = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $reporting_context - * Output only. The name of the reporting context. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\ProductreviewsCommon::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The name of the reporting context. - * - * Generated from protobuf field .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getReportingContext() - { - return $this->reporting_context; - } - - /** - * Output only. The name of the reporting context. - * - * Generated from protobuf field .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setReportingContext($var) - { - GPBUtil::checkEnum($var, \Google\Shopping\Type\ReportingContext\ReportingContextEnum::class); - $this->reporting_context = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ProductReviewDestinationStatus::class, \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewStatus_ProductReviewDestinationStatus::class); - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus/ProductReviewItemLevelIssue.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus/ProductReviewItemLevelIssue.php deleted file mode 100644 index 32dbbb54fd8..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus/ProductReviewItemLevelIssue.php +++ /dev/null @@ -1,312 +0,0 @@ -google.shopping.merchant.reviews.v1beta.ProductReviewStatus.ProductReviewItemLevelIssue - */ -class ProductReviewItemLevelIssue extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The error code of the issue. - * - * Generated from protobuf field string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $code = ''; - /** - * Output only. How this issue affects serving of the product review. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewStatus.ProductReviewItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $severity = 0; - /** - * Output only. Whether the issue can be resolved by the merchant. - * - * Generated from protobuf field string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $resolution = ''; - /** - * Output only. The attribute's name, if the issue is caused by a single - * attribute. - * - * Generated from protobuf field string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $attribute = ''; - /** - * Output only. The reporting context the issue applies to. - * - * Generated from protobuf field .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reporting_context = 0; - /** - * Output only. A short issue description in English. - * - * Generated from protobuf field string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - /** - * Output only. A detailed issue description in English. - * - * Generated from protobuf field string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $detail = ''; - /** - * Output only. The URL of a web page to help with resolving this issue. - * - * Generated from protobuf field string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $documentation = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $code - * Output only. The error code of the issue. - * @type int $severity - * Output only. How this issue affects serving of the product review. - * @type string $resolution - * Output only. Whether the issue can be resolved by the merchant. - * @type string $attribute - * Output only. The attribute's name, if the issue is caused by a single - * attribute. - * @type int $reporting_context - * Output only. The reporting context the issue applies to. - * @type string $description - * Output only. A short issue description in English. - * @type string $detail - * Output only. A detailed issue description in English. - * @type string $documentation - * Output only. The URL of a web page to help with resolving this issue. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Shopping\Merchant\Reviews\V1Beta\ProductreviewsCommon::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The error code of the issue. - * - * Generated from protobuf field string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCode() - { - return $this->code; - } - - /** - * Output only. The error code of the issue. - * - * Generated from protobuf field string code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkString($var, True); - $this->code = $var; - - return $this; - } - - /** - * Output only. How this issue affects serving of the product review. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewStatus.ProductReviewItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * Output only. How this issue affects serving of the product review. - * - * Generated from protobuf field .google.shopping.merchant.reviews.v1beta.ProductReviewStatus.ProductReviewItemLevelIssue.Severity severity = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewStatus\ProductReviewItemLevelIssue\Severity::class); - $this->severity = $var; - - return $this; - } - - /** - * Output only. Whether the issue can be resolved by the merchant. - * - * Generated from protobuf field string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getResolution() - { - return $this->resolution; - } - - /** - * Output only. Whether the issue can be resolved by the merchant. - * - * Generated from protobuf field string resolution = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setResolution($var) - { - GPBUtil::checkString($var, True); - $this->resolution = $var; - - return $this; - } - - /** - * Output only. The attribute's name, if the issue is caused by a single - * attribute. - * - * Generated from protobuf field string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAttribute() - { - return $this->attribute; - } - - /** - * Output only. The attribute's name, if the issue is caused by a single - * attribute. - * - * Generated from protobuf field string attribute = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAttribute($var) - { - GPBUtil::checkString($var, True); - $this->attribute = $var; - - return $this; - } - - /** - * Output only. The reporting context the issue applies to. - * - * Generated from protobuf field .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getReportingContext() - { - return $this->reporting_context; - } - - /** - * Output only. The reporting context the issue applies to. - * - * Generated from protobuf field .google.shopping.type.ReportingContext.ReportingContextEnum reporting_context = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setReportingContext($var) - { - GPBUtil::checkEnum($var, \Google\Shopping\Type\ReportingContext\ReportingContextEnum::class); - $this->reporting_context = $var; - - return $this; - } - - /** - * Output only. A short issue description in English. - * - * Generated from protobuf field string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. A short issue description in English. - * - * Generated from protobuf field string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. A detailed issue description in English. - * - * Generated from protobuf field string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDetail() - { - return $this->detail; - } - - /** - * Output only. A detailed issue description in English. - * - * Generated from protobuf field string detail = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDetail($var) - { - GPBUtil::checkString($var, True); - $this->detail = $var; - - return $this; - } - - /** - * Output only. The URL of a web page to help with resolving this issue. - * - * Generated from protobuf field string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDocumentation() - { - return $this->documentation; - } - - /** - * Output only. The URL of a web page to help with resolving this issue. - * - * Generated from protobuf field string documentation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDocumentation($var) - { - GPBUtil::checkString($var, True); - $this->documentation = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ProductReviewItemLevelIssue::class, \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewStatus_ProductReviewItemLevelIssue::class); - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus/ProductReviewItemLevelIssue/Severity.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus/ProductReviewItemLevelIssue/Severity.php deleted file mode 100644 index 3f9f54517c1..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/proto/src/Google/Shopping/Merchant/Reviews/V1beta/ProductReviewStatus/ProductReviewItemLevelIssue/Severity.php +++ /dev/null @@ -1,65 +0,0 @@ -google.shopping.merchant.reviews.v1beta.ProductReviewStatus.ProductReviewItemLevelIssue.Severity - */ -class Severity -{ - /** - * Not specified. - * - * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0; - */ - const SEVERITY_UNSPECIFIED = 0; - /** - * This issue represents a warning and does not have a direct affect - * on the product review. - * - * Generated from protobuf enum NOT_IMPACTED = 1; - */ - const NOT_IMPACTED = 1; - /** - * Issue disapproves the product review. - * - * Generated from protobuf enum DISAPPROVED = 2; - */ - const DISAPPROVED = 2; - - private static $valueToName = [ - self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED', - self::NOT_IMPACTED => 'NOT_IMPACTED', - self::DISAPPROVED => 'DISAPPROVED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Severity::class, \Google\Shopping\Merchant\Reviews\V1beta\ProductReviewStatus_ProductReviewItemLevelIssue_Severity::class); - diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/delete_merchant_review.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/delete_merchant_review.php deleted file mode 100644 index eb6aa8e7dce..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/delete_merchant_review.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $merchantReviewsServiceClient->deleteMerchantReview($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = MerchantReviewsServiceClient::merchantReviewName('[ACCOUNT]', '[NAME]'); - - delete_merchant_review_sample($formattedName); -} -// [END merchantapi_v1beta_generated_MerchantReviewsService_DeleteMerchantReview_sync] diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/get_merchant_review.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/get_merchant_review.php deleted file mode 100644 index 7a685c3deb6..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/get_merchant_review.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var MerchantReview $response */ - $response = $merchantReviewsServiceClient->getMerchantReview($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = MerchantReviewsServiceClient::merchantReviewName('[ACCOUNT]', '[NAME]'); - - get_merchant_review_sample($formattedName); -} -// [END merchantapi_v1beta_generated_MerchantReviewsService_GetMerchantReview_sync] diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/insert_merchant_review.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/insert_merchant_review.php deleted file mode 100644 index 778f12fc3ed..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/insert_merchant_review.php +++ /dev/null @@ -1,90 +0,0 @@ -setMerchantReviewId($merchantReviewMerchantReviewId) - ->setCustomAttributes($merchantReviewCustomAttributes); - $request = (new InsertMerchantReviewRequest()) - ->setParent($parent) - ->setMerchantReview($merchantReview) - ->setDataSource($dataSource); - - // Call the API and handle any network failures. - try { - /** @var MerchantReview $response */ - $response = $merchantReviewsServiceClient->insertMerchantReview($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - $merchantReviewMerchantReviewId = '[MERCHANT_REVIEW_ID]'; - $dataSource = '[DATA_SOURCE]'; - - insert_merchant_review_sample($parent, $merchantReviewMerchantReviewId, $dataSource); -} -// [END merchantapi_v1beta_generated_MerchantReviewsService_InsertMerchantReview_sync] diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/list_merchant_reviews.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/list_merchant_reviews.php deleted file mode 100644 index 825b4c3d975..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/MerchantReviewsServiceClient/list_merchant_reviews.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $merchantReviewsServiceClient->listMerchantReviews($request); - - /** @var MerchantReview $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = MerchantReviewsServiceClient::accountName('[ACCOUNT]'); - - list_merchant_reviews_sample($formattedParent); -} -// [END merchantapi_v1beta_generated_MerchantReviewsService_ListMerchantReviews_sync] diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/delete_product_review.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/delete_product_review.php deleted file mode 100644 index 46414a8cd0c..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/delete_product_review.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $productReviewsServiceClient->deleteProductReview($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ProductReviewsServiceClient::productReviewName('[ACCOUNT]', '[PRODUCTREVIEW]'); - - delete_product_review_sample($formattedName); -} -// [END merchantapi_v1beta_generated_ProductReviewsService_DeleteProductReview_sync] diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/get_product_review.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/get_product_review.php deleted file mode 100644 index 730e74f6088..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/get_product_review.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ProductReview $response */ - $response = $productReviewsServiceClient->getProductReview($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ProductReviewsServiceClient::productReviewName('[ACCOUNT]', '[PRODUCTREVIEW]'); - - get_product_review_sample($formattedName); -} -// [END merchantapi_v1beta_generated_ProductReviewsService_GetProductReview_sync] diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/insert_product_review.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/insert_product_review.php deleted file mode 100644 index 9db82575b22..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/insert_product_review.php +++ /dev/null @@ -1,84 +0,0 @@ -setProductReviewId($productReviewProductReviewId); - $request = (new InsertProductReviewRequest()) - ->setParent($parent) - ->setProductReview($productReview) - ->setDataSource($dataSource); - - // Call the API and handle any network failures. - try { - /** @var ProductReview $response */ - $response = $productReviewsServiceClient->insertProductReview($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $parent = '[PARENT]'; - $productReviewProductReviewId = '[PRODUCT_REVIEW_ID]'; - $dataSource = '[DATA_SOURCE]'; - - insert_product_review_sample($parent, $productReviewProductReviewId, $dataSource); -} -// [END merchantapi_v1beta_generated_ProductReviewsService_InsertProductReview_sync] diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/list_product_reviews.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/list_product_reviews.php deleted file mode 100644 index 142a16544fd..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/samples/V1beta/ProductReviewsServiceClient/list_product_reviews.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $productReviewsServiceClient->listProductReviews($request); - - /** @var ProductReview $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ProductReviewsServiceClient::accountName('[ACCOUNT]'); - - list_product_reviews_sample($formattedParent); -} -// [END merchantapi_v1beta_generated_ProductReviewsService_ListProductReviews_sync] diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/Client/MerchantReviewsServiceClient.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/Client/MerchantReviewsServiceClient.php deleted file mode 100644 index 7ddb6c9869d..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/Client/MerchantReviewsServiceClient.php +++ /dev/null @@ -1,365 +0,0 @@ - deleteMerchantReviewAsync(DeleteMerchantReviewRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMerchantReviewAsync(GetMerchantReviewRequest $request, array $optionalArgs = []) - * @method PromiseInterface insertMerchantReviewAsync(InsertMerchantReviewRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMerchantReviewsAsync(ListMerchantReviewsRequest $request, array $optionalArgs = []) - */ -final class MerchantReviewsServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.shopping.merchant.reviews.v1beta.MerchantReviewsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'merchantapi.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'merchantapi.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/content', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/merchant_reviews_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/merchant_reviews_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/merchant_reviews_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/merchant_reviews_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a account - * resource. - * - * @param string $account - * - * @return string The formatted account resource. - * - * @experimental - */ - public static function accountName(string $account): string - { - return self::getPathTemplate('account')->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * merchant_review resource. - * - * @param string $account - * @param string $name - * - * @return string The formatted merchant_review resource. - * - * @experimental - */ - public static function merchantReviewName(string $account, string $name): string - { - return self::getPathTemplate('merchantReview')->render([ - 'account' => $account, - 'name' => $name, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - account: accounts/{account} - * - merchantReview: accounts/{account}/merchantReviews/{name} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'merchantapi.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Deletes merchant review. - * - * The async variant is - * {@see MerchantReviewsServiceClient::deleteMerchantReviewAsync()} . - * - * @example samples/V1beta/MerchantReviewsServiceClient/delete_merchant_review.php - * - * @param DeleteMerchantReviewRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteMerchantReview(DeleteMerchantReviewRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteMerchantReview', $request, $callOptions)->wait(); - } - - /** - * Gets a merchant review. - * - * The async variant is - * {@see MerchantReviewsServiceClient::getMerchantReviewAsync()} . - * - * @example samples/V1beta/MerchantReviewsServiceClient/get_merchant_review.php - * - * @param GetMerchantReviewRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MerchantReview - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getMerchantReview(GetMerchantReviewRequest $request, array $callOptions = []): MerchantReview - { - return $this->startApiCall('GetMerchantReview', $request, $callOptions)->wait(); - } - - /** - * Inserts a review for your Merchant Center account. If the review - * already exists, then the review is replaced with the new instance. - * - * The async variant is - * {@see MerchantReviewsServiceClient::insertMerchantReviewAsync()} . - * - * @example samples/V1beta/MerchantReviewsServiceClient/insert_merchant_review.php - * - * @param InsertMerchantReviewRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MerchantReview - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function insertMerchantReview(InsertMerchantReviewRequest $request, array $callOptions = []): MerchantReview - { - return $this->startApiCall('InsertMerchantReview', $request, $callOptions)->wait(); - } - - /** - * Lists merchant reviews. - * - * The async variant is - * {@see MerchantReviewsServiceClient::listMerchantReviewsAsync()} . - * - * @example samples/V1beta/MerchantReviewsServiceClient/list_merchant_reviews.php - * - * @param ListMerchantReviewsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listMerchantReviews(ListMerchantReviewsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMerchantReviews', $request, $callOptions); - } -} diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/Client/ProductReviewsServiceClient.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/Client/ProductReviewsServiceClient.php deleted file mode 100644 index d32afdaa31b..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/Client/ProductReviewsServiceClient.php +++ /dev/null @@ -1,364 +0,0 @@ - deleteProductReviewAsync(DeleteProductReviewRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProductReviewAsync(GetProductReviewRequest $request, array $optionalArgs = []) - * @method PromiseInterface insertProductReviewAsync(InsertProductReviewRequest $request, array $optionalArgs = []) - * @method PromiseInterface listProductReviewsAsync(ListProductReviewsRequest $request, array $optionalArgs = []) - */ -final class ProductReviewsServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.shopping.merchant.reviews.v1beta.ProductReviewsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'merchantapi.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'merchantapi.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/content', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/product_reviews_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/product_reviews_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/product_reviews_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/product_reviews_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a account - * resource. - * - * @param string $account - * - * @return string The formatted account resource. - * - * @experimental - */ - public static function accountName(string $account): string - { - return self::getPathTemplate('account')->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * product_review resource. - * - * @param string $account - * @param string $productreview - * - * @return string The formatted product_review resource. - * - * @experimental - */ - public static function productReviewName(string $account, string $productreview): string - { - return self::getPathTemplate('productReview')->render([ - 'account' => $account, - 'productreview' => $productreview, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - account: accounts/{account} - * - productReview: accounts/{account}/productReviews/{productreview} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param ?string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, ?string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'merchantapi.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * @type false|LoggerInterface $logger - * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the - * 'GOOGLE_SDK_PHP_LOGGING' environment flag - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Deletes a product review. - * - * The async variant is - * {@see ProductReviewsServiceClient::deleteProductReviewAsync()} . - * - * @example samples/V1beta/ProductReviewsServiceClient/delete_product_review.php - * - * @param DeleteProductReviewRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteProductReview(DeleteProductReviewRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteProductReview', $request, $callOptions)->wait(); - } - - /** - * Gets a product review. - * - * The async variant is {@see ProductReviewsServiceClient::getProductReviewAsync()} - * . - * - * @example samples/V1beta/ProductReviewsServiceClient/get_product_review.php - * - * @param GetProductReviewRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ProductReview - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getProductReview(GetProductReviewRequest $request, array $callOptions = []): ProductReview - { - return $this->startApiCall('GetProductReview', $request, $callOptions)->wait(); - } - - /** - * Inserts a product review. - * - * The async variant is - * {@see ProductReviewsServiceClient::insertProductReviewAsync()} . - * - * @example samples/V1beta/ProductReviewsServiceClient/insert_product_review.php - * - * @param InsertProductReviewRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ProductReview - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function insertProductReview(InsertProductReviewRequest $request, array $callOptions = []): ProductReview - { - return $this->startApiCall('InsertProductReview', $request, $callOptions)->wait(); - } - - /** - * Lists product reviews. - * - * The async variant is - * {@see ProductReviewsServiceClient::listProductReviewsAsync()} . - * - * @example samples/V1beta/ProductReviewsServiceClient/list_product_reviews.php - * - * @param ListProductReviewsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listProductReviews(ListProductReviewsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListProductReviews', $request, $callOptions); - } -} diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/gapic_metadata.json deleted file mode 100644 index f87a719c334..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/gapic_metadata.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.shopping.merchant.reviews.v1beta", - "libraryPackage": "Google\\Shopping\\Merchant\\Reviews\\V1beta", - "services": { - "MerchantReviewsService": { - "clients": { - "grpc": { - "libraryClient": "MerchantReviewsServiceGapicClient", - "rpcs": { - "DeleteMerchantReview": { - "methods": [ - "deleteMerchantReview" - ] - }, - "GetMerchantReview": { - "methods": [ - "getMerchantReview" - ] - }, - "InsertMerchantReview": { - "methods": [ - "insertMerchantReview" - ] - }, - "ListMerchantReviews": { - "methods": [ - "listMerchantReviews" - ] - } - } - } - } - }, - "ProductReviewsService": { - "clients": { - "grpc": { - "libraryClient": "ProductReviewsServiceGapicClient", - "rpcs": { - "DeleteProductReview": { - "methods": [ - "deleteProductReview" - ] - }, - "GetProductReview": { - "methods": [ - "getProductReview" - ] - }, - "InsertProductReview": { - "methods": [ - "insertProductReview" - ] - }, - "ListProductReviews": { - "methods": [ - "listProductReviews" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/merchant_reviews_service_client_config.json b/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/merchant_reviews_service_client_config.json deleted file mode 100644 index 3f1aa6160a3..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/merchant_reviews_service_client_config.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "interfaces": { - "google.shopping.merchant.reviews.v1beta.MerchantReviewsService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "DeleteMerchantReview": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMerchantReview": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "InsertMerchantReview": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMerchantReviews": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/merchant_reviews_service_descriptor_config.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/merchant_reviews_service_descriptor_config.php deleted file mode 100644 index c9db661e20d..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/merchant_reviews_service_descriptor_config.php +++ /dev/null @@ -1,88 +0,0 @@ - [ - 'google.shopping.merchant.reviews.v1beta.MerchantReviewsService' => [ - 'DeleteMerchantReview' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMerchantReview' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Shopping\Merchant\Reviews\V1beta\MerchantReview', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'InsertMerchantReview' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Shopping\Merchant\Reviews\V1beta\MerchantReview', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMerchantReviews' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMerchantReviews', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Shopping\Merchant\Reviews\V1beta\ListMerchantReviewsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'account' => 'accounts/{account}', - 'merchantReview' => 'accounts/{account}/merchantReviews/{name}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/merchant_reviews_service_rest_client_config.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/merchant_reviews_service_rest_client_config.php deleted file mode 100644 index 73f1938d82b..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/merchant_reviews_service_rest_client_config.php +++ /dev/null @@ -1,74 +0,0 @@ - [ - 'google.shopping.merchant.reviews.v1beta.MerchantReviewsService' => [ - 'DeleteMerchantReview' => [ - 'method' => 'delete', - 'uriTemplate' => '/reviews/v1beta/{name=accounts/*/merchantReviews/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMerchantReview' => [ - 'method' => 'get', - 'uriTemplate' => '/reviews/v1beta/{name=accounts/*/merchantReviews/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'InsertMerchantReview' => [ - 'method' => 'post', - 'uriTemplate' => '/reviews/v1beta/{parent=accounts/*}/merchantReviews:insert', - 'body' => 'merchant_review', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMerchantReviews' => [ - 'method' => 'get', - 'uriTemplate' => '/reviews/v1beta/{parent=accounts/*}/merchantReviews', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/product_reviews_service_client_config.json b/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/product_reviews_service_client_config.json deleted file mode 100644 index 959ab97081e..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/product_reviews_service_client_config.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "interfaces": { - "google.shopping.merchant.reviews.v1beta.ProductReviewsService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "DeleteProductReview": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetProductReview": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "InsertProductReview": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListProductReviews": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/product_reviews_service_descriptor_config.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/product_reviews_service_descriptor_config.php deleted file mode 100644 index f80704176cd..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/product_reviews_service_descriptor_config.php +++ /dev/null @@ -1,88 +0,0 @@ - [ - 'google.shopping.merchant.reviews.v1beta.ProductReviewsService' => [ - 'DeleteProductReview' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetProductReview' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Shopping\Merchant\Reviews\V1beta\ProductReview', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'InsertProductReview' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Shopping\Merchant\Reviews\V1beta\ProductReview', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListProductReviews' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProductReviews', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Shopping\Merchant\Reviews\V1beta\ListProductReviewsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'account' => 'accounts/{account}', - 'productReview' => 'accounts/{account}/productReviews/{productreview}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/product_reviews_service_rest_client_config.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/product_reviews_service_rest_client_config.php deleted file mode 100644 index 523f2adc552..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/src/V1beta/resources/product_reviews_service_rest_client_config.php +++ /dev/null @@ -1,74 +0,0 @@ - [ - 'google.shopping.merchant.reviews.v1beta.ProductReviewsService' => [ - 'DeleteProductReview' => [ - 'method' => 'delete', - 'uriTemplate' => '/reviews/v1beta/{name=accounts/*/productReviews/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProductReview' => [ - 'method' => 'get', - 'uriTemplate' => '/reviews/v1beta/{name=accounts/*/productReviews/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'InsertProductReview' => [ - 'method' => 'post', - 'uriTemplate' => '/reviews/v1beta/{parent=accounts/*}/productReviews:insert', - 'body' => 'product_review', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListProductReviews' => [ - 'method' => 'get', - 'uriTemplate' => '/reviews/v1beta/{parent=accounts/*}/productReviews', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/tests/Unit/V1beta/Client/MerchantReviewsServiceClientTest.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/tests/Unit/V1beta/Client/MerchantReviewsServiceClientTest.php deleted file mode 100644 index 671e7ca80a6..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/tests/Unit/V1beta/Client/MerchantReviewsServiceClientTest.php +++ /dev/null @@ -1,382 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return MerchantReviewsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new MerchantReviewsServiceClient($options); - } - - /** @test */ - public function deleteMerchantReviewTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->merchantReviewName('[ACCOUNT]', '[NAME]'); - $request = (new DeleteMerchantReviewRequest()) - ->setName($formattedName); - $gapicClient->deleteMerchantReview($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.shopping.merchant.reviews.v1beta.MerchantReviewsService/DeleteMerchantReview', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMerchantReviewExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->merchantReviewName('[ACCOUNT]', '[NAME]'); - $request = (new DeleteMerchantReviewRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteMerchantReview($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMerchantReviewTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $merchantReviewId = 'merchantReviewId1682589099'; - $dataSource = 'dataSource-1333894576'; - $expectedResponse = new MerchantReview(); - $expectedResponse->setName($name2); - $expectedResponse->setMerchantReviewId($merchantReviewId); - $expectedResponse->setDataSource($dataSource); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->merchantReviewName('[ACCOUNT]', '[NAME]'); - $request = (new GetMerchantReviewRequest()) - ->setName($formattedName); - $response = $gapicClient->getMerchantReview($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.shopping.merchant.reviews.v1beta.MerchantReviewsService/GetMerchantReview', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMerchantReviewExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->merchantReviewName('[ACCOUNT]', '[NAME]'); - $request = (new GetMerchantReviewRequest()) - ->setName($formattedName); - try { - $gapicClient->getMerchantReview($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function insertMerchantReviewTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $merchantReviewId = 'merchantReviewId1682589099'; - $dataSource2 = 'dataSource2-1972430333'; - $expectedResponse = new MerchantReview(); - $expectedResponse->setName($name); - $expectedResponse->setMerchantReviewId($merchantReviewId); - $expectedResponse->setDataSource($dataSource2); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $merchantReview = new MerchantReview(); - $merchantReviewMerchantReviewId = 'merchantReviewMerchantReviewId-1175491621'; - $merchantReview->setMerchantReviewId($merchantReviewMerchantReviewId); - $merchantReviewCustomAttributes = []; - $merchantReview->setCustomAttributes($merchantReviewCustomAttributes); - $dataSource = 'dataSource-1333894576'; - $request = (new InsertMerchantReviewRequest()) - ->setParent($parent) - ->setMerchantReview($merchantReview) - ->setDataSource($dataSource); - $response = $gapicClient->insertMerchantReview($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.shopping.merchant.reviews.v1beta.MerchantReviewsService/InsertMerchantReview', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualRequestObject->getMerchantReview(); - $this->assertProtobufEquals($merchantReview, $actualValue); - $actualValue = $actualRequestObject->getDataSource(); - $this->assertProtobufEquals($dataSource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function insertMerchantReviewExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $merchantReview = new MerchantReview(); - $merchantReviewMerchantReviewId = 'merchantReviewMerchantReviewId-1175491621'; - $merchantReview->setMerchantReviewId($merchantReviewMerchantReviewId); - $merchantReviewCustomAttributes = []; - $merchantReview->setCustomAttributes($merchantReviewCustomAttributes); - $dataSource = 'dataSource-1333894576'; - $request = (new InsertMerchantReviewRequest()) - ->setParent($parent) - ->setMerchantReview($merchantReview) - ->setDataSource($dataSource); - try { - $gapicClient->insertMerchantReview($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMerchantReviewsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $merchantReviewsElement = new MerchantReview(); - $merchantReviews = [ - $merchantReviewsElement, - ]; - $expectedResponse = new ListMerchantReviewsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMerchantReviews($merchantReviews); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $request = (new ListMerchantReviewsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMerchantReviews($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMerchantReviews()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.shopping.merchant.reviews.v1beta.MerchantReviewsService/ListMerchantReviews', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMerchantReviewsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $request = (new ListMerchantReviewsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMerchantReviews($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteMerchantReviewAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->merchantReviewName('[ACCOUNT]', '[NAME]'); - $request = (new DeleteMerchantReviewRequest()) - ->setName($formattedName); - $gapicClient->deleteMerchantReviewAsync($request)->wait(); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.shopping.merchant.reviews.v1beta.MerchantReviewsService/DeleteMerchantReview', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ShoppingMerchantReviews/v1beta/tests/Unit/V1beta/Client/ProductReviewsServiceClientTest.php b/owl-bot-staging/ShoppingMerchantReviews/v1beta/tests/Unit/V1beta/Client/ProductReviewsServiceClientTest.php deleted file mode 100644 index 9d15efef833..00000000000 --- a/owl-bot-staging/ShoppingMerchantReviews/v1beta/tests/Unit/V1beta/Client/ProductReviewsServiceClientTest.php +++ /dev/null @@ -1,378 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ProductReviewsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ProductReviewsServiceClient($options); - } - - /** @test */ - public function deleteProductReviewTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->productReviewName('[ACCOUNT]', '[PRODUCTREVIEW]'); - $request = (new DeleteProductReviewRequest()) - ->setName($formattedName); - $gapicClient->deleteProductReview($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.shopping.merchant.reviews.v1beta.ProductReviewsService/DeleteProductReview', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteProductReviewExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->productReviewName('[ACCOUNT]', '[PRODUCTREVIEW]'); - $request = (new DeleteProductReviewRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteProductReview($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProductReviewTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $productReviewId = 'productReviewId635814930'; - $dataSource = 'dataSource-1333894576'; - $expectedResponse = new ProductReview(); - $expectedResponse->setName($name2); - $expectedResponse->setProductReviewId($productReviewId); - $expectedResponse->setDataSource($dataSource); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->productReviewName('[ACCOUNT]', '[PRODUCTREVIEW]'); - $request = (new GetProductReviewRequest()) - ->setName($formattedName); - $response = $gapicClient->getProductReview($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.shopping.merchant.reviews.v1beta.ProductReviewsService/GetProductReview', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProductReviewExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->productReviewName('[ACCOUNT]', '[PRODUCTREVIEW]'); - $request = (new GetProductReviewRequest()) - ->setName($formattedName); - try { - $gapicClient->getProductReview($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function insertProductReviewTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $productReviewId = 'productReviewId635814930'; - $dataSource2 = 'dataSource2-1972430333'; - $expectedResponse = new ProductReview(); - $expectedResponse->setName($name); - $expectedResponse->setProductReviewId($productReviewId); - $expectedResponse->setDataSource($dataSource2); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $productReview = new ProductReview(); - $productReviewProductReviewId = 'productReviewProductReviewId1743634555'; - $productReview->setProductReviewId($productReviewProductReviewId); - $dataSource = 'dataSource-1333894576'; - $request = (new InsertProductReviewRequest()) - ->setParent($parent) - ->setProductReview($productReview) - ->setDataSource($dataSource); - $response = $gapicClient->insertProductReview($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.shopping.merchant.reviews.v1beta.ProductReviewsService/InsertProductReview', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $actualValue = $actualRequestObject->getProductReview(); - $this->assertProtobufEquals($productReview, $actualValue); - $actualValue = $actualRequestObject->getDataSource(); - $this->assertProtobufEquals($dataSource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function insertProductReviewExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $parent = 'parent-995424086'; - $productReview = new ProductReview(); - $productReviewProductReviewId = 'productReviewProductReviewId1743634555'; - $productReview->setProductReviewId($productReviewProductReviewId); - $dataSource = 'dataSource-1333894576'; - $request = (new InsertProductReviewRequest()) - ->setParent($parent) - ->setProductReview($productReview) - ->setDataSource($dataSource); - try { - $gapicClient->insertProductReview($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProductReviewsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $productReviewsElement = new ProductReview(); - $productReviews = [ - $productReviewsElement, - ]; - $expectedResponse = new ListProductReviewsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProductReviews($productReviews); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $request = (new ListProductReviewsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listProductReviews($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProductReviews()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.shopping.merchant.reviews.v1beta.ProductReviewsService/ListProductReviews', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProductReviewsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accountName('[ACCOUNT]'); - $request = (new ListProductReviewsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listProductReviews($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteProductReviewAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->productReviewName('[ACCOUNT]', '[PRODUCTREVIEW]'); - $request = (new DeleteProductReviewRequest()) - ->setName($formattedName); - $gapicClient->deleteProductReviewAsync($request)->wait(); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.shopping.merchant.reviews.v1beta.ProductReviewsService/DeleteProductReview', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}