diff --git a/Dataplex/metadata/V1/DataQuality.php b/Dataplex/metadata/V1/DataQuality.php index d0ba14beaf9d..96d660c7bdbd 100644 Binary files a/Dataplex/metadata/V1/DataQuality.php and b/Dataplex/metadata/V1/DataQuality.php differ diff --git a/Dataplex/src/V1/DataQualityColumnResult.php b/Dataplex/src/V1/DataQualityColumnResult.php new file mode 100644 index 000000000000..f5ba17c1a185 --- /dev/null +++ b/Dataplex/src/V1/DataQualityColumnResult.php @@ -0,0 +1,124 @@ +google.cloud.dataplex.v1.DataQualityColumnResult + */ +class DataQualityColumnResult extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The column specified in the DataQualityRule. + * + * Generated from protobuf field string column = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $column = ''; + /** + * Output only. The column-level data quality score for this data scan job if + * and only if the 'column' field is set. + * The score ranges between between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $score = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $column + * Output only. The column specified in the DataQualityRule. + * @type float $score + * Output only. The column-level data quality score for this data scan job if + * and only if the 'column' field is set. + * The score ranges between between [0, 100] (up to two decimal + * points). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Dataplex\V1\DataQuality::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The column specified in the DataQualityRule. + * + * Generated from protobuf field string column = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getColumn() + { + return $this->column; + } + + /** + * Output only. The column specified in the DataQualityRule. + * + * Generated from protobuf field string column = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setColumn($var) + { + GPBUtil::checkString($var, True); + $this->column = $var; + + return $this; + } + + /** + * Output only. The column-level data quality score for this data scan job if + * and only if the 'column' field is set. + * The score ranges between between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getScore() + { + return isset($this->score) ? $this->score : 0.0; + } + + public function hasScore() + { + return isset($this->score); + } + + public function clearScore() + { + unset($this->score); + } + + /** + * Output only. The column-level data quality score for this data scan job if + * and only if the 'column' field is set. + * The score ranges between between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field optional float score = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkFloat($var); + $this->score = $var; + + return $this; + } + +} + diff --git a/Dataplex/src/V1/DataQualityDimensionResult.php b/Dataplex/src/V1/DataQualityDimensionResult.php index 2b46cd07c939..4cdc351a4c8a 100644 --- a/Dataplex/src/V1/DataQualityDimensionResult.php +++ b/Dataplex/src/V1/DataQualityDimensionResult.php @@ -28,6 +28,15 @@ class DataQualityDimensionResult extends \Google\Protobuf\Internal\Message * Generated from protobuf field bool passed = 3; */ private $passed = false; + /** + * Output only. The dimension-level data quality score for this data scan job + * if and only if the 'dimension' field is set. + * The score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field optional float score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $score = null; /** * Constructor. @@ -39,6 +48,11 @@ class DataQualityDimensionResult extends \Google\Protobuf\Internal\Message * Output only. The dimension config specified in the DataQualitySpec, as is. * @type bool $passed * Whether the dimension passed or failed. + * @type float $score + * Output only. The dimension-level data quality score for this data scan job + * if and only if the 'dimension' field is set. + * The score ranges between [0, 100] (up to two decimal + * points). * } */ public function __construct($data = NULL) { @@ -108,5 +122,47 @@ public function setPassed($var) return $this; } + /** + * Output only. The dimension-level data quality score for this data scan job + * if and only if the 'dimension' field is set. + * The score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field optional float score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getScore() + { + return isset($this->score) ? $this->score : 0.0; + } + + public function hasScore() + { + return isset($this->score); + } + + public function clearScore() + { + unset($this->score); + } + + /** + * Output only. The dimension-level data quality score for this data scan job + * if and only if the 'dimension' field is set. + * The score ranges between [0, 100] (up to two decimal + * points). + * + * Generated from protobuf field optional float score = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkFloat($var); + $this->score = $var; + + return $this; + } + } diff --git a/Dataplex/src/V1/DataQualityResult.php b/Dataplex/src/V1/DataQualityResult.php index 878b34437e10..1ec7cb1cff3c 100644 --- a/Dataplex/src/V1/DataQualityResult.php +++ b/Dataplex/src/V1/DataQualityResult.php @@ -21,6 +21,13 @@ class DataQualityResult extends \Google\Protobuf\Internal\Message * Generated from protobuf field bool passed = 5; */ private $passed = false; + /** + * Output only. The overall data quality score. + * The score ranges between [0, 100] (up to two decimal points). + * + * Generated from protobuf field optional float score = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $score = null; /** * A list of results at the dimension level. * A dimension will have a corresponding `DataQualityDimensionResult` if and @@ -29,6 +36,14 @@ class DataQualityResult extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityDimensionResult dimensions = 2; */ private $dimensions; + /** + * Output only. A list of results at the column level. + * A column will have a corresponding `DataQualityColumnResult` if and only if + * there is at least one rule with the 'column' field set to it. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityColumnResult columns = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $columns; /** * A list of all the rules in a job, and their results. * @@ -62,10 +77,17 @@ class DataQualityResult extends \Google\Protobuf\Internal\Message * * @type bool $passed * Overall data quality result -- `true` if all rules passed. + * @type float $score + * Output only. The overall data quality score. + * The score ranges between [0, 100] (up to two decimal points). * @type array<\Google\Cloud\Dataplex\V1\DataQualityDimensionResult>|\Google\Protobuf\Internal\RepeatedField $dimensions * A list of results at the dimension level. * A dimension will have a corresponding `DataQualityDimensionResult` if and * only if there is at least one rule with the 'dimension' field set to it. + * @type array<\Google\Cloud\Dataplex\V1\DataQualityColumnResult>|\Google\Protobuf\Internal\RepeatedField $columns + * Output only. A list of results at the column level. + * A column will have a corresponding `DataQualityColumnResult` if and only if + * there is at least one rule with the 'column' field set to it. * @type array<\Google\Cloud\Dataplex\V1\DataQualityRuleResult>|\Google\Protobuf\Internal\RepeatedField $rules * A list of all the rules in a job, and their results. * @type int|string $row_count @@ -107,6 +129,44 @@ public function setPassed($var) return $this; } + /** + * Output only. The overall data quality score. + * The score ranges between [0, 100] (up to two decimal points). + * + * Generated from protobuf field optional float score = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return float + */ + public function getScore() + { + return isset($this->score) ? $this->score : 0.0; + } + + public function hasScore() + { + return isset($this->score); + } + + public function clearScore() + { + unset($this->score); + } + + /** + * Output only. The overall data quality score. + * The score ranges between [0, 100] (up to two decimal points). + * + * Generated from protobuf field optional float score = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param float $var + * @return $this + */ + public function setScore($var) + { + GPBUtil::checkFloat($var); + $this->score = $var; + + return $this; + } + /** * A list of results at the dimension level. * A dimension will have a corresponding `DataQualityDimensionResult` if and @@ -137,6 +197,36 @@ public function setDimensions($var) return $this; } + /** + * Output only. A list of results at the column level. + * A column will have a corresponding `DataQualityColumnResult` if and only if + * there is at least one rule with the 'column' field set to it. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityColumnResult columns = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getColumns() + { + return $this->columns; + } + + /** + * Output only. A list of results at the column level. + * A column will have a corresponding `DataQualityColumnResult` if and only if + * there is at least one rule with the 'column' field set to it. + * + * Generated from protobuf field repeated .google.cloud.dataplex.v1.DataQualityColumnResult columns = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param array<\Google\Cloud\Dataplex\V1\DataQualityColumnResult>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataplex\V1\DataQualityColumnResult::class); + $this->columns = $arr; + + return $this; + } + /** * A list of all the rules in a job, and their results. *