diff --git a/Bigtable/metadata/Admin/V2/Instance.php b/Bigtable/metadata/Admin/V2/Instance.php
index 22005ad358e9..51e9f0c248b6 100644
Binary files a/Bigtable/metadata/Admin/V2/Instance.php and b/Bigtable/metadata/Admin/V2/Instance.php differ
diff --git a/Bigtable/src/Admin/V2/AppProfile/MultiClusterRoutingUseAny.php b/Bigtable/src/Admin/V2/AppProfile/MultiClusterRoutingUseAny.php
index a0b957de149a..455a007dbf2b 100644
--- a/Bigtable/src/Admin/V2/AppProfile/MultiClusterRoutingUseAny.php
+++ b/Bigtable/src/Admin/V2/AppProfile/MultiClusterRoutingUseAny.php
@@ -26,6 +26,7 @@ class MultiClusterRoutingUseAny extends \Google\Protobuf\Internal\Message
* Generated from protobuf field repeated string cluster_ids = 1;
*/
private $cluster_ids;
+ protected $affinity;
/**
* Constructor.
@@ -36,6 +37,9 @@ class MultiClusterRoutingUseAny extends \Google\Protobuf\Internal\Message
* @type array|\Google\Protobuf\Internal\RepeatedField $cluster_ids
* The set of clusters to route to. The order is ignored; clusters will be
* tried in order of distance. If left empty, all clusters are eligible.
+ * @type \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny\RowAffinity $row_affinity
+ * Row affinity sticky routing based on the row key of the request.
+ * Requests that span multiple rows are routed non-deterministically.
* }
*/
public function __construct($data = NULL) {
@@ -71,6 +75,47 @@ public function setClusterIds($var)
return $this;
}
+ /**
+ * Row affinity sticky routing based on the row key of the request.
+ * Requests that span multiple rows are routed non-deterministically.
+ *
+ * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity row_affinity = 3;
+ * @return \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny\RowAffinity|null
+ */
+ public function getRowAffinity()
+ {
+ return $this->readOneof(3);
+ }
+
+ public function hasRowAffinity()
+ {
+ return $this->hasOneof(3);
+ }
+
+ /**
+ * Row affinity sticky routing based on the row key of the request.
+ * Requests that span multiple rows are routed non-deterministically.
+ *
+ * Generated from protobuf field .google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity row_affinity = 3;
+ * @param \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny\RowAffinity $var
+ * @return $this
+ */
+ public function setRowAffinity($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Bigtable\Admin\V2\AppProfile\MultiClusterRoutingUseAny\RowAffinity::class);
+ $this->writeOneof(3, $var);
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getAffinity()
+ {
+ return $this->whichOneof("affinity");
+ }
+
}
// Adding a class alias for backwards compatibility with the previous class name.
diff --git a/Bigtable/src/Admin/V2/AppProfile/MultiClusterRoutingUseAny/RowAffinity.php b/Bigtable/src/Admin/V2/AppProfile/MultiClusterRoutingUseAny/RowAffinity.php
new file mode 100644
index 000000000000..f553b0a42fad
--- /dev/null
+++ b/Bigtable/src/Admin/V2/AppProfile/MultiClusterRoutingUseAny/RowAffinity.php
@@ -0,0 +1,44 @@
+google.bigtable.admin.v2.AppProfile.MultiClusterRoutingUseAny.RowAffinity
+ */
+class RowAffinity extends \Google\Protobuf\Internal\Message
+{
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Bigtable\Admin\V2\Instance::initOnce();
+ parent::__construct($data);
+ }
+
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(RowAffinity::class, \Google\Cloud\Bigtable\Admin\V2\AppProfile_MultiClusterRoutingUseAny_RowAffinity::class);
+