From a42dc4b59590f8fa8ae9106fe884015b44404134 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Sun, 23 Jul 2023 18:46:28 +0530
Subject: [PATCH] feat: Add precision and scale to MysqlColumn (#6479)
- Precision and scale are now supported for MySQL columns.
PiperOrigin-RevId: 550322658
Source-Link: https://github.com/googleapis/googleapis/commit/07457fcce42d9521375a2e0bd5dcfb1785279955
Source-Link: https://github.com/googleapis/googleapis-gen/commit/cbb318f145db680fbc382ba02c20de7a47b594fc
Copy-Tag: eyJwIjoiRGF0YXN0cmVhbS8uT3dsQm90LnlhbWwiLCJoIjoiY2JiMzE4ZjE0NWRiNjgwZmJjMzgyYmEwMmMyMGRlN2E0N2I1OTRmYyJ9
---
.../metadata/V1/DatastreamResources.php | Bin 12965 -> 12999 bytes
Datastream/src/V1/MysqlColumn.php | 68 ++++++++++++++++++
2 files changed, 68 insertions(+)
diff --git a/Datastream/metadata/V1/DatastreamResources.php b/Datastream/metadata/V1/DatastreamResources.php
index 44dcefb3f1f2e0c1e1efc82220f800a7baac59cc..d569603d15c077d24ab031aad6c4318904168113 100644
GIT binary patch
delta 57
zcmZ3QdOUT*Jtn4U@tYqoS%@-jn=C0YRZd8di?g68H9505Ge1v)LxE9)Rfw01wKzF3
NCsl%T^D2qok^nxJ5*`2m
delta 26
icmX?}x-@meJtn3vaho47S%@-DnJg(Wb@K&@?~(wd{0o)<
diff --git a/Datastream/src/V1/MysqlColumn.php b/Datastream/src/V1/MysqlColumn.php
index 9cbc0fc80123..3207d73d75ee 100644
--- a/Datastream/src/V1/MysqlColumn.php
+++ b/Datastream/src/V1/MysqlColumn.php
@@ -58,6 +58,18 @@ class MysqlColumn extends \Google\Protobuf\Internal\Message
* Generated from protobuf field int32 ordinal_position = 7;
*/
private $ordinal_position = 0;
+ /**
+ * Column precision.
+ *
+ * Generated from protobuf field int32 precision = 8;
+ */
+ private $precision = 0;
+ /**
+ * Column scale.
+ *
+ * Generated from protobuf field int32 scale = 9;
+ */
+ private $scale = 0;
/**
* Constructor.
@@ -80,6 +92,10 @@ class MysqlColumn extends \Google\Protobuf\Internal\Message
* Whether or not the column can accept a null value.
* @type int $ordinal_position
* The ordinal position of the column in the table.
+ * @type int $precision
+ * Column precision.
+ * @type int $scale
+ * Column scale.
* }
*/
public function __construct($data = NULL) {
@@ -271,5 +287,57 @@ public function setOrdinalPosition($var)
return $this;
}
+ /**
+ * Column precision.
+ *
+ * Generated from protobuf field int32 precision = 8;
+ * @return int
+ */
+ public function getPrecision()
+ {
+ return $this->precision;
+ }
+
+ /**
+ * Column precision.
+ *
+ * Generated from protobuf field int32 precision = 8;
+ * @param int $var
+ * @return $this
+ */
+ public function setPrecision($var)
+ {
+ GPBUtil::checkInt32($var);
+ $this->precision = $var;
+
+ return $this;
+ }
+
+ /**
+ * Column scale.
+ *
+ * Generated from protobuf field int32 scale = 9;
+ * @return int
+ */
+ public function getScale()
+ {
+ return $this->scale;
+ }
+
+ /**
+ * Column scale.
+ *
+ * Generated from protobuf field int32 scale = 9;
+ * @param int $var
+ * @return $this
+ */
+ public function setScale($var)
+ {
+ GPBUtil::checkInt32($var);
+ $this->scale = $var;
+
+ return $this;
+ }
+
}