From bb90405de4ee54c9132bbe76f372e967ce41eda1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 27 Jul 2023 15:47:05 +0530 Subject: [PATCH] feat: add last_scanned_row_key feature (#6492) PiperOrigin-RevId: 551191182 Source-Link: https://github.com/googleapis/googleapis/commit/51e04baa9eec3bee8b3e237bfd847eb06aa66d72 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4b90e8ead4477eff96c31b9b0fdef36ed975b15f Copy-Tag: eyJwIjoiQmlndGFibGUvLk93bEJvdC55YW1sIiwiaCI6IjRiOTBlOGVhZDQ0NzdlZmY5NmMzMWI5YjBmZGVmMzZlZDk3NWIxNWYifQ== --- Bigtable/metadata/V2/FeatureFlags.php | 7 ++--- Bigtable/src/V2/FeatureFlags.php | 38 +++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/Bigtable/metadata/V2/FeatureFlags.php b/Bigtable/metadata/V2/FeatureFlags.php index 7ebec5bc2d24..5db78438c287 100644 --- a/Bigtable/metadata/V2/FeatureFlags.php +++ b/Bigtable/metadata/V2/FeatureFlags.php @@ -16,11 +16,12 @@ public static function initOnce() { } $pool->internalAddGeneratedFile( ' -Ë -&google/bigtable/v2/feature_flags.protogoogle.bigtable.v2"E +ï +&google/bigtable/v2/feature_flags.protogoogle.bigtable.v2"i FeatureFlags reverse_scans ( -mutate_rows_rate_limit (B½ +mutate_rows_rate_limit (" +last_scanned_row_responses (B½ com.google.bigtable.v2BFeatureFlagsProtoPZ:google.golang.org/genproto/googleapis/bigtable/v2;bigtableªGoogle.Cloud.Bigtable.V2ÊGoogle\\Cloud\\Bigtable\\V2êGoogle::Cloud::Bigtable::V2bproto3' , true); diff --git a/Bigtable/src/V2/FeatureFlags.php b/Bigtable/src/V2/FeatureFlags.php index b920a66f8fce..a39ea054fde5 100644 --- a/Bigtable/src/V2/FeatureFlags.php +++ b/Bigtable/src/V2/FeatureFlags.php @@ -36,6 +36,13 @@ class FeatureFlags extends \Google\Protobuf\Internal\Message * Generated from protobuf field bool mutate_rows_rate_limit = 3; */ private $mutate_rows_rate_limit = false; + /** + * Notify the server that the client supports the last_scanned_row field + * in ReadRowsResponse for long-running sparse scans. + * + * Generated from protobuf field bool last_scanned_row_responses = 4; + */ + private $last_scanned_row_responses = false; /** * Constructor. @@ -49,6 +56,9 @@ class FeatureFlags extends \Google\Protobuf\Internal\Message * @type bool $mutate_rows_rate_limit * Notify the server that the client enables batch write flow control by * requesting RateLimitInfo from MutateRowsResponse. + * @type bool $last_scanned_row_responses + * Notify the server that the client supports the last_scanned_row field + * in ReadRowsResponse for long-running sparse scans. * } */ public function __construct($data = NULL) { @@ -112,5 +122,33 @@ public function setMutateRowsRateLimit($var) return $this; } + /** + * Notify the server that the client supports the last_scanned_row field + * in ReadRowsResponse for long-running sparse scans. + * + * Generated from protobuf field bool last_scanned_row_responses = 4; + * @return bool + */ + public function getLastScannedRowResponses() + { + return $this->last_scanned_row_responses; + } + + /** + * Notify the server that the client supports the last_scanned_row field + * in ReadRowsResponse for long-running sparse scans. + * + * Generated from protobuf field bool last_scanned_row_responses = 4; + * @param bool $var + * @return $this + */ + public function setLastScannedRowResponses($var) + { + GPBUtil::checkBool($var); + $this->last_scanned_row_responses = $var; + + return $this; + } + }