diff --git a/Dlp/metadata/V2/Dlp.php b/Dlp/metadata/V2/Dlp.php
index 84e474518cc8..b37f8412b73f 100644
Binary files a/Dlp/metadata/V2/Dlp.php and b/Dlp/metadata/V2/Dlp.php differ
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php
index ce4b5d9e7b34..d052e08ae603 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php
@@ -28,7 +28,7 @@ class CategoricalStatsResult extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket[]|\Google\Protobuf\Internal\RepeatedField $value_frequency_histogram_buckets
+ * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $value_frequency_histogram_buckets
* Histogram of value frequencies in the column.
* }
*/
@@ -52,7 +52,7 @@ public function getValueFrequencyHistogramBuckets()
* Histogram of value frequencies in the column.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5;
- * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setValueFrequencyHistogramBuckets($var)
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php
index 081a40432bef..3e0ac97d76d5 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php
@@ -59,7 +59,7 @@ class CategoricalStatsHistogramBucket extends \Google\Protobuf\Internal\Message
* Upper bound on the value frequency of the values in this bucket.
* @type int|string $bucket_size
* Total number of values in this bucket.
- * @type \Google\Cloud\Dlp\V2\ValueFrequency[]|\Google\Protobuf\Internal\RepeatedField $bucket_values
+ * @type array<\Google\Cloud\Dlp\V2\ValueFrequency>|\Google\Protobuf\Internal\RepeatedField $bucket_values
* Sample of value frequencies in this bucket. The total number of
* values returned per bucket is capped at 20.
* @type int|string $bucket_value_count
@@ -166,7 +166,7 @@ public function getBucketValues()
* values returned per bucket is capped at 20.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency bucket_values = 4;
- * @param \Google\Cloud\Dlp\V2\ValueFrequency[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\ValueFrequency>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setBucketValues($var)
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php
index 880d3a1e513a..4ac13f1966a8 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php
@@ -36,7 +36,7 @@ class DeltaPresenceEstimationResult extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket[]|\Google\Protobuf\Internal\RepeatedField $delta_presence_estimation_histogram
+ * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $delta_presence_estimation_histogram
* The intervals [min_probability, max_probability) do not overlap. If a
* value doesn't correspond to any such interval, the associated frequency
* is zero. For example, the following records:
@@ -81,7 +81,7 @@ public function getDeltaPresenceEstimationHistogram()
* nor larger or equal to 0.4.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket delta_presence_estimation_histogram = 1;
- * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setDeltaPresenceEstimationHistogram($var)
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php
index 3c2de064a6b4..f06b6293a814 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php
@@ -67,7 +67,7 @@ class DeltaPresenceEstimationHistogramBucket extends \Google\Protobuf\Internal\M
* Always greater than or equal to min_probability.
* @type int|string $bucket_size
* Number of records within these probability bounds.
- * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues[]|\Google\Protobuf\Internal\RepeatedField $bucket_values
+ * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues>|\Google\Protobuf\Internal\RepeatedField $bucket_values
* Sample of quasi-identifier tuple values in this bucket. The total
* number of classes returned per bucket is capped at 20.
* @type int|string $bucket_value_count
@@ -174,7 +174,7 @@ public function getBucketValues()
* number of classes returned per bucket is capped at 20.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues bucket_values = 6;
- * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setBucketValues($var)
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php
index 3a1bface8f83..d0dd8663d933 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php
@@ -41,7 +41,7 @@ class DeltaPresenceEstimationQuasiIdValues extends \Google\Protobuf\Internal\Mes
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\Value[]|\Google\Protobuf\Internal\RepeatedField $quasi_ids_values
+ * @type array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $quasi_ids_values
* The quasi-identifier values.
* @type float $estimated_probability
* The estimated probability that a given individual sharing these
@@ -74,7 +74,7 @@ public function getQuasiIdsValues()
* The quasi-identifier values.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1;
- * @param \Google\Cloud\Dlp\V2\Value[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setQuasiIdsValues($var)
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php
index bd051650ca8a..3bdc61e513dc 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php
@@ -28,7 +28,7 @@ class KAnonymityResult extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket[]|\Google\Protobuf\Internal\RepeatedField $equivalence_class_histogram_buckets
+ * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $equivalence_class_histogram_buckets
* Histogram of k-anonymity equivalence classes.
* }
*/
@@ -52,7 +52,7 @@ public function getEquivalenceClassHistogramBuckets()
* Histogram of k-anonymity equivalence classes.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket equivalence_class_histogram_buckets = 5;
- * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setEquivalenceClassHistogramBuckets($var)
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php
index 26f89182012e..0a2f013c647c 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php
@@ -37,7 +37,7 @@ class KAnonymityEquivalenceClass extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\Value[]|\Google\Protobuf\Internal\RepeatedField $quasi_ids_values
+ * @type array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $quasi_ids_values
* Set of values defining the equivalence class. One value per
* quasi-identifier column in the original KAnonymity metric message.
* The order is always the same as the original request.
@@ -70,7 +70,7 @@ public function getQuasiIdsValues()
* The order is always the same as the original request.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1;
- * @param \Google\Cloud\Dlp\V2\Value[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setQuasiIdsValues($var)
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php
index b63b94584690..5e323ad43cac 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php
@@ -59,7 +59,7 @@ class KAnonymityHistogramBucket extends \Google\Protobuf\Internal\Message
* Upper bound on the size of the equivalence classes in this bucket.
* @type int|string $bucket_size
* Total number of equivalence classes in this bucket.
- * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass[]|\Google\Protobuf\Internal\RepeatedField $bucket_values
+ * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass>|\Google\Protobuf\Internal\RepeatedField $bucket_values
* Sample of equivalence classes in this bucket. The total number of
* classes returned per bucket is capped at 20.
* @type int|string $bucket_value_count
@@ -166,7 +166,7 @@ public function getBucketValues()
* classes returned per bucket is capped at 20.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass bucket_values = 4;
- * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setBucketValues($var)
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php
index 33ed72466801..a100b0ca2d17 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php
@@ -36,7 +36,7 @@ class KMapEstimationResult extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket[]|\Google\Protobuf\Internal\RepeatedField $k_map_estimation_histogram
+ * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $k_map_estimation_histogram
* The intervals [min_anonymity, max_anonymity] do not overlap. If a value
* doesn't correspond to any such interval, the associated frequency is
* zero. For example, the following records:
@@ -81,7 +81,7 @@ public function getKMapEstimationHistogram()
* larger than 10.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket k_map_estimation_histogram = 1;
- * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setKMapEstimationHistogram($var)
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php
index 4916145ed22f..d67417488f0d 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php
@@ -66,7 +66,7 @@ class KMapEstimationHistogramBucket extends \Google\Protobuf\Internal\Message
* Always greater than or equal to min_anonymity.
* @type int|string $bucket_size
* Number of records within these anonymity bounds.
- * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues[]|\Google\Protobuf\Internal\RepeatedField $bucket_values
+ * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues>|\Google\Protobuf\Internal\RepeatedField $bucket_values
* Sample of quasi-identifier tuple values in this bucket. The total
* number of classes returned per bucket is capped at 20.
* @type int|string $bucket_value_count
@@ -173,7 +173,7 @@ public function getBucketValues()
* number of classes returned per bucket is capped at 20.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues bucket_values = 6;
- * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setBucketValues($var)
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php
index 8795593f5718..4a5a7daa2ffb 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php
@@ -34,7 +34,7 @@ class KMapEstimationQuasiIdValues extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\Value[]|\Google\Protobuf\Internal\RepeatedField $quasi_ids_values
+ * @type array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $quasi_ids_values
* The quasi-identifier values.
* @type int|string $estimated_anonymity
* The estimated anonymity for these quasi-identifier values.
@@ -60,7 +60,7 @@ public function getQuasiIdsValues()
* The quasi-identifier values.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1;
- * @param \Google\Cloud\Dlp\V2\Value[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setQuasiIdsValues($var)
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php
index 3fecc73ad242..eb7cd5fd1392 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php
@@ -28,7 +28,7 @@ class LDiversityResult extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket[]|\Google\Protobuf\Internal\RepeatedField $sensitive_value_frequency_histogram_buckets
+ * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $sensitive_value_frequency_histogram_buckets
* Histogram of l-diversity equivalence class sensitive value frequencies.
* }
*/
@@ -52,7 +52,7 @@ public function getSensitiveValueFrequencyHistogramBuckets()
* Histogram of l-diversity equivalence class sensitive value frequencies.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket sensitive_value_frequency_histogram_buckets = 5;
- * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setSensitiveValueFrequencyHistogramBuckets($var)
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php
index 54bf3a0a0b27..147801dd105e 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php
@@ -47,14 +47,14 @@ class LDiversityEquivalenceClass extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\Value[]|\Google\Protobuf\Internal\RepeatedField $quasi_ids_values
+ * @type array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $quasi_ids_values
* Quasi-identifier values defining the k-anonymity equivalence
* class. The order is always the same as the original request.
* @type int|string $equivalence_class_size
* Size of the k-anonymity equivalence class.
* @type int|string $num_distinct_sensitive_values
* Number of distinct sensitive values in this equivalence class.
- * @type \Google\Cloud\Dlp\V2\ValueFrequency[]|\Google\Protobuf\Internal\RepeatedField $top_sensitive_values
+ * @type array<\Google\Cloud\Dlp\V2\ValueFrequency>|\Google\Protobuf\Internal\RepeatedField $top_sensitive_values
* Estimated frequencies of top sensitive values.
* }
*/
@@ -80,7 +80,7 @@ public function getQuasiIdsValues()
* class. The order is always the same as the original request.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1;
- * @param \Google\Cloud\Dlp\V2\Value[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setQuasiIdsValues($var)
@@ -158,7 +158,7 @@ public function getTopSensitiveValues()
* Estimated frequencies of top sensitive values.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency top_sensitive_values = 4;
- * @param \Google\Cloud\Dlp\V2\ValueFrequency[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\ValueFrequency>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setTopSensitiveValues($var)
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php
index 8b21e48d4d18..4667cd94886d 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php
@@ -63,7 +63,7 @@ class LDiversityHistogramBucket extends \Google\Protobuf\Internal\Message
* classes in this bucket.
* @type int|string $bucket_size
* Total number of equivalence classes in this bucket.
- * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass[]|\Google\Protobuf\Internal\RepeatedField $bucket_values
+ * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass>|\Google\Protobuf\Internal\RepeatedField $bucket_values
* Sample of equivalence classes in this bucket. The total number of
* classes returned per bucket is capped at 20.
* @type int|string $bucket_value_count
@@ -174,7 +174,7 @@ public function getBucketValues()
* classes returned per bucket is capped at 20.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass bucket_values = 4;
- * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setBucketValues($var)
diff --git a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php
index 9409296fa4c4..1295468d3dbf 100644
--- a/Dlp/src/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php
+++ b/Dlp/src/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php
@@ -45,7 +45,7 @@ class NumericalStatsResult extends \Google\Protobuf\Internal\Message
* Minimum value appearing in the column.
* @type \Google\Cloud\Dlp\V2\Value $max_value
* Maximum value appearing in the column.
- * @type \Google\Cloud\Dlp\V2\Value[]|\Google\Protobuf\Internal\RepeatedField $quantile_values
+ * @type array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $quantile_values
* List of 99 values that partition the set of field values into 100 equal
* sized buckets.
* }
@@ -144,7 +144,7 @@ public function getQuantileValues()
* sized buckets.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.Value quantile_values = 4;
- * @param \Google\Cloud\Dlp\V2\Value[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setQuantileValues($var)
diff --git a/Dlp/src/V2/BigQueryOptions.php b/Dlp/src/V2/BigQueryOptions.php
index 4632ffc31d50..b00eb3922613 100644
--- a/Dlp/src/V2/BigQueryOptions.php
+++ b/Dlp/src/V2/BigQueryOptions.php
@@ -76,7 +76,7 @@ class BigQueryOptions extends \Google\Protobuf\Internal\Message
*
* @type \Google\Cloud\Dlp\V2\BigQueryTable $table_reference
* Complete BigQuery table reference.
- * @type \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $identifying_fields
+ * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $identifying_fields
* Table fields that may uniquely identify a row within the table. When
* `actions.saveFindings.outputConfig.table` is specified, the values of
* columns specified here are available in the output table under
@@ -94,10 +94,10 @@ class BigQueryOptions extends \Google\Protobuf\Internal\Message
* rows_limit_percent can be specified. Cannot be used in conjunction with
* TimespanConfig.
* @type int $sample_method
- * @type \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $excluded_fields
+ * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $excluded_fields
* References to fields excluded from scanning. This allows you to skip
* inspection of entire columns which you know have no findings.
- * @type \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $included_fields
+ * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $included_fields
* Limit scanning only to these fields.
* }
*/
@@ -165,7 +165,7 @@ public function getIdentifyingFields()
* fields such as `person.birthdate.year` are allowed.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2;
- * @param \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setIdentifyingFields($var)
@@ -281,7 +281,7 @@ public function getExcludedFields()
* inspection of entire columns which you know have no findings.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId excluded_fields = 5;
- * @param \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setExcludedFields($var)
@@ -307,7 +307,7 @@ public function getIncludedFields()
* Limit scanning only to these fields.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId included_fields = 7;
- * @param \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setIncludedFields($var)
diff --git a/Dlp/src/V2/BucketingConfig.php b/Dlp/src/V2/BucketingConfig.php
index 040f7c5b13fe..4ccd137f819b 100644
--- a/Dlp/src/V2/BucketingConfig.php
+++ b/Dlp/src/V2/BucketingConfig.php
@@ -36,7 +36,7 @@ class BucketingConfig extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\BucketingConfig\Bucket[]|\Google\Protobuf\Internal\RepeatedField $buckets
+ * @type array<\Google\Cloud\Dlp\V2\BucketingConfig\Bucket>|\Google\Protobuf\Internal\RepeatedField $buckets
* Set of buckets. Ranges must be non-overlapping.
* }
*/
@@ -60,7 +60,7 @@ public function getBuckets()
* Set of buckets. Ranges must be non-overlapping.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1;
- * @param \Google\Cloud\Dlp\V2\BucketingConfig\Bucket[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\BucketingConfig\Bucket>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setBuckets($var)
diff --git a/Dlp/src/V2/CharacterMaskConfig.php b/Dlp/src/V2/CharacterMaskConfig.php
index bd80e25e4f2e..97545f5e4849 100644
--- a/Dlp/src/V2/CharacterMaskConfig.php
+++ b/Dlp/src/V2/CharacterMaskConfig.php
@@ -76,7 +76,7 @@ class CharacterMaskConfig extends \Google\Protobuf\Internal\Message
* input string `1234-5678-9012-3456` is masked as `00000000000000-3456`.
* If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order`
* is `true`, then the string `12345` is masked as `12***`.
- * @type \Google\Cloud\Dlp\V2\CharsToIgnore[]|\Google\Protobuf\Internal\RepeatedField $characters_to_ignore
+ * @type array<\Google\Cloud\Dlp\V2\CharsToIgnore>|\Google\Protobuf\Internal\RepeatedField $characters_to_ignore
* When masking a string, items in this list will be skipped when replacing
* characters. For example, if the input string is `555-555-5555` and you
* instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP
@@ -203,7 +203,7 @@ public function getCharactersToIgnore()
* returns `***-**5-5555`.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.CharsToIgnore characters_to_ignore = 4;
- * @param \Google\Cloud\Dlp\V2\CharsToIgnore[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\CharsToIgnore>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setCharactersToIgnore($var)
diff --git a/Dlp/src/V2/CloudStorageOptions.php b/Dlp/src/V2/CloudStorageOptions.php
index 6928ba2d8957..dec087e54f26 100644
--- a/Dlp/src/V2/CloudStorageOptions.php
+++ b/Dlp/src/V2/CloudStorageOptions.php
@@ -85,7 +85,7 @@ class CloudStorageOptions extends \Google\Protobuf\Internal\Message
* inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one
* of bytes_limit_per_file and bytes_limit_per_file_percent can be specified.
* Cannot be set if de-identification is requested.
- * @type int[]|\Google\Protobuf\Internal\RepeatedField $file_types
+ * @type array|\Google\Protobuf\Internal\RepeatedField $file_types
* List of file type groups to include in the scan.
* If empty, all files are scanned and available data format processors
* are applied. In addition, the binary content of the selected files
@@ -234,7 +234,7 @@ public function getFileTypes()
* Image inspection is restricted to 'global', 'us', 'asia', and 'europe'.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types = 5;
- * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setFileTypes($var)
diff --git a/Dlp/src/V2/CloudStorageRegexFileSet.php b/Dlp/src/V2/CloudStorageRegexFileSet.php
index 10d2c4357b28..ccf99aa722e6 100644
--- a/Dlp/src/V2/CloudStorageRegexFileSet.php
+++ b/Dlp/src/V2/CloudStorageRegexFileSet.php
@@ -79,7 +79,7 @@ class CloudStorageRegexFileSet extends \Google\Protobuf\Internal\Message
*
* @type string $bucket_name
* The name of a Cloud Storage bucket. Required.
- * @type string[]|\Google\Protobuf\Internal\RepeatedField $include_regex
+ * @type array|\Google\Protobuf\Internal\RepeatedField $include_regex
* A list of regular expressions matching file paths to include. All files in
* the bucket that match at least one of these regular expressions will be
* included in the set of files, except for those that also match an item in
@@ -88,7 +88,7 @@ class CloudStorageRegexFileSet extends \Google\Protobuf\Internal\Message
* Regular expressions use RE2
* [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found
* under the google/re2 repository on GitHub.
- * @type string[]|\Google\Protobuf\Internal\RepeatedField $exclude_regex
+ * @type array|\Google\Protobuf\Internal\RepeatedField $exclude_regex
* A list of regular expressions matching file paths to exclude. All files in
* the bucket that match at least one of these regular expressions will be
* excluded from the scan.
@@ -157,7 +157,7 @@ public function getIncludeRegex()
* under the google/re2 repository on GitHub.
*
* Generated from protobuf field repeated string include_regex = 2;
- * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setIncludeRegex($var)
@@ -193,7 +193,7 @@ public function getExcludeRegex()
* under the google/re2 repository on GitHub.
*
* Generated from protobuf field repeated string exclude_regex = 3;
- * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setExcludeRegex($var)
diff --git a/Dlp/src/V2/CustomInfoType.php b/Dlp/src/V2/CustomInfoType.php
index 93e28b9de055..c4f233ccbaf4 100644
--- a/Dlp/src/V2/CustomInfoType.php
+++ b/Dlp/src/V2/CustomInfoType.php
@@ -79,7 +79,7 @@ class CustomInfoType extends \Google\Protobuf\Internal\Message
* @type \Google\Cloud\Dlp\V2\StoredType $stored_type
* Load an existing `StoredInfoType` resource for use in
* `InspectDataSource`. Not currently supported in `InspectContent`.
- * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule[]|\Google\Protobuf\Internal\RepeatedField $detection_rules
+ * @type array<\Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule>|\Google\Protobuf\Internal\RepeatedField $detection_rules
* Set of detection rules to apply to all findings of this CustomInfoType.
* Rules are applied in order that they are specified. Not supported for the
* `surrogate_type` CustomInfoType.
@@ -316,7 +316,7 @@ public function getDetectionRules()
* `surrogate_type` CustomInfoType.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7;
- * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setDetectionRules($var)
diff --git a/Dlp/src/V2/CustomInfoType/DetectionRule/HotwordRule.php b/Dlp/src/V2/CustomInfoType/DetectionRule/HotwordRule.php
index 95dadeb5dfcc..4b72a5945d7c 100644
--- a/Dlp/src/V2/CustomInfoType/DetectionRule/HotwordRule.php
+++ b/Dlp/src/V2/CustomInfoType/DetectionRule/HotwordRule.php
@@ -23,14 +23,18 @@ class HotwordRule extends \Google\Protobuf\Internal\Message
*/
private $hotword_regex = null;
/**
- * Proximity of the finding within which the entire hotword must reside.
- * The total length of the window cannot exceed 1000 characters. Note that
- * the finding itself will be included in the window, so that hotwords may
- * be used to match substrings of the finding itself. For example, the
- * certainty of a phone number regex "\(\d{3}\) \d{3}-\d{4}" could be
- * adjusted upwards if the area code is known to be the local area code of
- * a company office using the hotword regex "\(xxx\)", where "xxx"
- * is the area code in question.
+ * Range of characters within which the entire hotword must reside.
+ * The total length of the window cannot exceed 1000 characters.
+ * The finding itself will be included in the window, so that hotwords can
+ * be used to match substrings of the finding itself. Suppose you
+ * want Cloud DLP to promote the likelihood of the phone number
+ * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the
+ * area code of a company's office. In this case, use the hotword regex
+ * "\(xxx\)", where "xxx" is the area code in question.
+ * For tabular data, if you want to modify the likelihood of an entire
+ * column of findngs, see
+ * [Hotword example: Set the match likelihood of a table column]
+ * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
*
* Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
*/
@@ -51,14 +55,18 @@ class HotwordRule extends \Google\Protobuf\Internal\Message
* @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $hotword_regex
* Regular expression pattern defining what qualifies as a hotword.
* @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity $proximity
- * Proximity of the finding within which the entire hotword must reside.
- * The total length of the window cannot exceed 1000 characters. Note that
- * the finding itself will be included in the window, so that hotwords may
- * be used to match substrings of the finding itself. For example, the
- * certainty of a phone number regex "\(\d{3}\) \d{3}-\d{4}" could be
- * adjusted upwards if the area code is known to be the local area code of
- * a company office using the hotword regex "\(xxx\)", where "xxx"
- * is the area code in question.
+ * Range of characters within which the entire hotword must reside.
+ * The total length of the window cannot exceed 1000 characters.
+ * The finding itself will be included in the window, so that hotwords can
+ * be used to match substrings of the finding itself. Suppose you
+ * want Cloud DLP to promote the likelihood of the phone number
+ * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the
+ * area code of a company's office. In this case, use the hotword regex
+ * "\(xxx\)", where "xxx" is the area code in question.
+ * For tabular data, if you want to modify the likelihood of an entire
+ * column of findngs, see
+ * [Hotword example: Set the match likelihood of a table column]
+ * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
* @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment $likelihood_adjustment
* Likelihood adjustment to apply to all matching findings.
* }
@@ -105,14 +113,18 @@ public function setHotwordRegex($var)
}
/**
- * Proximity of the finding within which the entire hotword must reside.
- * The total length of the window cannot exceed 1000 characters. Note that
- * the finding itself will be included in the window, so that hotwords may
- * be used to match substrings of the finding itself. For example, the
- * certainty of a phone number regex "\(\d{3}\) \d{3}-\d{4}" could be
- * adjusted upwards if the area code is known to be the local area code of
- * a company office using the hotword regex "\(xxx\)", where "xxx"
- * is the area code in question.
+ * Range of characters within which the entire hotword must reside.
+ * The total length of the window cannot exceed 1000 characters.
+ * The finding itself will be included in the window, so that hotwords can
+ * be used to match substrings of the finding itself. Suppose you
+ * want Cloud DLP to promote the likelihood of the phone number
+ * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the
+ * area code of a company's office. In this case, use the hotword regex
+ * "\(xxx\)", where "xxx" is the area code in question.
+ * For tabular data, if you want to modify the likelihood of an entire
+ * column of findngs, see
+ * [Hotword example: Set the match likelihood of a table column]
+ * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
*
* Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
* @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity|null
@@ -133,14 +145,18 @@ public function clearProximity()
}
/**
- * Proximity of the finding within which the entire hotword must reside.
- * The total length of the window cannot exceed 1000 characters. Note that
- * the finding itself will be included in the window, so that hotwords may
- * be used to match substrings of the finding itself. For example, the
- * certainty of a phone number regex "\(\d{3}\) \d{3}-\d{4}" could be
- * adjusted upwards if the area code is known to be the local area code of
- * a company office using the hotword regex "\(xxx\)", where "xxx"
- * is the area code in question.
+ * Range of characters within which the entire hotword must reside.
+ * The total length of the window cannot exceed 1000 characters.
+ * The finding itself will be included in the window, so that hotwords can
+ * be used to match substrings of the finding itself. Suppose you
+ * want Cloud DLP to promote the likelihood of the phone number
+ * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the
+ * area code of a company's office. In this case, use the hotword regex
+ * "\(xxx\)", where "xxx" is the area code in question.
+ * For tabular data, if you want to modify the likelihood of an entire
+ * column of findngs, see
+ * [Hotword example: Set the match likelihood of a table column]
+ * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
*
* Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2;
* @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity $var
diff --git a/Dlp/src/V2/CustomInfoType/DetectionRule/Proximity.php b/Dlp/src/V2/CustomInfoType/DetectionRule/Proximity.php
index 91c9678c30d5..0cb1e8c03789 100644
--- a/Dlp/src/V2/CustomInfoType/DetectionRule/Proximity.php
+++ b/Dlp/src/V2/CustomInfoType/DetectionRule/Proximity.php
@@ -17,7 +17,11 @@
class Proximity extends \Google\Protobuf\Internal\Message
{
/**
- * Number of characters before the finding to consider.
+ * Number of characters before the finding to consider. For tabular data,
+ * if you want to modify the likelihood of an entire column of findngs,
+ * set this to 1. For more information, see
+ * [Hotword example: Set the match likelihood of a table column]
+ * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
*
* Generated from protobuf field int32 window_before = 1;
*/
@@ -36,7 +40,11 @@ class Proximity extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type int $window_before
- * Number of characters before the finding to consider.
+ * Number of characters before the finding to consider. For tabular data,
+ * if you want to modify the likelihood of an entire column of findngs,
+ * set this to 1. For more information, see
+ * [Hotword example: Set the match likelihood of a table column]
+ * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
* @type int $window_after
* Number of characters after the finding to consider.
* }
@@ -47,7 +55,11 @@ public function __construct($data = NULL) {
}
/**
- * Number of characters before the finding to consider.
+ * Number of characters before the finding to consider. For tabular data,
+ * if you want to modify the likelihood of an entire column of findngs,
+ * set this to 1. For more information, see
+ * [Hotword example: Set the match likelihood of a table column]
+ * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
*
* Generated from protobuf field int32 window_before = 1;
* @return int
@@ -58,7 +70,11 @@ public function getWindowBefore()
}
/**
- * Number of characters before the finding to consider.
+ * Number of characters before the finding to consider. For tabular data,
+ * if you want to modify the likelihood of an entire column of findngs,
+ * set this to 1. For more information, see
+ * [Hotword example: Set the match likelihood of a table column]
+ * (https://cloud.google.com/dlp/docs/creating-custom-infotypes-likelihood#match-column-values).
*
* Generated from protobuf field int32 window_before = 1;
* @param int $var
diff --git a/Dlp/src/V2/CustomInfoType/Dictionary/WordList.php b/Dlp/src/V2/CustomInfoType/Dictionary/WordList.php
index 4db42515c92e..2b8f09b8a095 100644
--- a/Dlp/src/V2/CustomInfoType/Dictionary/WordList.php
+++ b/Dlp/src/V2/CustomInfoType/Dictionary/WordList.php
@@ -30,7 +30,7 @@ class WordList extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type string[]|\Google\Protobuf\Internal\RepeatedField $words
+ * @type array|\Google\Protobuf\Internal\RepeatedField $words
* Words or phrases defining the dictionary. The dictionary must contain
* at least one phrase and every phrase must contain at least 2 characters
* that are letters or digits. [required]
@@ -60,7 +60,7 @@ public function getWords()
* that are letters or digits. [required]
*
* Generated from protobuf field repeated string words = 1;
- * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setWords($var)
diff --git a/Dlp/src/V2/CustomInfoType/Regex.php b/Dlp/src/V2/CustomInfoType/Regex.php
index 67ab1cd82785..47b855462cdb 100644
--- a/Dlp/src/V2/CustomInfoType/Regex.php
+++ b/Dlp/src/V2/CustomInfoType/Regex.php
@@ -41,7 +41,7 @@ class Regex extends \Google\Protobuf\Internal\Message
* Pattern defining the regular expression. Its syntax
* (https://github.com/google/re2/wiki/Syntax) can be found under the
* google/re2 repository on GitHub.
- * @type int[]|\Google\Protobuf\Internal\RepeatedField $group_indexes
+ * @type array|\Google\Protobuf\Internal\RepeatedField $group_indexes
* The index of the submatch to extract as findings. When not
* specified, the entire match is returned. No more than 3 may be included.
* }
@@ -98,7 +98,7 @@ public function getGroupIndexes()
* specified, the entire match is returned. No more than 3 may be included.
*
* Generated from protobuf field repeated int32 group_indexes = 2;
- * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setGroupIndexes($var)
diff --git a/Dlp/src/V2/DataProfileJobConfig.php b/Dlp/src/V2/DataProfileJobConfig.php
index 2e89815894b6..ee578251c820 100644
--- a/Dlp/src/V2/DataProfileJobConfig.php
+++ b/Dlp/src/V2/DataProfileJobConfig.php
@@ -71,7 +71,7 @@ class DataProfileJobConfig extends \Google\Protobuf\Internal\Message
* The project that will run the scan. The DLP service
* account that exists within this project must have access to all resources
* that are profiled, and the Cloud DLP API must be enabled.
- * @type string[]|\Google\Protobuf\Internal\RepeatedField $inspect_templates
+ * @type array|\Google\Protobuf\Internal\RepeatedField $inspect_templates
* Detection logic for profile generation.
* Not all template features are used by profiles. FindingLimits,
* include_quote and exclude_info_types have no impact on
@@ -85,7 +85,7 @@ class DataProfileJobConfig extends \Google\Protobuf\Internal\Message
* scanned.
* For more information, see
* https://cloud.google.com/dlp/docs/data-profiles#data_residency.
- * @type \Google\Cloud\Dlp\V2\DataProfileAction[]|\Google\Protobuf\Internal\RepeatedField $data_profile_actions
+ * @type array<\Google\Cloud\Dlp\V2\DataProfileAction>|\Google\Protobuf\Internal\RepeatedField $data_profile_actions
* Actions to execute at the completion of the job.
* }
*/
@@ -199,7 +199,7 @@ public function getInspectTemplates()
* https://cloud.google.com/dlp/docs/data-profiles#data_residency.
*
* Generated from protobuf field repeated string inspect_templates = 7;
- * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setInspectTemplates($var)
@@ -225,7 +225,7 @@ public function getDataProfileActions()
* Actions to execute at the completion of the job.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6;
- * @param \Google\Cloud\Dlp\V2\DataProfileAction[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\DataProfileAction>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setDataProfileActions($var)
diff --git a/Dlp/src/V2/DataProfilePubSubCondition/PubSubExpressions.php b/Dlp/src/V2/DataProfilePubSubCondition/PubSubExpressions.php
index fecd3bb62a09..2676209b29a0 100644
--- a/Dlp/src/V2/DataProfilePubSubCondition/PubSubExpressions.php
+++ b/Dlp/src/V2/DataProfilePubSubCondition/PubSubExpressions.php
@@ -36,7 +36,7 @@ class PubSubExpressions extends \Google\Protobuf\Internal\Message
*
* @type int $logical_operator
* The operator to apply to the collection of conditions.
- * @type \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition[]|\Google\Protobuf\Internal\RepeatedField $conditions
+ * @type array<\Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition>|\Google\Protobuf\Internal\RepeatedField $conditions
* Conditions to apply to the expression.
* }
*/
@@ -86,7 +86,7 @@ public function getConditions()
* Conditions to apply to the expression.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2;
- * @param \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setConditions($var)
diff --git a/Dlp/src/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php b/Dlp/src/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php
index 2d691b25de3c..47586059b5bf 100644
--- a/Dlp/src/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php
+++ b/Dlp/src/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php
@@ -34,8 +34,8 @@ class PubSubLogicalOperator
private static $valueToName = [
self::LOGICAL_OPERATOR_UNSPECIFIED => 'LOGICAL_OPERATOR_UNSPECIFIED',
- self::PBOR => 'PBOR',
- self::PBAND => 'PBAND',
+ self::PBOR => 'OR',
+ self::PBAND => 'AND',
];
public static function name($value)
@@ -52,8 +52,12 @@ public static function value($name)
{
$const = __CLASS__ . '::' . strtoupper($name);
if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ $pbconst = __CLASS__. '::PB' . strtoupper($name);
+ if (!defined($pbconst)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($pbconst);
}
return constant($const);
}
diff --git a/Dlp/src/V2/DlpJob.php b/Dlp/src/V2/DlpJob.php
index 6d3c2c254869..649be7efcaff 100644
--- a/Dlp/src/V2/DlpJob.php
+++ b/Dlp/src/V2/DlpJob.php
@@ -91,7 +91,7 @@ class DlpJob extends \Google\Protobuf\Internal\Message
* @type string $job_trigger_name
* If created by a job trigger, the resource name of the trigger that
* instantiated the job.
- * @type \Google\Cloud\Dlp\V2\Error[]|\Google\Protobuf\Internal\RepeatedField $errors
+ * @type array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $errors
* A stream of errors encountered running the job.
* }
*/
@@ -391,7 +391,7 @@ public function getErrors()
* A stream of errors encountered running the job.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 11;
- * @param \Google\Cloud\Dlp\V2\Error[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setErrors($var)
diff --git a/Dlp/src/V2/Error.php b/Dlp/src/V2/Error.php
index e847339678d1..6b510d9963cd 100644
--- a/Dlp/src/V2/Error.php
+++ b/Dlp/src/V2/Error.php
@@ -37,7 +37,7 @@ class Error extends \Google\Protobuf\Internal\Message
*
* @type \Google\Rpc\Status $details
* Detailed error codes and messages.
- * @type \Google\Protobuf\Timestamp[]|\Google\Protobuf\Internal\RepeatedField $timestamps
+ * @type array<\Google\Protobuf\Timestamp>|\Google\Protobuf\Internal\RepeatedField $timestamps
* The times the error occurred.
* }
*/
@@ -97,7 +97,7 @@ public function getTimestamps()
* The times the error occurred.
*
* Generated from protobuf field repeated .google.protobuf.Timestamp timestamps = 2;
- * @param \Google\Protobuf\Timestamp[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Protobuf\Timestamp>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setTimestamps($var)
diff --git a/Dlp/src/V2/ExcludeInfoTypes.php b/Dlp/src/V2/ExcludeInfoTypes.php
index fc45941902a2..d3aff7d827da 100644
--- a/Dlp/src/V2/ExcludeInfoTypes.php
+++ b/Dlp/src/V2/ExcludeInfoTypes.php
@@ -35,7 +35,7 @@ class ExcludeInfoTypes extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\InfoType[]|\Google\Protobuf\Internal\RepeatedField $info_types
+ * @type array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $info_types
* InfoType list in ExclusionRule rule drops a finding when it overlaps or
* contained within with a finding of an infoType from this list. For
* example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and
@@ -80,7 +80,7 @@ public function getInfoTypes()
* finding, namely email address.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1;
- * @param \Google\Cloud\Dlp\V2\InfoType[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setInfoTypes($var)
diff --git a/Dlp/src/V2/FieldTransformation.php b/Dlp/src/V2/FieldTransformation.php
index 5056ccb8c68f..4f8026b9fa56 100644
--- a/Dlp/src/V2/FieldTransformation.php
+++ b/Dlp/src/V2/FieldTransformation.php
@@ -44,7 +44,7 @@ class FieldTransformation extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $fields
+ * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $fields
* Required. Input field(s) to apply the transformation to.
* When you have columns that reference their position within a list,
* omit the index from the FieldId. FieldId name matching ignores the index.
@@ -90,7 +90,7 @@ public function getFields()
* For example, instead of "contact.nums[0].type", use "contact.nums.type".
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setFields($var)
diff --git a/Dlp/src/V2/Gapic/DlpServiceGapicClient.php b/Dlp/src/V2/Gapic/DlpServiceGapicClient.php
index a2fb226cbded..0f8e0ae3d335 100644
--- a/Dlp/src/V2/Gapic/DlpServiceGapicClient.php
+++ b/Dlp/src/V2/Gapic/DlpServiceGapicClient.php
@@ -1176,10 +1176,9 @@ public function __construct(array $options = [])
* Optional.
*
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\DlpJob
@@ -1229,10 +1228,9 @@ public function activateJobTrigger($name, array $optionalArgs = [])
* Optional.
*
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @throws ApiException if the remote call fails
@@ -1307,10 +1305,9 @@ public function cancelDlpJob($name, array $optionalArgs = [])
* @type string $locationId
* Deprecated. This field has no effect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\DeidentifyTemplate
@@ -1403,10 +1400,9 @@ public function createDeidentifyTemplate(
* @type string $locationId
* Deprecated. This field has no effect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\DlpJob
@@ -1498,10 +1494,9 @@ public function createDlpJob($parent, array $optionalArgs = [])
* @type string $locationId
* Deprecated. This field has no effect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\InspectTemplate
@@ -1585,10 +1580,9 @@ public function createInspectTemplate(
* @type string $locationId
* Deprecated. This field has no effect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\JobTrigger
@@ -1676,10 +1670,9 @@ public function createJobTrigger(
* @type string $locationId
* Deprecated. This field has no effect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\StoredInfoType
@@ -1783,10 +1776,9 @@ public function createStoredInfoType(
* @type string $locationId
* Deprecated. This field has no effect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\DeidentifyContentResponse
@@ -1867,10 +1859,9 @@ public function deidentifyContent(array $optionalArgs = [])
* Optional.
*
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @throws ApiException if the remote call fails
@@ -1918,10 +1909,9 @@ public function deleteDeidentifyTemplate($name, array $optionalArgs = [])
* Optional.
*
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @throws ApiException if the remote call fails
@@ -1968,10 +1958,9 @@ public function deleteDlpJob($name, array $optionalArgs = [])
* Optional.
*
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @throws ApiException if the remote call fails
@@ -2017,10 +2006,9 @@ public function deleteInspectTemplate($name, array $optionalArgs = [])
* Optional.
*
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @throws ApiException if the remote call fails
@@ -2068,10 +2056,9 @@ public function deleteJobTrigger($name, array $optionalArgs = [])
* Optional.
*
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @throws ApiException if the remote call fails
@@ -2116,10 +2103,9 @@ public function deleteStoredInfoType($name, array $optionalArgs = [])
* Optional.
*
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @throws ApiException if the remote call fails
@@ -2167,10 +2153,9 @@ public function finishDlpJob($name, array $optionalArgs = [])
* Optional.
*
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\DeidentifyTemplate
@@ -2218,10 +2203,9 @@ public function getDeidentifyTemplate($name, array $optionalArgs = [])
* Optional.
*
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\DlpJob
@@ -2270,10 +2254,9 @@ public function getDlpJob($name, array $optionalArgs = [])
* Optional.
*
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\InspectTemplate
@@ -2321,10 +2304,9 @@ public function getInspectTemplate($name, array $optionalArgs = [])
* Optional.
*
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\JobTrigger
@@ -2374,10 +2356,9 @@ public function getJobTrigger($name, array $optionalArgs = [])
* Optional.
*
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\StoredInfoType
@@ -2428,10 +2409,9 @@ public function getStoredInfoType($name, array $optionalArgs = [])
* @type HybridContentItem $hybridItem
* The item to inspect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\HybridInspectResponse
@@ -2486,10 +2466,9 @@ public function hybridInspectDlpJob($name, array $optionalArgs = [])
* @type HybridContentItem $hybridItem
* The item to inspect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\HybridInspectResponse
@@ -2575,10 +2554,9 @@ public function hybridInspectJobTrigger($name, array $optionalArgs = [])
* @type string $locationId
* Deprecated. This field has no effect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\InspectContentResponse
@@ -2703,10 +2681,9 @@ public function inspectContent(array $optionalArgs = [])
* @type string $locationId
* Deprecated. This field has no effect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\ApiCore\PagedListResponse
@@ -2854,10 +2831,9 @@ public function listDeidentifyTemplates($parent, array $optionalArgs = [])
* @type string $locationId
* Deprecated. This field has no effect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\ApiCore\PagedListResponse
@@ -2942,10 +2918,9 @@ public function listDlpJobs($parent, array $optionalArgs = [])
* @type string $locationId
* Deprecated. This field has no effect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\ListInfoTypesResponse
@@ -3063,10 +3038,9 @@ public function listInfoTypes(array $optionalArgs = [])
* @type string $locationId
* Deprecated. This field has no effect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\ApiCore\PagedListResponse
@@ -3211,10 +3185,9 @@ public function listInspectTemplates($parent, array $optionalArgs = [])
* @type string $locationId
* Deprecated. This field has no effect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\ApiCore\PagedListResponse
@@ -3343,10 +3316,9 @@ public function listJobTriggers($parent, array $optionalArgs = [])
* @type string $locationId
* Deprecated. This field has no effect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\ApiCore\PagedListResponse
@@ -3441,10 +3413,9 @@ public function listStoredInfoTypes($parent, array $optionalArgs = [])
* @type ByteContentItem $byteItem
* The content must be PNG, JPEG, SVG or BMP.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\RedactImageResponse
@@ -3564,10 +3535,9 @@ public function redactImage(array $optionalArgs = [])
* @type string $locationId
* Deprecated. This field has no effect.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\ReidentifyContentResponse
@@ -3649,10 +3619,9 @@ public function reidentifyContent($parent, array $optionalArgs = [])
* @type FieldMask $updateMask
* Mask to control which fields get updated.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\DeidentifyTemplate
@@ -3715,10 +3684,9 @@ public function updateDeidentifyTemplate($name, array $optionalArgs = [])
* @type FieldMask $updateMask
* Mask to control which fields get updated.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\InspectTemplate
@@ -3778,10 +3746,9 @@ public function updateInspectTemplate($name, array $optionalArgs = [])
* @type FieldMask $updateMask
* Mask to control which fields get updated.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\JobTrigger
@@ -3846,10 +3813,9 @@ public function updateJobTrigger($name, array $optionalArgs = [])
* @type FieldMask $updateMask
* Mask to control which fields get updated.
* @type RetrySettings|array $retrySettings
- * Retry settings to use for this call. Can be a
- * {@see Google\ApiCore\RetrySettings} object, or an associative array of retry
- * settings parameters. See the documentation on
- * {@see Google\ApiCore\RetrySettings} for example usage.
+ * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
+ * associative array of retry settings parameters. See the documentation on
+ * {@see RetrySettings} for example usage.
* }
*
* @return \Google\Cloud\Dlp\V2\StoredInfoType
diff --git a/Dlp/src/V2/HybridOptions.php b/Dlp/src/V2/HybridOptions.php
index cf38bb7efcc8..3fa01076e9ef 100644
--- a/Dlp/src/V2/HybridOptions.php
+++ b/Dlp/src/V2/HybridOptions.php
@@ -65,7 +65,7 @@ class HybridOptions extends \Google\Protobuf\Internal\Message
* @type string $description
* A short description of where the data is coming from. Will be stored once
* in the job. 256 max length.
- * @type string[]|\Google\Protobuf\Internal\RepeatedField $required_finding_label_keys
+ * @type array|\Google\Protobuf\Internal\RepeatedField $required_finding_label_keys
* These are labels that each inspection request must include within their
* 'finding_labels' map. Request may contain others, but any missing one of
* these will be rejected.
@@ -145,7 +145,7 @@ public function getRequiredFindingLabelKeys()
* No more than 10 keys can be required.
*
* Generated from protobuf field repeated string required_finding_label_keys = 2;
- * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setRequiredFindingLabelKeys($var)
diff --git a/Dlp/src/V2/ImageLocation.php b/Dlp/src/V2/ImageLocation.php
index 6739b59a9397..60678827e0b5 100644
--- a/Dlp/src/V2/ImageLocation.php
+++ b/Dlp/src/V2/ImageLocation.php
@@ -28,7 +28,7 @@ class ImageLocation extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\BoundingBox[]|\Google\Protobuf\Internal\RepeatedField $bounding_boxes
+ * @type array<\Google\Cloud\Dlp\V2\BoundingBox>|\Google\Protobuf\Internal\RepeatedField $bounding_boxes
* Bounding boxes locating the pixels within the image containing the finding.
* }
*/
@@ -52,7 +52,7 @@ public function getBoundingBoxes()
* Bounding boxes locating the pixels within the image containing the finding.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
- * @param \Google\Cloud\Dlp\V2\BoundingBox[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\BoundingBox>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setBoundingBoxes($var)
diff --git a/Dlp/src/V2/InfoTypeCategory.php b/Dlp/src/V2/InfoTypeCategory.php
new file mode 100644
index 000000000000..c1579ef0baed
--- /dev/null
+++ b/Dlp/src/V2/InfoTypeCategory.php
@@ -0,0 +1,145 @@
+google.privacy.dlp.v2.InfoTypeCategory
+ */
+class InfoTypeCategory extends \Google\Protobuf\Internal\Message
+{
+ protected $category;
+
+ /**
+ * Constructor.
+ *
+ * @param array $data {
+ * Optional. Data for populating the Message object.
+ *
+ * @type int $location_category
+ * The region or country that issued the ID or document represented by the
+ * infoType.
+ * @type int $industry_category
+ * The group of relevant businesses where this infoType is commonly used
+ * @type int $type_category
+ * The class of identifiers where this infoType belongs
+ * }
+ */
+ public function __construct($data = NULL) {
+ \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
+ parent::__construct($data);
+ }
+
+ /**
+ * The region or country that issued the ID or document represented by the
+ * infoType.
+ *
+ * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1;
+ * @return int
+ */
+ public function getLocationCategory()
+ {
+ return $this->readOneof(1);
+ }
+
+ public function hasLocationCategory()
+ {
+ return $this->hasOneof(1);
+ }
+
+ /**
+ * The region or country that issued the ID or document represented by the
+ * infoType.
+ *
+ * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1;
+ * @param int $var
+ * @return $this
+ */
+ public function setLocationCategory($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\InfoTypeCategory\LocationCategory::class);
+ $this->writeOneof(1, $var);
+
+ return $this;
+ }
+
+ /**
+ * The group of relevant businesses where this infoType is commonly used
+ *
+ * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2;
+ * @return int
+ */
+ public function getIndustryCategory()
+ {
+ return $this->readOneof(2);
+ }
+
+ public function hasIndustryCategory()
+ {
+ return $this->hasOneof(2);
+ }
+
+ /**
+ * The group of relevant businesses where this infoType is commonly used
+ *
+ * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2;
+ * @param int $var
+ * @return $this
+ */
+ public function setIndustryCategory($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\InfoTypeCategory\IndustryCategory::class);
+ $this->writeOneof(2, $var);
+
+ return $this;
+ }
+
+ /**
+ * The class of identifiers where this infoType belongs
+ *
+ * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3;
+ * @return int
+ */
+ public function getTypeCategory()
+ {
+ return $this->readOneof(3);
+ }
+
+ public function hasTypeCategory()
+ {
+ return $this->hasOneof(3);
+ }
+
+ /**
+ * The class of identifiers where this infoType belongs
+ *
+ * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3;
+ * @param int $var
+ * @return $this
+ */
+ public function setTypeCategory($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\InfoTypeCategory\TypeCategory::class);
+ $this->writeOneof(3, $var);
+
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getCategory()
+ {
+ return $this->whichOneof("category");
+ }
+
+}
+
diff --git a/Dlp/src/V2/InfoTypeCategory/IndustryCategory.php b/Dlp/src/V2/InfoTypeCategory/IndustryCategory.php
new file mode 100644
index 000000000000..429186610d6f
--- /dev/null
+++ b/Dlp/src/V2/InfoTypeCategory/IndustryCategory.php
@@ -0,0 +1,72 @@
+google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory
+ */
+class IndustryCategory
+{
+ /**
+ * Unused industry
+ *
+ * Generated from protobuf enum INDUSTRY_UNSPECIFIED = 0;
+ */
+ const INDUSTRY_UNSPECIFIED = 0;
+ /**
+ * The infoType is typically used in the finance industry.
+ *
+ * Generated from protobuf enum FINANCE = 1;
+ */
+ const FINANCE = 1;
+ /**
+ * The infoType is typically used in the health industry.
+ *
+ * Generated from protobuf enum HEALTH = 2;
+ */
+ const HEALTH = 2;
+ /**
+ * The infoType is typically used in the telecommunications industry.
+ *
+ * Generated from protobuf enum TELECOMMUNICATIONS = 3;
+ */
+ const TELECOMMUNICATIONS = 3;
+
+ private static $valueToName = [
+ self::INDUSTRY_UNSPECIFIED => 'INDUSTRY_UNSPECIFIED',
+ self::FINANCE => 'FINANCE',
+ self::HEALTH => 'HEALTH',
+ self::TELECOMMUNICATIONS => 'TELECOMMUNICATIONS',
+ ];
+
+ public static function name($value)
+ {
+ if (!isset(self::$valueToName[$value])) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no name defined for value %s', __CLASS__, $value));
+ }
+ return self::$valueToName[$value];
+ }
+
+
+ public static function value($name)
+ {
+ $const = __CLASS__ . '::' . strtoupper($name);
+ if (!defined($const)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($const);
+ }
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(IndustryCategory::class, \Google\Cloud\Dlp\V2\InfoTypeCategory_IndustryCategory::class);
+
diff --git a/Dlp/src/V2/InfoTypeCategory/LocationCategory.php b/Dlp/src/V2/InfoTypeCategory/LocationCategory.php
new file mode 100644
index 000000000000..b687df339516
--- /dev/null
+++ b/Dlp/src/V2/InfoTypeCategory/LocationCategory.php
@@ -0,0 +1,336 @@
+google.privacy.dlp.v2.InfoTypeCategory.LocationCategory
+ */
+class LocationCategory
+{
+ /**
+ * Unused location
+ *
+ * Generated from protobuf enum LOCATION_UNSPECIFIED = 0;
+ */
+ const LOCATION_UNSPECIFIED = 0;
+ /**
+ * The infoType is not issued by or tied to a specific region, but is used
+ * almost everywhere.
+ *
+ * Generated from protobuf enum GLOBAL = 1;
+ */
+ const PBGLOBAL = 1;
+ /**
+ * The infoType is typically used in Argentina.
+ *
+ * Generated from protobuf enum ARGENTINA = 2;
+ */
+ const ARGENTINA = 2;
+ /**
+ * The infoType is typically used in Australia.
+ *
+ * Generated from protobuf enum AUSTRALIA = 3;
+ */
+ const AUSTRALIA = 3;
+ /**
+ * The infoType is typically used in Belgium.
+ *
+ * Generated from protobuf enum BELGIUM = 4;
+ */
+ const BELGIUM = 4;
+ /**
+ * The infoType is typically used in Brazil.
+ *
+ * Generated from protobuf enum BRAZIL = 5;
+ */
+ const BRAZIL = 5;
+ /**
+ * The infoType is typically used in Canada.
+ *
+ * Generated from protobuf enum CANADA = 6;
+ */
+ const CANADA = 6;
+ /**
+ * The infoType is typically used in Chile.
+ *
+ * Generated from protobuf enum CHILE = 7;
+ */
+ const CHILE = 7;
+ /**
+ * The infoType is typically used in China.
+ *
+ * Generated from protobuf enum CHINA = 8;
+ */
+ const CHINA = 8;
+ /**
+ * The infoType is typically used in Colombia.
+ *
+ * Generated from protobuf enum COLOMBIA = 9;
+ */
+ const COLOMBIA = 9;
+ /**
+ * The infoType is typically used in Denmark.
+ *
+ * Generated from protobuf enum DENMARK = 10;
+ */
+ const DENMARK = 10;
+ /**
+ * The infoType is typically used in France.
+ *
+ * Generated from protobuf enum FRANCE = 11;
+ */
+ const FRANCE = 11;
+ /**
+ * The infoType is typically used in Finland.
+ *
+ * Generated from protobuf enum FINLAND = 12;
+ */
+ const FINLAND = 12;
+ /**
+ * The infoType is typically used in Germany.
+ *
+ * Generated from protobuf enum GERMANY = 13;
+ */
+ const GERMANY = 13;
+ /**
+ * The infoType is typically used in Hong Kong.
+ *
+ * Generated from protobuf enum HONG_KONG = 14;
+ */
+ const HONG_KONG = 14;
+ /**
+ * The infoType is typically used in India.
+ *
+ * Generated from protobuf enum INDIA = 15;
+ */
+ const INDIA = 15;
+ /**
+ * The infoType is typically used in Indonesia.
+ *
+ * Generated from protobuf enum INDONESIA = 16;
+ */
+ const INDONESIA = 16;
+ /**
+ * The infoType is typically used in Ireland.
+ *
+ * Generated from protobuf enum IRELAND = 17;
+ */
+ const IRELAND = 17;
+ /**
+ * The infoType is typically used in Israel.
+ *
+ * Generated from protobuf enum ISRAEL = 18;
+ */
+ const ISRAEL = 18;
+ /**
+ * The infoType is typically used in Italy.
+ *
+ * Generated from protobuf enum ITALY = 19;
+ */
+ const ITALY = 19;
+ /**
+ * The infoType is typically used in Japan.
+ *
+ * Generated from protobuf enum JAPAN = 20;
+ */
+ const JAPAN = 20;
+ /**
+ * The infoType is typically used in Korea.
+ *
+ * Generated from protobuf enum KOREA = 21;
+ */
+ const KOREA = 21;
+ /**
+ * The infoType is typically used in Mexico.
+ *
+ * Generated from protobuf enum MEXICO = 22;
+ */
+ const MEXICO = 22;
+ /**
+ * The infoType is typically used in the Netherlands.
+ *
+ * Generated from protobuf enum THE_NETHERLANDS = 23;
+ */
+ const THE_NETHERLANDS = 23;
+ /**
+ * The infoType is typically used in Norway.
+ *
+ * Generated from protobuf enum NORWAY = 24;
+ */
+ const NORWAY = 24;
+ /**
+ * The infoType is typically used in Paraguay.
+ *
+ * Generated from protobuf enum PARAGUAY = 25;
+ */
+ const PARAGUAY = 25;
+ /**
+ * The infoType is typically used in Peru.
+ *
+ * Generated from protobuf enum PERU = 26;
+ */
+ const PERU = 26;
+ /**
+ * The infoType is typically used in Poland.
+ *
+ * Generated from protobuf enum POLAND = 27;
+ */
+ const POLAND = 27;
+ /**
+ * The infoType is typically used in Portugal.
+ *
+ * Generated from protobuf enum PORTUGAL = 28;
+ */
+ const PORTUGAL = 28;
+ /**
+ * The infoType is typically used in Singapore.
+ *
+ * Generated from protobuf enum SINGAPORE = 29;
+ */
+ const SINGAPORE = 29;
+ /**
+ * The infoType is typically used in South Africa.
+ *
+ * Generated from protobuf enum SOUTH_AFRICA = 30;
+ */
+ const SOUTH_AFRICA = 30;
+ /**
+ * The infoType is typically used in Spain.
+ *
+ * Generated from protobuf enum SPAIN = 31;
+ */
+ const SPAIN = 31;
+ /**
+ * The infoType is typically used in Sweden.
+ *
+ * Generated from protobuf enum SWEDEN = 32;
+ */
+ const SWEDEN = 32;
+ /**
+ * The infoType is typically used in Taiwan.
+ *
+ * Generated from protobuf enum TAIWAN = 33;
+ */
+ const TAIWAN = 33;
+ /**
+ * The infoType is typically used in Thailand.
+ *
+ * Generated from protobuf enum THAILAND = 34;
+ */
+ const THAILAND = 34;
+ /**
+ * The infoType is typically used in Turkey.
+ *
+ * Generated from protobuf enum TURKEY = 35;
+ */
+ const TURKEY = 35;
+ /**
+ * The infoType is typically used in the United Kingdom.
+ *
+ * Generated from protobuf enum UNITED_KINGDOM = 36;
+ */
+ const UNITED_KINGDOM = 36;
+ /**
+ * The infoType is typically used in the United States.
+ *
+ * Generated from protobuf enum UNITED_STATES = 37;
+ */
+ const UNITED_STATES = 37;
+ /**
+ * The infoType is typically used in Uruguay.
+ *
+ * Generated from protobuf enum URUGUAY = 38;
+ */
+ const URUGUAY = 38;
+ /**
+ * The infoType is typically used in Venezuela.
+ *
+ * Generated from protobuf enum VENEZUELA = 39;
+ */
+ const VENEZUELA = 39;
+ /**
+ * The infoType is typically used in Google internally.
+ *
+ * Generated from protobuf enum INTERNAL = 40;
+ */
+ const INTERNAL = 40;
+
+ private static $valueToName = [
+ self::LOCATION_UNSPECIFIED => 'LOCATION_UNSPECIFIED',
+ self::PBGLOBAL => 'GLOBAL',
+ self::ARGENTINA => 'ARGENTINA',
+ self::AUSTRALIA => 'AUSTRALIA',
+ self::BELGIUM => 'BELGIUM',
+ self::BRAZIL => 'BRAZIL',
+ self::CANADA => 'CANADA',
+ self::CHILE => 'CHILE',
+ self::CHINA => 'CHINA',
+ self::COLOMBIA => 'COLOMBIA',
+ self::DENMARK => 'DENMARK',
+ self::FRANCE => 'FRANCE',
+ self::FINLAND => 'FINLAND',
+ self::GERMANY => 'GERMANY',
+ self::HONG_KONG => 'HONG_KONG',
+ self::INDIA => 'INDIA',
+ self::INDONESIA => 'INDONESIA',
+ self::IRELAND => 'IRELAND',
+ self::ISRAEL => 'ISRAEL',
+ self::ITALY => 'ITALY',
+ self::JAPAN => 'JAPAN',
+ self::KOREA => 'KOREA',
+ self::MEXICO => 'MEXICO',
+ self::THE_NETHERLANDS => 'THE_NETHERLANDS',
+ self::NORWAY => 'NORWAY',
+ self::PARAGUAY => 'PARAGUAY',
+ self::PERU => 'PERU',
+ self::POLAND => 'POLAND',
+ self::PORTUGAL => 'PORTUGAL',
+ self::SINGAPORE => 'SINGAPORE',
+ self::SOUTH_AFRICA => 'SOUTH_AFRICA',
+ self::SPAIN => 'SPAIN',
+ self::SWEDEN => 'SWEDEN',
+ self::TAIWAN => 'TAIWAN',
+ self::THAILAND => 'THAILAND',
+ self::TURKEY => 'TURKEY',
+ self::UNITED_KINGDOM => 'UNITED_KINGDOM',
+ self::UNITED_STATES => 'UNITED_STATES',
+ self::URUGUAY => 'URUGUAY',
+ self::VENEZUELA => 'VENEZUELA',
+ self::INTERNAL => 'INTERNAL',
+ ];
+
+ public static function name($value)
+ {
+ if (!isset(self::$valueToName[$value])) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no name defined for value %s', __CLASS__, $value));
+ }
+ return self::$valueToName[$value];
+ }
+
+
+ public static function value($name)
+ {
+ $const = __CLASS__ . '::' . strtoupper($name);
+ if (!defined($const)) {
+ $pbconst = __CLASS__. '::PB' . strtoupper($name);
+ if (!defined($pbconst)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($pbconst);
+ }
+ return constant($const);
+ }
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(LocationCategory::class, \Google\Cloud\Dlp\V2\InfoTypeCategory_LocationCategory::class);
+
diff --git a/Dlp/src/V2/InfoTypeCategory/TypeCategory.php b/Dlp/src/V2/InfoTypeCategory/TypeCategory.php
new file mode 100644
index 000000000000..bbc6fd462069
--- /dev/null
+++ b/Dlp/src/V2/InfoTypeCategory/TypeCategory.php
@@ -0,0 +1,104 @@
+google.privacy.dlp.v2.InfoTypeCategory.TypeCategory
+ */
+class TypeCategory
+{
+ /**
+ * Unused type
+ *
+ * Generated from protobuf enum TYPE_UNSPECIFIED = 0;
+ */
+ const TYPE_UNSPECIFIED = 0;
+ /**
+ * Personally identifiable information, for example, a
+ * name or phone number
+ *
+ * Generated from protobuf enum PII = 1;
+ */
+ const PII = 1;
+ /**
+ * Personally identifiable information that is especially sensitive, for
+ * example, a passport number.
+ *
+ * Generated from protobuf enum SPII = 2;
+ */
+ const SPII = 2;
+ /**
+ * Attributes that can partially identify someone, especially in
+ * combination with other attributes, like age, height, and gender.
+ *
+ * Generated from protobuf enum DEMOGRAPHIC = 3;
+ */
+ const DEMOGRAPHIC = 3;
+ /**
+ * Confidential or secret information, for example, a password.
+ *
+ * Generated from protobuf enum CREDENTIAL = 4;
+ */
+ const CREDENTIAL = 4;
+ /**
+ * An identification document issued by a government.
+ *
+ * Generated from protobuf enum GOVERNMENT_ID = 5;
+ */
+ const GOVERNMENT_ID = 5;
+ /**
+ * A document, for example, a resume or source code.
+ *
+ * Generated from protobuf enum DOCUMENT = 6;
+ */
+ const DOCUMENT = 6;
+ /**
+ * Information that is not sensitive on its own, but provides details about
+ * the circumstances surrounding an entity or an event.
+ *
+ * Generated from protobuf enum CONTEXTUAL_INFORMATION = 7;
+ */
+ const CONTEXTUAL_INFORMATION = 7;
+
+ private static $valueToName = [
+ self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED',
+ self::PII => 'PII',
+ self::SPII => 'SPII',
+ self::DEMOGRAPHIC => 'DEMOGRAPHIC',
+ self::CREDENTIAL => 'CREDENTIAL',
+ self::GOVERNMENT_ID => 'GOVERNMENT_ID',
+ self::DOCUMENT => 'DOCUMENT',
+ self::CONTEXTUAL_INFORMATION => 'CONTEXTUAL_INFORMATION',
+ ];
+
+ public static function name($value)
+ {
+ if (!isset(self::$valueToName[$value])) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no name defined for value %s', __CLASS__, $value));
+ }
+ return self::$valueToName[$value];
+ }
+
+
+ public static function value($name)
+ {
+ $const = __CLASS__ . '::' . strtoupper($name);
+ if (!defined($const)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($const);
+ }
+}
+
+// Adding a class alias for backwards compatibility with the previous class name.
+class_alias(TypeCategory::class, \Google\Cloud\Dlp\V2\InfoTypeCategory_TypeCategory::class);
+
diff --git a/Dlp/src/V2/InfoTypeCategory_IndustryCategory.php b/Dlp/src/V2/InfoTypeCategory_IndustryCategory.php
new file mode 100644
index 000000000000..d2694b64731b
--- /dev/null
+++ b/Dlp/src/V2/InfoTypeCategory_IndustryCategory.php
@@ -0,0 +1,16 @@
+string description = 4;
*/
private $description = '';
+ /**
+ * The category of the infoType.
+ *
+ * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;
+ */
+ private $categories;
/**
* Constructor.
@@ -51,11 +57,13 @@ class InfoTypeDescription extends \Google\Protobuf\Internal\Message
* Internal name of the infoType.
* @type string $display_name
* Human readable form of the infoType name.
- * @type int[]|\Google\Protobuf\Internal\RepeatedField $supported_by
+ * @type array|\Google\Protobuf\Internal\RepeatedField $supported_by
* Which parts of the API supports this InfoType.
* @type string $description
* Description of the infotype. Translated when language is provided in the
* request.
+ * @type array<\Google\Cloud\Dlp\V2\InfoTypeCategory>|\Google\Protobuf\Internal\RepeatedField $categories
+ * The category of the infoType.
* }
*/
public function __construct($data = NULL) {
@@ -130,7 +138,7 @@ public function getSupportedBy()
* Which parts of the API supports this InfoType.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3;
- * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setSupportedBy($var)
@@ -169,5 +177,31 @@ public function setDescription($var)
return $this;
}
+ /**
+ * The category of the infoType.
+ *
+ * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;
+ * @return \Google\Protobuf\Internal\RepeatedField
+ */
+ public function getCategories()
+ {
+ return $this->categories;
+ }
+
+ /**
+ * The category of the infoType.
+ *
+ * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10;
+ * @param array<\Google\Cloud\Dlp\V2\InfoTypeCategory>|\Google\Protobuf\Internal\RepeatedField $var
+ * @return $this
+ */
+ public function setCategories($var)
+ {
+ $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeCategory::class);
+ $this->categories = $arr;
+
+ return $this;
+ }
+
}
diff --git a/Dlp/src/V2/InfoTypeTransformations.php b/Dlp/src/V2/InfoTypeTransformations.php
index 6efd0dbfa2c6..c35f65c972d4 100644
--- a/Dlp/src/V2/InfoTypeTransformations.php
+++ b/Dlp/src/V2/InfoTypeTransformations.php
@@ -32,7 +32,7 @@ class InfoTypeTransformations extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation[]|\Google\Protobuf\Internal\RepeatedField $transformations
+ * @type array<\Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation>|\Google\Protobuf\Internal\RepeatedField $transformations
* Required. Transformation for each infoType. Cannot specify more than one
* for a given infoType.
* }
@@ -59,7 +59,7 @@ public function getTransformations()
* for a given infoType.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setTransformations($var)
diff --git a/Dlp/src/V2/InfoTypeTransformations/InfoTypeTransformation.php b/Dlp/src/V2/InfoTypeTransformations/InfoTypeTransformation.php
index 37788c012faa..d56f4a3a3b2f 100644
--- a/Dlp/src/V2/InfoTypeTransformations/InfoTypeTransformation.php
+++ b/Dlp/src/V2/InfoTypeTransformations/InfoTypeTransformation.php
@@ -37,7 +37,7 @@ class InfoTypeTransformation extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\InfoType[]|\Google\Protobuf\Internal\RepeatedField $info_types
+ * @type array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $info_types
* InfoTypes to apply the transformation to. An empty list will cause
* this transformation to apply to all findings that correspond to
* infoTypes that were requested in `InspectConfig`.
@@ -69,7 +69,7 @@ public function getInfoTypes()
* infoTypes that were requested in `InspectConfig`.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1;
- * @param \Google\Cloud\Dlp\V2\InfoType[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setInfoTypes($var)
diff --git a/Dlp/src/V2/InspectConfig.php b/Dlp/src/V2/InspectConfig.php
index 81b44444a805..d06d0048b0a6 100644
--- a/Dlp/src/V2/InspectConfig.php
+++ b/Dlp/src/V2/InspectConfig.php
@@ -48,7 +48,7 @@ class InspectConfig extends \Google\Protobuf\Internal\Message
private $limits = null;
/**
* When true, a contextual quote from the data that triggered a finding is
- * included in the response; see Finding.quote.
+ * included in the response; see [Finding.quote][google.privacy.dlp.v2.Finding.quote].
* This is not used for data profiling.
*
* Generated from protobuf field bool include_quote = 4;
@@ -89,7 +89,7 @@ class InspectConfig extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\InfoType[]|\Google\Protobuf\Internal\RepeatedField $info_types
+ * @type array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $info_types
* Restricts what info_types to look for. The values must correspond to
* InfoType values returned by ListInfoTypes or listed at
* https://cloud.google.com/dlp/docs/infotypes-reference.
@@ -108,17 +108,17 @@ class InspectConfig extends \Google\Protobuf\Internal\Message
* This is not used for data profiling.
* @type bool $include_quote
* When true, a contextual quote from the data that triggered a finding is
- * included in the response; see Finding.quote.
+ * included in the response; see [Finding.quote][google.privacy.dlp.v2.Finding.quote].
* This is not used for data profiling.
* @type bool $exclude_info_types
* When true, excludes type information of the findings.
* This is not used for data profiling.
- * @type \Google\Cloud\Dlp\V2\CustomInfoType[]|\Google\Protobuf\Internal\RepeatedField $custom_info_types
+ * @type array<\Google\Cloud\Dlp\V2\CustomInfoType>|\Google\Protobuf\Internal\RepeatedField $custom_info_types
* CustomInfoTypes provided by the user. See
* https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
- * @type int[]|\Google\Protobuf\Internal\RepeatedField $content_options
+ * @type array|\Google\Protobuf\Internal\RepeatedField $content_options
* Deprecated and unused.
- * @type \Google\Cloud\Dlp\V2\InspectionRuleSet[]|\Google\Protobuf\Internal\RepeatedField $rule_set
+ * @type array<\Google\Cloud\Dlp\V2\InspectionRuleSet>|\Google\Protobuf\Internal\RepeatedField $rule_set
* Set of rules to apply to the findings for this InspectConfig.
* Exclusion rules, contained in the set are executed in the end, other
* rules are executed in the order they are specified for each info type.
@@ -160,7 +160,7 @@ public function getInfoTypes()
* otherwise a default list will be used, which may change over time.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1;
- * @param \Google\Cloud\Dlp\V2\InfoType[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setInfoTypes($var)
@@ -241,7 +241,7 @@ public function setLimits($var)
/**
* When true, a contextual quote from the data that triggered a finding is
- * included in the response; see Finding.quote.
+ * included in the response; see [Finding.quote][google.privacy.dlp.v2.Finding.quote].
* This is not used for data profiling.
*
* Generated from protobuf field bool include_quote = 4;
@@ -254,7 +254,7 @@ public function getIncludeQuote()
/**
* When true, a contextual quote from the data that triggered a finding is
- * included in the response; see Finding.quote.
+ * included in the response; see [Finding.quote][google.privacy.dlp.v2.Finding.quote].
* This is not used for data profiling.
*
* Generated from protobuf field bool include_quote = 4;
@@ -314,7 +314,7 @@ public function getCustomInfoTypes()
* https://cloud.google.com/dlp/docs/creating-custom-infotypes to learn more.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6;
- * @param \Google\Cloud\Dlp\V2\CustomInfoType[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\CustomInfoType>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setCustomInfoTypes($var)
@@ -340,7 +340,7 @@ public function getContentOptions()
* Deprecated and unused.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.ContentOption content_options = 8;
- * @param int[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setContentOptions($var)
@@ -370,7 +370,7 @@ public function getRuleSet()
* rules are executed in the order they are specified for each info type.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10;
- * @param \Google\Cloud\Dlp\V2\InspectionRuleSet[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\InspectionRuleSet>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setRuleSet($var)
diff --git a/Dlp/src/V2/InspectConfig/FindingLimits.php b/Dlp/src/V2/InspectConfig/FindingLimits.php
index d28f9bb207d5..45a1669daa07 100644
--- a/Dlp/src/V2/InspectConfig/FindingLimits.php
+++ b/Dlp/src/V2/InspectConfig/FindingLimits.php
@@ -55,7 +55,7 @@ class FindingLimits extends \Google\Protobuf\Internal\Message
* Max number of findings that will be returned per request/job.
* When set within `InspectContentRequest`, the maximum returned is 2000
* regardless if this is set higher.
- * @type \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit[]|\Google\Protobuf\Internal\RepeatedField $max_findings_per_info_type
+ * @type array<\Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit>|\Google\Protobuf\Internal\RepeatedField $max_findings_per_info_type
* Configuration of findings limit given for specified infoTypes.
* }
*/
@@ -141,7 +141,7 @@ public function getMaxFindingsPerInfoType()
* Configuration of findings limit given for specified infoTypes.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3;
- * @param \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setMaxFindingsPerInfoType($var)
diff --git a/Dlp/src/V2/InspectDataSourceDetails/Result.php b/Dlp/src/V2/InspectDataSourceDetails/Result.php
index 950d42be8e8b..2d16ce81fdd8 100644
--- a/Dlp/src/V2/InspectDataSourceDetails/Result.php
+++ b/Dlp/src/V2/InspectDataSourceDetails/Result.php
@@ -51,7 +51,7 @@ class Result extends \Google\Protobuf\Internal\Message
* Total size in bytes that were processed.
* @type int|string $total_estimated_bytes
* Estimate of the number of bytes to process.
- * @type \Google\Cloud\Dlp\V2\InfoTypeStats[]|\Google\Protobuf\Internal\RepeatedField $info_type_stats
+ * @type array<\Google\Cloud\Dlp\V2\InfoTypeStats>|\Google\Protobuf\Internal\RepeatedField $info_type_stats
* Statistics of how many instances of each info type were found during
* inspect job.
* @type \Google\Cloud\Dlp\V2\HybridInspectStatistics $hybrid_stats
@@ -132,7 +132,7 @@ public function getInfoTypeStats()
* inspect job.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3;
- * @param \Google\Cloud\Dlp\V2\InfoTypeStats[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\InfoTypeStats>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setInfoTypeStats($var)
diff --git a/Dlp/src/V2/InspectJobConfig.php b/Dlp/src/V2/InspectJobConfig.php
index 90e5022460b4..e1ea5f126f0c 100644
--- a/Dlp/src/V2/InspectJobConfig.php
+++ b/Dlp/src/V2/InspectJobConfig.php
@@ -56,7 +56,7 @@ class InspectJobConfig extends \Google\Protobuf\Internal\Message
* If provided, will be used as the default for all values in InspectConfig.
* `inspect_config` will be merged into the values persisted as part of the
* template.
- * @type \Google\Cloud\Dlp\V2\Action[]|\Google\Protobuf\Internal\RepeatedField $actions
+ * @type array<\Google\Cloud\Dlp\V2\Action>|\Google\Protobuf\Internal\RepeatedField $actions
* Actions to execute at the completion of the job.
* }
*/
@@ -182,7 +182,7 @@ public function getActions()
* Actions to execute at the completion of the job.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 4;
- * @param \Google\Cloud\Dlp\V2\Action[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\Action>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setActions($var)
diff --git a/Dlp/src/V2/InspectResult.php b/Dlp/src/V2/InspectResult.php
index e2a4b6d1494c..ba6a2f09336d 100644
--- a/Dlp/src/V2/InspectResult.php
+++ b/Dlp/src/V2/InspectResult.php
@@ -39,7 +39,7 @@ class InspectResult extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\Finding[]|\Google\Protobuf\Internal\RepeatedField $findings
+ * @type array<\Google\Cloud\Dlp\V2\Finding>|\Google\Protobuf\Internal\RepeatedField $findings
* List of findings for an item.
* @type bool $findings_truncated
* If true, then this item might have more findings than were returned,
@@ -70,7 +70,7 @@ public function getFindings()
* List of findings for an item.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1;
- * @param \Google\Cloud\Dlp\V2\Finding[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\Finding>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setFindings($var)
diff --git a/Dlp/src/V2/InspectionRuleSet.php b/Dlp/src/V2/InspectionRuleSet.php
index 5820df55bb40..5ee0f98dd54b 100644
--- a/Dlp/src/V2/InspectionRuleSet.php
+++ b/Dlp/src/V2/InspectionRuleSet.php
@@ -35,9 +35,9 @@ class InspectionRuleSet extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\InfoType[]|\Google\Protobuf\Internal\RepeatedField $info_types
+ * @type array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $info_types
* List of infoTypes this rule set is applied to.
- * @type \Google\Cloud\Dlp\V2\InspectionRule[]|\Google\Protobuf\Internal\RepeatedField $rules
+ * @type array<\Google\Cloud\Dlp\V2\InspectionRule>|\Google\Protobuf\Internal\RepeatedField $rules
* Set of rules to be applied to infoTypes. The rules are applied in order.
* }
*/
@@ -61,7 +61,7 @@ public function getInfoTypes()
* List of infoTypes this rule set is applied to.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1;
- * @param \Google\Cloud\Dlp\V2\InfoType[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setInfoTypes($var)
@@ -87,7 +87,7 @@ public function getRules()
* Set of rules to be applied to infoTypes. The rules are applied in order.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRule rules = 2;
- * @param \Google\Cloud\Dlp\V2\InspectionRule[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\InspectionRule>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setRules($var)
diff --git a/Dlp/src/V2/JobTrigger.php b/Dlp/src/V2/JobTrigger.php
index a8d6d9330689..1f6713e18f19 100644
--- a/Dlp/src/V2/JobTrigger.php
+++ b/Dlp/src/V2/JobTrigger.php
@@ -95,11 +95,11 @@ class JobTrigger extends \Google\Protobuf\Internal\Message
* User provided description (max 256 chars)
* @type \Google\Cloud\Dlp\V2\InspectJobConfig $inspect_job
* For inspect jobs, a snapshot of the configuration.
- * @type \Google\Cloud\Dlp\V2\JobTrigger\Trigger[]|\Google\Protobuf\Internal\RepeatedField $triggers
+ * @type array<\Google\Cloud\Dlp\V2\JobTrigger\Trigger>|\Google\Protobuf\Internal\RepeatedField $triggers
* A list of triggers which will be OR'ed together. Only one in the list
* needs to trigger for a job to be started. The list may contain only
* a single Schedule trigger and must have at least one object.
- * @type \Google\Cloud\Dlp\V2\Error[]|\Google\Protobuf\Internal\RepeatedField $errors
+ * @type array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $errors
* Output only. A stream of errors encountered when the trigger was activated. Repeated
* errors may result in the JobTrigger automatically being paused.
* Will return the last 100 errors. Whenever the JobTrigger is modified
@@ -251,7 +251,7 @@ public function getTriggers()
* a single Schedule trigger and must have at least one object.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5;
- * @param \Google\Cloud\Dlp\V2\JobTrigger\Trigger[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\JobTrigger\Trigger>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setTriggers($var)
@@ -283,7 +283,7 @@ public function getErrors()
* this list will be cleared.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Dlp\V2\Error[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setErrors($var)
diff --git a/Dlp/src/V2/Key.php b/Dlp/src/V2/Key.php
index 09bbac624479..13d12b52317e 100644
--- a/Dlp/src/V2/Key.php
+++ b/Dlp/src/V2/Key.php
@@ -50,7 +50,7 @@ class Key extends \Google\Protobuf\Internal\Message
* Entities are partitioned into subsets, currently identified by a project
* ID and namespace ID.
* Queries are scoped to a single partition.
- * @type \Google\Cloud\Dlp\V2\Key\PathElement[]|\Google\Protobuf\Internal\RepeatedField $path
+ * @type array<\Google\Cloud\Dlp\V2\Key\PathElement>|\Google\Protobuf\Internal\RepeatedField $path
* The entity path.
* An entity path consists of one or more elements composed of a kind and a
* string or numerical identifier, which identify entities. The first
@@ -135,7 +135,7 @@ public function getPath()
* A path can never be empty, and a path can have at most 100 elements.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.Key.PathElement path = 2;
- * @param \Google\Cloud\Dlp\V2\Key\PathElement[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\Key\PathElement>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setPath($var)
diff --git a/Dlp/src/V2/ListDeidentifyTemplatesResponse.php b/Dlp/src/V2/ListDeidentifyTemplatesResponse.php
index b05788a2e187..294c022c887c 100644
--- a/Dlp/src/V2/ListDeidentifyTemplatesResponse.php
+++ b/Dlp/src/V2/ListDeidentifyTemplatesResponse.php
@@ -36,7 +36,7 @@ class ListDeidentifyTemplatesResponse extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate[]|\Google\Protobuf\Internal\RepeatedField $deidentify_templates
+ * @type array<\Google\Cloud\Dlp\V2\DeidentifyTemplate>|\Google\Protobuf\Internal\RepeatedField $deidentify_templates
* List of deidentify templates, up to page_size in
* ListDeidentifyTemplatesRequest.
* @type string $next_page_token
@@ -66,7 +66,7 @@ public function getDeidentifyTemplates()
* ListDeidentifyTemplatesRequest.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.DeidentifyTemplate deidentify_templates = 1;
- * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\DeidentifyTemplate>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setDeidentifyTemplates($var)
diff --git a/Dlp/src/V2/ListDlpJobsResponse.php b/Dlp/src/V2/ListDlpJobsResponse.php
index 867bba63ab19..2d090afd3cc6 100644
--- a/Dlp/src/V2/ListDlpJobsResponse.php
+++ b/Dlp/src/V2/ListDlpJobsResponse.php
@@ -34,7 +34,7 @@ class ListDlpJobsResponse extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\DlpJob[]|\Google\Protobuf\Internal\RepeatedField $jobs
+ * @type array<\Google\Cloud\Dlp\V2\DlpJob>|\Google\Protobuf\Internal\RepeatedField $jobs
* A list of DlpJobs that matches the specified filter in the request.
* @type string $next_page_token
* The standard List next-page token.
@@ -60,7 +60,7 @@ public function getJobs()
* A list of DlpJobs that matches the specified filter in the request.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.DlpJob jobs = 1;
- * @param \Google\Cloud\Dlp\V2\DlpJob[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\DlpJob>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setJobs($var)
diff --git a/Dlp/src/V2/ListInfoTypesResponse.php b/Dlp/src/V2/ListInfoTypesResponse.php
index b2d0a80eef3b..38951fc4c7e2 100644
--- a/Dlp/src/V2/ListInfoTypesResponse.php
+++ b/Dlp/src/V2/ListInfoTypesResponse.php
@@ -28,7 +28,7 @@ class ListInfoTypesResponse extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\InfoTypeDescription[]|\Google\Protobuf\Internal\RepeatedField $info_types
+ * @type array<\Google\Cloud\Dlp\V2\InfoTypeDescription>|\Google\Protobuf\Internal\RepeatedField $info_types
* Set of sensitive infoTypes.
* }
*/
@@ -52,7 +52,7 @@ public function getInfoTypes()
* Set of sensitive infoTypes.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeDescription info_types = 1;
- * @param \Google\Cloud\Dlp\V2\InfoTypeDescription[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\InfoTypeDescription>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setInfoTypes($var)
diff --git a/Dlp/src/V2/ListInspectTemplatesResponse.php b/Dlp/src/V2/ListInspectTemplatesResponse.php
index 743aec051b16..d5c2a5a438b6 100644
--- a/Dlp/src/V2/ListInspectTemplatesResponse.php
+++ b/Dlp/src/V2/ListInspectTemplatesResponse.php
@@ -35,7 +35,7 @@ class ListInspectTemplatesResponse extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\InspectTemplate[]|\Google\Protobuf\Internal\RepeatedField $inspect_templates
+ * @type array<\Google\Cloud\Dlp\V2\InspectTemplate>|\Google\Protobuf\Internal\RepeatedField $inspect_templates
* List of inspectTemplates, up to page_size in ListInspectTemplatesRequest.
* @type string $next_page_token
* If the next page is available then the next page token to be used
@@ -62,7 +62,7 @@ public function getInspectTemplates()
* List of inspectTemplates, up to page_size in ListInspectTemplatesRequest.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.InspectTemplate inspect_templates = 1;
- * @param \Google\Cloud\Dlp\V2\InspectTemplate[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\InspectTemplate>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setInspectTemplates($var)
diff --git a/Dlp/src/V2/ListJobTriggersResponse.php b/Dlp/src/V2/ListJobTriggersResponse.php
index bf40468bb5db..9abe751c944c 100644
--- a/Dlp/src/V2/ListJobTriggersResponse.php
+++ b/Dlp/src/V2/ListJobTriggersResponse.php
@@ -35,7 +35,7 @@ class ListJobTriggersResponse extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\JobTrigger[]|\Google\Protobuf\Internal\RepeatedField $job_triggers
+ * @type array<\Google\Cloud\Dlp\V2\JobTrigger>|\Google\Protobuf\Internal\RepeatedField $job_triggers
* List of triggeredJobs, up to page_size in ListJobTriggersRequest.
* @type string $next_page_token
* If the next page is available then the next page token to be used
@@ -62,7 +62,7 @@ public function getJobTriggers()
* List of triggeredJobs, up to page_size in ListJobTriggersRequest.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger job_triggers = 1;
- * @param \Google\Cloud\Dlp\V2\JobTrigger[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\JobTrigger>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setJobTriggers($var)
diff --git a/Dlp/src/V2/ListStoredInfoTypesResponse.php b/Dlp/src/V2/ListStoredInfoTypesResponse.php
index a289f9c5b7f3..004784f0ac3a 100644
--- a/Dlp/src/V2/ListStoredInfoTypesResponse.php
+++ b/Dlp/src/V2/ListStoredInfoTypesResponse.php
@@ -35,7 +35,7 @@ class ListStoredInfoTypesResponse extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\StoredInfoType[]|\Google\Protobuf\Internal\RepeatedField $stored_info_types
+ * @type array<\Google\Cloud\Dlp\V2\StoredInfoType>|\Google\Protobuf\Internal\RepeatedField $stored_info_types
* List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest.
* @type string $next_page_token
* If the next page is available then the next page token to be used
@@ -62,7 +62,7 @@ public function getStoredInfoTypes()
* List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoType stored_info_types = 1;
- * @param \Google\Cloud\Dlp\V2\StoredInfoType[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\StoredInfoType>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setStoredInfoTypes($var)
diff --git a/Dlp/src/V2/Location.php b/Dlp/src/V2/Location.php
index 03416fcc51d3..ed564015b7e1 100644
--- a/Dlp/src/V2/Location.php
+++ b/Dlp/src/V2/Location.php
@@ -63,7 +63,7 @@ class Location extends \Google\Protobuf\Internal\Message
* Unicode character offsets delimiting the finding.
* These are relative to the finding's containing element.
* Provided when the content is text.
- * @type \Google\Cloud\Dlp\V2\ContentLocation[]|\Google\Protobuf\Internal\RepeatedField $content_locations
+ * @type array<\Google\Cloud\Dlp\V2\ContentLocation>|\Google\Protobuf\Internal\RepeatedField $content_locations
* List of nested objects pointing to the precise location of the finding
* within the file or record.
* @type \Google\Cloud\Dlp\V2\Container $container
@@ -176,7 +176,7 @@ public function getContentLocations()
* within the file or record.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;
- * @param \Google\Cloud\Dlp\V2\ContentLocation[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\ContentLocation>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setContentLocations($var)
diff --git a/Dlp/src/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php b/Dlp/src/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php
index 73a3f417d645..238f32d083d9 100644
--- a/Dlp/src/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php
+++ b/Dlp/src/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php
@@ -48,14 +48,14 @@ class DeltaPresenceEstimationConfig extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\QuasiId[]|\Google\Protobuf\Internal\RepeatedField $quasi_ids
+ * @type array<\Google\Cloud\Dlp\V2\QuasiId>|\Google\Protobuf\Internal\RepeatedField $quasi_ids
* Required. Fields considered to be quasi-identifiers. No two fields can have the
* same tag.
* @type string $region_code
* ISO 3166-1 alpha-2 region code to use in the statistical modeling.
* Set if no column is tagged with a region-specific InfoType (like
* US_ZIP_5) or a region code.
- * @type \Google\Cloud\Dlp\V2\StatisticalTable[]|\Google\Protobuf\Internal\RepeatedField $auxiliary_tables
+ * @type array<\Google\Cloud\Dlp\V2\StatisticalTable>|\Google\Protobuf\Internal\RepeatedField $auxiliary_tables
* Several auxiliary tables can be used in the analysis. Each custom_tag
* used to tag a quasi-identifiers field must appear in exactly one
* field of one auxiliary table.
@@ -83,7 +83,7 @@ public function getQuasiIds()
* same tag.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Dlp\V2\QuasiId[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\QuasiId>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setQuasiIds($var)
@@ -143,7 +143,7 @@ public function getAuxiliaryTables()
* field of one auxiliary table.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3;
- * @param \Google\Cloud\Dlp\V2\StatisticalTable[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\StatisticalTable>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setAuxiliaryTables($var)
diff --git a/Dlp/src/V2/PrivacyMetric/KAnonymityConfig.php b/Dlp/src/V2/PrivacyMetric/KAnonymityConfig.php
index 53338028fa61..22a3d1fee1b3 100644
--- a/Dlp/src/V2/PrivacyMetric/KAnonymityConfig.php
+++ b/Dlp/src/V2/PrivacyMetric/KAnonymityConfig.php
@@ -46,7 +46,7 @@ class KAnonymityConfig extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $quasi_ids
+ * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $quasi_ids
* Set of fields to compute k-anonymity over. When multiple fields are
* specified, they are considered a single composite key. Structs and
* repeated data types are not supported; however, nested fields are
@@ -92,7 +92,7 @@ public function getQuasiIds()
* a repeated field.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
- * @param \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setQuasiIds($var)
diff --git a/Dlp/src/V2/PrivacyMetric/KMapEstimationConfig.php b/Dlp/src/V2/PrivacyMetric/KMapEstimationConfig.php
index e224d06b0d6f..c430947f4966 100644
--- a/Dlp/src/V2/PrivacyMetric/KMapEstimationConfig.php
+++ b/Dlp/src/V2/PrivacyMetric/KMapEstimationConfig.php
@@ -50,14 +50,14 @@ class KMapEstimationConfig extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField[]|\Google\Protobuf\Internal\RepeatedField $quasi_ids
+ * @type array<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField>|\Google\Protobuf\Internal\RepeatedField $quasi_ids
* Required. Fields considered to be quasi-identifiers. No two columns can have the
* same tag.
* @type string $region_code
* ISO 3166-1 alpha-2 region code to use in the statistical modeling.
* Set if no column is tagged with a region-specific InfoType (like
* US_ZIP_5) or a region code.
- * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable[]|\Google\Protobuf\Internal\RepeatedField $auxiliary_tables
+ * @type array<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable>|\Google\Protobuf\Internal\RepeatedField $auxiliary_tables
* Several auxiliary tables can be used in the analysis. Each custom_tag
* used to tag a quasi-identifiers column must appear in exactly one column
* of one auxiliary table.
@@ -85,7 +85,7 @@ public function getQuasiIds()
* same tag.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setQuasiIds($var)
@@ -145,7 +145,7 @@ public function getAuxiliaryTables()
* of one auxiliary table.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable auxiliary_tables = 3;
- * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setAuxiliaryTables($var)
diff --git a/Dlp/src/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php b/Dlp/src/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php
index fe3e4388523f..5cf2b64ee6ce 100644
--- a/Dlp/src/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php
+++ b/Dlp/src/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php
@@ -49,7 +49,7 @@ class AuxiliaryTable extends \Google\Protobuf\Internal\Message
*
* @type \Google\Cloud\Dlp\V2\BigQueryTable $table
* Required. Auxiliary table location.
- * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField[]|\Google\Protobuf\Internal\RepeatedField $quasi_ids
+ * @type array<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField>|\Google\Protobuf\Internal\RepeatedField $quasi_ids
* Required. Quasi-identifier columns.
* @type \Google\Cloud\Dlp\V2\FieldId $relative_frequency
* Required. The relative frequency column must contain a floating-point number
@@ -112,7 +112,7 @@ public function getQuasiIds()
* Required. Quasi-identifier columns.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setQuasiIds($var)
diff --git a/Dlp/src/V2/PrivacyMetric/LDiversityConfig.php b/Dlp/src/V2/PrivacyMetric/LDiversityConfig.php
index 5d526ac4c684..ff32b2361352 100644
--- a/Dlp/src/V2/PrivacyMetric/LDiversityConfig.php
+++ b/Dlp/src/V2/PrivacyMetric/LDiversityConfig.php
@@ -36,7 +36,7 @@ class LDiversityConfig extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $quasi_ids
+ * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $quasi_ids
* Set of quasi-identifiers indicating how equivalence classes are
* defined for the l-diversity computation. When multiple fields are
* specified, they are considered a single composite key.
@@ -68,7 +68,7 @@ public function getQuasiIds()
* specified, they are considered a single composite key.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1;
- * @param \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setQuasiIds($var)
diff --git a/Dlp/src/V2/RecordCondition/Conditions.php b/Dlp/src/V2/RecordCondition/Conditions.php
index 5f560c204d56..29e0ab591806 100644
--- a/Dlp/src/V2/RecordCondition/Conditions.php
+++ b/Dlp/src/V2/RecordCondition/Conditions.php
@@ -28,7 +28,7 @@ class Conditions extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\RecordCondition\Condition[]|\Google\Protobuf\Internal\RepeatedField $conditions
+ * @type array<\Google\Cloud\Dlp\V2\RecordCondition\Condition>|\Google\Protobuf\Internal\RepeatedField $conditions
* A collection of conditions.
* }
*/
@@ -52,7 +52,7 @@ public function getConditions()
* A collection of conditions.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.RecordCondition.Condition conditions = 1;
- * @param \Google\Cloud\Dlp\V2\RecordCondition\Condition[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\RecordCondition\Condition>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setConditions($var)
diff --git a/Dlp/src/V2/RecordCondition/Expressions/LogicalOperator.php b/Dlp/src/V2/RecordCondition/Expressions/LogicalOperator.php
index 666f5d8993dc..aeb6e0286883 100644
--- a/Dlp/src/V2/RecordCondition/Expressions/LogicalOperator.php
+++ b/Dlp/src/V2/RecordCondition/Expressions/LogicalOperator.php
@@ -28,7 +28,7 @@ class LogicalOperator
private static $valueToName = [
self::LOGICAL_OPERATOR_UNSPECIFIED => 'LOGICAL_OPERATOR_UNSPECIFIED',
- self::PBAND => 'PBAND',
+ self::PBAND => 'AND',
];
public static function name($value)
@@ -45,8 +45,12 @@ public static function value($name)
{
$const = __CLASS__ . '::' . strtoupper($name);
if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ $pbconst = __CLASS__. '::PB' . strtoupper($name);
+ if (!defined($pbconst)) {
+ throw new UnexpectedValueException(sprintf(
+ 'Enum %s has no value defined for name %s', __CLASS__, $name));
+ }
+ return constant($pbconst);
}
return constant($const);
}
diff --git a/Dlp/src/V2/RecordKey.php b/Dlp/src/V2/RecordKey.php
index c6dec5162259..c782b3d38031 100644
--- a/Dlp/src/V2/RecordKey.php
+++ b/Dlp/src/V2/RecordKey.php
@@ -32,7 +32,7 @@ class RecordKey extends \Google\Protobuf\Internal\Message
*
* @type \Google\Cloud\Dlp\V2\DatastoreKey $datastore_key
* @type \Google\Cloud\Dlp\V2\BigQueryKey $big_query_key
- * @type string[]|\Google\Protobuf\Internal\RepeatedField $id_values
+ * @type array|\Google\Protobuf\Internal\RepeatedField $id_values
* Values of identifying columns in the given row. Order of values matches
* the order of `identifying_fields` specified in the scanning request.
* }
@@ -113,7 +113,7 @@ public function getIdValues()
* the order of `identifying_fields` specified in the scanning request.
*
* Generated from protobuf field repeated string id_values = 5;
- * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setIdValues($var)
diff --git a/Dlp/src/V2/RecordTransformations.php b/Dlp/src/V2/RecordTransformations.php
index cc99ab0b1b21..33498ce84dd7 100644
--- a/Dlp/src/V2/RecordTransformations.php
+++ b/Dlp/src/V2/RecordTransformations.php
@@ -36,9 +36,9 @@ class RecordTransformations extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\FieldTransformation[]|\Google\Protobuf\Internal\RepeatedField $field_transformations
+ * @type array<\Google\Cloud\Dlp\V2\FieldTransformation>|\Google\Protobuf\Internal\RepeatedField $field_transformations
* Transform the record by applying various field transformations.
- * @type \Google\Cloud\Dlp\V2\RecordSuppression[]|\Google\Protobuf\Internal\RepeatedField $record_suppressions
+ * @type array<\Google\Cloud\Dlp\V2\RecordSuppression>|\Google\Protobuf\Internal\RepeatedField $record_suppressions
* Configuration defining which records get suppressed entirely. Records that
* match any suppression rule are omitted from the output.
* }
@@ -63,7 +63,7 @@ public function getFieldTransformations()
* Transform the record by applying various field transformations.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 1;
- * @param \Google\Cloud\Dlp\V2\FieldTransformation[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\FieldTransformation>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setFieldTransformations($var)
@@ -91,7 +91,7 @@ public function getRecordSuppressions()
* match any suppression rule are omitted from the output.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.RecordSuppression record_suppressions = 2;
- * @param \Google\Cloud\Dlp\V2\RecordSuppression[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\RecordSuppression>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setRecordSuppressions($var)
diff --git a/Dlp/src/V2/RedactImageRequest.php b/Dlp/src/V2/RedactImageRequest.php
index 2e8c48a77e35..57b7287ebe02 100644
--- a/Dlp/src/V2/RedactImageRequest.php
+++ b/Dlp/src/V2/RedactImageRequest.php
@@ -88,7 +88,7 @@ class RedactImageRequest extends \Google\Protobuf\Internal\Message
* Deprecated. This field has no effect.
* @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config
* Configuration for the inspector.
- * @type \Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig[]|\Google\Protobuf\Internal\RepeatedField $image_redaction_configs
+ * @type array<\Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig>|\Google\Protobuf\Internal\RepeatedField $image_redaction_configs
* The configuration for specifying what content to redact from images.
* @type bool $include_findings
* Whether the response should include findings along with the redacted
@@ -227,7 +227,7 @@ public function getImageRedactionConfigs()
* The configuration for specifying what content to redact from images.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5;
- * @param \Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setImageRedactionConfigs($var)
diff --git a/Dlp/src/V2/RiskAnalysisJobConfig.php b/Dlp/src/V2/RiskAnalysisJobConfig.php
index ebdcf625ec6d..df04ab6d1bf7 100644
--- a/Dlp/src/V2/RiskAnalysisJobConfig.php
+++ b/Dlp/src/V2/RiskAnalysisJobConfig.php
@@ -46,7 +46,7 @@ class RiskAnalysisJobConfig extends \Google\Protobuf\Internal\Message
* Privacy metric to compute.
* @type \Google\Cloud\Dlp\V2\BigQueryTable $source_table
* Input dataset to compute metrics over.
- * @type \Google\Cloud\Dlp\V2\Action[]|\Google\Protobuf\Internal\RepeatedField $actions
+ * @type array<\Google\Cloud\Dlp\V2\Action>|\Google\Protobuf\Internal\RepeatedField $actions
* Actions to execute at the completion of the job. Are executed in the order
* provided.
* }
@@ -145,7 +145,7 @@ public function getActions()
* provided.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 3;
- * @param \Google\Cloud\Dlp\V2\Action[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\Action>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setActions($var)
diff --git a/Dlp/src/V2/StatisticalTable.php b/Dlp/src/V2/StatisticalTable.php
index 2410f71e375d..940194c8da91 100644
--- a/Dlp/src/V2/StatisticalTable.php
+++ b/Dlp/src/V2/StatisticalTable.php
@@ -49,7 +49,7 @@ class StatisticalTable extends \Google\Protobuf\Internal\Message
*
* @type \Google\Cloud\Dlp\V2\BigQueryTable $table
* Required. Auxiliary table location.
- * @type \Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField[]|\Google\Protobuf\Internal\RepeatedField $quasi_ids
+ * @type array<\Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField>|\Google\Protobuf\Internal\RepeatedField $quasi_ids
* Required. Quasi-identifier columns.
* @type \Google\Cloud\Dlp\V2\FieldId $relative_frequency
* Required. The relative frequency column must contain a floating-point number
@@ -112,7 +112,7 @@ public function getQuasiIds()
* Required. Quasi-identifier columns.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setQuasiIds($var)
diff --git a/Dlp/src/V2/StoredInfoType.php b/Dlp/src/V2/StoredInfoType.php
index 1944cab18738..c3a6ea32dfa1 100644
--- a/Dlp/src/V2/StoredInfoType.php
+++ b/Dlp/src/V2/StoredInfoType.php
@@ -46,7 +46,7 @@ class StoredInfoType extends \Google\Protobuf\Internal\Message
* Resource name.
* @type \Google\Cloud\Dlp\V2\StoredInfoTypeVersion $current_version
* Current version of the stored info type.
- * @type \Google\Cloud\Dlp\V2\StoredInfoTypeVersion[]|\Google\Protobuf\Internal\RepeatedField $pending_versions
+ * @type array<\Google\Cloud\Dlp\V2\StoredInfoTypeVersion>|\Google\Protobuf\Internal\RepeatedField $pending_versions
* Pending versions of the stored info type. Empty if no versions are
* pending.
* }
@@ -135,7 +135,7 @@ public function getPendingVersions()
* pending.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3;
- * @param \Google\Cloud\Dlp\V2\StoredInfoTypeVersion[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\StoredInfoTypeVersion>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setPendingVersions($var)
diff --git a/Dlp/src/V2/StoredInfoTypeVersion.php b/Dlp/src/V2/StoredInfoTypeVersion.php
index 934d8757629b..95271d3d02ee 100644
--- a/Dlp/src/V2/StoredInfoTypeVersion.php
+++ b/Dlp/src/V2/StoredInfoTypeVersion.php
@@ -73,7 +73,7 @@ class StoredInfoTypeVersion extends \Google\Protobuf\Internal\Message
* @type int $state
* Stored info type version state. Read-only, updated by the system
* during dictionary creation.
- * @type \Google\Cloud\Dlp\V2\Error[]|\Google\Protobuf\Internal\RepeatedField $errors
+ * @type array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $errors
* Errors that occurred when creating this storedInfoType version, or
* anomalies detected in the storedInfoType data that render it unusable. Only
* the five most recent errors will be displayed, with the most recent error
@@ -231,7 +231,7 @@ public function getErrors()
* not the source of the error.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 4;
- * @param \Google\Cloud\Dlp\V2\Error[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setErrors($var)
diff --git a/Dlp/src/V2/Table.php b/Dlp/src/V2/Table.php
index 85087949fed6..fd919164c0a6 100644
--- a/Dlp/src/V2/Table.php
+++ b/Dlp/src/V2/Table.php
@@ -36,9 +36,9 @@ class Table extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $headers
+ * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $headers
* Headers of the table.
- * @type \Google\Cloud\Dlp\V2\Table\Row[]|\Google\Protobuf\Internal\RepeatedField $rows
+ * @type array<\Google\Cloud\Dlp\V2\Table\Row>|\Google\Protobuf\Internal\RepeatedField $rows
* Rows of the table.
* }
*/
@@ -62,7 +62,7 @@ public function getHeaders()
* Headers of the table.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId headers = 1;
- * @param \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setHeaders($var)
@@ -88,7 +88,7 @@ public function getRows()
* Rows of the table.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.Table.Row rows = 2;
- * @param \Google\Cloud\Dlp\V2\Table\Row[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\Table\Row>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setRows($var)
diff --git a/Dlp/src/V2/Table/Row.php b/Dlp/src/V2/Table/Row.php
index f5489842337a..18ab4403ca50 100644
--- a/Dlp/src/V2/Table/Row.php
+++ b/Dlp/src/V2/Table/Row.php
@@ -28,7 +28,7 @@ class Row extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\Value[]|\Google\Protobuf\Internal\RepeatedField $values
+ * @type array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $values
* Individual cells.
* }
*/
@@ -52,7 +52,7 @@ public function getValues()
* Individual cells.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.Value values = 1;
- * @param \Google\Cloud\Dlp\V2\Value[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setValues($var)
diff --git a/Dlp/src/V2/TableDataProfile.php b/Dlp/src/V2/TableDataProfile.php
index dacc6149f67b..2d934356fb68 100644
--- a/Dlp/src/V2/TableDataProfile.php
+++ b/Dlp/src/V2/TableDataProfile.php
@@ -202,9 +202,9 @@ class TableDataProfile extends \Google\Protobuf\Internal\Message
* The sensitivity score of this table.
* @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level
* The data risk level of this table.
- * @type \Google\Cloud\Dlp\V2\InfoTypeSummary[]|\Google\Protobuf\Internal\RepeatedField $predicted_info_types
+ * @type array<\Google\Cloud\Dlp\V2\InfoTypeSummary>|\Google\Protobuf\Internal\RepeatedField $predicted_info_types
* The infoTypes predicted from this table's data.
- * @type \Google\Cloud\Dlp\V2\OtherInfoTypeSummary[]|\Google\Protobuf\Internal\RepeatedField $other_info_types
+ * @type array<\Google\Cloud\Dlp\V2\OtherInfoTypeSummary>|\Google\Protobuf\Internal\RepeatedField $other_info_types
* Other infoTypes found in this table's data.
* @type \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot $config_snapshot
* The snapshot of the configurations used to generate the profile.
@@ -576,7 +576,7 @@ public function getPredictedInfoTypes()
* The infoTypes predicted from this table's data.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27;
- * @param \Google\Cloud\Dlp\V2\InfoTypeSummary[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\InfoTypeSummary>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setPredictedInfoTypes($var)
@@ -602,7 +602,7 @@ public function getOtherInfoTypes()
* Other infoTypes found in this table's data.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28;
- * @param \Google\Cloud\Dlp\V2\OtherInfoTypeSummary[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\OtherInfoTypeSummary>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setOtherInfoTypes($var)
diff --git a/Dlp/src/V2/TableOptions.php b/Dlp/src/V2/TableOptions.php
index f2b750af9ef0..46fbb8dc8f82 100644
--- a/Dlp/src/V2/TableOptions.php
+++ b/Dlp/src/V2/TableOptions.php
@@ -31,7 +31,7 @@ class TableOptions extends \Google\Protobuf\Internal\Message
* @param array $data {
* Optional. Data for populating the Message object.
*
- * @type \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $identifying_fields
+ * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $identifying_fields
* The columns that are the primary keys for table objects included in
* ContentItem. A copy of this cell's value will stored alongside alongside
* each finding so that the finding can be traced to the specific row it came
@@ -64,7 +64,7 @@ public function getIdentifyingFields()
* from. No more than 3 may be provided.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1;
- * @param \Google\Cloud\Dlp\V2\FieldId[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setIdentifyingFields($var)
diff --git a/Dlp/src/V2/TransformationOverview.php b/Dlp/src/V2/TransformationOverview.php
index 52499d632269..2130bc56082d 100644
--- a/Dlp/src/V2/TransformationOverview.php
+++ b/Dlp/src/V2/TransformationOverview.php
@@ -36,7 +36,7 @@ class TransformationOverview extends \Google\Protobuf\Internal\Message
*
* @type int|string $transformed_bytes
* Total size in bytes that were transformed in some way.
- * @type \Google\Cloud\Dlp\V2\TransformationSummary[]|\Google\Protobuf\Internal\RepeatedField $transformation_summaries
+ * @type array<\Google\Cloud\Dlp\V2\TransformationSummary>|\Google\Protobuf\Internal\RepeatedField $transformation_summaries
* Transformations applied to the dataset.
* }
*/
@@ -86,7 +86,7 @@ public function getTransformationSummaries()
* Transformations applied to the dataset.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3;
- * @param \Google\Cloud\Dlp\V2\TransformationSummary[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\TransformationSummary>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setTransformationSummaries($var)
diff --git a/Dlp/src/V2/TransformationSummary.php b/Dlp/src/V2/TransformationSummary.php
index f355f5d80077..3078b9b2fc74 100644
--- a/Dlp/src/V2/TransformationSummary.php
+++ b/Dlp/src/V2/TransformationSummary.php
@@ -74,13 +74,13 @@ class TransformationSummary extends \Google\Protobuf\Internal\Message
* Set if the transformation was limited to a specific FieldId.
* @type \Google\Cloud\Dlp\V2\PrimitiveTransformation $transformation
* The specific transformation these stats apply to.
- * @type \Google\Cloud\Dlp\V2\FieldTransformation[]|\Google\Protobuf\Internal\RepeatedField $field_transformations
+ * @type array<\Google\Cloud\Dlp\V2\FieldTransformation>|\Google\Protobuf\Internal\RepeatedField $field_transformations
* The field transformation that was applied.
* If multiple field transformations are requested for a single field,
* this list will contain all of them; otherwise, only one is supplied.
* @type \Google\Cloud\Dlp\V2\RecordSuppression $record_suppress
* The specific suppression option these stats apply to.
- * @type \Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult[]|\Google\Protobuf\Internal\RepeatedField $results
+ * @type array<\Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult>|\Google\Protobuf\Internal\RepeatedField $results
* Collection of all transformations that took place or had an error.
* @type int|string $transformed_bytes
* Total size in bytes that were transformed in some way.
@@ -218,7 +218,7 @@ public function getFieldTransformations()
* this list will contain all of them; otherwise, only one is supplied.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
- * @param \Google\Cloud\Dlp\V2\FieldTransformation[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\FieldTransformation>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setFieldTransformations($var)
@@ -280,7 +280,7 @@ public function getResults()
* Collection of all transformations that took place or had an error.
*
* Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
- * @param \Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult[]|\Google\Protobuf\Internal\RepeatedField $var
+ * @param array<\Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setResults($var)
diff --git a/Dlp/tests/Unit/V2/DlpServiceClientTest.php b/Dlp/tests/Unit/V2/DlpServiceClientTest.php
index f98ee28db5b7..72416be9e77e 100644
--- a/Dlp/tests/Unit/V2/DlpServiceClientTest.php
+++ b/Dlp/tests/Unit/V2/DlpServiceClientTest.php
@@ -91,7 +91,7 @@ private function createClient(array $options = [])
public function activateJobTriggerTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -103,8 +103,8 @@ public function activateJobTriggerTest()
$expectedResponse->setJobTriggerName($jobTriggerName);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
- $response = $client->activateJobTrigger($formattedName);
+ $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
+ $response = $gapicClient->activateJobTrigger($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -122,7 +122,7 @@ public function activateJobTriggerTest()
public function activateJobTriggerExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -137,10 +137,10 @@ public function activateJobTriggerExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
+ $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
try {
- $client->activateJobTrigger($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->activateJobTrigger($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -157,7 +157,7 @@ public function activateJobTriggerExceptionTest()
public function cancelDlpJobTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -165,8 +165,8 @@ public function cancelDlpJobTest()
$expectedResponse = new GPBEmpty();
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->dlpJobName('[PROJECT]', '[DLP_JOB]');
- $client->cancelDlpJob($formattedName);
+ $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]');
+ $gapicClient->cancelDlpJob($formattedName);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
@@ -183,7 +183,7 @@ public function cancelDlpJobTest()
public function cancelDlpJobExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -198,10 +198,10 @@ public function cancelDlpJobExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->dlpJobName('[PROJECT]', '[DLP_JOB]');
+ $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]');
try {
- $client->cancelDlpJob($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->cancelDlpJob($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -218,7 +218,7 @@ public function cancelDlpJobExceptionTest()
public function createDeidentifyTemplateTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -232,9 +232,9 @@ public function createDeidentifyTemplateTest()
$expectedResponse->setDescription($description);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedParent = $client->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
+ $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
$deidentifyTemplate = new DeidentifyTemplate();
- $response = $client->createDeidentifyTemplate($formattedParent, $deidentifyTemplate);
+ $response = $gapicClient->createDeidentifyTemplate($formattedParent, $deidentifyTemplate);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -254,7 +254,7 @@ public function createDeidentifyTemplateTest()
public function createDeidentifyTemplateExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -269,11 +269,11 @@ public function createDeidentifyTemplateExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedParent = $client->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
+ $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
$deidentifyTemplate = new DeidentifyTemplate();
try {
- $client->createDeidentifyTemplate($formattedParent, $deidentifyTemplate);
- // If the $client method call did not throw, fail the test
+ $gapicClient->createDeidentifyTemplate($formattedParent, $deidentifyTemplate);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -290,7 +290,7 @@ public function createDeidentifyTemplateExceptionTest()
public function createDlpJobTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -302,8 +302,8 @@ public function createDlpJobTest()
$expectedResponse->setJobTriggerName($jobTriggerName);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedParent = $client->projectName('[PROJECT]');
- $response = $client->createDlpJob($formattedParent);
+ $formattedParent = $gapicClient->projectName('[PROJECT]');
+ $response = $gapicClient->createDlpJob($formattedParent);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -321,7 +321,7 @@ public function createDlpJobTest()
public function createDlpJobExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -336,10 +336,10 @@ public function createDlpJobExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedParent = $client->projectName('[PROJECT]');
+ $formattedParent = $gapicClient->projectName('[PROJECT]');
try {
- $client->createDlpJob($formattedParent);
- // If the $client method call did not throw, fail the test
+ $gapicClient->createDlpJob($formattedParent);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -356,7 +356,7 @@ public function createDlpJobExceptionTest()
public function createInspectTemplateTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -370,9 +370,9 @@ public function createInspectTemplateTest()
$expectedResponse->setDescription($description);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedParent = $client->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
+ $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
$inspectTemplate = new InspectTemplate();
- $response = $client->createInspectTemplate($formattedParent, $inspectTemplate);
+ $response = $gapicClient->createInspectTemplate($formattedParent, $inspectTemplate);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -392,7 +392,7 @@ public function createInspectTemplateTest()
public function createInspectTemplateExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -407,11 +407,11 @@ public function createInspectTemplateExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedParent = $client->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
+ $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
$inspectTemplate = new InspectTemplate();
try {
- $client->createInspectTemplate($formattedParent, $inspectTemplate);
- // If the $client method call did not throw, fail the test
+ $gapicClient->createInspectTemplate($formattedParent, $inspectTemplate);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -428,7 +428,7 @@ public function createInspectTemplateExceptionTest()
public function createJobTriggerTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -442,11 +442,11 @@ public function createJobTriggerTest()
$expectedResponse->setDescription($description);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedParent = $client->projectName('[PROJECT]');
+ $formattedParent = $gapicClient->projectName('[PROJECT]');
$jobTrigger = new JobTrigger();
$jobTriggerStatus = Status::STATUS_UNSPECIFIED;
$jobTrigger->setStatus($jobTriggerStatus);
- $response = $client->createJobTrigger($formattedParent, $jobTrigger);
+ $response = $gapicClient->createJobTrigger($formattedParent, $jobTrigger);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -466,7 +466,7 @@ public function createJobTriggerTest()
public function createJobTriggerExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -481,13 +481,13 @@ public function createJobTriggerExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedParent = $client->projectName('[PROJECT]');
+ $formattedParent = $gapicClient->projectName('[PROJECT]');
$jobTrigger = new JobTrigger();
$jobTriggerStatus = Status::STATUS_UNSPECIFIED;
$jobTrigger->setStatus($jobTriggerStatus);
try {
- $client->createJobTrigger($formattedParent, $jobTrigger);
- // If the $client method call did not throw, fail the test
+ $gapicClient->createJobTrigger($formattedParent, $jobTrigger);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -504,7 +504,7 @@ public function createJobTriggerExceptionTest()
public function createStoredInfoTypeTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -514,9 +514,9 @@ public function createStoredInfoTypeTest()
$expectedResponse->setName($name);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedParent = $client->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
+ $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
$config = new StoredInfoTypeConfig();
- $response = $client->createStoredInfoType($formattedParent, $config);
+ $response = $gapicClient->createStoredInfoType($formattedParent, $config);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -536,7 +536,7 @@ public function createStoredInfoTypeTest()
public function createStoredInfoTypeExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -551,11 +551,11 @@ public function createStoredInfoTypeExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedParent = $client->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
+ $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
$config = new StoredInfoTypeConfig();
try {
- $client->createStoredInfoType($formattedParent, $config);
- // If the $client method call did not throw, fail the test
+ $gapicClient->createStoredInfoType($formattedParent, $config);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -572,14 +572,14 @@ public function createStoredInfoTypeExceptionTest()
public function deidentifyContentTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
// Mock response
$expectedResponse = new DeidentifyContentResponse();
$transport->addResponse($expectedResponse);
- $response = $client->deidentifyContent();
+ $response = $gapicClient->deidentifyContent();
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -595,7 +595,7 @@ public function deidentifyContentTest()
public function deidentifyContentExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -610,8 +610,8 @@ public function deidentifyContentExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
try {
- $client->deidentifyContent();
- // If the $client method call did not throw, fail the test
+ $gapicClient->deidentifyContent();
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -628,7 +628,7 @@ public function deidentifyContentExceptionTest()
public function deleteDeidentifyTemplateTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -636,8 +636,8 @@ public function deleteDeidentifyTemplateTest()
$expectedResponse = new GPBEmpty();
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]');
- $client->deleteDeidentifyTemplate($formattedName);
+ $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]');
+ $gapicClient->deleteDeidentifyTemplate($formattedName);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
@@ -654,7 +654,7 @@ public function deleteDeidentifyTemplateTest()
public function deleteDeidentifyTemplateExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -669,10 +669,10 @@ public function deleteDeidentifyTemplateExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]');
+ $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]');
try {
- $client->deleteDeidentifyTemplate($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->deleteDeidentifyTemplate($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -689,7 +689,7 @@ public function deleteDeidentifyTemplateExceptionTest()
public function deleteDlpJobTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -697,8 +697,8 @@ public function deleteDlpJobTest()
$expectedResponse = new GPBEmpty();
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->dlpJobName('[PROJECT]', '[DLP_JOB]');
- $client->deleteDlpJob($formattedName);
+ $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]');
+ $gapicClient->deleteDlpJob($formattedName);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
@@ -715,7 +715,7 @@ public function deleteDlpJobTest()
public function deleteDlpJobExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -730,10 +730,10 @@ public function deleteDlpJobExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->dlpJobName('[PROJECT]', '[DLP_JOB]');
+ $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]');
try {
- $client->deleteDlpJob($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->deleteDlpJob($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -750,7 +750,7 @@ public function deleteDlpJobExceptionTest()
public function deleteInspectTemplateTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -758,8 +758,8 @@ public function deleteInspectTemplateTest()
$expectedResponse = new GPBEmpty();
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]');
- $client->deleteInspectTemplate($formattedName);
+ $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]');
+ $gapicClient->deleteInspectTemplate($formattedName);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
@@ -776,7 +776,7 @@ public function deleteInspectTemplateTest()
public function deleteInspectTemplateExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -791,10 +791,10 @@ public function deleteInspectTemplateExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]');
+ $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]');
try {
- $client->deleteInspectTemplate($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->deleteInspectTemplate($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -811,7 +811,7 @@ public function deleteInspectTemplateExceptionTest()
public function deleteJobTriggerTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -819,8 +819,8 @@ public function deleteJobTriggerTest()
$expectedResponse = new GPBEmpty();
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
- $client->deleteJobTrigger($formattedName);
+ $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
+ $gapicClient->deleteJobTrigger($formattedName);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
@@ -837,7 +837,7 @@ public function deleteJobTriggerTest()
public function deleteJobTriggerExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -852,10 +852,10 @@ public function deleteJobTriggerExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
+ $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
try {
- $client->deleteJobTrigger($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->deleteJobTrigger($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -872,7 +872,7 @@ public function deleteJobTriggerExceptionTest()
public function deleteStoredInfoTypeTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -880,8 +880,8 @@ public function deleteStoredInfoTypeTest()
$expectedResponse = new GPBEmpty();
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]');
- $client->deleteStoredInfoType($formattedName);
+ $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]');
+ $gapicClient->deleteStoredInfoType($formattedName);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
@@ -898,7 +898,7 @@ public function deleteStoredInfoTypeTest()
public function deleteStoredInfoTypeExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -913,10 +913,10 @@ public function deleteStoredInfoTypeExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]');
+ $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]');
try {
- $client->deleteStoredInfoType($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->deleteStoredInfoType($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -933,7 +933,7 @@ public function deleteStoredInfoTypeExceptionTest()
public function finishDlpJobTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -941,8 +941,8 @@ public function finishDlpJobTest()
$expectedResponse = new GPBEmpty();
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->dlpJobName('[PROJECT]', '[DLP_JOB]');
- $client->finishDlpJob($formattedName);
+ $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]');
+ $gapicClient->finishDlpJob($formattedName);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
$actualFuncCall = $actualRequests[0]->getFuncCall();
@@ -959,7 +959,7 @@ public function finishDlpJobTest()
public function finishDlpJobExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -974,10 +974,10 @@ public function finishDlpJobExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->dlpJobName('[PROJECT]', '[DLP_JOB]');
+ $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]');
try {
- $client->finishDlpJob($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->finishDlpJob($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -994,7 +994,7 @@ public function finishDlpJobExceptionTest()
public function getDeidentifyTemplateTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1008,8 +1008,8 @@ public function getDeidentifyTemplateTest()
$expectedResponse->setDescription($description);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]');
- $response = $client->getDeidentifyTemplate($formattedName);
+ $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]');
+ $response = $gapicClient->getDeidentifyTemplate($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -1027,7 +1027,7 @@ public function getDeidentifyTemplateTest()
public function getDeidentifyTemplateExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1042,10 +1042,10 @@ public function getDeidentifyTemplateExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]');
+ $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]');
try {
- $client->getDeidentifyTemplate($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->getDeidentifyTemplate($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1062,7 +1062,7 @@ public function getDeidentifyTemplateExceptionTest()
public function getDlpJobTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1074,8 +1074,8 @@ public function getDlpJobTest()
$expectedResponse->setJobTriggerName($jobTriggerName);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->dlpJobName('[PROJECT]', '[DLP_JOB]');
- $response = $client->getDlpJob($formattedName);
+ $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]');
+ $response = $gapicClient->getDlpJob($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -1093,7 +1093,7 @@ public function getDlpJobTest()
public function getDlpJobExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1108,10 +1108,10 @@ public function getDlpJobExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->dlpJobName('[PROJECT]', '[DLP_JOB]');
+ $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]');
try {
- $client->getDlpJob($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->getDlpJob($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1128,7 +1128,7 @@ public function getDlpJobExceptionTest()
public function getInspectTemplateTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1142,8 +1142,8 @@ public function getInspectTemplateTest()
$expectedResponse->setDescription($description);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]');
- $response = $client->getInspectTemplate($formattedName);
+ $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]');
+ $response = $gapicClient->getInspectTemplate($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -1161,7 +1161,7 @@ public function getInspectTemplateTest()
public function getInspectTemplateExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1176,10 +1176,10 @@ public function getInspectTemplateExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]');
+ $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]');
try {
- $client->getInspectTemplate($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->getInspectTemplate($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1196,7 +1196,7 @@ public function getInspectTemplateExceptionTest()
public function getJobTriggerTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1210,8 +1210,8 @@ public function getJobTriggerTest()
$expectedResponse->setDescription($description);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
- $response = $client->getJobTrigger($formattedName);
+ $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
+ $response = $gapicClient->getJobTrigger($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -1229,7 +1229,7 @@ public function getJobTriggerTest()
public function getJobTriggerExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1244,10 +1244,10 @@ public function getJobTriggerExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
+ $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
try {
- $client->getJobTrigger($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->getJobTrigger($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1264,7 +1264,7 @@ public function getJobTriggerExceptionTest()
public function getStoredInfoTypeTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1274,8 +1274,8 @@ public function getStoredInfoTypeTest()
$expectedResponse->setName($name2);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]');
- $response = $client->getStoredInfoType($formattedName);
+ $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]');
+ $response = $gapicClient->getStoredInfoType($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -1293,7 +1293,7 @@ public function getStoredInfoTypeTest()
public function getStoredInfoTypeExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1308,10 +1308,10 @@ public function getStoredInfoTypeExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]');
+ $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]');
try {
- $client->getStoredInfoType($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->getStoredInfoType($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1328,7 +1328,7 @@ public function getStoredInfoTypeExceptionTest()
public function hybridInspectDlpJobTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1336,8 +1336,8 @@ public function hybridInspectDlpJobTest()
$expectedResponse = new HybridInspectResponse();
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->dlpJobName('[PROJECT]', '[DLP_JOB]');
- $response = $client->hybridInspectDlpJob($formattedName);
+ $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]');
+ $response = $gapicClient->hybridInspectDlpJob($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -1355,7 +1355,7 @@ public function hybridInspectDlpJobTest()
public function hybridInspectDlpJobExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1370,10 +1370,10 @@ public function hybridInspectDlpJobExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->dlpJobName('[PROJECT]', '[DLP_JOB]');
+ $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]');
try {
- $client->hybridInspectDlpJob($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->hybridInspectDlpJob($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1390,7 +1390,7 @@ public function hybridInspectDlpJobExceptionTest()
public function hybridInspectJobTriggerTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1398,8 +1398,8 @@ public function hybridInspectJobTriggerTest()
$expectedResponse = new HybridInspectResponse();
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
- $response = $client->hybridInspectJobTrigger($formattedName);
+ $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
+ $response = $gapicClient->hybridInspectJobTrigger($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -1417,7 +1417,7 @@ public function hybridInspectJobTriggerTest()
public function hybridInspectJobTriggerExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1432,10 +1432,10 @@ public function hybridInspectJobTriggerExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
+ $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
try {
- $client->hybridInspectJobTrigger($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->hybridInspectJobTrigger($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1452,14 +1452,14 @@ public function hybridInspectJobTriggerExceptionTest()
public function inspectContentTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
// Mock response
$expectedResponse = new InspectContentResponse();
$transport->addResponse($expectedResponse);
- $response = $client->inspectContent();
+ $response = $gapicClient->inspectContent();
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -1475,7 +1475,7 @@ public function inspectContentTest()
public function inspectContentExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1490,8 +1490,8 @@ public function inspectContentExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
try {
- $client->inspectContent();
- // If the $client method call did not throw, fail the test
+ $gapicClient->inspectContent();
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1508,7 +1508,7 @@ public function inspectContentExceptionTest()
public function listDeidentifyTemplatesTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1523,8 +1523,8 @@ public function listDeidentifyTemplatesTest()
$expectedResponse->setDeidentifyTemplates($deidentifyTemplates);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedParent = $client->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
- $response = $client->listDeidentifyTemplates($formattedParent);
+ $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
+ $response = $gapicClient->listDeidentifyTemplates($formattedParent);
$this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
$resources = iterator_to_array($response->iterateAllElements());
$this->assertSame(1, count($resources));
@@ -1545,7 +1545,7 @@ public function listDeidentifyTemplatesTest()
public function listDeidentifyTemplatesExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1560,10 +1560,10 @@ public function listDeidentifyTemplatesExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedParent = $client->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
+ $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
try {
- $client->listDeidentifyTemplates($formattedParent);
- // If the $client method call did not throw, fail the test
+ $gapicClient->listDeidentifyTemplates($formattedParent);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1580,7 +1580,7 @@ public function listDeidentifyTemplatesExceptionTest()
public function listDlpJobsTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1595,8 +1595,8 @@ public function listDlpJobsTest()
$expectedResponse->setJobs($jobs);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedParent = $client->projectName('[PROJECT]');
- $response = $client->listDlpJobs($formattedParent);
+ $formattedParent = $gapicClient->projectName('[PROJECT]');
+ $response = $gapicClient->listDlpJobs($formattedParent);
$this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
$resources = iterator_to_array($response->iterateAllElements());
$this->assertSame(1, count($resources));
@@ -1617,7 +1617,7 @@ public function listDlpJobsTest()
public function listDlpJobsExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1632,10 +1632,10 @@ public function listDlpJobsExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedParent = $client->projectName('[PROJECT]');
+ $formattedParent = $gapicClient->projectName('[PROJECT]');
try {
- $client->listDlpJobs($formattedParent);
- // If the $client method call did not throw, fail the test
+ $gapicClient->listDlpJobs($formattedParent);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1652,14 +1652,14 @@ public function listDlpJobsExceptionTest()
public function listInfoTypesTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
// Mock response
$expectedResponse = new ListInfoTypesResponse();
$transport->addResponse($expectedResponse);
- $response = $client->listInfoTypes();
+ $response = $gapicClient->listInfoTypes();
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -1675,7 +1675,7 @@ public function listInfoTypesTest()
public function listInfoTypesExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1690,8 +1690,8 @@ public function listInfoTypesExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
try {
- $client->listInfoTypes();
- // If the $client method call did not throw, fail the test
+ $gapicClient->listInfoTypes();
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1708,7 +1708,7 @@ public function listInfoTypesExceptionTest()
public function listInspectTemplatesTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1723,8 +1723,8 @@ public function listInspectTemplatesTest()
$expectedResponse->setInspectTemplates($inspectTemplates);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedParent = $client->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
- $response = $client->listInspectTemplates($formattedParent);
+ $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
+ $response = $gapicClient->listInspectTemplates($formattedParent);
$this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
$resources = iterator_to_array($response->iterateAllElements());
$this->assertSame(1, count($resources));
@@ -1745,7 +1745,7 @@ public function listInspectTemplatesTest()
public function listInspectTemplatesExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1760,10 +1760,10 @@ public function listInspectTemplatesExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedParent = $client->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
+ $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
try {
- $client->listInspectTemplates($formattedParent);
- // If the $client method call did not throw, fail the test
+ $gapicClient->listInspectTemplates($formattedParent);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1780,7 +1780,7 @@ public function listInspectTemplatesExceptionTest()
public function listJobTriggersTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1795,8 +1795,8 @@ public function listJobTriggersTest()
$expectedResponse->setJobTriggers($jobTriggers);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedParent = $client->projectName('[PROJECT]');
- $response = $client->listJobTriggers($formattedParent);
+ $formattedParent = $gapicClient->projectName('[PROJECT]');
+ $response = $gapicClient->listJobTriggers($formattedParent);
$this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
$resources = iterator_to_array($response->iterateAllElements());
$this->assertSame(1, count($resources));
@@ -1817,7 +1817,7 @@ public function listJobTriggersTest()
public function listJobTriggersExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1832,10 +1832,10 @@ public function listJobTriggersExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedParent = $client->projectName('[PROJECT]');
+ $formattedParent = $gapicClient->projectName('[PROJECT]');
try {
- $client->listJobTriggers($formattedParent);
- // If the $client method call did not throw, fail the test
+ $gapicClient->listJobTriggers($formattedParent);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1852,7 +1852,7 @@ public function listJobTriggersExceptionTest()
public function listStoredInfoTypesTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1867,8 +1867,8 @@ public function listStoredInfoTypesTest()
$expectedResponse->setStoredInfoTypes($storedInfoTypes);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedParent = $client->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
- $response = $client->listStoredInfoTypes($formattedParent);
+ $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
+ $response = $gapicClient->listStoredInfoTypes($formattedParent);
$this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
$resources = iterator_to_array($response->iterateAllElements());
$this->assertSame(1, count($resources));
@@ -1889,7 +1889,7 @@ public function listStoredInfoTypesTest()
public function listStoredInfoTypesExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1904,10 +1904,10 @@ public function listStoredInfoTypesExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedParent = $client->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
+ $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]');
try {
- $client->listStoredInfoTypes($formattedParent);
- // If the $client method call did not throw, fail the test
+ $gapicClient->listStoredInfoTypes($formattedParent);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1924,7 +1924,7 @@ public function listStoredInfoTypesExceptionTest()
public function redactImageTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1935,7 +1935,7 @@ public function redactImageTest()
$expectedResponse->setRedactedImage($redactedImage);
$expectedResponse->setExtractedText($extractedText);
$transport->addResponse($expectedResponse);
- $response = $client->redactImage();
+ $response = $gapicClient->redactImage();
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -1951,7 +1951,7 @@ public function redactImageTest()
public function redactImageExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1966,8 +1966,8 @@ public function redactImageExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
try {
- $client->redactImage();
- // If the $client method call did not throw, fail the test
+ $gapicClient->redactImage();
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -1984,7 +1984,7 @@ public function redactImageExceptionTest()
public function reidentifyContentTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -1992,8 +1992,8 @@ public function reidentifyContentTest()
$expectedResponse = new ReidentifyContentResponse();
$transport->addResponse($expectedResponse);
// Mock request
- $formattedParent = $client->projectName('[PROJECT]');
- $response = $client->reidentifyContent($formattedParent);
+ $formattedParent = $gapicClient->projectName('[PROJECT]');
+ $response = $gapicClient->reidentifyContent($formattedParent);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -2011,7 +2011,7 @@ public function reidentifyContentTest()
public function reidentifyContentExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -2026,10 +2026,10 @@ public function reidentifyContentExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedParent = $client->projectName('[PROJECT]');
+ $formattedParent = $gapicClient->projectName('[PROJECT]');
try {
- $client->reidentifyContent($formattedParent);
- // If the $client method call did not throw, fail the test
+ $gapicClient->reidentifyContent($formattedParent);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -2046,7 +2046,7 @@ public function reidentifyContentExceptionTest()
public function updateDeidentifyTemplateTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -2060,8 +2060,8 @@ public function updateDeidentifyTemplateTest()
$expectedResponse->setDescription($description);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]');
- $response = $client->updateDeidentifyTemplate($formattedName);
+ $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]');
+ $response = $gapicClient->updateDeidentifyTemplate($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -2079,7 +2079,7 @@ public function updateDeidentifyTemplateTest()
public function updateDeidentifyTemplateExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -2094,10 +2094,10 @@ public function updateDeidentifyTemplateExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]');
+ $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]');
try {
- $client->updateDeidentifyTemplate($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->updateDeidentifyTemplate($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -2114,7 +2114,7 @@ public function updateDeidentifyTemplateExceptionTest()
public function updateInspectTemplateTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -2128,8 +2128,8 @@ public function updateInspectTemplateTest()
$expectedResponse->setDescription($description);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]');
- $response = $client->updateInspectTemplate($formattedName);
+ $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]');
+ $response = $gapicClient->updateInspectTemplate($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -2147,7 +2147,7 @@ public function updateInspectTemplateTest()
public function updateInspectTemplateExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -2162,10 +2162,10 @@ public function updateInspectTemplateExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]');
+ $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]');
try {
- $client->updateInspectTemplate($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->updateInspectTemplate($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -2182,7 +2182,7 @@ public function updateInspectTemplateExceptionTest()
public function updateJobTriggerTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -2196,8 +2196,8 @@ public function updateJobTriggerTest()
$expectedResponse->setDescription($description);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
- $response = $client->updateJobTrigger($formattedName);
+ $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
+ $response = $gapicClient->updateJobTrigger($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -2215,7 +2215,7 @@ public function updateJobTriggerTest()
public function updateJobTriggerExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -2230,10 +2230,10 @@ public function updateJobTriggerExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
+ $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]');
try {
- $client->updateJobTrigger($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->updateJobTrigger($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());
@@ -2250,7 +2250,7 @@ public function updateJobTriggerExceptionTest()
public function updateStoredInfoTypeTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -2260,8 +2260,8 @@ public function updateStoredInfoTypeTest()
$expectedResponse->setName($name2);
$transport->addResponse($expectedResponse);
// Mock request
- $formattedName = $client->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]');
- $response = $client->updateStoredInfoType($formattedName);
+ $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]');
+ $response = $gapicClient->updateStoredInfoType($formattedName);
$this->assertEquals($expectedResponse, $response);
$actualRequests = $transport->popReceivedCalls();
$this->assertSame(1, count($actualRequests));
@@ -2279,7 +2279,7 @@ public function updateStoredInfoTypeTest()
public function updateStoredInfoTypeExceptionTest()
{
$transport = $this->createTransport();
- $client = $this->createClient([
+ $gapicClient = $this->createClient([
'transport' => $transport,
]);
$this->assertTrue($transport->isExhausted());
@@ -2294,10 +2294,10 @@ public function updateStoredInfoTypeExceptionTest()
], JSON_PRETTY_PRINT);
$transport->addResponse(null, $status);
// Mock request
- $formattedName = $client->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]');
+ $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]');
try {
- $client->updateStoredInfoType($formattedName);
- // If the $client method call did not throw, fail the test
+ $gapicClient->updateStoredInfoType($formattedName);
+ // If the $gapicClient method call did not throw, fail the test
$this->fail('Expected an ApiException, but no exception was thrown.');
} catch (ApiException $ex) {
$this->assertEquals($status->code, $ex->getCode());