diff --git a/Kms/metadata/V1/AutokeyAdmin.php b/Kms/metadata/V1/AutokeyAdmin.php
index 947aaed125ac..25deea6f10b4 100644
Binary files a/Kms/metadata/V1/AutokeyAdmin.php and b/Kms/metadata/V1/AutokeyAdmin.php differ
diff --git a/Kms/src/V1/AutokeyConfig.php b/Kms/src/V1/AutokeyConfig.php
index 4473493d8774..0b671f387ee1 100644
--- a/Kms/src/V1/AutokeyConfig.php
+++ b/Kms/src/V1/AutokeyConfig.php
@@ -44,6 +44,15 @@ class AutokeyConfig extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.cloud.kms.v1.AutokeyConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
protected $state = 0;
+ /**
+ * Optional. A checksum computed by the server based on the value of other
+ * fields. This may be sent on update requests to ensure that the client has
+ * an up-to-date value before proceeding. The request will be rejected with an
+ * ABORTED error on a mismatched etag.
+ *
+ * Generated from protobuf field string etag = 6 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ protected $etag = '';
/**
* Constructor.
@@ -68,6 +77,11 @@ class AutokeyConfig extends \Google\Protobuf\Internal\Message
* key project field will clear the configuration.
* @type int $state
* Output only. The state for the AutokeyConfig.
+ * @type string $etag
+ * Optional. A checksum computed by the server based on the value of other
+ * fields. This may be sent on update requests to ensure that the client has
+ * an up-to-date value before proceeding. The request will be rejected with an
+ * ABORTED error on a mismatched etag.
* }
*/
public function __construct($data = NULL) {
@@ -175,5 +189,37 @@ public function setState($var)
return $this;
}
+ /**
+ * Optional. A checksum computed by the server based on the value of other
+ * fields. This may be sent on update requests to ensure that the client has
+ * an up-to-date value before proceeding. The request will be rejected with an
+ * ABORTED error on a mismatched etag.
+ *
+ * Generated from protobuf field string etag = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * @return string
+ */
+ public function getEtag()
+ {
+ return $this->etag;
+ }
+
+ /**
+ * Optional. A checksum computed by the server based on the value of other
+ * fields. This may be sent on update requests to ensure that the client has
+ * an up-to-date value before proceeding. The request will be rejected with an
+ * ABORTED error on a mismatched etag.
+ *
+ * Generated from protobuf field string etag = 6 [(.google.api.field_behavior) = OPTIONAL];
+ * @param string $var
+ * @return $this
+ */
+ public function setEtag($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->etag = $var;
+
+ return $this;
+ }
+
}
diff --git a/Kms/src/V1/CryptoKeyVersion/CryptoKeyVersionAlgorithm.php b/Kms/src/V1/CryptoKeyVersion/CryptoKeyVersionAlgorithm.php
index c7c31d9d8d39..e30f22406490 100644
--- a/Kms/src/V1/CryptoKeyVersion/CryptoKeyVersionAlgorithm.php
+++ b/Kms/src/V1/CryptoKeyVersion/CryptoKeyVersionAlgorithm.php
@@ -39,6 +39,7 @@
* [MAC][google.cloud.kms.v1.CryptoKey.CryptoKeyPurpose.MAC].
* The suffix following `HMAC_` corresponds to the hash algorithm being used
* (eg. SHA256).
+ * Algorithms beginning with `PQ_` are post-quantum.
* For more information, see [Key purposes and algorithms]
* (https://cloud.google.com/kms/docs/algorithms).
*
diff --git a/Kms/src/V1/CryptoKeyVersion/CryptoKeyVersionState.php b/Kms/src/V1/CryptoKeyVersion/CryptoKeyVersionState.php
index 7806704a7020..5cfd545d4edb 100644
--- a/Kms/src/V1/CryptoKeyVersion/CryptoKeyVersionState.php
+++ b/Kms/src/V1/CryptoKeyVersion/CryptoKeyVersionState.php
@@ -46,7 +46,7 @@ class CryptoKeyVersionState
*/
const DISABLED = 2;
/**
- * This version is destroyed, and the key material is no longer stored.
+ * The key material of this version is destroyed and no longer stored.
* This version may only become
* [ENABLED][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionState.ENABLED]
* again if this version is
diff --git a/Kms/src/V1/ListCryptoKeyVersionsResponse.php b/Kms/src/V1/ListCryptoKeyVersionsResponse.php
index bbbe9ccb0775..5c7781143e8a 100644
--- a/Kms/src/V1/ListCryptoKeyVersionsResponse.php
+++ b/Kms/src/V1/ListCryptoKeyVersionsResponse.php
@@ -34,6 +34,9 @@ class ListCryptoKeyVersionsResponse extends \Google\Protobuf\Internal\Message
* The total number of
* [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] that matched the
* query.
+ * This field is not populated if
+ * [ListCryptoKeyVersionsRequest.filter][google.cloud.kms.v1.ListCryptoKeyVersionsRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
*/
@@ -55,6 +58,9 @@ class ListCryptoKeyVersionsResponse extends \Google\Protobuf\Internal\Message
* The total number of
* [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] that matched the
* query.
+ * This field is not populated if
+ * [ListCryptoKeyVersionsRequest.filter][google.cloud.kms.v1.ListCryptoKeyVersionsRequest.filter]
+ * is applied.
* }
*/
public function __construct($data = NULL) {
@@ -122,6 +128,9 @@ public function setNextPageToken($var)
* The total number of
* [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] that matched the
* query.
+ * This field is not populated if
+ * [ListCryptoKeyVersionsRequest.filter][google.cloud.kms.v1.ListCryptoKeyVersionsRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
* @return int
@@ -135,6 +144,9 @@ public function getTotalSize()
* The total number of
* [CryptoKeyVersions][google.cloud.kms.v1.CryptoKeyVersion] that matched the
* query.
+ * This field is not populated if
+ * [ListCryptoKeyVersionsRequest.filter][google.cloud.kms.v1.ListCryptoKeyVersionsRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
* @param int $var
diff --git a/Kms/src/V1/ListCryptoKeysResponse.php b/Kms/src/V1/ListCryptoKeysResponse.php
index 256c1b36b885..6ea2d282ad42 100644
--- a/Kms/src/V1/ListCryptoKeysResponse.php
+++ b/Kms/src/V1/ListCryptoKeysResponse.php
@@ -33,6 +33,9 @@ class ListCryptoKeysResponse extends \Google\Protobuf\Internal\Message
/**
* The total number of [CryptoKeys][google.cloud.kms.v1.CryptoKey] that
* matched the query.
+ * This field is not populated if
+ * [ListCryptoKeysRequest.filter][google.cloud.kms.v1.ListCryptoKeysRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
*/
@@ -53,6 +56,9 @@ class ListCryptoKeysResponse extends \Google\Protobuf\Internal\Message
* @type int $total_size
* The total number of [CryptoKeys][google.cloud.kms.v1.CryptoKey] that
* matched the query.
+ * This field is not populated if
+ * [ListCryptoKeysRequest.filter][google.cloud.kms.v1.ListCryptoKeysRequest.filter]
+ * is applied.
* }
*/
public function __construct($data = NULL) {
@@ -119,6 +125,9 @@ public function setNextPageToken($var)
/**
* The total number of [CryptoKeys][google.cloud.kms.v1.CryptoKey] that
* matched the query.
+ * This field is not populated if
+ * [ListCryptoKeysRequest.filter][google.cloud.kms.v1.ListCryptoKeysRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
* @return int
@@ -131,6 +140,9 @@ public function getTotalSize()
/**
* The total number of [CryptoKeys][google.cloud.kms.v1.CryptoKey] that
* matched the query.
+ * This field is not populated if
+ * [ListCryptoKeysRequest.filter][google.cloud.kms.v1.ListCryptoKeysRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
* @param int $var
diff --git a/Kms/src/V1/ListEkmConnectionsResponse.php b/Kms/src/V1/ListEkmConnectionsResponse.php
index cf84a145df5e..2273176dd077 100644
--- a/Kms/src/V1/ListEkmConnectionsResponse.php
+++ b/Kms/src/V1/ListEkmConnectionsResponse.php
@@ -33,6 +33,9 @@ class ListEkmConnectionsResponse extends \Google\Protobuf\Internal\Message
/**
* The total number of [EkmConnections][google.cloud.kms.v1.EkmConnection]
* that matched the query.
+ * This field is not populated if
+ * [ListEkmConnectionsRequest.filter][google.cloud.kms.v1.ListEkmConnectionsRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
*/
@@ -53,6 +56,9 @@ class ListEkmConnectionsResponse extends \Google\Protobuf\Internal\Message
* @type int $total_size
* The total number of [EkmConnections][google.cloud.kms.v1.EkmConnection]
* that matched the query.
+ * This field is not populated if
+ * [ListEkmConnectionsRequest.filter][google.cloud.kms.v1.ListEkmConnectionsRequest.filter]
+ * is applied.
* }
*/
public function __construct($data = NULL) {
@@ -119,6 +125,9 @@ public function setNextPageToken($var)
/**
* The total number of [EkmConnections][google.cloud.kms.v1.EkmConnection]
* that matched the query.
+ * This field is not populated if
+ * [ListEkmConnectionsRequest.filter][google.cloud.kms.v1.ListEkmConnectionsRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
* @return int
@@ -131,6 +140,9 @@ public function getTotalSize()
/**
* The total number of [EkmConnections][google.cloud.kms.v1.EkmConnection]
* that matched the query.
+ * This field is not populated if
+ * [ListEkmConnectionsRequest.filter][google.cloud.kms.v1.ListEkmConnectionsRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
* @param int $var
diff --git a/Kms/src/V1/ListImportJobsResponse.php b/Kms/src/V1/ListImportJobsResponse.php
index 04f11ca76dd2..aa2597e9f7ed 100644
--- a/Kms/src/V1/ListImportJobsResponse.php
+++ b/Kms/src/V1/ListImportJobsResponse.php
@@ -33,6 +33,9 @@ class ListImportJobsResponse extends \Google\Protobuf\Internal\Message
/**
* The total number of [ImportJobs][google.cloud.kms.v1.ImportJob] that
* matched the query.
+ * This field is not populated if
+ * [ListImportJobsRequest.filter][google.cloud.kms.v1.ListImportJobsRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
*/
@@ -53,6 +56,9 @@ class ListImportJobsResponse extends \Google\Protobuf\Internal\Message
* @type int $total_size
* The total number of [ImportJobs][google.cloud.kms.v1.ImportJob] that
* matched the query.
+ * This field is not populated if
+ * [ListImportJobsRequest.filter][google.cloud.kms.v1.ListImportJobsRequest.filter]
+ * is applied.
* }
*/
public function __construct($data = NULL) {
@@ -119,6 +125,9 @@ public function setNextPageToken($var)
/**
* The total number of [ImportJobs][google.cloud.kms.v1.ImportJob] that
* matched the query.
+ * This field is not populated if
+ * [ListImportJobsRequest.filter][google.cloud.kms.v1.ListImportJobsRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
* @return int
@@ -131,6 +140,9 @@ public function getTotalSize()
/**
* The total number of [ImportJobs][google.cloud.kms.v1.ImportJob] that
* matched the query.
+ * This field is not populated if
+ * [ListImportJobsRequest.filter][google.cloud.kms.v1.ListImportJobsRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
* @param int $var
diff --git a/Kms/src/V1/ListKeyRingsResponse.php b/Kms/src/V1/ListKeyRingsResponse.php
index 3deac0ea2e0f..409bf1a82c50 100644
--- a/Kms/src/V1/ListKeyRingsResponse.php
+++ b/Kms/src/V1/ListKeyRingsResponse.php
@@ -33,6 +33,9 @@ class ListKeyRingsResponse extends \Google\Protobuf\Internal\Message
/**
* The total number of [KeyRings][google.cloud.kms.v1.KeyRing] that matched
* the query.
+ * This field is not populated if
+ * [ListKeyRingsRequest.filter][google.cloud.kms.v1.ListKeyRingsRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
*/
@@ -53,6 +56,9 @@ class ListKeyRingsResponse extends \Google\Protobuf\Internal\Message
* @type int $total_size
* The total number of [KeyRings][google.cloud.kms.v1.KeyRing] that matched
* the query.
+ * This field is not populated if
+ * [ListKeyRingsRequest.filter][google.cloud.kms.v1.ListKeyRingsRequest.filter]
+ * is applied.
* }
*/
public function __construct($data = NULL) {
@@ -119,6 +125,9 @@ public function setNextPageToken($var)
/**
* The total number of [KeyRings][google.cloud.kms.v1.KeyRing] that matched
* the query.
+ * This field is not populated if
+ * [ListKeyRingsRequest.filter][google.cloud.kms.v1.ListKeyRingsRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
* @return int
@@ -131,6 +140,9 @@ public function getTotalSize()
/**
* The total number of [KeyRings][google.cloud.kms.v1.KeyRing] that matched
* the query.
+ * This field is not populated if
+ * [ListKeyRingsRequest.filter][google.cloud.kms.v1.ListKeyRingsRequest.filter]
+ * is applied.
*
* Generated from protobuf field int32 total_size = 3;
* @param int $var
diff --git a/Kms/tests/Unit/V1/Client/AutokeyAdminClientTest.php b/Kms/tests/Unit/V1/Client/AutokeyAdminClientTest.php
index 6812384a587f..4ce29363e000 100644
--- a/Kms/tests/Unit/V1/Client/AutokeyAdminClientTest.php
+++ b/Kms/tests/Unit/V1/Client/AutokeyAdminClientTest.php
@@ -86,9 +86,11 @@ public function getAutokeyConfigTest()
// Mock response
$name2 = 'name2-1052831874';
$keyProject = 'keyProject721994041';
+ $etag = 'etag3123477';
$expectedResponse = new AutokeyConfig();
$expectedResponse->setName($name2);
$expectedResponse->setKeyProject($keyProject);
+ $expectedResponse->setEtag($etag);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->autokeyConfigName('[FOLDER]');
@@ -218,9 +220,11 @@ public function updateAutokeyConfigTest()
// Mock response
$name = 'name3373707';
$keyProject = 'keyProject721994041';
+ $etag = 'etag3123477';
$expectedResponse = new AutokeyConfig();
$expectedResponse->setName($name);
$expectedResponse->setKeyProject($keyProject);
+ $expectedResponse->setEtag($etag);
$transport->addResponse($expectedResponse);
// Mock request
$autokeyConfig = new AutokeyConfig();
@@ -622,9 +626,11 @@ public function getAutokeyConfigAsyncTest()
// Mock response
$name2 = 'name2-1052831874';
$keyProject = 'keyProject721994041';
+ $etag = 'etag3123477';
$expectedResponse = new AutokeyConfig();
$expectedResponse->setName($name2);
$expectedResponse->setKeyProject($keyProject);
+ $expectedResponse->setEtag($etag);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->autokeyConfigName('[FOLDER]');