From d481c515186cbb45adcf716bb82e3a4c4f357463 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 12 Oct 2022 15:32:08 -0700 Subject: [PATCH] fix: [Dlp] deprecate extra field to avoid confusion (#5525) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: deprecate extra field to avoid confusion PiperOrigin-RevId: 477776089 Source-Link: https://github.com/googleapis/googleapis/commit/57062cd9acb65df8a1bf1293decba380c9fcca13 Source-Link: https://github.com/googleapis/googleapis-gen/commit/99b76b52b138a79277fcac8c46644b815c7a37d7 Copy-Tag: eyJwIjoiRGxwLy5Pd2xCb3QueWFtbCIsImgiOiI5OWI3NmI1MmIxMzhhNzkyNzdmY2FjOGM0NjY0NGI4MTVjN2EzN2Q3In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- Dlp/metadata/V2/Dlp.php | Bin 53387 -> 53391 bytes Dlp/src/V2/InfoTypeSummary.php | 25 +++++++++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/Dlp/metadata/V2/Dlp.php b/Dlp/metadata/V2/Dlp.php index a59ad776340f20d4d68e10dc9d46d3dbe871ab5d..68a88c7772e133b020ffe70a784888093b50b3dd 100644 GIT binary patch delta 50 zcmV-20L}l4p#zVh1F)_H0r9i11R0qDXOqdDMgbs`5S|9int32 estimated_prevalence = 2; + * Generated from protobuf field int32 estimated_prevalence = 2 [deprecated = true]; + * @deprecated */ - private $estimated_prevalence = 0; + protected $estimated_prevalence = 0; /** * Constructor. @@ -38,8 +38,7 @@ class InfoTypeSummary extends \Google\Protobuf\Internal\Message * @type \Google\Cloud\Dlp\V2\InfoType $info_type * The infoType. * @type int $estimated_prevalence - * Approximate percentage of non-null rows that contained data detected by - * this infotype. + * Not populated for predicted infotypes. * } */ public function __construct($data = NULL) { @@ -84,27 +83,29 @@ public function setInfoType($var) } /** - * Approximate percentage of non-null rows that contained data detected by - * this infotype. + * Not populated for predicted infotypes. * - * Generated from protobuf field int32 estimated_prevalence = 2; + * Generated from protobuf field int32 estimated_prevalence = 2 [deprecated = true]; * @return int + * @deprecated */ public function getEstimatedPrevalence() { + @trigger_error('estimated_prevalence is deprecated.', E_USER_DEPRECATED); return $this->estimated_prevalence; } /** - * Approximate percentage of non-null rows that contained data detected by - * this infotype. + * Not populated for predicted infotypes. * - * Generated from protobuf field int32 estimated_prevalence = 2; + * Generated from protobuf field int32 estimated_prevalence = 2 [deprecated = true]; * @param int $var * @return $this + * @deprecated */ public function setEstimatedPrevalence($var) { + @trigger_error('estimated_prevalence is deprecated.', E_USER_DEPRECATED); GPBUtil::checkInt32($var); $this->estimated_prevalence = $var;