From af657c9b8c3d0113034bd03742161260e446d94c Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Fri, 10 Jan 2025 15:33:17 -0800 Subject: [PATCH] add logic for CheckAndMutateRows --- .../proxy/src/Google/Bigtable/Testproxy/MutateRowsResult.php | 2 +- Bigtable/tests/Conformance/proxy/src/ProxyService.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Bigtable/tests/Conformance/proxy/src/Google/Bigtable/Testproxy/MutateRowsResult.php b/Bigtable/tests/Conformance/proxy/src/Google/Bigtable/Testproxy/MutateRowsResult.php index 704a2fb0d946..6755348e3c4c 100644 --- a/Bigtable/tests/Conformance/proxy/src/Google/Bigtable/Testproxy/MutateRowsResult.php +++ b/Bigtable/tests/Conformance/proxy/src/Google/Bigtable/Testproxy/MutateRowsResult.php @@ -89,7 +89,7 @@ public function setStatus($var) /** * The results corresponding to the failed rows. * - * Generated from protobuf field repeated .google.bigtable.v2.MutateRowsResponse.Entry entries = 2; + * Generated from protobuf field repeated .google.bigtable.v2.MutateRowsResponse.Entry entries = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEntries() diff --git a/Bigtable/tests/Conformance/proxy/src/ProxyService.php b/Bigtable/tests/Conformance/proxy/src/ProxyService.php index db7722afc618..e75e61e2a1f9 100644 --- a/Bigtable/tests/Conformance/proxy/src/ProxyService.php +++ b/Bigtable/tests/Conformance/proxy/src/ProxyService.php @@ -173,7 +173,10 @@ public function BulkMutateRows(GRPC\ContextInterface $ctx, Testproxy\MutateRowsR */ public function CheckAndMutateRow(GRPC\ContextInterface $ctx, Testproxy\CheckAndMutateRowRequest $in): Testproxy\CheckAndMutateRowResult { - return new Testproxy\CheckAndMutateRowResult(); + [$client, $config] = $this->getClientAndConfig($in->getClientId()); + $response = $client->checkAndMutateRows($in->getRequest()); + + return new Testproxy\CheckAndMutateRowResult(['result' => $response]); } /**