From b1dcfc615fef5fcbb316d0fa5eb8d41e79ed1565 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Wed, 30 Oct 2024 17:19:03 -0400
Subject: [PATCH] feat: Add feature flags proto for Direct Access (#7770)
PiperOrigin-RevId: 690605789
Source-Link: https://github.com/googleapis/googleapis/commit/ab2ad69473e17b813f5555a44b89691f67b66297
Source-Link: https://github.com/googleapis/googleapis-gen/commit/6d1f0a73aa79fe57dffdd95087622d4820499fd5
Copy-Tag: eyJwIjoiQmlndGFibGUvLk93bEJvdC55YW1sIiwiaCI6IjZkMWYwYTczYWE3OWZlNTdkZmZkZDk1MDg3NjIyZDQ4MjA0OTlmZDUifQ==
---
Bigtable/metadata/V2/FeatureFlags.php | 9 ++--
Bigtable/src/V2/FeatureFlags.php | 68 +++++++++++++++++++++++++++
2 files changed, 74 insertions(+), 3 deletions(-)
diff --git a/Bigtable/metadata/V2/FeatureFlags.php b/Bigtable/metadata/V2/FeatureFlags.php
index 955fbb3fe5e2..fd70d1524270 100644
--- a/Bigtable/metadata/V2/FeatureFlags.php
+++ b/Bigtable/metadata/V2/FeatureFlags.php
@@ -16,8 +16,8 @@ public static function initOnce() {
}
$pool->internalAddGeneratedFile(
'
-à
-&google/bigtable/v2/feature_flags.protogoogle.bigtable.v2"Û
+£
+&google/bigtable/v2/feature_flags.protogoogle.bigtable.v2"ž
FeatureFlags
reverse_scans (
mutate_rows_rate_limit (
@@ -26,7 +26,10 @@ public static function initOnce() {
routing_cookie (
retry_info (#
-client_side_metrics_enabled (B»
+client_side_metrics_enabled (
+traffic_director_enabled (
+direct_access_requested
+ (B»
com.google.bigtable.v2BFeatureFlagsProtoPZ8cloud.google.com/go/bigtable/apiv2/bigtablepb;bigtablepbª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 06504aadd20c..51c17b64d53f 100644
--- a/Bigtable/src/V2/FeatureFlags.php
+++ b/Bigtable/src/V2/FeatureFlags.php
@@ -72,6 +72,18 @@ class FeatureFlags extends \Google\Protobuf\Internal\Message
* Generated from protobuf field bool client_side_metrics_enabled = 8;
*/
protected $client_side_metrics_enabled = false;
+ /**
+ * Notify the server that the client using Traffic Director endpoint.
+ *
+ * Generated from protobuf field bool traffic_director_enabled = 9;
+ */
+ protected $traffic_director_enabled = false;
+ /**
+ * Notify the server that the client explicitly opted in for Direct Access.
+ *
+ * Generated from protobuf field bool direct_access_requested = 10;
+ */
+ protected $direct_access_requested = false;
/**
* Constructor.
@@ -101,6 +113,10 @@ class FeatureFlags extends \Google\Protobuf\Internal\Message
* durations to retry requests with.
* @type bool $client_side_metrics_enabled
* Notify the server that the client has client side metrics enabled.
+ * @type bool $traffic_director_enabled
+ * Notify the server that the client using Traffic Director endpoint.
+ * @type bool $direct_access_requested
+ * Notify the server that the client explicitly opted in for Direct Access.
* }
*/
public function __construct($data = NULL) {
@@ -306,5 +322,57 @@ public function setClientSideMetricsEnabled($var)
return $this;
}
+ /**
+ * Notify the server that the client using Traffic Director endpoint.
+ *
+ * Generated from protobuf field bool traffic_director_enabled = 9;
+ * @return bool
+ */
+ public function getTrafficDirectorEnabled()
+ {
+ return $this->traffic_director_enabled;
+ }
+
+ /**
+ * Notify the server that the client using Traffic Director endpoint.
+ *
+ * Generated from protobuf field bool traffic_director_enabled = 9;
+ * @param bool $var
+ * @return $this
+ */
+ public function setTrafficDirectorEnabled($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->traffic_director_enabled = $var;
+
+ return $this;
+ }
+
+ /**
+ * Notify the server that the client explicitly opted in for Direct Access.
+ *
+ * Generated from protobuf field bool direct_access_requested = 10;
+ * @return bool
+ */
+ public function getDirectAccessRequested()
+ {
+ return $this->direct_access_requested;
+ }
+
+ /**
+ * Notify the server that the client explicitly opted in for Direct Access.
+ *
+ * Generated from protobuf field bool direct_access_requested = 10;
+ * @param bool $var
+ * @return $this
+ */
+ public function setDirectAccessRequested($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->direct_access_requested = $var;
+
+ return $this;
+ }
+
}