diff --git a/EventarcPublishing/src/V1/Client/PublisherClient.php b/EventarcPublishing/src/V1/Client/PublisherClient.php
index 08b94a2150dc..41bd5240f863 100644
--- a/EventarcPublishing/src/V1/Client/PublisherClient.php
+++ b/EventarcPublishing/src/V1/Client/PublisherClient.php
@@ -39,6 +39,7 @@
use Google\Cloud\Eventarc\Publishing\V1\PublishResponse;
use Google\Protobuf\Any;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Eventarc processes events generated by an event provider and delivers them to
@@ -168,6 +169,9 @@ private static function getClientDefaults()
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Filestore/src/V1/Client/CloudFilestoreManagerClient.php b/Filestore/src/V1/Client/CloudFilestoreManagerClient.php
index 0b16c2797297..f31e9e53f663 100644
--- a/Filestore/src/V1/Client/CloudFilestoreManagerClient.php
+++ b/Filestore/src/V1/Client/CloudFilestoreManagerClient.php
@@ -57,6 +57,7 @@
use Google\LongRunning\Client\OperationsClient;
use Google\LongRunning\Operation;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Configures and manages Filestore resources.
@@ -294,14 +295,14 @@ public static function snapshotName(string $project, string $location, string $i
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -356,6 +357,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Firestore/src/Admin/V1/Client/FirestoreAdminClient.php b/Firestore/src/Admin/V1/Client/FirestoreAdminClient.php
index 93557144d22f..810ab21ebe42 100644
--- a/Firestore/src/Admin/V1/Client/FirestoreAdminClient.php
+++ b/Firestore/src/Admin/V1/Client/FirestoreAdminClient.php
@@ -72,6 +72,7 @@
use Google\Cloud\Firestore\Admin\V1\UpdateFieldRequest;
use Google\LongRunning\Operation;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: The Cloud Firestore Admin API.
@@ -403,14 +404,14 @@ public static function projectName(string $project): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -465,6 +466,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Firestore/src/V1/Client/FirestoreClient.php b/Firestore/src/V1/Client/FirestoreClient.php
index 7d0cacc33b8e..d01224d6120d 100644
--- a/Firestore/src/V1/Client/FirestoreClient.php
+++ b/Firestore/src/V1/Client/FirestoreClient.php
@@ -54,6 +54,7 @@
use Google\Cloud\Firestore\V1\UpdateDocumentRequest;
use Google\Cloud\Firestore\V1\Write;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: The Cloud Firestore service.
@@ -178,6 +179,9 @@ private static function getClientDefaults()
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Functions/src/V2/Client/FunctionServiceClient.php b/Functions/src/V2/Client/FunctionServiceClient.php
index 503d78f08142..c0d91c5767f6 100644
--- a/Functions/src/V2/Client/FunctionServiceClient.php
+++ b/Functions/src/V2/Client/FunctionServiceClient.php
@@ -55,6 +55,7 @@
use Google\LongRunning\Client\OperationsClient;
use Google\LongRunning\Operation;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Google Cloud Functions is used to deploy functions that are executed by
@@ -412,14 +413,14 @@ public static function workerPoolName(string $project, string $location, string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -474,6 +475,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/GSuiteAddOns/src/V1/Client/GSuiteAddOnsClient.php b/GSuiteAddOns/src/V1/Client/GSuiteAddOnsClient.php
index c62f07c0921d..1f671ec86585 100644
--- a/GSuiteAddOns/src/V1/Client/GSuiteAddOnsClient.php
+++ b/GSuiteAddOns/src/V1/Client/GSuiteAddOnsClient.php
@@ -46,6 +46,7 @@
use Google\Cloud\GSuiteAddOns\V1\ReplaceDeploymentRequest;
use Google\Cloud\GSuiteAddOns\V1\UninstallDeploymentRequest;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: A service for managing Google Workspace Add-ons deployments.
@@ -220,14 +221,14 @@ public static function projectName(string $project): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -282,6 +283,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/GkeBackup/src/V1/Client/BackupForGKEClient.php b/GkeBackup/src/V1/Client/BackupForGKEClient.php
index 4f63f25e443e..14f729833b8e 100644
--- a/GkeBackup/src/V1/Client/BackupForGKEClient.php
+++ b/GkeBackup/src/V1/Client/BackupForGKEClient.php
@@ -77,6 +77,7 @@
use Google\LongRunning\Client\OperationsClient;
use Google\LongRunning\Operation;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: BackupForGKE allows Kubernetes administrators to configure, execute, and
@@ -432,14 +433,14 @@ public static function volumeRestoreName(
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -494,6 +495,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/GkeConnectGateway/src/V1/Client/GatewayControlClient.php b/GkeConnectGateway/src/V1/Client/GatewayControlClient.php
index 54a61010a7da..6ac0651528f7 100644
--- a/GkeConnectGateway/src/V1/Client/GatewayControlClient.php
+++ b/GkeConnectGateway/src/V1/Client/GatewayControlClient.php
@@ -34,6 +34,7 @@
use Google\Cloud\GkeConnect\Gateway\V1\GenerateCredentialsRequest;
use Google\Cloud\GkeConnect\Gateway\V1\GenerateCredentialsResponse;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: GatewayControl is the control plane API for Connect Gateway.
@@ -151,6 +152,9 @@ private static function supportedTransports()
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/GkeConnectGateway/src/V1beta1/Client/GatewayControlClient.php b/GkeConnectGateway/src/V1beta1/Client/GatewayControlClient.php
index 5987844c13a9..6234da984ceb 100644
--- a/GkeConnectGateway/src/V1beta1/Client/GatewayControlClient.php
+++ b/GkeConnectGateway/src/V1beta1/Client/GatewayControlClient.php
@@ -36,6 +36,7 @@
use Google\Cloud\GkeConnect\Gateway\V1beta1\GenerateCredentialsRequest;
use Google\Cloud\GkeConnect\Gateway\V1beta1\GenerateCredentialsResponse;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: GatewayControl is the control plane API for Connect Gateway.
@@ -155,6 +156,9 @@ private static function supportedTransports()
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/GkeHub/src/V1/Client/GkeHubClient.php b/GkeHub/src/V1/Client/GkeHubClient.php
index 322bf25b0819..37dd76e56d46 100644
--- a/GkeHub/src/V1/Client/GkeHubClient.php
+++ b/GkeHub/src/V1/Client/GkeHubClient.php
@@ -51,6 +51,7 @@
use Google\LongRunning\Client\OperationsClient;
use Google\LongRunning\Operation;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: The GKE Hub service handles the registration of many Kubernetes clusters to
@@ -258,14 +259,14 @@ public static function membershipName(string $project, string $location, string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -320,6 +321,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/GkeMultiCloud/src/V1/Client/AttachedClustersClient.php b/GkeMultiCloud/src/V1/Client/AttachedClustersClient.php
index f36160558dbd..4504036fdf2d 100644
--- a/GkeMultiCloud/src/V1/Client/AttachedClustersClient.php
+++ b/GkeMultiCloud/src/V1/Client/AttachedClustersClient.php
@@ -50,6 +50,7 @@
use Google\LongRunning\Client\OperationsClient;
use Google\LongRunning\Operation;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: The AttachedClusters API provides a single centrally managed service
@@ -239,14 +240,14 @@ public static function locationName(string $project, string $location): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -301,6 +302,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/GkeMultiCloud/src/V1/Client/AwsClustersClient.php b/GkeMultiCloud/src/V1/Client/AwsClustersClient.php
index 31631c08b49d..106616a1f96c 100644
--- a/GkeMultiCloud/src/V1/Client/AwsClustersClient.php
+++ b/GkeMultiCloud/src/V1/Client/AwsClustersClient.php
@@ -60,6 +60,7 @@
use Google\LongRunning\Client\OperationsClient;
use Google\LongRunning\Operation;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: The AwsClusters API provides a single centrally managed service
@@ -281,14 +282,14 @@ public static function locationName(string $project, string $location): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -343,6 +344,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/GkeMultiCloud/src/V1/Client/AzureClustersClient.php b/GkeMultiCloud/src/V1/Client/AzureClustersClient.php
index 3d33c75e4705..8f058a1e5af8 100644
--- a/GkeMultiCloud/src/V1/Client/AzureClustersClient.php
+++ b/GkeMultiCloud/src/V1/Client/AzureClustersClient.php
@@ -64,6 +64,7 @@
use Google\LongRunning\Client\OperationsClient;
use Google\LongRunning\Operation;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: The AzureClusters API provides a single centrally managed service
@@ -308,14 +309,14 @@ public static function locationName(string $project, string $location): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -370,6 +371,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Grafeas/src/V1/Client/GrafeasClient.php b/Grafeas/src/V1/Client/GrafeasClient.php
index 9373677f819e..c308aa71ce77 100644
--- a/Grafeas/src/V1/Client/GrafeasClient.php
+++ b/Grafeas/src/V1/Client/GrafeasClient.php
@@ -52,6 +52,7 @@
use Grafeas\V1\UpdateNoteRequest;
use Grafeas\V1\UpdateOccurrenceRequest;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: [Grafeas](https://grafeas.io) API.
@@ -201,14 +202,14 @@ public static function projectName(string $project): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -263,6 +264,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Iam/src/V2/Client/PoliciesClient.php b/Iam/src/V2/Client/PoliciesClient.php
index 24297fc04026..2dbefd5a46c4 100644
--- a/Iam/src/V2/Client/PoliciesClient.php
+++ b/Iam/src/V2/Client/PoliciesClient.php
@@ -42,6 +42,7 @@
use Google\LongRunning\Client\OperationsClient;
use Google\LongRunning\Operation;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: An interface for managing Identity and Access Management (IAM) policies.
@@ -202,6 +203,9 @@ private function createOperationsClient(array $options)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/IamCredentials/src/V1/Client/IAMCredentialsClient.php b/IamCredentials/src/V1/Client/IAMCredentialsClient.php
index f4ea4fbd637d..6027f0e75e18 100644
--- a/IamCredentials/src/V1/Client/IAMCredentialsClient.php
+++ b/IamCredentials/src/V1/Client/IAMCredentialsClient.php
@@ -41,6 +41,7 @@
use Google\Cloud\Iam\Credentials\V1\SignJwtRequest;
use Google\Cloud\Iam\Credentials\V1\SignJwtResponse;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: A service account is a special type of Google account that belongs to your
@@ -141,14 +142,14 @@ public static function serviceAccountName(string $project, string $serviceAccoun
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -203,6 +204,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Iap/src/V1/Client/IdentityAwareProxyAdminServiceClient.php b/Iap/src/V1/Client/IdentityAwareProxyAdminServiceClient.php
index bb3922da0569..9f74898e5fdf 100644
--- a/Iap/src/V1/Client/IdentityAwareProxyAdminServiceClient.php
+++ b/Iap/src/V1/Client/IdentityAwareProxyAdminServiceClient.php
@@ -48,6 +48,7 @@
use Google\Cloud\Iap\V1\UpdateIapSettingsRequest;
use Google\Cloud\Iap\V1\UpdateTunnelDestGroupRequest;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: APIs for Identity-Aware Proxy Admin configurations.
@@ -168,14 +169,14 @@ public static function tunnelLocationName(string $project, string $location): st
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -230,6 +231,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Iap/src/V1/Client/IdentityAwareProxyOAuthServiceClient.php b/Iap/src/V1/Client/IdentityAwareProxyOAuthServiceClient.php
index c16b9e5590da..11cc1b249b92 100644
--- a/Iap/src/V1/Client/IdentityAwareProxyOAuthServiceClient.php
+++ b/Iap/src/V1/Client/IdentityAwareProxyOAuthServiceClient.php
@@ -44,6 +44,7 @@
use Google\Cloud\Iap\V1\ListIdentityAwareProxyClientsRequest;
use Google\Cloud\Iap\V1\ResetIdentityAwareProxyClientSecretRequest;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: API to programmatically create, list and retrieve Identity Aware Proxy (IAP)
@@ -159,6 +160,9 @@ private static function getClientDefaults()
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Ids/src/V1/Client/IDSClient.php b/Ids/src/V1/Client/IDSClient.php
index 55bb0b19957d..c1fc8aefea03 100644
--- a/Ids/src/V1/Client/IDSClient.php
+++ b/Ids/src/V1/Client/IDSClient.php
@@ -42,6 +42,7 @@
use Google\LongRunning\Client\OperationsClient;
use Google\LongRunning\Operation;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: The IDS Service
@@ -206,14 +207,14 @@ public static function locationName(string $project, string $location): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -268,6 +269,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Kms/src/V1/Client/AutokeyAdminClient.php b/Kms/src/V1/Client/AutokeyAdminClient.php
index 6909717f73ce..503a03fdf21d 100644
--- a/Kms/src/V1/Client/AutokeyAdminClient.php
+++ b/Kms/src/V1/Client/AutokeyAdminClient.php
@@ -47,6 +47,7 @@
use Google\Cloud\Location\ListLocationsRequest;
use Google\Cloud\Location\Location;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Provides interfaces for managing [Cloud KMS
@@ -167,14 +168,14 @@ public static function projectName(string $project): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -229,6 +230,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Kms/src/V1/Client/AutokeyClient.php b/Kms/src/V1/Client/AutokeyClient.php
index 61e914cf9132..d14d3377255c 100644
--- a/Kms/src/V1/Client/AutokeyClient.php
+++ b/Kms/src/V1/Client/AutokeyClient.php
@@ -49,6 +49,7 @@
use Google\LongRunning\Client\OperationsClient;
use Google\LongRunning\Operation;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Provides interfaces for using [Cloud KMS
@@ -259,14 +260,14 @@ public static function locationName(string $project, string $location): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -321,6 +322,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Kms/src/V1/Client/EkmServiceClient.php b/Kms/src/V1/Client/EkmServiceClient.php
index d926157f8c31..224114af6dfd 100644
--- a/Kms/src/V1/Client/EkmServiceClient.php
+++ b/Kms/src/V1/Client/EkmServiceClient.php
@@ -52,6 +52,7 @@
use Google\Cloud\Location\ListLocationsRequest;
use Google\Cloud\Location\Location;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Google Cloud Key Management EKM Service
@@ -219,14 +220,14 @@ public static function serviceName(string $project, string $location, string $na
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -281,6 +282,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Kms/src/V1/Client/KeyManagementServiceClient.php b/Kms/src/V1/Client/KeyManagementServiceClient.php
index 1a3f40e60d09..77ae0e9dcca7 100644
--- a/Kms/src/V1/Client/KeyManagementServiceClient.php
+++ b/Kms/src/V1/Client/KeyManagementServiceClient.php
@@ -84,6 +84,7 @@
use Google\Cloud\Location\ListLocationsRequest;
use Google\Cloud\Location\Location;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Google Cloud Key Management Service
@@ -312,14 +313,14 @@ public static function locationName(string $project, string $location): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -374,6 +375,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/KmsInventory/src/V1/Client/KeyDashboardServiceClient.php b/KmsInventory/src/V1/Client/KeyDashboardServiceClient.php
index 624254c73990..d7f1763a331a 100644
--- a/KmsInventory/src/V1/Client/KeyDashboardServiceClient.php
+++ b/KmsInventory/src/V1/Client/KeyDashboardServiceClient.php
@@ -35,6 +35,7 @@
use Google\Auth\FetchAuthTokenInterface;
use Google\Cloud\Kms\Inventory\V1\ListCryptoKeysRequest;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Provides a cross-region view of all Cloud KMS keys in a given Cloud project.
@@ -122,14 +123,14 @@ public static function projectName(string $project): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -184,6 +185,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/KmsInventory/src/V1/Client/KeyTrackingServiceClient.php b/KmsInventory/src/V1/Client/KeyTrackingServiceClient.php
index f9c2d67300ef..2a824a92b269 100644
--- a/KmsInventory/src/V1/Client/KeyTrackingServiceClient.php
+++ b/KmsInventory/src/V1/Client/KeyTrackingServiceClient.php
@@ -37,6 +37,7 @@
use Google\Cloud\Kms\Inventory\V1\ProtectedResourcesSummary;
use Google\Cloud\Kms\Inventory\V1\SearchProtectedResourcesRequest;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Returns information about the resources in an org that are protected by a
@@ -210,14 +211,14 @@ public static function protectedResourcesSummaryName(
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -272,6 +273,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Language/src/V1/Client/LanguageServiceClient.php b/Language/src/V1/Client/LanguageServiceClient.php
index 16b7bf1935f2..ae0c1f66ec5e 100644
--- a/Language/src/V1/Client/LanguageServiceClient.php
+++ b/Language/src/V1/Client/LanguageServiceClient.php
@@ -46,6 +46,7 @@
use Google\Cloud\Language\V1\ModerateTextRequest;
use Google\Cloud\Language\V1\ModerateTextResponse;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Provides text analysis operations such as sentiment analysis and entity
@@ -160,6 +161,9 @@ private static function getClientDefaults()
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Language/src/V2/Client/LanguageServiceClient.php b/Language/src/V2/Client/LanguageServiceClient.php
index 72c51e9835c1..c980b4502c1a 100644
--- a/Language/src/V2/Client/LanguageServiceClient.php
+++ b/Language/src/V2/Client/LanguageServiceClient.php
@@ -42,6 +42,7 @@
use Google\Cloud\Language\V2\ModerateTextRequest;
use Google\Cloud\Language\V2\ModerateTextResponse;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Provides text analysis operations such as sentiment analysis and entity
@@ -154,6 +155,9 @@ private static function getClientDefaults()
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/LifeSciences/src/V2beta/Client/WorkflowsServiceV2BetaClient.php b/LifeSciences/src/V2beta/Client/WorkflowsServiceV2BetaClient.php
index e5406b35ed64..eb9346946c1b 100644
--- a/LifeSciences/src/V2beta/Client/WorkflowsServiceV2BetaClient.php
+++ b/LifeSciences/src/V2beta/Client/WorkflowsServiceV2BetaClient.php
@@ -44,6 +44,7 @@
use Google\Cloud\Location\Location;
use Google\LongRunning\Operation;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: A service for running workflows, such as pipelines consisting of Docker
@@ -190,6 +191,9 @@ public function resumeOperation($operationName, $methodName = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Logging/src/V2/Client/ConfigServiceV2Client.php b/Logging/src/V2/Client/ConfigServiceV2Client.php
index 3a3d8d103770..d1f92bdff4cc 100644
--- a/Logging/src/V2/Client/ConfigServiceV2Client.php
+++ b/Logging/src/V2/Client/ConfigServiceV2Client.php
@@ -74,6 +74,7 @@
use Google\Cloud\Logging\V2\UpdateViewRequest;
use Google\LongRunning\Operation;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Service for configuring sinks used to route log entries.
@@ -1008,14 +1009,14 @@ public static function settingsName(string $project): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -1070,6 +1071,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Logging/src/V2/Client/LoggingServiceV2Client.php b/Logging/src/V2/Client/LoggingServiceV2Client.php
index 580f47194275..550acd73b0ea 100644
--- a/Logging/src/V2/Client/LoggingServiceV2Client.php
+++ b/Logging/src/V2/Client/LoggingServiceV2Client.php
@@ -41,6 +41,7 @@
use Google\Cloud\Logging\V2\WriteLogEntriesRequest;
use Google\Cloud\Logging\V2\WriteLogEntriesResponse;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Service for ingesting and querying logs.
@@ -276,14 +277,14 @@ public static function projectLogName(string $project, string $log): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -338,6 +339,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/Logging/src/V2/Client/MetricsServiceV2Client.php b/Logging/src/V2/Client/MetricsServiceV2Client.php
index 375766ac34e8..ecfc1055593f 100644
--- a/Logging/src/V2/Client/MetricsServiceV2Client.php
+++ b/Logging/src/V2/Client/MetricsServiceV2Client.php
@@ -40,6 +40,7 @@
use Google\Cloud\Logging\V2\LogMetric;
use Google\Cloud\Logging\V2\UpdateLogMetricRequest;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Service for configuring logs-based metrics.
@@ -155,14 +156,14 @@ public static function projectName(string $project): string
* listed, then parseName will check each of the supported templates, and return
* the first match.
*
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
+ * @param string $formattedName The formatted name string
+ * @param ?string $template Optional name of template to match
*
* @return array An associative array from name component IDs to component values.
*
* @throws ValidationException If $formattedName could not be matched.
*/
- public static function parseName(string $formattedName, string $template = null): array
+ public static function parseName(string $formattedName, ?string $template = null): array
{
return self::parseFormattedName($formattedName, $template);
}
@@ -217,6 +218,9 @@ public static function parseName(string $formattedName, string $template = null)
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/LongRunning/src/LongRunning/Client/OperationsClient.php b/LongRunning/src/LongRunning/Client/OperationsClient.php
index 2443891b00cc..e275b18af789 100644
--- a/LongRunning/src/LongRunning/Client/OperationsClient.php
+++ b/LongRunning/src/LongRunning/Client/OperationsClient.php
@@ -39,6 +39,7 @@
use Google\LongRunning\Operation;
use Google\LongRunning\WaitOperationRequest;
use GuzzleHttp\Promise\PromiseInterface;
+use Psr\Log\LoggerInterface;
/**
* Service Description: Manages long-running operations with an API service.
@@ -155,6 +156,9 @@ private static function getClientDefaults()
* @type callable $clientCertSource
* A callable which returns the client cert as a string. This can be used to
* provide a certificate and private key to the transport layer for mTLS.
+ * @type false|LoggerInterface $logger
+ * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
+ * 'GOOGLE_SDK_PHP_LOGGING' environment flag
* }
*
* @throws ValidationException
diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/Publishing/V1/CloudEvent.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/Publishing/V1/CloudEvent.php
deleted file mode 100644
index 406503720aea..000000000000
Binary files a/owl-bot-staging/EventarcPublishing/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/Publishing/V1/CloudEvent.php and /dev/null differ
diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/Publishing/V1/Publisher.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/Publishing/V1/Publisher.php
deleted file mode 100644
index e9952863ea77..000000000000
Binary files a/owl-bot-staging/EventarcPublishing/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/Publishing/V1/Publisher.php and /dev/null differ
diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/CloudEvent.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/CloudEvent.php
deleted file mode 100644
index 59178671d8c9..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/CloudEvent.php
+++ /dev/null
@@ -1,328 +0,0 @@
-google.cloud.eventarc.publishing.v1.CloudEvent
- */
-class CloudEvent extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Identifies the event. Producers MUST ensure that source + id is
- * unique for each distinct event.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $id = '';
- /**
- * Required. Identifies the context in which an event happened.
- * URI-reference
- *
- * Generated from protobuf field string source = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $source = '';
- /**
- * Required. The version of the CloudEvents specification which the event
- * uses.
- *
- * Generated from protobuf field string spec_version = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $spec_version = '';
- /**
- * Required. This attribute contains a value describing the type of event
- * related to the originating occurrence.
- *
- * Generated from protobuf field string type = 4 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $type = '';
- /**
- * Optional. Used for Optional & Extension Attributes
- *
- * Generated from protobuf field map attributes = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $attributes;
- protected $data;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $id
- * Required. Identifies the event. Producers MUST ensure that source + id is
- * unique for each distinct event.
- * @type string $source
- * Required. Identifies the context in which an event happened.
- * URI-reference
- * @type string $spec_version
- * Required. The version of the CloudEvents specification which the event
- * uses.
- * @type string $type
- * Required. This attribute contains a value describing the type of event
- * related to the originating occurrence.
- * @type array|\Google\Protobuf\Internal\MapField $attributes
- * Optional. Used for Optional & Extension Attributes
- * @type string $binary_data
- * Optional. Binary data.
- * @type string $text_data
- * Optional. Text data.
- * @type \Google\Protobuf\Any $proto_data
- * Optional. Proto data.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\CloudEvent::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Identifies the event. Producers MUST ensure that source + id is
- * unique for each distinct event.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * Required. Identifies the event. Producers MUST ensure that source + id is
- * unique for each distinct event.
- *
- * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setId($var)
- {
- GPBUtil::checkString($var, True);
- $this->id = $var;
-
- return $this;
- }
-
- /**
- * Required. Identifies the context in which an event happened.
- * URI-reference
- *
- * Generated from protobuf field string source = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getSource()
- {
- return $this->source;
- }
-
- /**
- * Required. Identifies the context in which an event happened.
- * URI-reference
- *
- * Generated from protobuf field string source = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setSource($var)
- {
- GPBUtil::checkString($var, True);
- $this->source = $var;
-
- return $this;
- }
-
- /**
- * Required. The version of the CloudEvents specification which the event
- * uses.
- *
- * Generated from protobuf field string spec_version = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getSpecVersion()
- {
- return $this->spec_version;
- }
-
- /**
- * Required. The version of the CloudEvents specification which the event
- * uses.
- *
- * Generated from protobuf field string spec_version = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setSpecVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->spec_version = $var;
-
- return $this;
- }
-
- /**
- * Required. This attribute contains a value describing the type of event
- * related to the originating occurrence.
- *
- * Generated from protobuf field string type = 4 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Required. This attribute contains a value describing the type of event
- * related to the originating occurrence.
- *
- * Generated from protobuf field string type = 4 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkString($var, True);
- $this->type = $var;
-
- return $this;
- }
-
- /**
- * Optional. Used for Optional & Extension Attributes
- *
- * Generated from protobuf field map attributes = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getAttributes()
- {
- return $this->attributes;
- }
-
- /**
- * Optional. Used for Optional & Extension Attributes
- *
- * Generated from protobuf field map attributes = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setAttributes($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\Publishing\V1\CloudEvent\CloudEventAttributeValue::class);
- $this->attributes = $arr;
-
- return $this;
- }
-
- /**
- * Optional. Binary data.
- *
- * Generated from protobuf field bytes binary_data = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getBinaryData()
- {
- return $this->readOneof(6);
- }
-
- public function hasBinaryData()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * Optional. Binary data.
- *
- * Generated from protobuf field bytes binary_data = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setBinaryData($var)
- {
- GPBUtil::checkString($var, False);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * Optional. Text data.
- *
- * Generated from protobuf field string text_data = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getTextData()
- {
- return $this->readOneof(7);
- }
-
- public function hasTextData()
- {
- return $this->hasOneof(7);
- }
-
- /**
- * Optional. Text data.
- *
- * Generated from protobuf field string text_data = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setTextData($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(7, $var);
-
- return $this;
- }
-
- /**
- * Optional. Proto data.
- *
- * Generated from protobuf field .google.protobuf.Any proto_data = 8 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Any|null
- */
- public function getProtoData()
- {
- return $this->readOneof(8);
- }
-
- public function hasProtoData()
- {
- return $this->hasOneof(8);
- }
-
- /**
- * Optional. Proto data.
- *
- * Generated from protobuf field .google.protobuf.Any proto_data = 8 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Protobuf\Any $var
- * @return $this
- */
- public function setProtoData($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Any::class);
- $this->writeOneof(8, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getData()
- {
- return $this->whichOneof("data");
- }
-
-}
-
diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/CloudEvent/CloudEventAttributeValue.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/CloudEvent/CloudEventAttributeValue.php
deleted file mode 100644
index 3a83adbd311d..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/CloudEvent/CloudEventAttributeValue.php
+++ /dev/null
@@ -1,276 +0,0 @@
-google.cloud.eventarc.publishing.v1.CloudEvent.CloudEventAttributeValue
- */
-class CloudEventAttributeValue extends \Google\Protobuf\Internal\Message
-{
- protected $attr;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $ce_boolean
- * Boolean value.
- * @type int $ce_integer
- * Integer value.
- * @type string $ce_string
- * String value.
- * @type string $ce_bytes
- * Bytes value.
- * @type string $ce_uri
- * URI value.
- * @type string $ce_uri_ref
- * URI-reference value.
- * @type \Google\Protobuf\Timestamp $ce_timestamp
- * Timestamp value.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\CloudEvent::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Boolean value.
- *
- * Generated from protobuf field bool ce_boolean = 1;
- * @return bool
- */
- public function getCeBoolean()
- {
- return $this->readOneof(1);
- }
-
- public function hasCeBoolean()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * Boolean value.
- *
- * Generated from protobuf field bool ce_boolean = 1;
- * @param bool $var
- * @return $this
- */
- public function setCeBoolean($var)
- {
- GPBUtil::checkBool($var);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * Integer value.
- *
- * Generated from protobuf field int32 ce_integer = 2;
- * @return int
- */
- public function getCeInteger()
- {
- return $this->readOneof(2);
- }
-
- public function hasCeInteger()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Integer value.
- *
- * Generated from protobuf field int32 ce_integer = 2;
- * @param int $var
- * @return $this
- */
- public function setCeInteger($var)
- {
- GPBUtil::checkInt32($var);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * String value.
- *
- * Generated from protobuf field string ce_string = 3;
- * @return string
- */
- public function getCeString()
- {
- return $this->readOneof(3);
- }
-
- public function hasCeString()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * String value.
- *
- * Generated from protobuf field string ce_string = 3;
- * @param string $var
- * @return $this
- */
- public function setCeString($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * Bytes value.
- *
- * Generated from protobuf field bytes ce_bytes = 4;
- * @return string
- */
- public function getCeBytes()
- {
- return $this->readOneof(4);
- }
-
- public function hasCeBytes()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Bytes value.
- *
- * Generated from protobuf field bytes ce_bytes = 4;
- * @param string $var
- * @return $this
- */
- public function setCeBytes($var)
- {
- GPBUtil::checkString($var, False);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * URI value.
- *
- * Generated from protobuf field string ce_uri = 5;
- * @return string
- */
- public function getCeUri()
- {
- return $this->readOneof(5);
- }
-
- public function hasCeUri()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * URI value.
- *
- * Generated from protobuf field string ce_uri = 5;
- * @param string $var
- * @return $this
- */
- public function setCeUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * URI-reference value.
- *
- * Generated from protobuf field string ce_uri_ref = 6;
- * @return string
- */
- public function getCeUriRef()
- {
- return $this->readOneof(6);
- }
-
- public function hasCeUriRef()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * URI-reference value.
- *
- * Generated from protobuf field string ce_uri_ref = 6;
- * @param string $var
- * @return $this
- */
- public function setCeUriRef($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * Timestamp value.
- *
- * Generated from protobuf field .google.protobuf.Timestamp ce_timestamp = 7;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCeTimestamp()
- {
- return $this->readOneof(7);
- }
-
- public function hasCeTimestamp()
- {
- return $this->hasOneof(7);
- }
-
- /**
- * Timestamp value.
- *
- * Generated from protobuf field .google.protobuf.Timestamp ce_timestamp = 7;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCeTimestamp($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->writeOneof(7, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getAttr()
- {
- return $this->whichOneof("attr");
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(CloudEventAttributeValue::class, \Google\Cloud\Eventarc\Publishing\V1\CloudEvent_CloudEventAttributeValue::class);
-
diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishChannelConnectionEventsRequest.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishChannelConnectionEventsRequest.php
deleted file mode 100644
index 79180267cebb..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishChannelConnectionEventsRequest.php
+++ /dev/null
@@ -1,159 +0,0 @@
-google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest
- */
-class PublishChannelConnectionEventsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The channel_connection that the events are published from. For example:
- * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
- *
- * Generated from protobuf field string channel_connection = 1;
- */
- protected $channel_connection = '';
- /**
- * The CloudEvents v1.0 events to publish. No other types are allowed.
- * If this field is set, then the `text_events` fields must not be set.
- *
- * Generated from protobuf field repeated .google.protobuf.Any events = 2;
- */
- private $events;
- /**
- * The text representation of events to publish.
- * CloudEvent v1.0 in JSON format is the only allowed type. Refer to
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
- * for specification.
- * If this field is set, then the `events` fields must not be set.
- *
- * Generated from protobuf field repeated string text_events = 3;
- */
- private $text_events;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $channel_connection
- * The channel_connection that the events are published from. For example:
- * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
- * @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $events
- * The CloudEvents v1.0 events to publish. No other types are allowed.
- * If this field is set, then the `text_events` fields must not be set.
- * @type array|\Google\Protobuf\Internal\RepeatedField $text_events
- * The text representation of events to publish.
- * CloudEvent v1.0 in JSON format is the only allowed type. Refer to
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
- * for specification.
- * If this field is set, then the `events` fields must not be set.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\Publisher::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The channel_connection that the events are published from. For example:
- * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
- *
- * Generated from protobuf field string channel_connection = 1;
- * @return string
- */
- public function getChannelConnection()
- {
- return $this->channel_connection;
- }
-
- /**
- * The channel_connection that the events are published from. For example:
- * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
- *
- * Generated from protobuf field string channel_connection = 1;
- * @param string $var
- * @return $this
- */
- public function setChannelConnection($var)
- {
- GPBUtil::checkString($var, True);
- $this->channel_connection = $var;
-
- return $this;
- }
-
- /**
- * The CloudEvents v1.0 events to publish. No other types are allowed.
- * If this field is set, then the `text_events` fields must not be set.
- *
- * Generated from protobuf field repeated .google.protobuf.Any events = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getEvents()
- {
- return $this->events;
- }
-
- /**
- * The CloudEvents v1.0 events to publish. No other types are allowed.
- * If this field is set, then the `text_events` fields must not be set.
- *
- * Generated from protobuf field repeated .google.protobuf.Any events = 2;
- * @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setEvents($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class);
- $this->events = $arr;
-
- return $this;
- }
-
- /**
- * The text representation of events to publish.
- * CloudEvent v1.0 in JSON format is the only allowed type. Refer to
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
- * for specification.
- * If this field is set, then the `events` fields must not be set.
- *
- * Generated from protobuf field repeated string text_events = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTextEvents()
- {
- return $this->text_events;
- }
-
- /**
- * The text representation of events to publish.
- * CloudEvent v1.0 in JSON format is the only allowed type. Refer to
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
- * for specification.
- * If this field is set, then the `events` fields must not be set.
- *
- * Generated from protobuf field repeated string text_events = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTextEvents($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->text_events = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishChannelConnectionEventsResponse.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishChannelConnectionEventsResponse.php
deleted file mode 100644
index 6a7494facfc6..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishChannelConnectionEventsResponse.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse
- */
-class PublishChannelConnectionEventsResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\Publisher::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishEventsRequest.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishEventsRequest.php
deleted file mode 100644
index f5c6a6cfa164..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishEventsRequest.php
+++ /dev/null
@@ -1,159 +0,0 @@
-google.cloud.eventarc.publishing.v1.PublishEventsRequest
- */
-class PublishEventsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The full name of the channel to publish to. For example:
- * `projects/{project}/locations/{location}/channels/{channel-id}`.
- *
- * Generated from protobuf field string channel = 1;
- */
- protected $channel = '';
- /**
- * The CloudEvents v1.0 events to publish. No other types are allowed.
- * If this field is set, then the `text_events` fields must not be set.
- *
- * Generated from protobuf field repeated .google.protobuf.Any events = 2;
- */
- private $events;
- /**
- * The text representation of events to publish.
- * CloudEvent v1.0 in JSON format is the only allowed type. Refer to
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
- * for specification.
- * If this field is set, then the `events` fields must not be set.
- *
- * Generated from protobuf field repeated string text_events = 3;
- */
- private $text_events;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $channel
- * The full name of the channel to publish to. For example:
- * `projects/{project}/locations/{location}/channels/{channel-id}`.
- * @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $events
- * The CloudEvents v1.0 events to publish. No other types are allowed.
- * If this field is set, then the `text_events` fields must not be set.
- * @type array|\Google\Protobuf\Internal\RepeatedField $text_events
- * The text representation of events to publish.
- * CloudEvent v1.0 in JSON format is the only allowed type. Refer to
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
- * for specification.
- * If this field is set, then the `events` fields must not be set.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\Publisher::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The full name of the channel to publish to. For example:
- * `projects/{project}/locations/{location}/channels/{channel-id}`.
- *
- * Generated from protobuf field string channel = 1;
- * @return string
- */
- public function getChannel()
- {
- return $this->channel;
- }
-
- /**
- * The full name of the channel to publish to. For example:
- * `projects/{project}/locations/{location}/channels/{channel-id}`.
- *
- * Generated from protobuf field string channel = 1;
- * @param string $var
- * @return $this
- */
- public function setChannel($var)
- {
- GPBUtil::checkString($var, True);
- $this->channel = $var;
-
- return $this;
- }
-
- /**
- * The CloudEvents v1.0 events to publish. No other types are allowed.
- * If this field is set, then the `text_events` fields must not be set.
- *
- * Generated from protobuf field repeated .google.protobuf.Any events = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getEvents()
- {
- return $this->events;
- }
-
- /**
- * The CloudEvents v1.0 events to publish. No other types are allowed.
- * If this field is set, then the `text_events` fields must not be set.
- *
- * Generated from protobuf field repeated .google.protobuf.Any events = 2;
- * @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setEvents($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class);
- $this->events = $arr;
-
- return $this;
- }
-
- /**
- * The text representation of events to publish.
- * CloudEvent v1.0 in JSON format is the only allowed type. Refer to
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
- * for specification.
- * If this field is set, then the `events` fields must not be set.
- *
- * Generated from protobuf field repeated string text_events = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTextEvents()
- {
- return $this->text_events;
- }
-
- /**
- * The text representation of events to publish.
- * CloudEvent v1.0 in JSON format is the only allowed type. Refer to
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
- * for specification.
- * If this field is set, then the `events` fields must not be set.
- *
- * Generated from protobuf field repeated string text_events = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTextEvents($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->text_events = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishEventsResponse.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishEventsResponse.php
deleted file mode 100644
index 4291ac3bfd78..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishEventsResponse.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.eventarc.publishing.v1.PublishEventsResponse
- */
-class PublishEventsResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\Publisher::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishRequest.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishRequest.php
deleted file mode 100644
index ce20979caf11..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishRequest.php
+++ /dev/null
@@ -1,197 +0,0 @@
-google.cloud.eventarc.publishing.v1.PublishRequest
- */
-class PublishRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The full name of the message bus to publish events to. Format:
- * `projects/{project}/locations/{location}/messageBuses/{messageBus}`.
- *
- * Generated from protobuf field string message_bus = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $message_bus = '';
- protected $format;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $message_bus
- * Required. The full name of the message bus to publish events to. Format:
- * `projects/{project}/locations/{location}/messageBuses/{messageBus}`.
- * @type \Google\Cloud\Eventarc\Publishing\V1\CloudEvent $proto_message
- * The Protobuf format of the CloudEvent being published. Specification can
- * be found here:
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/protobuf-format.md
- * @type string $json_message
- * The JSON format of the CloudEvent being published. Specification can be
- * found here:
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
- * @type string $avro_message
- * The Avro format of the CloudEvent being published. Specification can
- * be found here:
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/avro-format.md
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\Publisher::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The full name of the message bus to publish events to. Format:
- * `projects/{project}/locations/{location}/messageBuses/{messageBus}`.
- *
- * Generated from protobuf field string message_bus = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getMessageBus()
- {
- return $this->message_bus;
- }
-
- /**
- * Required. The full name of the message bus to publish events to. Format:
- * `projects/{project}/locations/{location}/messageBuses/{messageBus}`.
- *
- * Generated from protobuf field string message_bus = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setMessageBus($var)
- {
- GPBUtil::checkString($var, True);
- $this->message_bus = $var;
-
- return $this;
- }
-
- /**
- * The Protobuf format of the CloudEvent being published. Specification can
- * be found here:
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/protobuf-format.md
- *
- * Generated from protobuf field .google.cloud.eventarc.publishing.v1.CloudEvent proto_message = 2;
- * @return \Google\Cloud\Eventarc\Publishing\V1\CloudEvent|null
- */
- public function getProtoMessage()
- {
- return $this->readOneof(2);
- }
-
- public function hasProtoMessage()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * The Protobuf format of the CloudEvent being published. Specification can
- * be found here:
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/protobuf-format.md
- *
- * Generated from protobuf field .google.cloud.eventarc.publishing.v1.CloudEvent proto_message = 2;
- * @param \Google\Cloud\Eventarc\Publishing\V1\CloudEvent $var
- * @return $this
- */
- public function setProtoMessage($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\Publishing\V1\CloudEvent::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * The JSON format of the CloudEvent being published. Specification can be
- * found here:
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
- *
- * Generated from protobuf field string json_message = 3;
- * @return string
- */
- public function getJsonMessage()
- {
- return $this->readOneof(3);
- }
-
- public function hasJsonMessage()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * The JSON format of the CloudEvent being published. Specification can be
- * found here:
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
- *
- * Generated from protobuf field string json_message = 3;
- * @param string $var
- * @return $this
- */
- public function setJsonMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * The Avro format of the CloudEvent being published. Specification can
- * be found here:
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/avro-format.md
- *
- * Generated from protobuf field bytes avro_message = 4;
- * @return string
- */
- public function getAvroMessage()
- {
- return $this->readOneof(4);
- }
-
- public function hasAvroMessage()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * The Avro format of the CloudEvent being published. Specification can
- * be found here:
- * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/avro-format.md
- *
- * Generated from protobuf field bytes avro_message = 4;
- * @param string $var
- * @return $this
- */
- public function setAvroMessage($var)
- {
- GPBUtil::checkString($var, False);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getFormat()
- {
- return $this->whichOneof("format");
- }
-
-}
-
diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishResponse.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishResponse.php
deleted file mode 100644
index 76e083aea440..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishResponse.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.eventarc.publishing.v1.PublishResponse
- */
-class PublishResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\Publisher::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish.php b/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish.php
deleted file mode 100644
index 80fce160f988..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish.php
+++ /dev/null
@@ -1,71 +0,0 @@
-setMessageBus($messageBus);
-
- // Call the API and handle any network failures.
- try {
- /** @var PublishResponse $response */
- $response = $publisherClient->publish($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $messageBus = '[MESSAGE_BUS]';
-
- publish_sample($messageBus);
-}
-// [END eventarcpublishing_v1_generated_Publisher_Publish_sync]
diff --git a/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish_channel_connection_events.php b/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish_channel_connection_events.php
deleted file mode 100644
index db010040dcc7..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish_channel_connection_events.php
+++ /dev/null
@@ -1,57 +0,0 @@
-publishChannelConnectionEvents($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END eventarcpublishing_v1_generated_Publisher_PublishChannelConnectionEvents_sync]
diff --git a/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish_events.php b/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish_events.php
deleted file mode 100644
index 0aacdb5f12e3..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish_events.php
+++ /dev/null
@@ -1,57 +0,0 @@
-publishEvents($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END eventarcpublishing_v1_generated_Publisher_PublishEvents_sync]
diff --git a/owl-bot-staging/EventarcPublishing/v1/src/V1/Client/PublisherClient.php b/owl-bot-staging/EventarcPublishing/v1/src/V1/Client/PublisherClient.php
deleted file mode 100644
index 76a0e77289e6..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/src/V1/Client/PublisherClient.php
+++ /dev/null
@@ -1,276 +0,0 @@
- publishAsync(PublishRequest $request, array $optionalArgs = [])
- * @method PromiseInterface publishChannelConnectionEventsAsync(PublishChannelConnectionEventsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface publishEventsAsync(PublishEventsRequest $request, array $optionalArgs = [])
- */
-final class PublisherClient
-{
- use GapicClientTrait;
-
- /** The name of the service. */
- private const SERVICE_NAME = 'google.cloud.eventarc.publishing.v1.Publisher';
-
- /**
- * The default address of the service.
- *
- * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
- */
- private const SERVICE_ADDRESS = 'eventarcpublishing.googleapis.com';
-
- /** The address template of the service. */
- private const SERVICE_ADDRESS_TEMPLATE = 'eventarcpublishing.UNIVERSE_DOMAIN';
-
- /** The default port of the service. */
- private const DEFAULT_SERVICE_PORT = 443;
-
- /** The name of the code generator, to be included in the agent header. */
- private const CODEGEN_NAME = 'gapic';
-
- /** The default scopes required by the service. */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- ];
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/publisher_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/publisher_descriptor_config.php',
- 'gcpApiConfigPath' => __DIR__ . '/../resources/publisher_grpc_config.json',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/publisher_rest_client_config.php',
- ],
- ],
- ];
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'eventarcpublishing.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. May be either the string
- * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
- * *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'grpc' => [...],
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and
- * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * @type false|LoggerInterface $logger
- * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
- * 'GOOGLE_SDK_PHP_LOGGING' environment flag
- * }
- *
- * @throws ValidationException
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- }
-
- /** Handles execution of the async variants for each documented method. */
- public function __call($method, $args)
- {
- if (substr($method, -5) !== 'Async') {
- trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR);
- }
-
- array_unshift($args, substr($method, 0, -5));
- return call_user_func_array([$this, 'startAsyncCall'], $args);
- }
-
- /**
- * Publish events to a message bus.
- *
- * The async variant is {@see PublisherClient::publishAsync()} .
- *
- * @example samples/V1/PublisherClient/publish.php
- *
- * @param PublishRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PublishResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function publish(PublishRequest $request, array $callOptions = []): PublishResponse
- {
- return $this->startApiCall('Publish', $request, $callOptions)->wait();
- }
-
- /**
- * Publish events to a ChannelConnection in a partner's project.
- *
- * The async variant is
- * {@see PublisherClient::publishChannelConnectionEventsAsync()} .
- *
- * @example samples/V1/PublisherClient/publish_channel_connection_events.php
- *
- * @param PublishChannelConnectionEventsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PublishChannelConnectionEventsResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function publishChannelConnectionEvents(PublishChannelConnectionEventsRequest $request, array $callOptions = []): PublishChannelConnectionEventsResponse
- {
- return $this->startApiCall('PublishChannelConnectionEvents', $request, $callOptions)->wait();
- }
-
- /**
- * Publish events to a subscriber's channel.
- *
- * The async variant is {@see PublisherClient::publishEventsAsync()} .
- *
- * @example samples/V1/PublisherClient/publish_events.php
- *
- * @param PublishEventsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PublishEventsResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function publishEvents(PublishEventsRequest $request, array $callOptions = []): PublishEventsResponse
- {
- return $this->startApiCall('PublishEvents', $request, $callOptions)->wait();
- }
-}
diff --git a/owl-bot-staging/EventarcPublishing/v1/src/V1/gapic_metadata.json b/owl-bot-staging/EventarcPublishing/v1/src/V1/gapic_metadata.json
deleted file mode 100644
index 8c15efbe6be4..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/src/V1/gapic_metadata.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "schema": "1.0",
- "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods",
- "language": "php",
- "protoPackage": "google.cloud.eventarc.publishing.v1",
- "libraryPackage": "Google\\Cloud\\Eventarc\\Publishing\\V1",
- "services": {
- "Publisher": {
- "clients": {
- "grpc": {
- "libraryClient": "PublisherGapicClient",
- "rpcs": {
- "Publish": {
- "methods": [
- "publish"
- ]
- },
- "PublishChannelConnectionEvents": {
- "methods": [
- "publishChannelConnectionEvents"
- ]
- },
- "PublishEvents": {
- "methods": [
- "publishEvents"
- ]
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_client_config.json b/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_client_config.json
deleted file mode 100644
index 8e360d5b8878..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_client_config.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "interfaces": {
- "google.cloud.eventarc.publishing.v1.Publisher": {
- "retry_codes": {
- "no_retry_codes": [],
- "no_retry_1_codes": []
- },
- "retry_params": {
- "no_retry_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 0,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 0,
- "total_timeout_millis": 0
- },
- "no_retry_1_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 60000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000,
- "total_timeout_millis": 60000
- }
- },
- "methods": {
- "Publish": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "PublishChannelConnectionEvents": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "PublishEvents": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- }
- }
- }
- }
-}
diff --git a/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_descriptor_config.php b/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_descriptor_config.php
deleted file mode 100644
index bff99c08e674..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_descriptor_config.php
+++ /dev/null
@@ -1,64 +0,0 @@
- [
- 'google.cloud.eventarc.publishing.v1.Publisher' => [
- 'Publish' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Eventarc\Publishing\V1\PublishResponse',
- 'headerParams' => [
- [
- 'keyName' => 'message_bus',
- 'fieldAccessors' => [
- 'getMessageBus',
- ],
- ],
- ],
- ],
- 'PublishChannelConnectionEvents' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Eventarc\Publishing\V1\PublishChannelConnectionEventsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'channel_connection',
- 'fieldAccessors' => [
- 'getChannelConnection',
- ],
- ],
- ],
- ],
- 'PublishEvents' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Eventarc\Publishing\V1\PublishEventsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'channel',
- 'fieldAccessors' => [
- 'getChannel',
- ],
- ],
- ],
- ],
- ],
- ],
-];
diff --git a/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_rest_client_config.php b/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_rest_client_config.php
deleted file mode 100644
index 5730c0aa7b57..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_rest_client_config.php
+++ /dev/null
@@ -1,65 +0,0 @@
- [
- 'google.cloud.eventarc.publishing.v1.Publisher' => [
- 'Publish' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{message_bus=projects/*/locations/*/messageBuses/*}:publish',
- 'body' => '*',
- 'placeholders' => [
- 'message_bus' => [
- 'getters' => [
- 'getMessageBus',
- ],
- ],
- ],
- ],
- 'PublishChannelConnectionEvents' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{channel_connection=projects/*/locations/*/channelConnections/*}:publishEvents',
- 'body' => '*',
- 'placeholders' => [
- 'channel_connection' => [
- 'getters' => [
- 'getChannelConnection',
- ],
- ],
- ],
- ],
- 'PublishEvents' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{channel=projects/*/locations/*/channels/*}:publishEvents',
- 'body' => '*',
- 'placeholders' => [
- 'channel' => [
- 'getters' => [
- 'getChannel',
- ],
- ],
- ],
- ],
- ],
- ],
- 'numericEnums' => true,
-];
diff --git a/owl-bot-staging/EventarcPublishing/v1/tests/Unit/V1/Client/PublisherClientTest.php b/owl-bot-staging/EventarcPublishing/v1/tests/Unit/V1/Client/PublisherClientTest.php
deleted file mode 100644
index 95da35ac2278..000000000000
--- a/owl-bot-staging/EventarcPublishing/v1/tests/Unit/V1/Client/PublisherClientTest.php
+++ /dev/null
@@ -1,263 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return PublisherClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new PublisherClient($options);
- }
-
- /** @test */
- public function publishTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new PublishResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $messageBus = 'messageBus-872787384';
- $request = (new PublishRequest())
- ->setMessageBus($messageBus);
- $response = $gapicClient->publish($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.eventarc.publishing.v1.Publisher/Publish', $actualFuncCall);
- $actualValue = $actualRequestObject->getMessageBus();
- $this->assertProtobufEquals($messageBus, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function publishExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $messageBus = 'messageBus-872787384';
- $request = (new PublishRequest())
- ->setMessageBus($messageBus);
- try {
- $gapicClient->publish($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function publishChannelConnectionEventsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new PublishChannelConnectionEventsResponse();
- $transport->addResponse($expectedResponse);
- $request = new PublishChannelConnectionEventsRequest();
- $response = $gapicClient->publishChannelConnectionEvents($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.eventarc.publishing.v1.Publisher/PublishChannelConnectionEvents', $actualFuncCall);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function publishChannelConnectionEventsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- $request = new PublishChannelConnectionEventsRequest();
- try {
- $gapicClient->publishChannelConnectionEvents($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function publishEventsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new PublishEventsResponse();
- $transport->addResponse($expectedResponse);
- $request = new PublishEventsRequest();
- $response = $gapicClient->publishEvents($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.eventarc.publishing.v1.Publisher/PublishEvents', $actualFuncCall);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function publishEventsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- $request = new PublishEventsRequest();
- try {
- $gapicClient->publishEvents($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function publishAsyncTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new PublishResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $messageBus = 'messageBus-872787384';
- $request = (new PublishRequest())
- ->setMessageBus($messageBus);
- $response = $gapicClient->publishAsync($request)->wait();
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.eventarc.publishing.v1.Publisher/Publish', $actualFuncCall);
- $actualValue = $actualRequestObject->getMessageBus();
- $this->assertProtobufEquals($messageBus, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-}
diff --git a/owl-bot-staging/Filestore/v1/proto/src/GPBMetadata/Google/Cloud/Filestore/V1/CloudFilestoreService.php b/owl-bot-staging/Filestore/v1/proto/src/GPBMetadata/Google/Cloud/Filestore/V1/CloudFilestoreService.php
deleted file mode 100644
index f08ac0c00d59..000000000000
Binary files a/owl-bot-staging/Filestore/v1/proto/src/GPBMetadata/Google/Cloud/Filestore/V1/CloudFilestoreService.php and /dev/null differ
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Backup.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Backup.php
deleted file mode 100644
index 6e3a95d681dd..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Backup.php
+++ /dev/null
@@ -1,592 +0,0 @@
-google.cloud.filestore.v1.Backup
- */
-class Backup extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The resource name of the backup, in the format
- * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * A description of the backup with 2048 characters or less.
- * Requests with longer descriptions will be rejected.
- *
- * Generated from protobuf field string description = 2;
- */
- protected $description = '';
- /**
- * Output only. The backup state.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. The time when the backup was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Resource labels to represent user provided metadata.
- *
- * Generated from protobuf field map labels = 5;
- */
- private $labels;
- /**
- * Output only. Capacity of the source file share when the backup was created.
- *
- * Generated from protobuf field int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $capacity_gb = 0;
- /**
- * Output only. The size of the storage used by the backup. As backups share
- * storage, this number is expected to change with backup creation/deletion.
- *
- * Generated from protobuf field int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $storage_bytes = 0;
- /**
- * The resource name of the source Filestore instance, in the format
- * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
- * used to create this backup.
- *
- * Generated from protobuf field string source_instance = 8 [(.google.api.resource_reference) = {
- */
- protected $source_instance = '';
- /**
- * Name of the file share in the source Filestore instance that the
- * backup is created from.
- *
- * Generated from protobuf field string source_file_share = 9;
- */
- protected $source_file_share = '';
- /**
- * Output only. The service tier of the source Filestore instance that this
- * backup is created from.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $source_instance_tier = 0;
- /**
- * Output only. Amount of bytes that will be downloaded if the backup is
- * restored. This may be different than storage bytes, since sequential
- * backups of the same disk will share storage.
- *
- * Generated from protobuf field int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $download_bytes = 0;
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $satisfies_pzs = null;
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $satisfies_pzi = false;
- /**
- * Immutable. KMS key name used for data encryption.
- *
- * Generated from protobuf field string kms_key = 13 [(.google.api.field_behavior) = IMMUTABLE];
- */
- protected $kms_key = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. The resource name of the backup, in the format
- * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
- * @type string $description
- * A description of the backup with 2048 characters or less.
- * Requests with longer descriptions will be rejected.
- * @type int $state
- * Output only. The backup state.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The time when the backup was created.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Resource labels to represent user provided metadata.
- * @type int|string $capacity_gb
- * Output only. Capacity of the source file share when the backup was created.
- * @type int|string $storage_bytes
- * Output only. The size of the storage used by the backup. As backups share
- * storage, this number is expected to change with backup creation/deletion.
- * @type string $source_instance
- * The resource name of the source Filestore instance, in the format
- * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
- * used to create this backup.
- * @type string $source_file_share
- * Name of the file share in the source Filestore instance that the
- * backup is created from.
- * @type int $source_instance_tier
- * Output only. The service tier of the source Filestore instance that this
- * backup is created from.
- * @type int|string $download_bytes
- * Output only. Amount of bytes that will be downloaded if the backup is
- * restored. This may be different than storage bytes, since sequential
- * backups of the same disk will share storage.
- * @type \Google\Protobuf\BoolValue $satisfies_pzs
- * Output only. Reserved for future use.
- * @type bool $satisfies_pzi
- * Output only. Reserved for future use.
- * @type string $kms_key
- * Immutable. KMS key name used for data encryption.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The resource name of the backup, in the format
- * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. The resource name of the backup, in the format
- * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * A description of the backup with 2048 characters or less.
- * Requests with longer descriptions will be rejected.
- *
- * Generated from protobuf field string description = 2;
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * A description of the backup with 2048 characters or less.
- * Requests with longer descriptions will be rejected.
- *
- * Generated from protobuf field string description = 2;
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Output only. The backup state.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. The backup state.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Backup.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Filestore\V1\Backup\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. The time when the backup was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The time when the backup was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Resource labels to represent user provided metadata.
- *
- * Generated from protobuf field map labels = 5;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Resource labels to represent user provided metadata.
- *
- * Generated from protobuf field map labels = 5;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Output only. Capacity of the source file share when the backup was created.
- *
- * Generated from protobuf field int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getCapacityGb()
- {
- return $this->capacity_gb;
- }
-
- /**
- * Output only. Capacity of the source file share when the backup was created.
- *
- * Generated from protobuf field int64 capacity_gb = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setCapacityGb($var)
- {
- GPBUtil::checkInt64($var);
- $this->capacity_gb = $var;
-
- return $this;
- }
-
- /**
- * Output only. The size of the storage used by the backup. As backups share
- * storage, this number is expected to change with backup creation/deletion.
- *
- * Generated from protobuf field int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getStorageBytes()
- {
- return $this->storage_bytes;
- }
-
- /**
- * Output only. The size of the storage used by the backup. As backups share
- * storage, this number is expected to change with backup creation/deletion.
- *
- * Generated from protobuf field int64 storage_bytes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setStorageBytes($var)
- {
- GPBUtil::checkInt64($var);
- $this->storage_bytes = $var;
-
- return $this;
- }
-
- /**
- * The resource name of the source Filestore instance, in the format
- * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
- * used to create this backup.
- *
- * Generated from protobuf field string source_instance = 8 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getSourceInstance()
- {
- return $this->source_instance;
- }
-
- /**
- * The resource name of the source Filestore instance, in the format
- * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`,
- * used to create this backup.
- *
- * Generated from protobuf field string source_instance = 8 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setSourceInstance($var)
- {
- GPBUtil::checkString($var, True);
- $this->source_instance = $var;
-
- return $this;
- }
-
- /**
- * Name of the file share in the source Filestore instance that the
- * backup is created from.
- *
- * Generated from protobuf field string source_file_share = 9;
- * @return string
- */
- public function getSourceFileShare()
- {
- return $this->source_file_share;
- }
-
- /**
- * Name of the file share in the source Filestore instance that the
- * backup is created from.
- *
- * Generated from protobuf field string source_file_share = 9;
- * @param string $var
- * @return $this
- */
- public function setSourceFileShare($var)
- {
- GPBUtil::checkString($var, True);
- $this->source_file_share = $var;
-
- return $this;
- }
-
- /**
- * Output only. The service tier of the source Filestore instance that this
- * backup is created from.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getSourceInstanceTier()
- {
- return $this->source_instance_tier;
- }
-
- /**
- * Output only. The service tier of the source Filestore instance that this
- * backup is created from.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance.Tier source_instance_tier = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setSourceInstanceTier($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Filestore\V1\Instance\Tier::class);
- $this->source_instance_tier = $var;
-
- return $this;
- }
-
- /**
- * Output only. Amount of bytes that will be downloaded if the backup is
- * restored. This may be different than storage bytes, since sequential
- * backups of the same disk will share storage.
- *
- * Generated from protobuf field int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getDownloadBytes()
- {
- return $this->download_bytes;
- }
-
- /**
- * Output only. Amount of bytes that will be downloaded if the backup is
- * restored. This may be different than storage bytes, since sequential
- * backups of the same disk will share storage.
- *
- * Generated from protobuf field int64 download_bytes = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setDownloadBytes($var)
- {
- GPBUtil::checkInt64($var);
- $this->download_bytes = $var;
-
- return $this;
- }
-
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\BoolValue|null
- */
- public function getSatisfiesPzs()
- {
- return $this->satisfies_pzs;
- }
-
- public function hasSatisfiesPzs()
- {
- return isset($this->satisfies_pzs);
- }
-
- public function clearSatisfiesPzs()
- {
- unset($this->satisfies_pzs);
- }
-
- /**
- * Returns the unboxed value from getSatisfiesPzs()
-
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool|null
- */
- public function getSatisfiesPzsUnwrapped()
- {
- return $this->readWrapperValue("satisfies_pzs");
- }
-
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\BoolValue $var
- * @return $this
- */
- public function setSatisfiesPzs($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
- $this->satisfies_pzs = $var;
-
- return $this;
- }
-
- /**
- * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
-
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool|null $var
- * @return $this
- */
- public function setSatisfiesPzsUnwrapped($var)
- {
- $this->writeWrapperValue("satisfies_pzs", $var);
- return $this;}
-
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool
- */
- public function getSatisfiesPzi()
- {
- return $this->satisfies_pzi;
- }
-
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field bool satisfies_pzi = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool $var
- * @return $this
- */
- public function setSatisfiesPzi($var)
- {
- GPBUtil::checkBool($var);
- $this->satisfies_pzi = $var;
-
- return $this;
- }
-
- /**
- * Immutable. KMS key name used for data encryption.
- *
- * Generated from protobuf field string kms_key = 13 [(.google.api.field_behavior) = IMMUTABLE];
- * @return string
- */
- public function getKmsKey()
- {
- return $this->kms_key;
- }
-
- /**
- * Immutable. KMS key name used for data encryption.
- *
- * Generated from protobuf field string kms_key = 13 [(.google.api.field_behavior) = IMMUTABLE];
- * @param string $var
- * @return $this
- */
- public function setKmsKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->kms_key = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Backup/State.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Backup/State.php
deleted file mode 100644
index 05658bd4159f..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Backup/State.php
+++ /dev/null
@@ -1,87 +0,0 @@
-google.cloud.filestore.v1.Backup.State
- */
-class State
-{
- /**
- * State not set.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * Backup is being created.
- *
- * Generated from protobuf enum CREATING = 1;
- */
- const CREATING = 1;
- /**
- * Backup has been taken and the operation is being finalized. At this
- * point, changes to the file share will not be reflected in the backup.
- *
- * Generated from protobuf enum FINALIZING = 2;
- */
- const FINALIZING = 2;
- /**
- * Backup is available for use.
- *
- * Generated from protobuf enum READY = 3;
- */
- const READY = 3;
- /**
- * Backup is being deleted.
- *
- * Generated from protobuf enum DELETING = 4;
- */
- const DELETING = 4;
- /**
- * Backup is not valid and cannot be used for creating new instances or
- * restoring existing instances.
- *
- * Generated from protobuf enum INVALID = 5;
- */
- const INVALID = 5;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::CREATING => 'CREATING',
- self::FINALIZING => 'FINALIZING',
- self::READY => 'READY',
- self::DELETING => 'DELETING',
- self::INVALID => 'INVALID',
- ];
-
- 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(State::class, \Google\Cloud\Filestore\V1\Backup_State::class);
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/CreateBackupRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/CreateBackupRequest.php
deleted file mode 100644
index 424464671ce1..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/CreateBackupRequest.php
+++ /dev/null
@@ -1,199 +0,0 @@
-google.cloud.filestore.v1.CreateBackupRequest
- */
-class CreateBackupRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The backup's project and location, in the format
- * `projects/{project_number}/locations/{location}`. In Filestore,
- * backup locations map to Google Cloud regions, for example **us-west1**.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. A [backup resource][google.cloud.filestore.v1.Backup]
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $backup = null;
- /**
- * Required. The ID to use for the backup.
- * The ID must be unique within the specified project and location.
- * This value must start with a lowercase letter followed by up to 62
- * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- * Values that do not match this pattern will trigger an INVALID_ARGUMENT
- * error.
- *
- * Generated from protobuf field string backup_id = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $backup_id = '';
-
- /**
- * @param string $parent Required. The backup's project and location, in the format
- * `projects/{project_number}/locations/{location}`. In Filestore,
- * backup locations map to Google Cloud regions, for example **us-west1**. Please see
- * {@see CloudFilestoreManagerClient::locationName()} for help formatting this field.
- * @param \Google\Cloud\Filestore\V1\Backup $backup Required. A [backup resource][google.cloud.filestore.v1.Backup]
- * @param string $backupId Required. The ID to use for the backup.
- * The ID must be unique within the specified project and location.
- *
- * This value must start with a lowercase letter followed by up to 62
- * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- * Values that do not match this pattern will trigger an INVALID_ARGUMENT
- * error.
- *
- * @return \Google\Cloud\Filestore\V1\CreateBackupRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\Filestore\V1\Backup $backup, string $backupId): self
- {
- return (new self())
- ->setParent($parent)
- ->setBackup($backup)
- ->setBackupId($backupId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The backup's project and location, in the format
- * `projects/{project_number}/locations/{location}`. In Filestore,
- * backup locations map to Google Cloud regions, for example **us-west1**.
- * @type \Google\Cloud\Filestore\V1\Backup $backup
- * Required. A [backup resource][google.cloud.filestore.v1.Backup]
- * @type string $backup_id
- * Required. The ID to use for the backup.
- * The ID must be unique within the specified project and location.
- * This value must start with a lowercase letter followed by up to 62
- * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- * Values that do not match this pattern will trigger an INVALID_ARGUMENT
- * error.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The backup's project and location, in the format
- * `projects/{project_number}/locations/{location}`. In Filestore,
- * backup locations map to Google Cloud regions, for example **us-west1**.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The backup's project and location, in the format
- * `projects/{project_number}/locations/{location}`. In Filestore,
- * backup locations map to Google Cloud regions, for example **us-west1**.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. A [backup resource][google.cloud.filestore.v1.Backup]
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Filestore\V1\Backup|null
- */
- public function getBackup()
- {
- return $this->backup;
- }
-
- public function hasBackup()
- {
- return isset($this->backup);
- }
-
- public function clearBackup()
- {
- unset($this->backup);
- }
-
- /**
- * Required. A [backup resource][google.cloud.filestore.v1.Backup]
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Backup backup = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Filestore\V1\Backup $var
- * @return $this
- */
- public function setBackup($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Filestore\V1\Backup::class);
- $this->backup = $var;
-
- return $this;
- }
-
- /**
- * Required. The ID to use for the backup.
- * The ID must be unique within the specified project and location.
- * This value must start with a lowercase letter followed by up to 62
- * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- * Values that do not match this pattern will trigger an INVALID_ARGUMENT
- * error.
- *
- * Generated from protobuf field string backup_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getBackupId()
- {
- return $this->backup_id;
- }
-
- /**
- * Required. The ID to use for the backup.
- * The ID must be unique within the specified project and location.
- * This value must start with a lowercase letter followed by up to 62
- * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- * Values that do not match this pattern will trigger an INVALID_ARGUMENT
- * error.
- *
- * Generated from protobuf field string backup_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setBackupId($var)
- {
- GPBUtil::checkString($var, True);
- $this->backup_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/CreateInstanceRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/CreateInstanceRequest.php
deleted file mode 100644
index 1e1334b891cb..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/CreateInstanceRequest.php
+++ /dev/null
@@ -1,178 +0,0 @@
-google.cloud.filestore.v1.CreateInstanceRequest
- */
-class CreateInstanceRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The instance's project and location, in the format
- * `projects/{project_id}/locations/{location}`. In Filestore,
- * locations map to Google Cloud zones, for example **us-west1-b**.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. The name of the instance to create.
- * The name must be unique for the specified project and location.
- *
- * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $instance_id = '';
- /**
- * Required. An [instance resource][google.cloud.filestore.v1.Instance]
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $instance = null;
-
- /**
- * @param string $parent Required. The instance's project and location, in the format
- * `projects/{project_id}/locations/{location}`. In Filestore,
- * locations map to Google Cloud zones, for example **us-west1-b**. Please see
- * {@see CloudFilestoreManagerClient::locationName()} for help formatting this field.
- * @param \Google\Cloud\Filestore\V1\Instance $instance Required. An [instance resource][google.cloud.filestore.v1.Instance]
- * @param string $instanceId Required. The name of the instance to create.
- * The name must be unique for the specified project and location.
- *
- * @return \Google\Cloud\Filestore\V1\CreateInstanceRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\Filestore\V1\Instance $instance, string $instanceId): self
- {
- return (new self())
- ->setParent($parent)
- ->setInstance($instance)
- ->setInstanceId($instanceId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The instance's project and location, in the format
- * `projects/{project_id}/locations/{location}`. In Filestore,
- * locations map to Google Cloud zones, for example **us-west1-b**.
- * @type string $instance_id
- * Required. The name of the instance to create.
- * The name must be unique for the specified project and location.
- * @type \Google\Cloud\Filestore\V1\Instance $instance
- * Required. An [instance resource][google.cloud.filestore.v1.Instance]
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The instance's project and location, in the format
- * `projects/{project_id}/locations/{location}`. In Filestore,
- * locations map to Google Cloud zones, for example **us-west1-b**.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The instance's project and location, in the format
- * `projects/{project_id}/locations/{location}`. In Filestore,
- * locations map to Google Cloud zones, for example **us-west1-b**.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. The name of the instance to create.
- * The name must be unique for the specified project and location.
- *
- * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getInstanceId()
- {
- return $this->instance_id;
- }
-
- /**
- * Required. The name of the instance to create.
- * The name must be unique for the specified project and location.
- *
- * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setInstanceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->instance_id = $var;
-
- return $this;
- }
-
- /**
- * Required. An [instance resource][google.cloud.filestore.v1.Instance]
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Filestore\V1\Instance|null
- */
- public function getInstance()
- {
- return $this->instance;
- }
-
- public function hasInstance()
- {
- return isset($this->instance);
- }
-
- public function clearInstance()
- {
- unset($this->instance);
- }
-
- /**
- * Required. An [instance resource][google.cloud.filestore.v1.Instance]
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance instance = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Filestore\V1\Instance $var
- * @return $this
- */
- public function setInstance($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Filestore\V1\Instance::class);
- $this->instance = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/CreateSnapshotRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/CreateSnapshotRequest.php
deleted file mode 100644
index 314fbaba9cc4..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/CreateSnapshotRequest.php
+++ /dev/null
@@ -1,184 +0,0 @@
-google.cloud.filestore.v1.CreateSnapshotRequest
- */
-class CreateSnapshotRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The Filestore Instance to create the snapshots of, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. The ID to use for the snapshot.
- * The ID must be unique within the specified instance.
- * This value must start with a lowercase letter followed by up to 62
- * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- *
- * Generated from protobuf field string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $snapshot_id = '';
- /**
- * Required. A snapshot resource.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $snapshot = null;
-
- /**
- * @param string $parent Required. The Filestore Instance to create the snapshots of, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`
- * Please see {@see CloudFilestoreManagerClient::instanceName()} for help formatting this field.
- * @param \Google\Cloud\Filestore\V1\Snapshot $snapshot Required. A snapshot resource.
- * @param string $snapshotId Required. The ID to use for the snapshot.
- * The ID must be unique within the specified instance.
- *
- * This value must start with a lowercase letter followed by up to 62
- * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- *
- * @return \Google\Cloud\Filestore\V1\CreateSnapshotRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\Filestore\V1\Snapshot $snapshot, string $snapshotId): self
- {
- return (new self())
- ->setParent($parent)
- ->setSnapshot($snapshot)
- ->setSnapshotId($snapshotId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The Filestore Instance to create the snapshots of, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`
- * @type string $snapshot_id
- * Required. The ID to use for the snapshot.
- * The ID must be unique within the specified instance.
- * This value must start with a lowercase letter followed by up to 62
- * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- * @type \Google\Cloud\Filestore\V1\Snapshot $snapshot
- * Required. A snapshot resource.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The Filestore Instance to create the snapshots of, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The Filestore Instance to create the snapshots of, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. The ID to use for the snapshot.
- * The ID must be unique within the specified instance.
- * This value must start with a lowercase letter followed by up to 62
- * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- *
- * Generated from protobuf field string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getSnapshotId()
- {
- return $this->snapshot_id;
- }
-
- /**
- * Required. The ID to use for the snapshot.
- * The ID must be unique within the specified instance.
- * This value must start with a lowercase letter followed by up to 62
- * lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
- *
- * Generated from protobuf field string snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setSnapshotId($var)
- {
- GPBUtil::checkString($var, True);
- $this->snapshot_id = $var;
-
- return $this;
- }
-
- /**
- * Required. A snapshot resource.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Filestore\V1\Snapshot|null
- */
- public function getSnapshot()
- {
- return $this->snapshot;
- }
-
- public function hasSnapshot()
- {
- return isset($this->snapshot);
- }
-
- public function clearSnapshot()
- {
- unset($this->snapshot);
- }
-
- /**
- * Required. A snapshot resource.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Snapshot snapshot = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Filestore\V1\Snapshot $var
- * @return $this
- */
- public function setSnapshot($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Filestore\V1\Snapshot::class);
- $this->snapshot = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/DeleteBackupRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/DeleteBackupRequest.php
deleted file mode 100644
index 62048dd9520f..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/DeleteBackupRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.filestore.v1.DeleteBackupRequest
- */
-class DeleteBackupRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The backup resource name, in the format
- * `projects/{project_number}/locations/{location}/backups/{backup_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. The backup resource name, in the format
- * `projects/{project_number}/locations/{location}/backups/{backup_id}`
- * Please see {@see CloudFilestoreManagerClient::backupName()} for help formatting this field.
- *
- * @return \Google\Cloud\Filestore\V1\DeleteBackupRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The backup resource name, in the format
- * `projects/{project_number}/locations/{location}/backups/{backup_id}`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The backup resource name, in the format
- * `projects/{project_number}/locations/{location}/backups/{backup_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The backup resource name, in the format
- * `projects/{project_number}/locations/{location}/backups/{backup_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/DeleteInstanceRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/DeleteInstanceRequest.php
deleted file mode 100644
index 02964f58e99a..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/DeleteInstanceRequest.php
+++ /dev/null
@@ -1,124 +0,0 @@
-google.cloud.filestore.v1.DeleteInstanceRequest
- */
-class DeleteInstanceRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The instance resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * If set to true, all snapshots of the instance will also be deleted.
- * (Otherwise, the request will only work if the instance has no snapshots.)
- *
- * Generated from protobuf field bool force = 2;
- */
- protected $force = false;
-
- /**
- * @param string $name Required. The instance resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`
- * Please see {@see CloudFilestoreManagerClient::instanceName()} for help formatting this field.
- *
- * @return \Google\Cloud\Filestore\V1\DeleteInstanceRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The instance resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`
- * @type bool $force
- * If set to true, all snapshots of the instance will also be deleted.
- * (Otherwise, the request will only work if the instance has no snapshots.)
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The instance resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The instance resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * If set to true, all snapshots of the instance will also be deleted.
- * (Otherwise, the request will only work if the instance has no snapshots.)
- *
- * Generated from protobuf field bool force = 2;
- * @return bool
- */
- public function getForce()
- {
- return $this->force;
- }
-
- /**
- * If set to true, all snapshots of the instance will also be deleted.
- * (Otherwise, the request will only work if the instance has no snapshots.)
- *
- * Generated from protobuf field bool force = 2;
- * @param bool $var
- * @return $this
- */
- public function setForce($var)
- {
- GPBUtil::checkBool($var);
- $this->force = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/DeleteSnapshotRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/DeleteSnapshotRequest.php
deleted file mode 100644
index ef16ddaceaf3..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/DeleteSnapshotRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.filestore.v1.DeleteSnapshotRequest
- */
-class DeleteSnapshotRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The snapshot resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. The snapshot resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
- * Please see {@see CloudFilestoreManagerClient::snapshotName()} for help formatting this field.
- *
- * @return \Google\Cloud\Filestore\V1\DeleteSnapshotRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The snapshot resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The snapshot resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The snapshot resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/FileShareConfig.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/FileShareConfig.php
deleted file mode 100644
index dc1cb573dd40..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/FileShareConfig.php
+++ /dev/null
@@ -1,203 +0,0 @@
-google.cloud.filestore.v1.FileShareConfig
- */
-class FileShareConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the file share. Must use 1-16 characters for the
- * basic service tier and 1-63 characters for all other service tiers.
- * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
- * start with a letter. Immutable.
- *
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
- /**
- * File share capacity in gigabytes (GB).
- * Filestore defines 1 GB as 1024^3 bytes.
- *
- * Generated from protobuf field int64 capacity_gb = 2;
- */
- protected $capacity_gb = 0;
- /**
- * Nfs Export Options.
- * There is a limit of 10 export options per file share.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
- */
- private $nfs_export_options;
- protected $source;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The name of the file share. Must use 1-16 characters for the
- * basic service tier and 1-63 characters for all other service tiers.
- * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
- * start with a letter. Immutable.
- * @type int|string $capacity_gb
- * File share capacity in gigabytes (GB).
- * Filestore defines 1 GB as 1024^3 bytes.
- * @type string $source_backup
- * The resource name of the backup, in the format
- * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
- * that this file share has been restored from.
- * @type array<\Google\Cloud\Filestore\V1\NfsExportOptions>|\Google\Protobuf\Internal\RepeatedField $nfs_export_options
- * Nfs Export Options.
- * There is a limit of 10 export options per file share.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the file share. Must use 1-16 characters for the
- * basic service tier and 1-63 characters for all other service tiers.
- * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
- * start with a letter. Immutable.
- *
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The name of the file share. Must use 1-16 characters for the
- * basic service tier and 1-63 characters for all other service tiers.
- * Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must
- * start with a letter. Immutable.
- *
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * File share capacity in gigabytes (GB).
- * Filestore defines 1 GB as 1024^3 bytes.
- *
- * Generated from protobuf field int64 capacity_gb = 2;
- * @return int|string
- */
- public function getCapacityGb()
- {
- return $this->capacity_gb;
- }
-
- /**
- * File share capacity in gigabytes (GB).
- * Filestore defines 1 GB as 1024^3 bytes.
- *
- * Generated from protobuf field int64 capacity_gb = 2;
- * @param int|string $var
- * @return $this
- */
- public function setCapacityGb($var)
- {
- GPBUtil::checkInt64($var);
- $this->capacity_gb = $var;
-
- return $this;
- }
-
- /**
- * The resource name of the backup, in the format
- * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
- * that this file share has been restored from.
- *
- * Generated from protobuf field string source_backup = 8 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getSourceBackup()
- {
- return $this->readOneof(8);
- }
-
- public function hasSourceBackup()
- {
- return $this->hasOneof(8);
- }
-
- /**
- * The resource name of the backup, in the format
- * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`,
- * that this file share has been restored from.
- *
- * Generated from protobuf field string source_backup = 8 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setSourceBackup($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(8, $var);
-
- return $this;
- }
-
- /**
- * Nfs Export Options.
- * There is a limit of 10 export options per file share.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getNfsExportOptions()
- {
- return $this->nfs_export_options;
- }
-
- /**
- * Nfs Export Options.
- * There is a limit of 10 export options per file share.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.NfsExportOptions nfs_export_options = 7;
- * @param array<\Google\Cloud\Filestore\V1\NfsExportOptions>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setNfsExportOptions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Filestore\V1\NfsExportOptions::class);
- $this->nfs_export_options = $arr;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getSource()
- {
- return $this->whichOneof("source");
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/GetBackupRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/GetBackupRequest.php
deleted file mode 100644
index 89d8bdb44e69..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/GetBackupRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.filestore.v1.GetBackupRequest
- */
-class GetBackupRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The backup resource name, in the format
- * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. The backup resource name, in the format
- * `projects/{project_number}/locations/{location}/backups/{backup_id}`. Please see
- * {@see CloudFilestoreManagerClient::backupName()} for help formatting this field.
- *
- * @return \Google\Cloud\Filestore\V1\GetBackupRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The backup resource name, in the format
- * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The backup resource name, in the format
- * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The backup resource name, in the format
- * `projects/{project_number}/locations/{location}/backups/{backup_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/GetInstanceRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/GetInstanceRequest.php
deleted file mode 100644
index a034a1692709..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/GetInstanceRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.filestore.v1.GetInstanceRequest
- */
-class GetInstanceRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The instance resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. The instance resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`. Please see
- * {@see CloudFilestoreManagerClient::instanceName()} for help formatting this field.
- *
- * @return \Google\Cloud\Filestore\V1\GetInstanceRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The instance resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The instance resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The instance resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/GetSnapshotRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/GetSnapshotRequest.php
deleted file mode 100644
index a5831ec43669..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/GetSnapshotRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.filestore.v1.GetSnapshotRequest
- */
-class GetSnapshotRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The snapshot resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. The snapshot resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
- * Please see {@see CloudFilestoreManagerClient::snapshotName()} for help formatting this field.
- *
- * @return \Google\Cloud\Filestore\V1\GetSnapshotRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The snapshot resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The snapshot resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The snapshot resource name, in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}/snapshots/{snapshot_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Instance.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Instance.php
deleted file mode 100644
index 0fce99d9b268..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Instance.php
+++ /dev/null
@@ -1,576 +0,0 @@
-google.cloud.filestore.v1.Instance
- */
-class Instance extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The resource name of the instance, in the format
- * `projects/{project}/locations/{location}/instances/{instance}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * The description of the instance (2048 characters or less).
- *
- * Generated from protobuf field string description = 2;
- */
- protected $description = '';
- /**
- * Output only. The instance state.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. Additional information about the instance state, if available.
- *
- * Generated from protobuf field string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $status_message = '';
- /**
- * Output only. The time when the instance was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * The service tier of the instance.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance.Tier tier = 8;
- */
- protected $tier = 0;
- /**
- * Resource labels to represent user provided metadata.
- *
- * Generated from protobuf field map labels = 9;
- */
- private $labels;
- /**
- * File system shares on the instance.
- * For this version, only a single file share is supported.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
- */
- private $file_shares;
- /**
- * VPC networks to which the instance is connected.
- * For this version, only a single network is supported.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
- */
- private $networks;
- /**
- * Server-specified ETag for the instance resource to prevent simultaneous
- * updates from overwriting each other.
- *
- * Generated from protobuf field string etag = 12;
- */
- protected $etag = '';
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $satisfies_pzs = null;
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field bool satisfies_pzi = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $satisfies_pzi = false;
- /**
- * KMS key name used for data encryption.
- *
- * Generated from protobuf field string kms_key_name = 14;
- */
- protected $kms_key_name = '';
- /**
- * Output only. Field indicates all the reasons the instance is in "SUSPENDED"
- * state.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $suspension_reasons;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. The resource name of the instance, in the format
- * `projects/{project}/locations/{location}/instances/{instance}`.
- * @type string $description
- * The description of the instance (2048 characters or less).
- * @type int $state
- * Output only. The instance state.
- * @type string $status_message
- * Output only. Additional information about the instance state, if available.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The time when the instance was created.
- * @type int $tier
- * The service tier of the instance.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Resource labels to represent user provided metadata.
- * @type array<\Google\Cloud\Filestore\V1\FileShareConfig>|\Google\Protobuf\Internal\RepeatedField $file_shares
- * File system shares on the instance.
- * For this version, only a single file share is supported.
- * @type array<\Google\Cloud\Filestore\V1\NetworkConfig>|\Google\Protobuf\Internal\RepeatedField $networks
- * VPC networks to which the instance is connected.
- * For this version, only a single network is supported.
- * @type string $etag
- * Server-specified ETag for the instance resource to prevent simultaneous
- * updates from overwriting each other.
- * @type \Google\Protobuf\BoolValue $satisfies_pzs
- * Output only. Reserved for future use.
- * @type bool $satisfies_pzi
- * Output only. Reserved for future use.
- * @type string $kms_key_name
- * KMS key name used for data encryption.
- * @type array|\Google\Protobuf\Internal\RepeatedField $suspension_reasons
- * Output only. Field indicates all the reasons the instance is in "SUSPENDED"
- * state.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The resource name of the instance, in the format
- * `projects/{project}/locations/{location}/instances/{instance}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. The resource name of the instance, in the format
- * `projects/{project}/locations/{location}/instances/{instance}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * The description of the instance (2048 characters or less).
- *
- * Generated from protobuf field string description = 2;
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * The description of the instance (2048 characters or less).
- *
- * Generated from protobuf field string description = 2;
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Output only. The instance state.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. The instance state.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Filestore\V1\Instance\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Additional information about the instance state, if available.
- *
- * Generated from protobuf field string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getStatusMessage()
- {
- return $this->status_message;
- }
-
- /**
- * Output only. Additional information about the instance state, if available.
- *
- * Generated from protobuf field string status_message = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setStatusMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->status_message = $var;
-
- return $this;
- }
-
- /**
- * Output only. The time when the instance was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The time when the instance was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * The service tier of the instance.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance.Tier tier = 8;
- * @return int
- */
- public function getTier()
- {
- return $this->tier;
- }
-
- /**
- * The service tier of the instance.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance.Tier tier = 8;
- * @param int $var
- * @return $this
- */
- public function setTier($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Filestore\V1\Instance\Tier::class);
- $this->tier = $var;
-
- return $this;
- }
-
- /**
- * Resource labels to represent user provided metadata.
- *
- * Generated from protobuf field map labels = 9;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Resource labels to represent user provided metadata.
- *
- * Generated from protobuf field map labels = 9;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * File system shares on the instance.
- * For this version, only a single file share is supported.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFileShares()
- {
- return $this->file_shares;
- }
-
- /**
- * File system shares on the instance.
- * For this version, only a single file share is supported.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.FileShareConfig file_shares = 10;
- * @param array<\Google\Cloud\Filestore\V1\FileShareConfig>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFileShares($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Filestore\V1\FileShareConfig::class);
- $this->file_shares = $arr;
-
- return $this;
- }
-
- /**
- * VPC networks to which the instance is connected.
- * For this version, only a single network is supported.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getNetworks()
- {
- return $this->networks;
- }
-
- /**
- * VPC networks to which the instance is connected.
- * For this version, only a single network is supported.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.NetworkConfig networks = 11;
- * @param array<\Google\Cloud\Filestore\V1\NetworkConfig>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setNetworks($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Filestore\V1\NetworkConfig::class);
- $this->networks = $arr;
-
- return $this;
- }
-
- /**
- * Server-specified ETag for the instance resource to prevent simultaneous
- * updates from overwriting each other.
- *
- * Generated from protobuf field string etag = 12;
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Server-specified ETag for the instance resource to prevent simultaneous
- * updates from overwriting each other.
- *
- * Generated from protobuf field string etag = 12;
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\BoolValue|null
- */
- public function getSatisfiesPzs()
- {
- return $this->satisfies_pzs;
- }
-
- public function hasSatisfiesPzs()
- {
- return isset($this->satisfies_pzs);
- }
-
- public function clearSatisfiesPzs()
- {
- unset($this->satisfies_pzs);
- }
-
- /**
- * Returns the unboxed value from getSatisfiesPzs()
-
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool|null
- */
- public function getSatisfiesPzsUnwrapped()
- {
- return $this->readWrapperValue("satisfies_pzs");
- }
-
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\BoolValue $var
- * @return $this
- */
- public function setSatisfiesPzs($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
- $this->satisfies_pzs = $var;
-
- return $this;
- }
-
- /**
- * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
-
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field .google.protobuf.BoolValue satisfies_pzs = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool|null $var
- * @return $this
- */
- public function setSatisfiesPzsUnwrapped($var)
- {
- $this->writeWrapperValue("satisfies_pzs", $var);
- return $this;}
-
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field bool satisfies_pzi = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool
- */
- public function getSatisfiesPzi()
- {
- return $this->satisfies_pzi;
- }
-
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field bool satisfies_pzi = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool $var
- * @return $this
- */
- public function setSatisfiesPzi($var)
- {
- GPBUtil::checkBool($var);
- $this->satisfies_pzi = $var;
-
- return $this;
- }
-
- /**
- * KMS key name used for data encryption.
- *
- * Generated from protobuf field string kms_key_name = 14;
- * @return string
- */
- public function getKmsKeyName()
- {
- return $this->kms_key_name;
- }
-
- /**
- * KMS key name used for data encryption.
- *
- * Generated from protobuf field string kms_key_name = 14;
- * @param string $var
- * @return $this
- */
- public function setKmsKeyName($var)
- {
- GPBUtil::checkString($var, True);
- $this->kms_key_name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Field indicates all the reasons the instance is in "SUSPENDED"
- * state.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getSuspensionReasons()
- {
- return $this->suspension_reasons;
- }
-
- /**
- * Output only. Field indicates all the reasons the instance is in "SUSPENDED"
- * state.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.Instance.SuspensionReason suspension_reasons = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setSuspensionReasons($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Filestore\V1\Instance\SuspensionReason::class);
- $this->suspension_reasons = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Instance/State.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Instance/State.php
deleted file mode 100644
index 3a7c0eef9b47..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Instance/State.php
+++ /dev/null
@@ -1,125 +0,0 @@
-google.cloud.filestore.v1.Instance.State
- */
-class State
-{
- /**
- * State not set.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * The instance is being created.
- *
- * Generated from protobuf enum CREATING = 1;
- */
- const CREATING = 1;
- /**
- * The instance is available for use.
- *
- * Generated from protobuf enum READY = 2;
- */
- const READY = 2;
- /**
- * Work is being done on the instance. You can get further details from the
- * `statusMessage` field of the `Instance` resource.
- *
- * Generated from protobuf enum REPAIRING = 3;
- */
- const REPAIRING = 3;
- /**
- * The instance is shutting down.
- *
- * Generated from protobuf enum DELETING = 4;
- */
- const DELETING = 4;
- /**
- * The instance is experiencing an issue and might be unusable. You can get
- * further details from the `statusMessage` field of the `Instance`
- * resource.
- *
- * Generated from protobuf enum ERROR = 6;
- */
- const ERROR = 6;
- /**
- * The instance is restoring a backup to an existing file share and may be
- * unusable during this time.
- *
- * Generated from protobuf enum RESTORING = 7;
- */
- const RESTORING = 7;
- /**
- * The instance is suspended. You can get further details from
- * the `suspension_reasons` field of the `Instance` resource.
- *
- * Generated from protobuf enum SUSPENDED = 8;
- */
- const SUSPENDED = 8;
- /**
- * The instance is in the process of becoming suspended.
- *
- * Generated from protobuf enum SUSPENDING = 9;
- */
- const SUSPENDING = 9;
- /**
- * The instance is in the process of becoming active.
- *
- * Generated from protobuf enum RESUMING = 10;
- */
- const RESUMING = 10;
- /**
- * The instance is reverting to a snapshot.
- *
- * Generated from protobuf enum REVERTING = 12;
- */
- const REVERTING = 12;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::CREATING => 'CREATING',
- self::READY => 'READY',
- self::REPAIRING => 'REPAIRING',
- self::DELETING => 'DELETING',
- self::ERROR => 'ERROR',
- self::RESTORING => 'RESTORING',
- self::SUSPENDED => 'SUSPENDED',
- self::SUSPENDING => 'SUSPENDING',
- self::RESUMING => 'RESUMING',
- self::REVERTING => 'REVERTING',
- ];
-
- 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(State::class, \Google\Cloud\Filestore\V1\Instance_State::class);
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Instance/SuspensionReason.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Instance/SuspensionReason.php
deleted file mode 100644
index 0d85473b237d..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Instance/SuspensionReason.php
+++ /dev/null
@@ -1,57 +0,0 @@
-google.cloud.filestore.v1.Instance.SuspensionReason
- */
-class SuspensionReason
-{
- /**
- * Not set.
- *
- * Generated from protobuf enum SUSPENSION_REASON_UNSPECIFIED = 0;
- */
- const SUSPENSION_REASON_UNSPECIFIED = 0;
- /**
- * The KMS key used by the instance is either revoked or denied access to.
- *
- * Generated from protobuf enum KMS_KEY_ISSUE = 1;
- */
- const KMS_KEY_ISSUE = 1;
-
- private static $valueToName = [
- self::SUSPENSION_REASON_UNSPECIFIED => 'SUSPENSION_REASON_UNSPECIFIED',
- self::KMS_KEY_ISSUE => 'KMS_KEY_ISSUE',
- ];
-
- 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(SuspensionReason::class, \Google\Cloud\Filestore\V1\Instance_SuspensionReason::class);
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Instance/Tier.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Instance/Tier.php
deleted file mode 100644
index 074b36d09241..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Instance/Tier.php
+++ /dev/null
@@ -1,114 +0,0 @@
-google.cloud.filestore.v1.Instance.Tier
- */
-class Tier
-{
- /**
- * Not set.
- *
- * Generated from protobuf enum TIER_UNSPECIFIED = 0;
- */
- const TIER_UNSPECIFIED = 0;
- /**
- * STANDARD tier. BASIC_HDD is the preferred term for this tier.
- *
- * Generated from protobuf enum STANDARD = 1;
- */
- const STANDARD = 1;
- /**
- * PREMIUM tier. BASIC_SSD is the preferred term for this tier.
- *
- * Generated from protobuf enum PREMIUM = 2;
- */
- const PREMIUM = 2;
- /**
- * BASIC instances offer a maximum capacity of 63.9 TB.
- * BASIC_HDD is an alias for STANDARD Tier, offering economical
- * performance backed by HDD.
- *
- * Generated from protobuf enum BASIC_HDD = 3;
- */
- const BASIC_HDD = 3;
- /**
- * BASIC instances offer a maximum capacity of 63.9 TB.
- * BASIC_SSD is an alias for PREMIUM Tier, and offers improved
- * performance backed by SSD.
- *
- * Generated from protobuf enum BASIC_SSD = 4;
- */
- const BASIC_SSD = 4;
- /**
- * HIGH_SCALE instances offer expanded capacity and performance scaling
- * capabilities.
- *
- * Generated from protobuf enum HIGH_SCALE_SSD = 5;
- */
- const HIGH_SCALE_SSD = 5;
- /**
- * ENTERPRISE instances offer the features and availability needed for
- * mission-critical workloads.
- *
- * Generated from protobuf enum ENTERPRISE = 6;
- */
- const ENTERPRISE = 6;
- /**
- * ZONAL instances offer expanded capacity and performance scaling
- * capabilities.
- *
- * Generated from protobuf enum ZONAL = 7;
- */
- const ZONAL = 7;
- /**
- * REGIONAL instances offer the features and availability needed for
- * mission-critical workloads.
- *
- * Generated from protobuf enum REGIONAL = 8;
- */
- const REGIONAL = 8;
-
- private static $valueToName = [
- self::TIER_UNSPECIFIED => 'TIER_UNSPECIFIED',
- self::STANDARD => 'STANDARD',
- self::PREMIUM => 'PREMIUM',
- self::BASIC_HDD => 'BASIC_HDD',
- self::BASIC_SSD => 'BASIC_SSD',
- self::HIGH_SCALE_SSD => 'HIGH_SCALE_SSD',
- self::ENTERPRISE => 'ENTERPRISE',
- self::ZONAL => 'ZONAL',
- self::REGIONAL => 'REGIONAL',
- ];
-
- 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(Tier::class, \Google\Cloud\Filestore\V1\Instance_Tier::class);
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListBackupsRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListBackupsRequest.php
deleted file mode 100644
index 2e8d840adf8e..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListBackupsRequest.php
+++ /dev/null
@@ -1,246 +0,0 @@
-google.cloud.filestore.v1.ListBackupsRequest
- */
-class ListBackupsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The project and location for which to retrieve backup
- * information, in the format
- * `projects/{project_number}/locations/{location}`. In Filestore, backup
- * locations map to Google Cloud regions, for example **us-west1**. To
- * retrieve backup information for all locations, use "-" for the
- * `{location}` value.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- */
- protected $page_size = 0;
- /**
- * The next_page_token value to use if there are additional
- * results to retrieve for this list request.
- *
- * Generated from protobuf field string page_token = 3;
- */
- protected $page_token = '';
- /**
- * Sort results. Supported values are "name", "name desc" or "" (unsorted).
- *
- * Generated from protobuf field string order_by = 4;
- */
- protected $order_by = '';
- /**
- * List filter.
- *
- * Generated from protobuf field string filter = 5;
- */
- protected $filter = '';
-
- /**
- * @param string $parent Required. The project and location for which to retrieve backup
- * information, in the format
- * `projects/{project_number}/locations/{location}`. In Filestore, backup
- * locations map to Google Cloud regions, for example **us-west1**. To
- * retrieve backup information for all locations, use "-" for the
- * `{location}` value. Please see
- * {@see CloudFilestoreManagerClient::locationName()} for help formatting this field.
- *
- * @return \Google\Cloud\Filestore\V1\ListBackupsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The project and location for which to retrieve backup
- * information, in the format
- * `projects/{project_number}/locations/{location}`. In Filestore, backup
- * locations map to Google Cloud regions, for example **us-west1**. To
- * retrieve backup information for all locations, use "-" for the
- * `{location}` value.
- * @type int $page_size
- * The maximum number of items to return.
- * @type string $page_token
- * The next_page_token value to use if there are additional
- * results to retrieve for this list request.
- * @type string $order_by
- * Sort results. Supported values are "name", "name desc" or "" (unsorted).
- * @type string $filter
- * List filter.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The project and location for which to retrieve backup
- * information, in the format
- * `projects/{project_number}/locations/{location}`. In Filestore, backup
- * locations map to Google Cloud regions, for example **us-west1**. To
- * retrieve backup information for all locations, use "-" for the
- * `{location}` value.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The project and location for which to retrieve backup
- * information, in the format
- * `projects/{project_number}/locations/{location}`. In Filestore, backup
- * locations map to Google Cloud regions, for example **us-west1**. To
- * retrieve backup information for all locations, use "-" for the
- * `{location}` value.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * The next_page_token value to use if there are additional
- * results to retrieve for this list request.
- *
- * Generated from protobuf field string page_token = 3;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * The next_page_token value to use if there are additional
- * results to retrieve for this list request.
- *
- * Generated from protobuf field string page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Sort results. Supported values are "name", "name desc" or "" (unsorted).
- *
- * Generated from protobuf field string order_by = 4;
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Sort results. Supported values are "name", "name desc" or "" (unsorted).
- *
- * Generated from protobuf field string order_by = 4;
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
- /**
- * List filter.
- *
- * Generated from protobuf field string filter = 5;
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * List filter.
- *
- * Generated from protobuf field string filter = 5;
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListBackupsResponse.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListBackupsResponse.php
deleted file mode 100644
index 166221aae3bc..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListBackupsResponse.php
+++ /dev/null
@@ -1,159 +0,0 @@
-google.cloud.filestore.v1.ListBackupsResponse
- */
-class ListBackupsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * A list of backups in the project for the specified location.
- * If the `{location}` value in the request is "-", the response contains a
- * list of backups from all locations. If any location is unreachable, the
- * response will only return backups in reachable locations and the
- * "unreachable" field will be populated with a list of unreachable
- * locations.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.Backup backups = 1;
- */
- private $backups;
- /**
- * The token you can use to retrieve the next page of results. Not returned
- * if there are no more results in the list.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Filestore\V1\Backup>|\Google\Protobuf\Internal\RepeatedField $backups
- * A list of backups in the project for the specified location.
- * If the `{location}` value in the request is "-", the response contains a
- * list of backups from all locations. If any location is unreachable, the
- * response will only return backups in reachable locations and the
- * "unreachable" field will be populated with a list of unreachable
- * locations.
- * @type string $next_page_token
- * The token you can use to retrieve the next page of results. Not returned
- * if there are no more results in the list.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * Locations that could not be reached.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A list of backups in the project for the specified location.
- * If the `{location}` value in the request is "-", the response contains a
- * list of backups from all locations. If any location is unreachable, the
- * response will only return backups in reachable locations and the
- * "unreachable" field will be populated with a list of unreachable
- * locations.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.Backup backups = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getBackups()
- {
- return $this->backups;
- }
-
- /**
- * A list of backups in the project for the specified location.
- * If the `{location}` value in the request is "-", the response contains a
- * list of backups from all locations. If any location is unreachable, the
- * response will only return backups in reachable locations and the
- * "unreachable" field will be populated with a list of unreachable
- * locations.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.Backup backups = 1;
- * @param array<\Google\Cloud\Filestore\V1\Backup>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setBackups($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Filestore\V1\Backup::class);
- $this->backups = $arr;
-
- return $this;
- }
-
- /**
- * The token you can use to retrieve the next page of results. Not returned
- * if there are no more results in the list.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * The token you can use to retrieve the next page of results. Not returned
- * if there are no more results in the list.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListInstancesRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListInstancesRequest.php
deleted file mode 100644
index 07408da70f18..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListInstancesRequest.php
+++ /dev/null
@@ -1,246 +0,0 @@
-google.cloud.filestore.v1.ListInstancesRequest
- */
-class ListInstancesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The project and location for which to retrieve instance
- * information, in the format `projects/{project_id}/locations/{location}`. In
- * Cloud Filestore, locations map to Google Cloud zones, for example
- * **us-west1-b**. To retrieve instance information for all locations, use "-"
- * for the
- * `{location}` value.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- */
- protected $page_size = 0;
- /**
- * The next_page_token value to use if there are additional
- * results to retrieve for this list request.
- *
- * Generated from protobuf field string page_token = 3;
- */
- protected $page_token = '';
- /**
- * Sort results. Supported values are "name", "name desc" or "" (unsorted).
- *
- * Generated from protobuf field string order_by = 4;
- */
- protected $order_by = '';
- /**
- * List filter.
- *
- * Generated from protobuf field string filter = 5;
- */
- protected $filter = '';
-
- /**
- * @param string $parent Required. The project and location for which to retrieve instance
- * information, in the format `projects/{project_id}/locations/{location}`. In
- * Cloud Filestore, locations map to Google Cloud zones, for example
- * **us-west1-b**. To retrieve instance information for all locations, use "-"
- * for the
- * `{location}` value. Please see
- * {@see CloudFilestoreManagerClient::locationName()} for help formatting this field.
- *
- * @return \Google\Cloud\Filestore\V1\ListInstancesRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The project and location for which to retrieve instance
- * information, in the format `projects/{project_id}/locations/{location}`. In
- * Cloud Filestore, locations map to Google Cloud zones, for example
- * **us-west1-b**. To retrieve instance information for all locations, use "-"
- * for the
- * `{location}` value.
- * @type int $page_size
- * The maximum number of items to return.
- * @type string $page_token
- * The next_page_token value to use if there are additional
- * results to retrieve for this list request.
- * @type string $order_by
- * Sort results. Supported values are "name", "name desc" or "" (unsorted).
- * @type string $filter
- * List filter.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The project and location for which to retrieve instance
- * information, in the format `projects/{project_id}/locations/{location}`. In
- * Cloud Filestore, locations map to Google Cloud zones, for example
- * **us-west1-b**. To retrieve instance information for all locations, use "-"
- * for the
- * `{location}` value.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The project and location for which to retrieve instance
- * information, in the format `projects/{project_id}/locations/{location}`. In
- * Cloud Filestore, locations map to Google Cloud zones, for example
- * **us-west1-b**. To retrieve instance information for all locations, use "-"
- * for the
- * `{location}` value.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * The next_page_token value to use if there are additional
- * results to retrieve for this list request.
- *
- * Generated from protobuf field string page_token = 3;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * The next_page_token value to use if there are additional
- * results to retrieve for this list request.
- *
- * Generated from protobuf field string page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Sort results. Supported values are "name", "name desc" or "" (unsorted).
- *
- * Generated from protobuf field string order_by = 4;
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Sort results. Supported values are "name", "name desc" or "" (unsorted).
- *
- * Generated from protobuf field string order_by = 4;
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
- /**
- * List filter.
- *
- * Generated from protobuf field string filter = 5;
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * List filter.
- *
- * Generated from protobuf field string filter = 5;
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListInstancesResponse.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListInstancesResponse.php
deleted file mode 100644
index 96c73342d44c..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListInstancesResponse.php
+++ /dev/null
@@ -1,155 +0,0 @@
-google.cloud.filestore.v1.ListInstancesResponse
- */
-class ListInstancesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * A list of instances in the project for the specified location.
- * If the `{location}` value in the request is "-", the response contains a
- * list of instances from all locations. If any location is unreachable, the
- * response will only return instances in reachable locations and the
- * "unreachable" field will be populated with a list of unreachable locations.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.Instance instances = 1;
- */
- private $instances;
- /**
- * The token you can use to retrieve the next page of results. Not returned
- * if there are no more results in the list.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Filestore\V1\Instance>|\Google\Protobuf\Internal\RepeatedField $instances
- * A list of instances in the project for the specified location.
- * If the `{location}` value in the request is "-", the response contains a
- * list of instances from all locations. If any location is unreachable, the
- * response will only return instances in reachable locations and the
- * "unreachable" field will be populated with a list of unreachable locations.
- * @type string $next_page_token
- * The token you can use to retrieve the next page of results. Not returned
- * if there are no more results in the list.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * Locations that could not be reached.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A list of instances in the project for the specified location.
- * If the `{location}` value in the request is "-", the response contains a
- * list of instances from all locations. If any location is unreachable, the
- * response will only return instances in reachable locations and the
- * "unreachable" field will be populated with a list of unreachable locations.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.Instance instances = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getInstances()
- {
- return $this->instances;
- }
-
- /**
- * A list of instances in the project for the specified location.
- * If the `{location}` value in the request is "-", the response contains a
- * list of instances from all locations. If any location is unreachable, the
- * response will only return instances in reachable locations and the
- * "unreachable" field will be populated with a list of unreachable locations.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.Instance instances = 1;
- * @param array<\Google\Cloud\Filestore\V1\Instance>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setInstances($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Filestore\V1\Instance::class);
- $this->instances = $arr;
-
- return $this;
- }
-
- /**
- * The token you can use to retrieve the next page of results. Not returned
- * if there are no more results in the list.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * The token you can use to retrieve the next page of results. Not returned
- * if there are no more results in the list.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListSnapshotsRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListSnapshotsRequest.php
deleted file mode 100644
index eaa004774f70..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListSnapshotsRequest.php
+++ /dev/null
@@ -1,231 +0,0 @@
-google.cloud.filestore.v1.ListSnapshotsRequest
- */
-class ListSnapshotsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The instance for which to retrieve snapshot information,
- * in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- */
- protected $page_size = 0;
- /**
- * The next_page_token value to use if there are additional
- * results to retrieve for this list request.
- *
- * Generated from protobuf field string page_token = 3;
- */
- protected $page_token = '';
- /**
- * Sort results. Supported values are "name", "name desc" or "" (unsorted).
- *
- * Generated from protobuf field string order_by = 4;
- */
- protected $order_by = '';
- /**
- * List filter.
- *
- * Generated from protobuf field string filter = 5;
- */
- protected $filter = '';
-
- /**
- * @param string $parent Required. The instance for which to retrieve snapshot information,
- * in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`. Please see
- * {@see CloudFilestoreManagerClient::instanceName()} for help formatting this field.
- *
- * @return \Google\Cloud\Filestore\V1\ListSnapshotsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The instance for which to retrieve snapshot information,
- * in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
- * @type int $page_size
- * The maximum number of items to return.
- * @type string $page_token
- * The next_page_token value to use if there are additional
- * results to retrieve for this list request.
- * @type string $order_by
- * Sort results. Supported values are "name", "name desc" or "" (unsorted).
- * @type string $filter
- * List filter.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The instance for which to retrieve snapshot information,
- * in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The instance for which to retrieve snapshot information,
- * in the format
- * `projects/{project_id}/locations/{location}/instances/{instance_id}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * The maximum number of items to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * The next_page_token value to use if there are additional
- * results to retrieve for this list request.
- *
- * Generated from protobuf field string page_token = 3;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * The next_page_token value to use if there are additional
- * results to retrieve for this list request.
- *
- * Generated from protobuf field string page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Sort results. Supported values are "name", "name desc" or "" (unsorted).
- *
- * Generated from protobuf field string order_by = 4;
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Sort results. Supported values are "name", "name desc" or "" (unsorted).
- *
- * Generated from protobuf field string order_by = 4;
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
- /**
- * List filter.
- *
- * Generated from protobuf field string filter = 5;
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * List filter.
- *
- * Generated from protobuf field string filter = 5;
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListSnapshotsResponse.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListSnapshotsResponse.php
deleted file mode 100644
index 172b7189d452..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/ListSnapshotsResponse.php
+++ /dev/null
@@ -1,105 +0,0 @@
-google.cloud.filestore.v1.ListSnapshotsResponse
- */
-class ListSnapshotsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * A list of snapshots in the project for the specified instance.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.Snapshot snapshots = 1;
- */
- private $snapshots;
- /**
- * The token you can use to retrieve the next page of results. Not returned
- * if there are no more results in the list.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Filestore\V1\Snapshot>|\Google\Protobuf\Internal\RepeatedField $snapshots
- * A list of snapshots in the project for the specified instance.
- * @type string $next_page_token
- * The token you can use to retrieve the next page of results. Not returned
- * if there are no more results in the list.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A list of snapshots in the project for the specified instance.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.Snapshot snapshots = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getSnapshots()
- {
- return $this->snapshots;
- }
-
- /**
- * A list of snapshots in the project for the specified instance.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.Snapshot snapshots = 1;
- * @param array<\Google\Cloud\Filestore\V1\Snapshot>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setSnapshots($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Filestore\V1\Snapshot::class);
- $this->snapshots = $arr;
-
- return $this;
- }
-
- /**
- * The token you can use to retrieve the next page of results. Not returned
- * if there are no more results in the list.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * The token you can use to retrieve the next page of results. Not returned
- * if there are no more results in the list.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NetworkConfig.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NetworkConfig.php
deleted file mode 100644
index 201ade29815d..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NetworkConfig.php
+++ /dev/null
@@ -1,291 +0,0 @@
-google.cloud.filestore.v1.NetworkConfig
- */
-class NetworkConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * The name of the Google Compute Engine
- * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
- * instance is connected.
- *
- * Generated from protobuf field string network = 1;
- */
- protected $network = '';
- /**
- * Internet protocol versions for which the instance has IP addresses
- * assigned. For this version, only MODE_IPV4 is supported.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3;
- */
- private $modes;
- /**
- * Optional, reserved_ip_range can have one of the following two types of
- * values.
- * * CIDR range value when using DIRECT_PEERING connect mode.
- * * [Allocated IP address
- * range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address)
- * when using PRIVATE_SERVICE_ACCESS connect mode.
- * When the name of an allocated IP address range is specified, it must be one
- * of the ranges associated with the private service access connection.
- * When specified as a direct CIDR value, it must be a /29 CIDR block for
- * Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
- * Enterprise tier in one of the [internal IP address
- * ranges](https://www.arin.net/reference/research/statistics/address_filters/)
- * that identifies the range of IP addresses reserved for this instance. For
- * example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The
- * range you specify can't overlap with either existing subnets or assigned IP
- * address ranges for other Filestore instances in the selected VPC
- * network.
- *
- * Generated from protobuf field string reserved_ip_range = 4;
- */
- protected $reserved_ip_range = '';
- /**
- * Output only. IPv4 addresses in the format
- * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
- * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
- *
- * Generated from protobuf field repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $ip_addresses;
- /**
- * The network connect mode of the Filestore instance.
- * If not provided, the connect mode defaults to DIRECT_PEERING.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.NetworkConfig.ConnectMode connect_mode = 6;
- */
- protected $connect_mode = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $network
- * The name of the Google Compute Engine
- * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
- * instance is connected.
- * @type array|\Google\Protobuf\Internal\RepeatedField $modes
- * Internet protocol versions for which the instance has IP addresses
- * assigned. For this version, only MODE_IPV4 is supported.
- * @type string $reserved_ip_range
- * Optional, reserved_ip_range can have one of the following two types of
- * values.
- * * CIDR range value when using DIRECT_PEERING connect mode.
- * * [Allocated IP address
- * range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address)
- * when using PRIVATE_SERVICE_ACCESS connect mode.
- * When the name of an allocated IP address range is specified, it must be one
- * of the ranges associated with the private service access connection.
- * When specified as a direct CIDR value, it must be a /29 CIDR block for
- * Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
- * Enterprise tier in one of the [internal IP address
- * ranges](https://www.arin.net/reference/research/statistics/address_filters/)
- * that identifies the range of IP addresses reserved for this instance. For
- * example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The
- * range you specify can't overlap with either existing subnets or assigned IP
- * address ranges for other Filestore instances in the selected VPC
- * network.
- * @type array|\Google\Protobuf\Internal\RepeatedField $ip_addresses
- * Output only. IPv4 addresses in the format
- * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
- * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
- * @type int $connect_mode
- * The network connect mode of the Filestore instance.
- * If not provided, the connect mode defaults to DIRECT_PEERING.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The name of the Google Compute Engine
- * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
- * instance is connected.
- *
- * Generated from protobuf field string network = 1;
- * @return string
- */
- public function getNetwork()
- {
- return $this->network;
- }
-
- /**
- * The name of the Google Compute Engine
- * [VPC network](https://cloud.google.com/vpc/docs/vpc) to which the
- * instance is connected.
- *
- * Generated from protobuf field string network = 1;
- * @param string $var
- * @return $this
- */
- public function setNetwork($var)
- {
- GPBUtil::checkString($var, True);
- $this->network = $var;
-
- return $this;
- }
-
- /**
- * Internet protocol versions for which the instance has IP addresses
- * assigned. For this version, only MODE_IPV4 is supported.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getModes()
- {
- return $this->modes;
- }
-
- /**
- * Internet protocol versions for which the instance has IP addresses
- * assigned. For this version, only MODE_IPV4 is supported.
- *
- * Generated from protobuf field repeated .google.cloud.filestore.v1.NetworkConfig.AddressMode modes = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setModes($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Filestore\V1\NetworkConfig\AddressMode::class);
- $this->modes = $arr;
-
- return $this;
- }
-
- /**
- * Optional, reserved_ip_range can have one of the following two types of
- * values.
- * * CIDR range value when using DIRECT_PEERING connect mode.
- * * [Allocated IP address
- * range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address)
- * when using PRIVATE_SERVICE_ACCESS connect mode.
- * When the name of an allocated IP address range is specified, it must be one
- * of the ranges associated with the private service access connection.
- * When specified as a direct CIDR value, it must be a /29 CIDR block for
- * Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
- * Enterprise tier in one of the [internal IP address
- * ranges](https://www.arin.net/reference/research/statistics/address_filters/)
- * that identifies the range of IP addresses reserved for this instance. For
- * example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The
- * range you specify can't overlap with either existing subnets or assigned IP
- * address ranges for other Filestore instances in the selected VPC
- * network.
- *
- * Generated from protobuf field string reserved_ip_range = 4;
- * @return string
- */
- public function getReservedIpRange()
- {
- return $this->reserved_ip_range;
- }
-
- /**
- * Optional, reserved_ip_range can have one of the following two types of
- * values.
- * * CIDR range value when using DIRECT_PEERING connect mode.
- * * [Allocated IP address
- * range](https://cloud.google.com/compute/docs/ip-addresses/reserve-static-internal-ip-address)
- * when using PRIVATE_SERVICE_ACCESS connect mode.
- * When the name of an allocated IP address range is specified, it must be one
- * of the ranges associated with the private service access connection.
- * When specified as a direct CIDR value, it must be a /29 CIDR block for
- * Basic tier, a /24 CIDR block for High Scale tier, or a /26 CIDR block for
- * Enterprise tier in one of the [internal IP address
- * ranges](https://www.arin.net/reference/research/statistics/address_filters/)
- * that identifies the range of IP addresses reserved for this instance. For
- * example, 10.0.0.0/29, 192.168.0.0/24 or 192.168.0.0/26, respectively. The
- * range you specify can't overlap with either existing subnets or assigned IP
- * address ranges for other Filestore instances in the selected VPC
- * network.
- *
- * Generated from protobuf field string reserved_ip_range = 4;
- * @param string $var
- * @return $this
- */
- public function setReservedIpRange($var)
- {
- GPBUtil::checkString($var, True);
- $this->reserved_ip_range = $var;
-
- return $this;
- }
-
- /**
- * Output only. IPv4 addresses in the format
- * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
- * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
- *
- * Generated from protobuf field repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getIpAddresses()
- {
- return $this->ip_addresses;
- }
-
- /**
- * Output only. IPv4 addresses in the format
- * `{octet1}.{octet2}.{octet3}.{octet4}` or IPv6 addresses in the format
- * `{block1}:{block2}:{block3}:{block4}:{block5}:{block6}:{block7}:{block8}`.
- *
- * Generated from protobuf field repeated string ip_addresses = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setIpAddresses($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->ip_addresses = $arr;
-
- return $this;
- }
-
- /**
- * The network connect mode of the Filestore instance.
- * If not provided, the connect mode defaults to DIRECT_PEERING.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.NetworkConfig.ConnectMode connect_mode = 6;
- * @return int
- */
- public function getConnectMode()
- {
- return $this->connect_mode;
- }
-
- /**
- * The network connect mode of the Filestore instance.
- * If not provided, the connect mode defaults to DIRECT_PEERING.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.NetworkConfig.ConnectMode connect_mode = 6;
- * @param int $var
- * @return $this
- */
- public function setConnectMode($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Filestore\V1\NetworkConfig\ConnectMode::class);
- $this->connect_mode = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NetworkConfig/AddressMode.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NetworkConfig/AddressMode.php
deleted file mode 100644
index bb502dfe926e..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NetworkConfig/AddressMode.php
+++ /dev/null
@@ -1,57 +0,0 @@
-google.cloud.filestore.v1.NetworkConfig.AddressMode
- */
-class AddressMode
-{
- /**
- * Internet protocol not set.
- *
- * Generated from protobuf enum ADDRESS_MODE_UNSPECIFIED = 0;
- */
- const ADDRESS_MODE_UNSPECIFIED = 0;
- /**
- * Use the IPv4 internet protocol.
- *
- * Generated from protobuf enum MODE_IPV4 = 1;
- */
- const MODE_IPV4 = 1;
-
- private static $valueToName = [
- self::ADDRESS_MODE_UNSPECIFIED => 'ADDRESS_MODE_UNSPECIFIED',
- self::MODE_IPV4 => 'MODE_IPV4',
- ];
-
- 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(AddressMode::class, \Google\Cloud\Filestore\V1\NetworkConfig_AddressMode::class);
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NetworkConfig/ConnectMode.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NetworkConfig/ConnectMode.php
deleted file mode 100644
index fcb3a514872a..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NetworkConfig/ConnectMode.php
+++ /dev/null
@@ -1,66 +0,0 @@
-google.cloud.filestore.v1.NetworkConfig.ConnectMode
- */
-class ConnectMode
-{
- /**
- * Not set.
- *
- * Generated from protobuf enum CONNECT_MODE_UNSPECIFIED = 0;
- */
- const CONNECT_MODE_UNSPECIFIED = 0;
- /**
- * Connect via direct peering to the Filestore service.
- *
- * Generated from protobuf enum DIRECT_PEERING = 1;
- */
- const DIRECT_PEERING = 1;
- /**
- * Connect to your Filestore instance using Private Service
- * Access. Private services access provides an IP address range for multiple
- * Google Cloud services, including Filestore.
- *
- * Generated from protobuf enum PRIVATE_SERVICE_ACCESS = 2;
- */
- const PRIVATE_SERVICE_ACCESS = 2;
-
- private static $valueToName = [
- self::CONNECT_MODE_UNSPECIFIED => 'CONNECT_MODE_UNSPECIFIED',
- self::DIRECT_PEERING => 'DIRECT_PEERING',
- self::PRIVATE_SERVICE_ACCESS => 'PRIVATE_SERVICE_ACCESS',
- ];
-
- 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(ConnectMode::class, \Google\Cloud\Filestore\V1\NetworkConfig_ConnectMode::class);
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NfsExportOptions.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NfsExportOptions.php
deleted file mode 100644
index 9e58d779e63d..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NfsExportOptions.php
+++ /dev/null
@@ -1,271 +0,0 @@
-google.cloud.filestore.v1.NfsExportOptions
- */
-class NfsExportOptions extends \Google\Protobuf\Internal\Message
-{
- /**
- * List of either an IPv4 addresses in the format
- * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
- * `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
- * file share.
- * Overlapping IP ranges are not allowed, both within and across
- * NfsExportOptions. An error will be returned.
- * The limit is 64 IP ranges/addresses for each FileShareConfig among all
- * NfsExportOptions.
- *
- * Generated from protobuf field repeated string ip_ranges = 1;
- */
- private $ip_ranges;
- /**
- * Either READ_ONLY, for allowing only read requests on the exported
- * directory, or READ_WRITE, for allowing both read and write requests.
- * The default is READ_WRITE.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2;
- */
- protected $access_mode = 0;
- /**
- * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
- * or ROOT_SQUASH, for not allowing root access. The default is
- * NO_ROOT_SQUASH.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3;
- */
- protected $squash_mode = 0;
- /**
- * An integer representing the anonymous user id with a default value of
- * 65534.
- * Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be
- * returned if this field is specified for other squash_mode settings.
- *
- * Generated from protobuf field int64 anon_uid = 4;
- */
- protected $anon_uid = 0;
- /**
- * An integer representing the anonymous group id with a default value of
- * 65534.
- * Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be
- * returned if this field is specified for other squash_mode settings.
- *
- * Generated from protobuf field int64 anon_gid = 5;
- */
- protected $anon_gid = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $ip_ranges
- * List of either an IPv4 addresses in the format
- * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
- * `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
- * file share.
- * Overlapping IP ranges are not allowed, both within and across
- * NfsExportOptions. An error will be returned.
- * The limit is 64 IP ranges/addresses for each FileShareConfig among all
- * NfsExportOptions.
- * @type int $access_mode
- * Either READ_ONLY, for allowing only read requests on the exported
- * directory, or READ_WRITE, for allowing both read and write requests.
- * The default is READ_WRITE.
- * @type int $squash_mode
- * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
- * or ROOT_SQUASH, for not allowing root access. The default is
- * NO_ROOT_SQUASH.
- * @type int|string $anon_uid
- * An integer representing the anonymous user id with a default value of
- * 65534.
- * Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be
- * returned if this field is specified for other squash_mode settings.
- * @type int|string $anon_gid
- * An integer representing the anonymous group id with a default value of
- * 65534.
- * Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be
- * returned if this field is specified for other squash_mode settings.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * List of either an IPv4 addresses in the format
- * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
- * `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
- * file share.
- * Overlapping IP ranges are not allowed, both within and across
- * NfsExportOptions. An error will be returned.
- * The limit is 64 IP ranges/addresses for each FileShareConfig among all
- * NfsExportOptions.
- *
- * Generated from protobuf field repeated string ip_ranges = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getIpRanges()
- {
- return $this->ip_ranges;
- }
-
- /**
- * List of either an IPv4 addresses in the format
- * `{octet1}.{octet2}.{octet3}.{octet4}` or CIDR ranges in the format
- * `{octet1}.{octet2}.{octet3}.{octet4}/{mask size}` which may mount the
- * file share.
- * Overlapping IP ranges are not allowed, both within and across
- * NfsExportOptions. An error will be returned.
- * The limit is 64 IP ranges/addresses for each FileShareConfig among all
- * NfsExportOptions.
- *
- * Generated from protobuf field repeated string ip_ranges = 1;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setIpRanges($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->ip_ranges = $arr;
-
- return $this;
- }
-
- /**
- * Either READ_ONLY, for allowing only read requests on the exported
- * directory, or READ_WRITE, for allowing both read and write requests.
- * The default is READ_WRITE.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2;
- * @return int
- */
- public function getAccessMode()
- {
- return $this->access_mode;
- }
-
- /**
- * Either READ_ONLY, for allowing only read requests on the exported
- * directory, or READ_WRITE, for allowing both read and write requests.
- * The default is READ_WRITE.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.NfsExportOptions.AccessMode access_mode = 2;
- * @param int $var
- * @return $this
- */
- public function setAccessMode($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Filestore\V1\NfsExportOptions\AccessMode::class);
- $this->access_mode = $var;
-
- return $this;
- }
-
- /**
- * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
- * or ROOT_SQUASH, for not allowing root access. The default is
- * NO_ROOT_SQUASH.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3;
- * @return int
- */
- public function getSquashMode()
- {
- return $this->squash_mode;
- }
-
- /**
- * Either NO_ROOT_SQUASH, for allowing root access on the exported directory,
- * or ROOT_SQUASH, for not allowing root access. The default is
- * NO_ROOT_SQUASH.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.NfsExportOptions.SquashMode squash_mode = 3;
- * @param int $var
- * @return $this
- */
- public function setSquashMode($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Filestore\V1\NfsExportOptions\SquashMode::class);
- $this->squash_mode = $var;
-
- return $this;
- }
-
- /**
- * An integer representing the anonymous user id with a default value of
- * 65534.
- * Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be
- * returned if this field is specified for other squash_mode settings.
- *
- * Generated from protobuf field int64 anon_uid = 4;
- * @return int|string
- */
- public function getAnonUid()
- {
- return $this->anon_uid;
- }
-
- /**
- * An integer representing the anonymous user id with a default value of
- * 65534.
- * Anon_uid may only be set with squash_mode of ROOT_SQUASH. An error will be
- * returned if this field is specified for other squash_mode settings.
- *
- * Generated from protobuf field int64 anon_uid = 4;
- * @param int|string $var
- * @return $this
- */
- public function setAnonUid($var)
- {
- GPBUtil::checkInt64($var);
- $this->anon_uid = $var;
-
- return $this;
- }
-
- /**
- * An integer representing the anonymous group id with a default value of
- * 65534.
- * Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be
- * returned if this field is specified for other squash_mode settings.
- *
- * Generated from protobuf field int64 anon_gid = 5;
- * @return int|string
- */
- public function getAnonGid()
- {
- return $this->anon_gid;
- }
-
- /**
- * An integer representing the anonymous group id with a default value of
- * 65534.
- * Anon_gid may only be set with squash_mode of ROOT_SQUASH. An error will be
- * returned if this field is specified for other squash_mode settings.
- *
- * Generated from protobuf field int64 anon_gid = 5;
- * @param int|string $var
- * @return $this
- */
- public function setAnonGid($var)
- {
- GPBUtil::checkInt64($var);
- $this->anon_gid = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NfsExportOptions/AccessMode.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NfsExportOptions/AccessMode.php
deleted file mode 100644
index 22e3a736af2a..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NfsExportOptions/AccessMode.php
+++ /dev/null
@@ -1,64 +0,0 @@
-google.cloud.filestore.v1.NfsExportOptions.AccessMode
- */
-class AccessMode
-{
- /**
- * AccessMode not set.
- *
- * Generated from protobuf enum ACCESS_MODE_UNSPECIFIED = 0;
- */
- const ACCESS_MODE_UNSPECIFIED = 0;
- /**
- * The client can only read the file share.
- *
- * Generated from protobuf enum READ_ONLY = 1;
- */
- const READ_ONLY = 1;
- /**
- * The client can read and write the file share (default).
- *
- * Generated from protobuf enum READ_WRITE = 2;
- */
- const READ_WRITE = 2;
-
- private static $valueToName = [
- self::ACCESS_MODE_UNSPECIFIED => 'ACCESS_MODE_UNSPECIFIED',
- self::READ_ONLY => 'READ_ONLY',
- self::READ_WRITE => 'READ_WRITE',
- ];
-
- 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(AccessMode::class, \Google\Cloud\Filestore\V1\NfsExportOptions_AccessMode::class);
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NfsExportOptions/SquashMode.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NfsExportOptions/SquashMode.php
deleted file mode 100644
index 5cc43da713a5..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/NfsExportOptions/SquashMode.php
+++ /dev/null
@@ -1,64 +0,0 @@
-google.cloud.filestore.v1.NfsExportOptions.SquashMode
- */
-class SquashMode
-{
- /**
- * SquashMode not set.
- *
- * Generated from protobuf enum SQUASH_MODE_UNSPECIFIED = 0;
- */
- const SQUASH_MODE_UNSPECIFIED = 0;
- /**
- * The Root user has root access to the file share (default).
- *
- * Generated from protobuf enum NO_ROOT_SQUASH = 1;
- */
- const NO_ROOT_SQUASH = 1;
- /**
- * The Root user has squashed access to the anonymous uid/gid.
- *
- * Generated from protobuf enum ROOT_SQUASH = 2;
- */
- const ROOT_SQUASH = 2;
-
- private static $valueToName = [
- self::SQUASH_MODE_UNSPECIFIED => 'SQUASH_MODE_UNSPECIFIED',
- self::NO_ROOT_SQUASH => 'NO_ROOT_SQUASH',
- self::ROOT_SQUASH => 'ROOT_SQUASH',
- ];
-
- 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(SquashMode::class, \Google\Cloud\Filestore\V1\NfsExportOptions_SquashMode::class);
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/RestoreInstanceRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/RestoreInstanceRequest.php
deleted file mode 100644
index 85a76b2484c5..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/RestoreInstanceRequest.php
+++ /dev/null
@@ -1,155 +0,0 @@
-google.cloud.filestore.v1.RestoreInstanceRequest
- */
-class RestoreInstanceRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The resource name of the instance, in the format
- * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Required. Name of the file share in the Filestore instance that the backup
- * is being restored to.
- *
- * Generated from protobuf field string file_share = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $file_share = '';
- protected $source;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The resource name of the instance, in the format
- * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
- * @type string $file_share
- * Required. Name of the file share in the Filestore instance that the backup
- * is being restored to.
- * @type string $source_backup
- * The resource name of the backup, in the format
- * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The resource name of the instance, in the format
- * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The resource name of the instance, in the format
- * `projects/{project_number}/locations/{location_id}/instances/{instance_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Required. Name of the file share in the Filestore instance that the backup
- * is being restored to.
- *
- * Generated from protobuf field string file_share = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getFileShare()
- {
- return $this->file_share;
- }
-
- /**
- * Required. Name of the file share in the Filestore instance that the backup
- * is being restored to.
- *
- * Generated from protobuf field string file_share = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setFileShare($var)
- {
- GPBUtil::checkString($var, True);
- $this->file_share = $var;
-
- return $this;
- }
-
- /**
- * The resource name of the backup, in the format
- * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
- *
- * Generated from protobuf field string source_backup = 3 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getSourceBackup()
- {
- return $this->readOneof(3);
- }
-
- public function hasSourceBackup()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * The resource name of the backup, in the format
- * `projects/{project_number}/locations/{location_id}/backups/{backup_id}`.
- *
- * Generated from protobuf field string source_backup = 3 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setSourceBackup($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getSource()
- {
- return $this->whichOneof("source");
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/RevertInstanceRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/RevertInstanceRequest.php
deleted file mode 100644
index 581d86803255..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/RevertInstanceRequest.php
+++ /dev/null
@@ -1,118 +0,0 @@
-google.cloud.filestore.v1.RevertInstanceRequest
- */
-class RevertInstanceRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required.
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
- * The resource name of the instance, in the format
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Required. The snapshot resource ID, in the format 'my-snapshot', where the
- * specified ID is the {snapshot_id} of the fully qualified name like
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`
- *
- * Generated from protobuf field string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $target_snapshot_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required.
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
- * The resource name of the instance, in the format
- * @type string $target_snapshot_id
- * Required. The snapshot resource ID, in the format 'my-snapshot', where the
- * specified ID is the {snapshot_id} of the fully qualified name like
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required.
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
- * The resource name of the instance, in the format
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required.
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`.
- * The resource name of the instance, in the format
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Required. The snapshot resource ID, in the format 'my-snapshot', where the
- * specified ID is the {snapshot_id} of the fully qualified name like
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`
- *
- * Generated from protobuf field string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getTargetSnapshotId()
- {
- return $this->target_snapshot_id;
- }
-
- /**
- * Required. The snapshot resource ID, in the format 'my-snapshot', where the
- * specified ID is the {snapshot_id} of the fully qualified name like
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`
- *
- * Generated from protobuf field string target_snapshot_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setTargetSnapshotId($var)
- {
- GPBUtil::checkString($var, True);
- $this->target_snapshot_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Snapshot.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Snapshot.php
deleted file mode 100644
index aba33831cf48..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Snapshot.php
+++ /dev/null
@@ -1,259 +0,0 @@
-google.cloud.filestore.v1.Snapshot
- */
-class Snapshot extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The resource name of the snapshot, in the format
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * A description of the snapshot with 2048 characters or less.
- * Requests with longer descriptions will be rejected.
- *
- * Generated from protobuf field string description = 2;
- */
- protected $description = '';
- /**
- * Output only. The snapshot state.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. The time when the snapshot was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Resource labels to represent user provided metadata.
- *
- * Generated from protobuf field map labels = 5;
- */
- private $labels;
- /**
- * Output only. The amount of bytes needed to allocate a full copy of the
- * snapshot content
- *
- * Generated from protobuf field int64 filesystem_used_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $filesystem_used_bytes = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. The resource name of the snapshot, in the format
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
- * @type string $description
- * A description of the snapshot with 2048 characters or less.
- * Requests with longer descriptions will be rejected.
- * @type int $state
- * Output only. The snapshot state.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The time when the snapshot was created.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Resource labels to represent user provided metadata.
- * @type int|string $filesystem_used_bytes
- * Output only. The amount of bytes needed to allocate a full copy of the
- * snapshot content
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The resource name of the snapshot, in the format
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. The resource name of the snapshot, in the format
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}/snapshots/{snapshot_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * A description of the snapshot with 2048 characters or less.
- * Requests with longer descriptions will be rejected.
- *
- * Generated from protobuf field string description = 2;
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * A description of the snapshot with 2048 characters or less.
- * Requests with longer descriptions will be rejected.
- *
- * Generated from protobuf field string description = 2;
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Output only. The snapshot state.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. The snapshot state.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Snapshot.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Filestore\V1\Snapshot\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. The time when the snapshot was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The time when the snapshot was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Resource labels to represent user provided metadata.
- *
- * Generated from protobuf field map labels = 5;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Resource labels to represent user provided metadata.
- *
- * Generated from protobuf field map labels = 5;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Output only. The amount of bytes needed to allocate a full copy of the
- * snapshot content
- *
- * Generated from protobuf field int64 filesystem_used_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getFilesystemUsedBytes()
- {
- return $this->filesystem_used_bytes;
- }
-
- /**
- * Output only. The amount of bytes needed to allocate a full copy of the
- * snapshot content
- *
- * Generated from protobuf field int64 filesystem_used_bytes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setFilesystemUsedBytes($var)
- {
- GPBUtil::checkInt64($var);
- $this->filesystem_used_bytes = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Snapshot/State.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Snapshot/State.php
deleted file mode 100644
index 6b5f420f0641..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/Snapshot/State.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.filestore.v1.Snapshot.State
- */
-class State
-{
- /**
- * State not set.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * Snapshot is being created.
- *
- * Generated from protobuf enum CREATING = 1;
- */
- const CREATING = 1;
- /**
- * Snapshot is available for use.
- *
- * Generated from protobuf enum READY = 2;
- */
- const READY = 2;
- /**
- * Snapshot is being deleted.
- *
- * Generated from protobuf enum DELETING = 3;
- */
- const DELETING = 3;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::CREATING => 'CREATING',
- self::READY => 'READY',
- self::DELETING => 'DELETING',
- ];
-
- 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(State::class, \Google\Cloud\Filestore\V1\Snapshot_State::class);
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/UpdateBackupRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/UpdateBackupRequest.php
deleted file mode 100644
index 1af115b57bb8..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/UpdateBackupRequest.php
+++ /dev/null
@@ -1,141 +0,0 @@
-google.cloud.filestore.v1.UpdateBackupRequest
- */
-class UpdateBackupRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A [backup resource][google.cloud.filestore.v1.Backup]
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $backup = null;
- /**
- * Required. Mask of fields to update. At least one path must be supplied in
- * this field.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $update_mask = null;
-
- /**
- * @param \Google\Cloud\Filestore\V1\Backup $backup Required. A [backup resource][google.cloud.filestore.v1.Backup]
- * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in
- * this field.
- *
- * @return \Google\Cloud\Filestore\V1\UpdateBackupRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\Filestore\V1\Backup $backup, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setBackup($backup)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Filestore\V1\Backup $backup
- * Required. A [backup resource][google.cloud.filestore.v1.Backup]
- * @type \Google\Protobuf\FieldMask $update_mask
- * Required. Mask of fields to update. At least one path must be supplied in
- * this field.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A [backup resource][google.cloud.filestore.v1.Backup]
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Filestore\V1\Backup|null
- */
- public function getBackup()
- {
- return $this->backup;
- }
-
- public function hasBackup()
- {
- return isset($this->backup);
- }
-
- public function clearBackup()
- {
- unset($this->backup);
- }
-
- /**
- * Required. A [backup resource][google.cloud.filestore.v1.Backup]
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Filestore\V1\Backup $var
- * @return $this
- */
- public function setBackup($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Filestore\V1\Backup::class);
- $this->backup = $var;
-
- return $this;
- }
-
- /**
- * Required. Mask of fields to update. At least one path must be supplied in
- * this field.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * Required. Mask of fields to update. At least one path must be supplied in
- * this field.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/UpdateInstanceRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/UpdateInstanceRequest.php
deleted file mode 100644
index 5a1930af15f1..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/UpdateInstanceRequest.php
+++ /dev/null
@@ -1,162 +0,0 @@
-google.cloud.filestore.v1.UpdateInstanceRequest
- */
-class UpdateInstanceRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Mask of fields to update. At least one path must be supplied in this
- * field. The elements of the repeated paths field may only include these
- * fields:
- * * "description"
- * * "file_shares"
- * * "labels"
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1;
- */
- protected $update_mask = null;
- /**
- * Only fields specified in update_mask are updated.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance instance = 2;
- */
- protected $instance = null;
-
- /**
- * @param \Google\Cloud\Filestore\V1\Instance $instance Only fields specified in update_mask are updated.
- * @param \Google\Protobuf\FieldMask $updateMask Mask of fields to update. At least one path must be supplied in this
- * field. The elements of the repeated paths field may only include these
- * fields:
- *
- * * "description"
- * * "file_shares"
- * * "labels"
- *
- * @return \Google\Cloud\Filestore\V1\UpdateInstanceRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\Filestore\V1\Instance $instance, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setInstance($instance)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\FieldMask $update_mask
- * Mask of fields to update. At least one path must be supplied in this
- * field. The elements of the repeated paths field may only include these
- * fields:
- * * "description"
- * * "file_shares"
- * * "labels"
- * @type \Google\Cloud\Filestore\V1\Instance $instance
- * Only fields specified in update_mask are updated.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Mask of fields to update. At least one path must be supplied in this
- * field. The elements of the repeated paths field may only include these
- * fields:
- * * "description"
- * * "file_shares"
- * * "labels"
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1;
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * Mask of fields to update. At least one path must be supplied in this
- * field. The elements of the repeated paths field may only include these
- * fields:
- * * "description"
- * * "file_shares"
- * * "labels"
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1;
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
- /**
- * Only fields specified in update_mask are updated.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance instance = 2;
- * @return \Google\Cloud\Filestore\V1\Instance|null
- */
- public function getInstance()
- {
- return $this->instance;
- }
-
- public function hasInstance()
- {
- return isset($this->instance);
- }
-
- public function clearInstance()
- {
- unset($this->instance);
- }
-
- /**
- * Only fields specified in update_mask are updated.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Instance instance = 2;
- * @param \Google\Cloud\Filestore\V1\Instance $var
- * @return $this
- */
- public function setInstance($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Filestore\V1\Instance::class);
- $this->instance = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/UpdateSnapshotRequest.php b/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/UpdateSnapshotRequest.php
deleted file mode 100644
index a2afac066a32..000000000000
--- a/owl-bot-staging/Filestore/v1/proto/src/Google/Cloud/Filestore/V1/UpdateSnapshotRequest.php
+++ /dev/null
@@ -1,141 +0,0 @@
-google.cloud.filestore.v1.UpdateSnapshotRequest
- */
-class UpdateSnapshotRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Mask of fields to update. At least one path must be supplied in
- * this field.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $update_mask = null;
- /**
- * Required. A snapshot resource.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $snapshot = null;
-
- /**
- * @param \Google\Cloud\Filestore\V1\Snapshot $snapshot Required. A snapshot resource.
- * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update. At least one path must be supplied in
- * this field.
- *
- * @return \Google\Cloud\Filestore\V1\UpdateSnapshotRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\Filestore\V1\Snapshot $snapshot, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setSnapshot($snapshot)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\FieldMask $update_mask
- * Required. Mask of fields to update. At least one path must be supplied in
- * this field.
- * @type \Google\Cloud\Filestore\V1\Snapshot $snapshot
- * Required. A snapshot resource.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Filestore\V1\CloudFilestoreService::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Mask of fields to update. At least one path must be supplied in
- * this field.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * Required. Mask of fields to update. At least one path must be supplied in
- * this field.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
- /**
- * Required. A snapshot resource.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Filestore\V1\Snapshot|null
- */
- public function getSnapshot()
- {
- return $this->snapshot;
- }
-
- public function hasSnapshot()
- {
- return isset($this->snapshot);
- }
-
- public function clearSnapshot()
- {
- unset($this->snapshot);
- }
-
- /**
- * Required. A snapshot resource.
- *
- * Generated from protobuf field .google.cloud.filestore.v1.Snapshot snapshot = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Filestore\V1\Snapshot $var
- * @return $this
- */
- public function setSnapshot($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Filestore\V1\Snapshot::class);
- $this->snapshot = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/create_backup.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/create_backup.php
deleted file mode 100644
index 947bdb22755d..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/create_backup.php
+++ /dev/null
@@ -1,96 +0,0 @@
-setParent($formattedParent)
- ->setBackup($backup)
- ->setBackupId($backupId);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudFilestoreManagerClient->createBackup($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Backup $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudFilestoreManagerClient::locationName('[PROJECT]', '[LOCATION]');
- $backupId = '[BACKUP_ID]';
-
- create_backup_sample($formattedParent, $backupId);
-}
-// [END file_v1_generated_CloudFilestoreManager_CreateBackup_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/create_instance.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/create_instance.php
deleted file mode 100644
index be50d870a674..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/create_instance.php
+++ /dev/null
@@ -1,94 +0,0 @@
-setParent($formattedParent)
- ->setInstanceId($instanceId)
- ->setInstance($instance);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudFilestoreManagerClient->createInstance($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Instance $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudFilestoreManagerClient::locationName('[PROJECT]', '[LOCATION]');
- $instanceId = '[INSTANCE_ID]';
-
- create_instance_sample($formattedParent, $instanceId);
-}
-// [END file_v1_generated_CloudFilestoreManager_CreateInstance_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/create_snapshot.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/create_snapshot.php
deleted file mode 100644
index 036467d2af79..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/create_snapshot.php
+++ /dev/null
@@ -1,97 +0,0 @@
-setParent($formattedParent)
- ->setSnapshotId($snapshotId)
- ->setSnapshot($snapshot);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudFilestoreManagerClient->createSnapshot($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Snapshot $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudFilestoreManagerClient::instanceName(
- '[PROJECT]',
- '[LOCATION]',
- '[INSTANCE]'
- );
- $snapshotId = '[SNAPSHOT_ID]';
-
- create_snapshot_sample($formattedParent, $snapshotId);
-}
-// [END file_v1_generated_CloudFilestoreManager_CreateSnapshot_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/delete_backup.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/delete_backup.php
deleted file mode 100644
index 08065d334666..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/delete_backup.php
+++ /dev/null
@@ -1,81 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudFilestoreManagerClient->deleteBackup($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudFilestoreManagerClient::backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
-
- delete_backup_sample($formattedName);
-}
-// [END file_v1_generated_CloudFilestoreManager_DeleteBackup_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/delete_instance.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/delete_instance.php
deleted file mode 100644
index e8feb5860aa2..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/delete_instance.php
+++ /dev/null
@@ -1,81 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudFilestoreManagerClient->deleteInstance($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudFilestoreManagerClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
-
- delete_instance_sample($formattedName);
-}
-// [END file_v1_generated_CloudFilestoreManager_DeleteInstance_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/delete_snapshot.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/delete_snapshot.php
deleted file mode 100644
index 4cf02b0ca1fb..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/delete_snapshot.php
+++ /dev/null
@@ -1,86 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudFilestoreManagerClient->deleteSnapshot($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudFilestoreManagerClient::snapshotName(
- '[PROJECT]',
- '[LOCATION]',
- '[INSTANCE]',
- '[SNAPSHOT]'
- );
-
- delete_snapshot_sample($formattedName);
-}
-// [END file_v1_generated_CloudFilestoreManager_DeleteSnapshot_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/get_backup.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/get_backup.php
deleted file mode 100644
index 55d7aa278be1..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/get_backup.php
+++ /dev/null
@@ -1,72 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Backup $response */
- $response = $cloudFilestoreManagerClient->getBackup($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudFilestoreManagerClient::backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
-
- get_backup_sample($formattedName);
-}
-// [END file_v1_generated_CloudFilestoreManager_GetBackup_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/get_instance.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/get_instance.php
deleted file mode 100644
index 932a7e50802a..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/get_instance.php
+++ /dev/null
@@ -1,72 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Instance $response */
- $response = $cloudFilestoreManagerClient->getInstance($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudFilestoreManagerClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
-
- get_instance_sample($formattedName);
-}
-// [END file_v1_generated_CloudFilestoreManager_GetInstance_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/get_snapshot.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/get_snapshot.php
deleted file mode 100644
index cdc2860d1a0a..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/get_snapshot.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Snapshot $response */
- $response = $cloudFilestoreManagerClient->getSnapshot($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudFilestoreManagerClient::snapshotName(
- '[PROJECT]',
- '[LOCATION]',
- '[INSTANCE]',
- '[SNAPSHOT]'
- );
-
- get_snapshot_sample($formattedName);
-}
-// [END file_v1_generated_CloudFilestoreManager_GetSnapshot_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/list_backups.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/list_backups.php
deleted file mode 100644
index bc677130a252..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/list_backups.php
+++ /dev/null
@@ -1,82 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $cloudFilestoreManagerClient->listBackups($request);
-
- /** @var Backup $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudFilestoreManagerClient::locationName('[PROJECT]', '[LOCATION]');
-
- list_backups_sample($formattedParent);
-}
-// [END file_v1_generated_CloudFilestoreManager_ListBackups_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/list_instances.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/list_instances.php
deleted file mode 100644
index 8b359cd8a178..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/list_instances.php
+++ /dev/null
@@ -1,82 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $cloudFilestoreManagerClient->listInstances($request);
-
- /** @var Instance $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudFilestoreManagerClient::locationName('[PROJECT]', '[LOCATION]');
-
- list_instances_sample($formattedParent);
-}
-// [END file_v1_generated_CloudFilestoreManager_ListInstances_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/list_snapshots.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/list_snapshots.php
deleted file mode 100644
index df07188daeed..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/list_snapshots.php
+++ /dev/null
@@ -1,83 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $cloudFilestoreManagerClient->listSnapshots($request);
-
- /** @var Snapshot $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = CloudFilestoreManagerClient::instanceName(
- '[PROJECT]',
- '[LOCATION]',
- '[INSTANCE]'
- );
-
- list_snapshots_sample($formattedParent);
-}
-// [END file_v1_generated_CloudFilestoreManager_ListSnapshots_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/restore_instance.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/restore_instance.php
deleted file mode 100644
index 86b0b314e0b0..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/restore_instance.php
+++ /dev/null
@@ -1,92 +0,0 @@
-setName($formattedName)
- ->setFileShare($fileShare);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudFilestoreManagerClient->restoreInstance($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Instance $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudFilestoreManagerClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
- $fileShare = '[FILE_SHARE]';
-
- restore_instance_sample($formattedName, $fileShare);
-}
-// [END file_v1_generated_CloudFilestoreManager_RestoreInstance_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/revert_instance.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/revert_instance.php
deleted file mode 100644
index df648baf77ca..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/revert_instance.php
+++ /dev/null
@@ -1,90 +0,0 @@
-setName($formattedName)
- ->setTargetSnapshotId($targetSnapshotId);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudFilestoreManagerClient->revertInstance($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Instance $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = CloudFilestoreManagerClient::instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
- $targetSnapshotId = '[TARGET_SNAPSHOT_ID]';
-
- revert_instance_sample($formattedName, $targetSnapshotId);
-}
-// [END file_v1_generated_CloudFilestoreManager_RevertInstance_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/update_backup.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/update_backup.php
deleted file mode 100644
index ed153391fd82..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/update_backup.php
+++ /dev/null
@@ -1,74 +0,0 @@
-setBackup($backup)
- ->setUpdateMask($updateMask);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudFilestoreManagerClient->updateBackup($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Backup $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END file_v1_generated_CloudFilestoreManager_UpdateBackup_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/update_instance.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/update_instance.php
deleted file mode 100644
index e423fa6b8caa..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/update_instance.php
+++ /dev/null
@@ -1,69 +0,0 @@
-updateInstance($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Instance $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END file_v1_generated_CloudFilestoreManager_UpdateInstance_sync]
diff --git a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/update_snapshot.php b/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/update_snapshot.php
deleted file mode 100644
index 6e8689435adf..000000000000
--- a/owl-bot-staging/Filestore/v1/samples/V1/CloudFilestoreManagerClient/update_snapshot.php
+++ /dev/null
@@ -1,74 +0,0 @@
-setUpdateMask($updateMask)
- ->setSnapshot($snapshot);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $cloudFilestoreManagerClient->updateSnapshot($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Snapshot $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END file_v1_generated_CloudFilestoreManager_UpdateSnapshot_sync]
diff --git a/owl-bot-staging/Filestore/v1/src/V1/Client/CloudFilestoreManagerClient.php b/owl-bot-staging/Filestore/v1/src/V1/Client/CloudFilestoreManagerClient.php
deleted file mode 100644
index b9bc176f3650..000000000000
--- a/owl-bot-staging/Filestore/v1/src/V1/Client/CloudFilestoreManagerClient.php
+++ /dev/null
@@ -1,837 +0,0 @@
- createBackupAsync(CreateBackupRequest $request, array $optionalArgs = [])
- * @method PromiseInterface createInstanceAsync(CreateInstanceRequest $request, array $optionalArgs = [])
- * @method PromiseInterface createSnapshotAsync(CreateSnapshotRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteInstanceAsync(DeleteInstanceRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteSnapshotAsync(DeleteSnapshotRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getInstanceAsync(GetInstanceRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getSnapshotAsync(GetSnapshotRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listInstancesAsync(ListInstancesRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listSnapshotsAsync(ListSnapshotsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface restoreInstanceAsync(RestoreInstanceRequest $request, array $optionalArgs = [])
- * @method PromiseInterface revertInstanceAsync(RevertInstanceRequest $request, array $optionalArgs = [])
- * @method PromiseInterface updateBackupAsync(UpdateBackupRequest $request, array $optionalArgs = [])
- * @method PromiseInterface updateInstanceAsync(UpdateInstanceRequest $request, array $optionalArgs = [])
- * @method PromiseInterface updateSnapshotAsync(UpdateSnapshotRequest $request, array $optionalArgs = [])
- */
-final class CloudFilestoreManagerClient
-{
- use GapicClientTrait;
- use ResourceHelperTrait;
-
- /** The name of the service. */
- private const SERVICE_NAME = 'google.cloud.filestore.v1.CloudFilestoreManager';
-
- /**
- * The default address of the service.
- *
- * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
- */
- private const SERVICE_ADDRESS = 'file.googleapis.com';
-
- /** The address template of the service. */
- private const SERVICE_ADDRESS_TEMPLATE = 'file.UNIVERSE_DOMAIN';
-
- /** The default port of the service. */
- private const DEFAULT_SERVICE_PORT = 443;
-
- /** The name of the code generator, to be included in the agent header. */
- private const CODEGEN_NAME = 'gapic';
-
- /** The default scopes required by the service. */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- ];
-
- private $operationsClient;
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/cloud_filestore_manager_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/cloud_filestore_manager_descriptor_config.php',
- 'gcpApiConfigPath' => __DIR__ . '/../resources/cloud_filestore_manager_grpc_config.json',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/cloud_filestore_manager_rest_client_config.php',
- ],
- ],
- ];
- }
-
- /**
- * Return an OperationsClient object with the same endpoint as $this.
- *
- * @return OperationsClient
- */
- public function getOperationsClient()
- {
- return $this->operationsClient;
- }
-
- /**
- * Resume an existing long running operation that was previously started by a long
- * running API method. If $methodName is not provided, or does not match a long
- * running API method, then the operation can still be resumed, but the
- * OperationResponse object will not deserialize the final response.
- *
- * @param string $operationName The name of the long running operation
- * @param string $methodName The name of the method used to start the operation
- *
- * @return OperationResponse
- */
- public function resumeOperation($operationName, $methodName = null)
- {
- $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : [];
- $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options);
- $operation->reload();
- return $operation;
- }
-
- /**
- * Create the default operation client for the service.
- *
- * @param array $options ClientOptions for the client.
- *
- * @return OperationsClient
- */
- private function createOperationsClient(array $options)
- {
- // Unset client-specific configuration options
- unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']);
-
- if (isset($options['operationsClient'])) {
- return $options['operationsClient'];
- }
-
- return new OperationsClient($options);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a backup
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $backup
- *
- * @return string The formatted backup resource.
- */
- public static function backupName(string $project, string $location, string $backup): string
- {
- return self::getPathTemplate('backup')->render([
- 'project' => $project,
- 'location' => $location,
- 'backup' => $backup,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a instance
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $instance
- *
- * @return string The formatted instance resource.
- */
- public static function instanceName(string $project, string $location, string $instance): string
- {
- return self::getPathTemplate('instance')->render([
- 'project' => $project,
- 'location' => $location,
- 'instance' => $instance,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a location
- * resource.
- *
- * @param string $project
- * @param string $location
- *
- * @return string The formatted location resource.
- */
- public static function locationName(string $project, string $location): string
- {
- return self::getPathTemplate('location')->render([
- 'project' => $project,
- 'location' => $location,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a snapshot
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $instance
- * @param string $snapshot
- *
- * @return string The formatted snapshot resource.
- */
- public static function snapshotName(string $project, string $location, string $instance, string $snapshot): string
- {
- return self::getPathTemplate('snapshot')->render([
- 'project' => $project,
- 'location' => $location,
- 'instance' => $instance,
- 'snapshot' => $snapshot,
- ]);
- }
-
- /**
- * Parses a formatted name string and returns an associative array of the components in the name.
- * The following name formats are supported:
- * Template: Pattern
- * - backup: projects/{project}/locations/{location}/backups/{backup}
- * - instance: projects/{project}/locations/{location}/instances/{instance}
- * - location: projects/{project}/locations/{location}
- * - snapshot: projects/{project}/locations/{location}/instances/{instance}/snapshots/{snapshot}
- *
- * The optional $template argument can be supplied to specify a particular pattern,
- * and must match one of the templates listed above. If no $template argument is
- * provided, or if the $template argument does not match one of the templates
- * listed, then parseName will check each of the supported templates, and return
- * the first match.
- *
- * @param string $formattedName The formatted name string
- * @param ?string $template Optional name of template to match
- *
- * @return array An associative array from name component IDs to component values.
- *
- * @throws ValidationException If $formattedName could not be matched.
- */
- public static function parseName(string $formattedName, ?string $template = null): array
- {
- return self::parseFormattedName($formattedName, $template);
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'file.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. May be either the string
- * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
- * *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'grpc' => [...],
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and
- * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * @type false|LoggerInterface $logger
- * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
- * 'GOOGLE_SDK_PHP_LOGGING' environment flag
- * }
- *
- * @throws ValidationException
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- $this->operationsClient = $this->createOperationsClient($clientOptions);
- }
-
- /** Handles execution of the async variants for each documented method. */
- public function __call($method, $args)
- {
- if (substr($method, -5) !== 'Async') {
- trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR);
- }
-
- array_unshift($args, substr($method, 0, -5));
- return call_user_func_array([$this, 'startAsyncCall'], $args);
- }
-
- /**
- * Creates a backup.
- *
- * The async variant is {@see CloudFilestoreManagerClient::createBackupAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/create_backup.php
- *
- * @param CreateBackupRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createBackup(CreateBackupRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateBackup', $request, $callOptions)->wait();
- }
-
- /**
- * Creates an instance.
- * When creating from a backup, the capacity of the new instance needs to be
- * equal to or larger than the capacity of the backup (and also equal to or
- * larger than the minimum capacity of the tier).
- *
- * The async variant is {@see CloudFilestoreManagerClient::createInstanceAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/create_instance.php
- *
- * @param CreateInstanceRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createInstance(CreateInstanceRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateInstance', $request, $callOptions)->wait();
- }
-
- /**
- * Creates a snapshot.
- *
- * The async variant is {@see CloudFilestoreManagerClient::createSnapshotAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/create_snapshot.php
- *
- * @param CreateSnapshotRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createSnapshot(CreateSnapshotRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateSnapshot', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes a backup.
- *
- * The async variant is {@see CloudFilestoreManagerClient::deleteBackupAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/delete_backup.php
- *
- * @param DeleteBackupRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function deleteBackup(DeleteBackupRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('DeleteBackup', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes an instance.
- *
- * The async variant is {@see CloudFilestoreManagerClient::deleteInstanceAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/delete_instance.php
- *
- * @param DeleteInstanceRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function deleteInstance(DeleteInstanceRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('DeleteInstance', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes a snapshot.
- *
- * The async variant is {@see CloudFilestoreManagerClient::deleteSnapshotAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/delete_snapshot.php
- *
- * @param DeleteSnapshotRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function deleteSnapshot(DeleteSnapshotRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('DeleteSnapshot', $request, $callOptions)->wait();
- }
-
- /**
- * Gets the details of a specific backup.
- *
- * The async variant is {@see CloudFilestoreManagerClient::getBackupAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/get_backup.php
- *
- * @param GetBackupRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Backup
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getBackup(GetBackupRequest $request, array $callOptions = []): Backup
- {
- return $this->startApiCall('GetBackup', $request, $callOptions)->wait();
- }
-
- /**
- * Gets the details of a specific instance.
- *
- * The async variant is {@see CloudFilestoreManagerClient::getInstanceAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/get_instance.php
- *
- * @param GetInstanceRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Instance
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getInstance(GetInstanceRequest $request, array $callOptions = []): Instance
- {
- return $this->startApiCall('GetInstance', $request, $callOptions)->wait();
- }
-
- /**
- * Gets the details of a specific snapshot.
- *
- * The async variant is {@see CloudFilestoreManagerClient::getSnapshotAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/get_snapshot.php
- *
- * @param GetSnapshotRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Snapshot
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getSnapshot(GetSnapshotRequest $request, array $callOptions = []): Snapshot
- {
- return $this->startApiCall('GetSnapshot', $request, $callOptions)->wait();
- }
-
- /**
- * Lists all backups in a project for either a specified location or for all
- * locations.
- *
- * The async variant is {@see CloudFilestoreManagerClient::listBackupsAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/list_backups.php
- *
- * @param ListBackupsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listBackups(ListBackupsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListBackups', $request, $callOptions);
- }
-
- /**
- * Lists all instances in a project for either a specified location
- * or for all locations.
- *
- * The async variant is {@see CloudFilestoreManagerClient::listInstancesAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/list_instances.php
- *
- * @param ListInstancesRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listInstances(ListInstancesRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListInstances', $request, $callOptions);
- }
-
- /**
- * Lists all snapshots in a project for either a specified location
- * or for all locations.
- *
- * The async variant is {@see CloudFilestoreManagerClient::listSnapshotsAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/list_snapshots.php
- *
- * @param ListSnapshotsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listSnapshots(ListSnapshotsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListSnapshots', $request, $callOptions);
- }
-
- /**
- * Restores an existing instance's file share from a backup.
- *
- * The capacity of the instance needs to be equal to or larger than the
- * capacity of the backup (and also equal to or larger than the minimum
- * capacity of the tier).
- *
- * The async variant is {@see CloudFilestoreManagerClient::restoreInstanceAsync()}
- * .
- *
- * @example samples/V1/CloudFilestoreManagerClient/restore_instance.php
- *
- * @param RestoreInstanceRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function restoreInstance(RestoreInstanceRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('RestoreInstance', $request, $callOptions)->wait();
- }
-
- /**
- * Revert an existing instance's file system to a specified snapshot.
- *
- * The async variant is {@see CloudFilestoreManagerClient::revertInstanceAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/revert_instance.php
- *
- * @param RevertInstanceRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function revertInstance(RevertInstanceRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('RevertInstance', $request, $callOptions)->wait();
- }
-
- /**
- * Updates the settings of a specific backup.
- *
- * The async variant is {@see CloudFilestoreManagerClient::updateBackupAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/update_backup.php
- *
- * @param UpdateBackupRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateBackup(UpdateBackupRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('UpdateBackup', $request, $callOptions)->wait();
- }
-
- /**
- * Updates the settings of a specific instance.
- *
- * The async variant is {@see CloudFilestoreManagerClient::updateInstanceAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/update_instance.php
- *
- * @param UpdateInstanceRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateInstance(UpdateInstanceRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('UpdateInstance', $request, $callOptions)->wait();
- }
-
- /**
- * Updates the settings of a specific snapshot.
- *
- * The async variant is {@see CloudFilestoreManagerClient::updateSnapshotAsync()} .
- *
- * @example samples/V1/CloudFilestoreManagerClient/update_snapshot.php
- *
- * @param UpdateSnapshotRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateSnapshot(UpdateSnapshotRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('UpdateSnapshot', $request, $callOptions)->wait();
- }
-}
diff --git a/owl-bot-staging/Filestore/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Filestore/v1/src/V1/gapic_metadata.json
deleted file mode 100644
index f04450681c16..000000000000
--- a/owl-bot-staging/Filestore/v1/src/V1/gapic_metadata.json
+++ /dev/null
@@ -1,103 +0,0 @@
-{
- "schema": "1.0",
- "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods",
- "language": "php",
- "protoPackage": "google.cloud.filestore.v1",
- "libraryPackage": "Google\\Cloud\\Filestore\\V1",
- "services": {
- "CloudFilestoreManager": {
- "clients": {
- "grpc": {
- "libraryClient": "CloudFilestoreManagerGapicClient",
- "rpcs": {
- "CreateBackup": {
- "methods": [
- "createBackup"
- ]
- },
- "CreateInstance": {
- "methods": [
- "createInstance"
- ]
- },
- "CreateSnapshot": {
- "methods": [
- "createSnapshot"
- ]
- },
- "DeleteBackup": {
- "methods": [
- "deleteBackup"
- ]
- },
- "DeleteInstance": {
- "methods": [
- "deleteInstance"
- ]
- },
- "DeleteSnapshot": {
- "methods": [
- "deleteSnapshot"
- ]
- },
- "GetBackup": {
- "methods": [
- "getBackup"
- ]
- },
- "GetInstance": {
- "methods": [
- "getInstance"
- ]
- },
- "GetSnapshot": {
- "methods": [
- "getSnapshot"
- ]
- },
- "ListBackups": {
- "methods": [
- "listBackups"
- ]
- },
- "ListInstances": {
- "methods": [
- "listInstances"
- ]
- },
- "ListSnapshots": {
- "methods": [
- "listSnapshots"
- ]
- },
- "RestoreInstance": {
- "methods": [
- "restoreInstance"
- ]
- },
- "RevertInstance": {
- "methods": [
- "revertInstance"
- ]
- },
- "UpdateBackup": {
- "methods": [
- "updateBackup"
- ]
- },
- "UpdateInstance": {
- "methods": [
- "updateInstance"
- ]
- },
- "UpdateSnapshot": {
- "methods": [
- "updateSnapshot"
- ]
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/owl-bot-staging/Filestore/v1/src/V1/resources/cloud_filestore_manager_client_config.json b/owl-bot-staging/Filestore/v1/src/V1/resources/cloud_filestore_manager_client_config.json
deleted file mode 100644
index c30412692363..000000000000
--- a/owl-bot-staging/Filestore/v1/src/V1/resources/cloud_filestore_manager_client_config.json
+++ /dev/null
@@ -1,149 +0,0 @@
-{
- "interfaces": {
- "google.cloud.filestore.v1.CloudFilestoreManager": {
- "retry_codes": {
- "no_retry_codes": [],
- "retry_policy_1_codes": [
- "UNAVAILABLE"
- ],
- "no_retry_1_codes": [],
- "no_retry_2_codes": [],
- "no_retry_3_codes": []
- },
- "retry_params": {
- "no_retry_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 0,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 0,
- "total_timeout_millis": 0
- },
- "retry_policy_1_params": {
- "initial_retry_delay_millis": 250,
- "retry_delay_multiplier": 1.3,
- "max_retry_delay_millis": 32000,
- "initial_rpc_timeout_millis": 60000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000,
- "total_timeout_millis": 60000
- },
- "no_retry_1_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 60000000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000000,
- "total_timeout_millis": 60000000
- },
- "no_retry_2_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 14400000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 14400000,
- "total_timeout_millis": 14400000
- },
- "no_retry_3_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 600000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 600000,
- "total_timeout_millis": 600000
- }
- },
- "methods": {
- "CreateBackup": {
- "timeout_millis": 60000000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "CreateInstance": {
- "timeout_millis": 60000000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "CreateSnapshot": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "DeleteBackup": {
- "timeout_millis": 600000,
- "retry_codes_name": "no_retry_3_codes",
- "retry_params_name": "no_retry_3_params"
- },
- "DeleteInstance": {
- "timeout_millis": 600000,
- "retry_codes_name": "no_retry_3_codes",
- "retry_params_name": "no_retry_3_params"
- },
- "DeleteSnapshot": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "GetBackup": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetInstance": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetSnapshot": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "ListBackups": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListInstances": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListSnapshots": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "RestoreInstance": {
- "timeout_millis": 60000000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "RevertInstance": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "UpdateBackup": {
- "timeout_millis": 600000,
- "retry_codes_name": "no_retry_3_codes",
- "retry_params_name": "no_retry_3_params"
- },
- "UpdateInstance": {
- "timeout_millis": 14400000,
- "retry_codes_name": "no_retry_2_codes",
- "retry_params_name": "no_retry_2_params"
- },
- "UpdateSnapshot": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- }
- }
- }
- }
-}
diff --git a/owl-bot-staging/Filestore/v1/src/V1/resources/cloud_filestore_manager_descriptor_config.php b/owl-bot-staging/Filestore/v1/src/V1/resources/cloud_filestore_manager_descriptor_config.php
deleted file mode 100644
index 880722cf3201..000000000000
--- a/owl-bot-staging/Filestore/v1/src/V1/resources/cloud_filestore_manager_descriptor_config.php
+++ /dev/null
@@ -1,342 +0,0 @@
- [
- 'google.cloud.filestore.v1.CloudFilestoreManager' => [
- 'CreateBackup' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Filestore\V1\Backup',
- 'metadataReturnType' => '\Google\Cloud\Common\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'CreateInstance' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Filestore\V1\Instance',
- 'metadataReturnType' => '\Google\Cloud\Common\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'CreateSnapshot' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Filestore\V1\Snapshot',
- 'metadataReturnType' => '\Google\Cloud\Common\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'DeleteBackup' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Protobuf\GPBEmpty',
- 'metadataReturnType' => '\Google\Cloud\Common\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteInstance' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Protobuf\GPBEmpty',
- 'metadataReturnType' => '\Google\Cloud\Common\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteSnapshot' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Protobuf\GPBEmpty',
- 'metadataReturnType' => '\Google\Cloud\Common\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'RestoreInstance' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Filestore\V1\Instance',
- 'metadataReturnType' => '\Google\Cloud\Common\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'RevertInstance' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Filestore\V1\Instance',
- 'metadataReturnType' => '\Google\Cloud\Common\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateBackup' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Filestore\V1\Backup',
- 'metadataReturnType' => '\Google\Cloud\Common\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'backup.name',
- 'fieldAccessors' => [
- 'getBackup',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateInstance' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Filestore\V1\Instance',
- 'metadataReturnType' => '\Google\Cloud\Common\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'instance.name',
- 'fieldAccessors' => [
- 'getInstance',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateSnapshot' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Filestore\V1\Snapshot',
- 'metadataReturnType' => '\Google\Cloud\Common\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'snapshot.name',
- 'fieldAccessors' => [
- 'getSnapshot',
- 'getName',
- ],
- ],
- ],
- ],
- 'GetBackup' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Filestore\V1\Backup',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetInstance' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Filestore\V1\Instance',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetSnapshot' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Filestore\V1\Snapshot',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListBackups' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getBackups',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Filestore\V1\ListBackupsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListInstances' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getInstances',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Filestore\V1\ListInstancesResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListSnapshots' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getSnapshots',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Filestore\V1\ListSnapshotsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'templateMap' => [
- 'backup' => 'projects/{project}/locations/{location}/backups/{backup}',
- 'instance' => 'projects/{project}/locations/{location}/instances/{instance}',
- 'location' => 'projects/{project}/locations/{location}',
- 'snapshot' => 'projects/{project}/locations/{location}/instances/{instance}/snapshots/{snapshot}',
- ],
- ],
- ],
-];
diff --git a/owl-bot-staging/Filestore/v1/src/V1/resources/cloud_filestore_manager_rest_client_config.php b/owl-bot-staging/Filestore/v1/src/V1/resources/cloud_filestore_manager_rest_client_config.php
deleted file mode 100644
index d54edee24228..000000000000
--- a/owl-bot-staging/Filestore/v1/src/V1/resources/cloud_filestore_manager_rest_client_config.php
+++ /dev/null
@@ -1,313 +0,0 @@
- [
- 'google.cloud.filestore.v1.CloudFilestoreManager' => [
- 'CreateBackup' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/backups',
- 'body' => 'backup',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'backup_id',
- ],
- ],
- 'CreateInstance' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/instances',
- 'body' => 'instance',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'instance_id',
- ],
- ],
- 'CreateSnapshot' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/snapshots',
- 'body' => 'snapshot',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'snapshot_id',
- ],
- ],
- 'DeleteBackup' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/backups/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteInstance' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteSnapshot' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/snapshots/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetBackup' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/backups/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetInstance' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetSnapshot' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*/snapshots/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListBackups' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/backups',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListInstances' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/instances',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListSnapshots' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/instances/*}/snapshots',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'RestoreInstance' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}:restore',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'RevertInstance' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/instances/*}:revert',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateBackup' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{backup.name=projects/*/locations/*/backups/*}',
- 'body' => 'backup',
- 'placeholders' => [
- 'backup.name' => [
- 'getters' => [
- 'getBackup',
- 'getName',
- ],
- ],
- ],
- 'queryParams' => [
- 'update_mask',
- ],
- ],
- 'UpdateInstance' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{instance.name=projects/*/locations/*/instances/*}',
- 'body' => 'instance',
- 'placeholders' => [
- 'instance.name' => [
- 'getters' => [
- 'getInstance',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateSnapshot' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{snapshot.name=projects/*/locations/*/instances/*/snapshots/*}',
- 'body' => 'snapshot',
- 'placeholders' => [
- 'snapshot.name' => [
- 'getters' => [
- 'getSnapshot',
- 'getName',
- ],
- ],
- ],
- 'queryParams' => [
- 'update_mask',
- ],
- ],
- ],
- 'google.cloud.location.Locations' => [
- 'GetLocation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListLocations' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*}/locations',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- 'google.longrunning.Operations' => [
- 'CancelOperation' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteOperation' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetOperation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListOperations' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- ],
- 'numericEnums' => true,
-];
diff --git a/owl-bot-staging/Filestore/v1/tests/Unit/V1/Client/CloudFilestoreManagerClientTest.php b/owl-bot-staging/Filestore/v1/tests/Unit/V1/Client/CloudFilestoreManagerClientTest.php
deleted file mode 100644
index 9e24a830313b..000000000000
--- a/owl-bot-staging/Filestore/v1/tests/Unit/V1/Client/CloudFilestoreManagerClientTest.php
+++ /dev/null
@@ -1,2096 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return CloudFilestoreManagerClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new CloudFilestoreManagerClient($options);
- }
-
- /** @test */
- public function createBackupTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createBackupTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $description = 'description-1724546052';
- $capacityGb = 1923585408;
- $storageBytes = 2035244455;
- $sourceInstance = 'sourceInstance-677426119';
- $sourceFileShare = 'sourceFileShare-1224476160';
- $downloadBytes = 971924980;
- $satisfiesPzi = false;
- $kmsKey = 'kmsKey-591635343';
- $expectedResponse = new Backup();
- $expectedResponse->setName($name);
- $expectedResponse->setDescription($description);
- $expectedResponse->setCapacityGb($capacityGb);
- $expectedResponse->setStorageBytes($storageBytes);
- $expectedResponse->setSourceInstance($sourceInstance);
- $expectedResponse->setSourceFileShare($sourceFileShare);
- $expectedResponse->setDownloadBytes($downloadBytes);
- $expectedResponse->setSatisfiesPzi($satisfiesPzi);
- $expectedResponse->setKmsKey($kmsKey);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createBackupTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $backup = new Backup();
- $backupId = 'backupId1355353272';
- $request = (new CreateBackupRequest())
- ->setParent($formattedParent)
- ->setBackup($backup)
- ->setBackupId($backupId);
- $response = $gapicClient->createBackup($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/CreateBackup', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getBackup();
- $this->assertProtobufEquals($backup, $actualValue);
- $actualValue = $actualApiRequestObject->getBackupId();
- $this->assertProtobufEquals($backupId, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createBackupTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createBackupExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createBackupTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $backup = new Backup();
- $backupId = 'backupId1355353272';
- $request = (new CreateBackupRequest())
- ->setParent($formattedParent)
- ->setBackup($backup)
- ->setBackupId($backupId);
- $response = $gapicClient->createBackup($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createBackupTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createInstanceTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createInstanceTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $description = 'description-1724546052';
- $statusMessage = 'statusMessage-239442758';
- $etag = 'etag3123477';
- $satisfiesPzi = false;
- $kmsKeyName = 'kmsKeyName2094986649';
- $expectedResponse = new Instance();
- $expectedResponse->setName($name);
- $expectedResponse->setDescription($description);
- $expectedResponse->setStatusMessage($statusMessage);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSatisfiesPzi($satisfiesPzi);
- $expectedResponse->setKmsKeyName($kmsKeyName);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createInstanceTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $instanceId = 'instanceId-2101995259';
- $instance = new Instance();
- $request = (new CreateInstanceRequest())
- ->setParent($formattedParent)
- ->setInstanceId($instanceId)
- ->setInstance($instance);
- $response = $gapicClient->createInstance($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/CreateInstance', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getInstanceId();
- $this->assertProtobufEquals($instanceId, $actualValue);
- $actualValue = $actualApiRequestObject->getInstance();
- $this->assertProtobufEquals($instance, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createInstanceTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createInstanceExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createInstanceTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $instanceId = 'instanceId-2101995259';
- $instance = new Instance();
- $request = (new CreateInstanceRequest())
- ->setParent($formattedParent)
- ->setInstanceId($instanceId)
- ->setInstance($instance);
- $response = $gapicClient->createInstance($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createInstanceTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createSnapshotTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createSnapshotTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $description = 'description-1724546052';
- $filesystemUsedBytes = 387235709;
- $expectedResponse = new Snapshot();
- $expectedResponse->setName($name);
- $expectedResponse->setDescription($description);
- $expectedResponse->setFilesystemUsedBytes($filesystemUsedBytes);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createSnapshotTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
- $snapshotId = 'snapshotId-168585866';
- $snapshot = new Snapshot();
- $request = (new CreateSnapshotRequest())
- ->setParent($formattedParent)
- ->setSnapshotId($snapshotId)
- ->setSnapshot($snapshot);
- $response = $gapicClient->createSnapshot($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/CreateSnapshot', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getSnapshotId();
- $this->assertProtobufEquals($snapshotId, $actualValue);
- $actualValue = $actualApiRequestObject->getSnapshot();
- $this->assertProtobufEquals($snapshot, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createSnapshotTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createSnapshotExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createSnapshotTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
- $snapshotId = 'snapshotId-168585866';
- $snapshot = new Snapshot();
- $request = (new CreateSnapshotRequest())
- ->setParent($formattedParent)
- ->setSnapshotId($snapshotId)
- ->setSnapshot($snapshot);
- $response = $gapicClient->createSnapshot($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createSnapshotTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteBackupTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteBackupTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteBackupTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- $request = (new DeleteBackupRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteBackup($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/DeleteBackup', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteBackupTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteBackupExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteBackupTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- $request = (new DeleteBackupRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteBackup($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteBackupTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteInstanceTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteInstanceTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteInstanceTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
- $request = (new DeleteInstanceRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteInstance($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/DeleteInstance', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteInstanceTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteInstanceExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteInstanceTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
- $request = (new DeleteInstanceRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteInstance($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteInstanceTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteSnapshotTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteSnapshotTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteSnapshotTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->snapshotName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[SNAPSHOT]');
- $request = (new DeleteSnapshotRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteSnapshot($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/DeleteSnapshot', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteSnapshotTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteSnapshotExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteSnapshotTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->snapshotName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[SNAPSHOT]');
- $request = (new DeleteSnapshotRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteSnapshot($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteSnapshotTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function getBackupTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $description = 'description-1724546052';
- $capacityGb = 1923585408;
- $storageBytes = 2035244455;
- $sourceInstance = 'sourceInstance-677426119';
- $sourceFileShare = 'sourceFileShare-1224476160';
- $downloadBytes = 971924980;
- $satisfiesPzi = false;
- $kmsKey = 'kmsKey-591635343';
- $expectedResponse = new Backup();
- $expectedResponse->setName($name2);
- $expectedResponse->setDescription($description);
- $expectedResponse->setCapacityGb($capacityGb);
- $expectedResponse->setStorageBytes($storageBytes);
- $expectedResponse->setSourceInstance($sourceInstance);
- $expectedResponse->setSourceFileShare($sourceFileShare);
- $expectedResponse->setDownloadBytes($downloadBytes);
- $expectedResponse->setSatisfiesPzi($satisfiesPzi);
- $expectedResponse->setKmsKey($kmsKey);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- $request = (new GetBackupRequest())
- ->setName($formattedName);
- $response = $gapicClient->getBackup($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/GetBackup', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getBackupExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- $request = (new GetBackupRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getBackup($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getInstanceTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $description = 'description-1724546052';
- $statusMessage = 'statusMessage-239442758';
- $etag = 'etag3123477';
- $satisfiesPzi = false;
- $kmsKeyName = 'kmsKeyName2094986649';
- $expectedResponse = new Instance();
- $expectedResponse->setName($name2);
- $expectedResponse->setDescription($description);
- $expectedResponse->setStatusMessage($statusMessage);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSatisfiesPzi($satisfiesPzi);
- $expectedResponse->setKmsKeyName($kmsKeyName);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
- $request = (new GetInstanceRequest())
- ->setName($formattedName);
- $response = $gapicClient->getInstance($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/GetInstance', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getInstanceExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
- $request = (new GetInstanceRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getInstance($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getSnapshotTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $description = 'description-1724546052';
- $filesystemUsedBytes = 387235709;
- $expectedResponse = new Snapshot();
- $expectedResponse->setName($name2);
- $expectedResponse->setDescription($description);
- $expectedResponse->setFilesystemUsedBytes($filesystemUsedBytes);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->snapshotName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[SNAPSHOT]');
- $request = (new GetSnapshotRequest())
- ->setName($formattedName);
- $response = $gapicClient->getSnapshot($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/GetSnapshot', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getSnapshotExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->snapshotName('[PROJECT]', '[LOCATION]', '[INSTANCE]', '[SNAPSHOT]');
- $request = (new GetSnapshotRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getSnapshot($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listBackupsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $backupsElement = new Backup();
- $backups = [
- $backupsElement,
- ];
- $expectedResponse = new ListBackupsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setBackups($backups);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListBackupsRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listBackups($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getBackups()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/ListBackups', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listBackupsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListBackupsRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listBackups($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listInstancesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $instancesElement = new Instance();
- $instances = [
- $instancesElement,
- ];
- $expectedResponse = new ListInstancesResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setInstances($instances);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListInstancesRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listInstances($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getInstances()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/ListInstances', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listInstancesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListInstancesRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listInstances($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listSnapshotsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $snapshotsElement = new Snapshot();
- $snapshots = [
- $snapshotsElement,
- ];
- $expectedResponse = new ListSnapshotsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setSnapshots($snapshots);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
- $request = (new ListSnapshotsRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listSnapshots($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getSnapshots()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/ListSnapshots', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listSnapshotsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
- $request = (new ListSnapshotsRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listSnapshots($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function restoreInstanceTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/restoreInstanceTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name2 = 'name2-1052831874';
- $description = 'description-1724546052';
- $statusMessage = 'statusMessage-239442758';
- $etag = 'etag3123477';
- $satisfiesPzi = false;
- $kmsKeyName = 'kmsKeyName2094986649';
- $expectedResponse = new Instance();
- $expectedResponse->setName($name2);
- $expectedResponse->setDescription($description);
- $expectedResponse->setStatusMessage($statusMessage);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSatisfiesPzi($satisfiesPzi);
- $expectedResponse->setKmsKeyName($kmsKeyName);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/restoreInstanceTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
- $fileShare = 'fileShare2143984476';
- $request = (new RestoreInstanceRequest())
- ->setName($formattedName)
- ->setFileShare($fileShare);
- $response = $gapicClient->restoreInstance($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/RestoreInstance', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $actualValue = $actualApiRequestObject->getFileShare();
- $this->assertProtobufEquals($fileShare, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/restoreInstanceTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function restoreInstanceExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/restoreInstanceTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
- $fileShare = 'fileShare2143984476';
- $request = (new RestoreInstanceRequest())
- ->setName($formattedName)
- ->setFileShare($fileShare);
- $response = $gapicClient->restoreInstance($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/restoreInstanceTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function revertInstanceTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/revertInstanceTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name2 = 'name2-1052831874';
- $description = 'description-1724546052';
- $statusMessage = 'statusMessage-239442758';
- $etag = 'etag3123477';
- $satisfiesPzi = false;
- $kmsKeyName = 'kmsKeyName2094986649';
- $expectedResponse = new Instance();
- $expectedResponse->setName($name2);
- $expectedResponse->setDescription($description);
- $expectedResponse->setStatusMessage($statusMessage);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSatisfiesPzi($satisfiesPzi);
- $expectedResponse->setKmsKeyName($kmsKeyName);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/revertInstanceTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
- $targetSnapshotId = 'targetSnapshotId1030984648';
- $request = (new RevertInstanceRequest())
- ->setName($formattedName)
- ->setTargetSnapshotId($targetSnapshotId);
- $response = $gapicClient->revertInstance($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/RevertInstance', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $actualValue = $actualApiRequestObject->getTargetSnapshotId();
- $this->assertProtobufEquals($targetSnapshotId, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/revertInstanceTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function revertInstanceExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/revertInstanceTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->instanceName('[PROJECT]', '[LOCATION]', '[INSTANCE]');
- $targetSnapshotId = 'targetSnapshotId1030984648';
- $request = (new RevertInstanceRequest())
- ->setName($formattedName)
- ->setTargetSnapshotId($targetSnapshotId);
- $response = $gapicClient->revertInstance($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/revertInstanceTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateBackupTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateBackupTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $description = 'description-1724546052';
- $capacityGb = 1923585408;
- $storageBytes = 2035244455;
- $sourceInstance = 'sourceInstance-677426119';
- $sourceFileShare = 'sourceFileShare-1224476160';
- $downloadBytes = 971924980;
- $satisfiesPzi = false;
- $kmsKey = 'kmsKey-591635343';
- $expectedResponse = new Backup();
- $expectedResponse->setName($name);
- $expectedResponse->setDescription($description);
- $expectedResponse->setCapacityGb($capacityGb);
- $expectedResponse->setStorageBytes($storageBytes);
- $expectedResponse->setSourceInstance($sourceInstance);
- $expectedResponse->setSourceFileShare($sourceFileShare);
- $expectedResponse->setDownloadBytes($downloadBytes);
- $expectedResponse->setSatisfiesPzi($satisfiesPzi);
- $expectedResponse->setKmsKey($kmsKey);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateBackupTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $backup = new Backup();
- $updateMask = new FieldMask();
- $request = (new UpdateBackupRequest())
- ->setBackup($backup)
- ->setUpdateMask($updateMask);
- $response = $gapicClient->updateBackup($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/UpdateBackup', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getBackup();
- $this->assertProtobufEquals($backup, $actualValue);
- $actualValue = $actualApiRequestObject->getUpdateMask();
- $this->assertProtobufEquals($updateMask, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateBackupTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateBackupExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateBackupTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $backup = new Backup();
- $updateMask = new FieldMask();
- $request = (new UpdateBackupRequest())
- ->setBackup($backup)
- ->setUpdateMask($updateMask);
- $response = $gapicClient->updateBackup($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateBackupTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateInstanceTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateInstanceTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $description = 'description-1724546052';
- $statusMessage = 'statusMessage-239442758';
- $etag = 'etag3123477';
- $satisfiesPzi = false;
- $kmsKeyName = 'kmsKeyName2094986649';
- $expectedResponse = new Instance();
- $expectedResponse->setName($name);
- $expectedResponse->setDescription($description);
- $expectedResponse->setStatusMessage($statusMessage);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setSatisfiesPzi($satisfiesPzi);
- $expectedResponse->setKmsKeyName($kmsKeyName);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateInstanceTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- $request = new UpdateInstanceRequest();
- $response = $gapicClient->updateInstance($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/UpdateInstance', $actualApiFuncCall);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateInstanceTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateInstanceExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateInstanceTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- $request = new UpdateInstanceRequest();
- $response = $gapicClient->updateInstance($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateInstanceTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateSnapshotTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateSnapshotTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $description = 'description-1724546052';
- $filesystemUsedBytes = 387235709;
- $expectedResponse = new Snapshot();
- $expectedResponse->setName($name);
- $expectedResponse->setDescription($description);
- $expectedResponse->setFilesystemUsedBytes($filesystemUsedBytes);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateSnapshotTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $updateMask = new FieldMask();
- $snapshot = new Snapshot();
- $request = (new UpdateSnapshotRequest())
- ->setUpdateMask($updateMask)
- ->setSnapshot($snapshot);
- $response = $gapicClient->updateSnapshot($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/UpdateSnapshot', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getUpdateMask();
- $this->assertProtobufEquals($updateMask, $actualValue);
- $actualValue = $actualApiRequestObject->getSnapshot();
- $this->assertProtobufEquals($snapshot, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateSnapshotTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateSnapshotExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateSnapshotTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $updateMask = new FieldMask();
- $snapshot = new Snapshot();
- $request = (new UpdateSnapshotRequest())
- ->setUpdateMask($updateMask)
- ->setSnapshot($snapshot);
- $response = $gapicClient->updateSnapshot($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateSnapshotTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createBackupAsyncTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createBackupTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $description = 'description-1724546052';
- $capacityGb = 1923585408;
- $storageBytes = 2035244455;
- $sourceInstance = 'sourceInstance-677426119';
- $sourceFileShare = 'sourceFileShare-1224476160';
- $downloadBytes = 971924980;
- $satisfiesPzi = false;
- $kmsKey = 'kmsKey-591635343';
- $expectedResponse = new Backup();
- $expectedResponse->setName($name);
- $expectedResponse->setDescription($description);
- $expectedResponse->setCapacityGb($capacityGb);
- $expectedResponse->setStorageBytes($storageBytes);
- $expectedResponse->setSourceInstance($sourceInstance);
- $expectedResponse->setSourceFileShare($sourceFileShare);
- $expectedResponse->setDownloadBytes($downloadBytes);
- $expectedResponse->setSatisfiesPzi($satisfiesPzi);
- $expectedResponse->setKmsKey($kmsKey);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createBackupTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $backup = new Backup();
- $backupId = 'backupId1355353272';
- $request = (new CreateBackupRequest())
- ->setParent($formattedParent)
- ->setBackup($backup)
- ->setBackupId($backupId);
- $response = $gapicClient->createBackupAsync($request)->wait();
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.filestore.v1.CloudFilestoreManager/CreateBackup', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getBackup();
- $this->assertProtobufEquals($backup, $actualValue);
- $actualValue = $actualApiRequestObject->getBackupId();
- $this->assertProtobufEquals($backupId, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createBackupTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-}
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Backup.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Backup.php
deleted file mode 100644
index fe3fbc3e94b3..000000000000
Binary files a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Backup.php and /dev/null differ
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Database.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Database.php
deleted file mode 100644
index 10dda6afa70b..000000000000
Binary files a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Database.php and /dev/null differ
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Field.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Field.php
deleted file mode 100644
index f9245a9df940..000000000000
Binary files a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Field.php and /dev/null differ
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/FirestoreAdmin.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/FirestoreAdmin.php
deleted file mode 100644
index 838dd94d161a..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/FirestoreAdmin.php
+++ /dev/null
@@ -1,192 +0,0 @@
-internalAddGeneratedFile(
- '
-ÿH
-/google/firestore/admin/v1/firestore_admin.protogoogle.firestore.admin.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto&google/firestore/admin/v1/backup.proto(google/firestore/admin/v1/database.proto%google/firestore/admin/v1/field.proto%google/firestore/admin/v1/index.proto)google/firestore/admin/v1/operation.proto(google/firestore/admin/v1/schedule.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"g
-ListDatabasesRequest9
-parent ( B)àAúA#!firestore.googleapis.com/Database
-show_deleted ("¨
-CreateDatabaseRequest9
-parent ( B)àAúA#!firestore.googleapis.com/Database:
-database (2#.google.firestore.admin.v1.DatabaseBàA
-database_id ( BàA"
-CreateDatabaseMetadata"d
-ListDatabasesResponse6
- databases (2#.google.firestore.admin.v1.Database
-unreachable ( "M
-GetDatabaseRequest7
-name ( B)àAúA#
-!firestore.googleapis.com/Database"„
-UpdateDatabaseRequest:
-database (2#.google.firestore.admin.v1.DatabaseBàA/
-update_mask (2.google.protobuf.FieldMask"
-UpdateDatabaseMetadata"^
-DeleteDatabaseRequest7
-name ( B)àAúA#
-!firestore.googleapis.com/Database
-etag ( "
-DeleteDatabaseMetadata"¡
-CreateBackupScheduleRequest9
-parent ( B)àAúA#
-!firestore.googleapis.com/DatabaseG
-backup_schedule (2).google.firestore.admin.v1.BackupScheduleBàA"Y
-GetBackupScheduleRequest=
-name ( B/àAúA)
-\'firestore.googleapis.com/BackupSchedule"—
-UpdateBackupScheduleRequestG
-backup_schedule (2).google.firestore.admin.v1.BackupScheduleBàA/
-update_mask (2.google.protobuf.FieldMask"W
-ListBackupSchedulesRequest9
-parent ( B)àAúA#
-!firestore.googleapis.com/Database"b
-ListBackupSchedulesResponseC
-backup_schedules (2).google.firestore.admin.v1.BackupSchedule"\\
-DeleteBackupScheduleRequest=
-name ( B/àAúA)
-\'firestore.googleapis.com/BackupSchedule"Œ
-CreateIndexRequest@
-parent ( B0àAúA*
-(firestore.googleapis.com/CollectionGroup4
-index (2 .google.firestore.admin.v1.IndexBàA"
-ListIndexesRequest@
-parent ( B0àAúA*
-(firestore.googleapis.com/CollectionGroup
-filter (
- page_size (
-
-page_token ( "a
-ListIndexesResponse1
-indexes (2 .google.firestore.admin.v1.Index
-next_page_token ( "G
-GetIndexRequest4
-name ( B&àAúA
-firestore.googleapis.com/Index"J
-DeleteIndexRequest4
-name ( B&àAúA
-firestore.googleapis.com/Index"{
-UpdateFieldRequest4
-field (2 .google.firestore.admin.v1.FieldBàA/
-update_mask (2.google.protobuf.FieldMask"G
-GetFieldRequest4
-name ( B&àAúA
-firestore.googleapis.com/Field"Œ
-ListFieldsRequest@
-parent ( B0àAúA*
-(firestore.googleapis.com/CollectionGroup
-filter (
- page_size (
-
-page_token ( "_
-ListFieldsResponse0
-fields (2 .google.firestore.admin.v1.Field
-next_page_token ( "Î
-ExportDocumentsRequest7
-name ( B)àAúA#
-!firestore.googleapis.com/Database
-collection_ids (
-output_uri_prefix (
-
namespace_ids ( 1
-
snapshot_time (2.google.protobuf.Timestamp"š
-ImportDocumentsRequest7
-name ( B)àAúA#
-!firestore.googleapis.com/Database
-collection_ids (
-input_uri_prefix (
-
namespace_ids ( "Ž
-BulkDeleteDocumentsRequest7
-name ( B)àAúA#
-!firestore.googleapis.com/Database
-collection_ids ( BàA
-
namespace_ids ( BàA"
-BulkDeleteDocumentsResponse"I
-GetBackupRequest5
-name ( B\'àAúA!
-firestore.googleapis.com/Backup"O
-ListBackupsRequest9
-parent ( B)àAúA#
-!firestore.googleapis.com/Location"^
-ListBackupsResponse2
-backups (2!.google.firestore.admin.v1.Backup
-unreachable ( "L
-DeleteBackupRequest5
-name ( B\'àAúA!
-firestore.googleapis.com/Backup"ü
-RestoreDatabaseRequest9
-parent ( B)àAúA#!firestore.googleapis.com/Database
-database_id ( BàA7
-backup ( B\'àAúA!
-firestore.googleapis.com/BackupT
-encryption_config (24.google.firestore.admin.v1.Database.EncryptionConfigBàA2Ë%
-FirestoreAdminÛ
-CreateIndex-.google.firestore.admin.v1.CreateIndexRequest.google.longrunning.Operation"~ÊA
-IndexIndexOperationMetadataÚAparent,index‚Óä“G">/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes:index½
-ListIndexes-.google.firestore.admin.v1.ListIndexesRequest..google.firestore.admin.v1.ListIndexesResponse"OÚAparent‚Óä“@>/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes§
-GetIndex*.google.firestore.admin.v1.GetIndexRequest .google.firestore.admin.v1.Index"MÚAname‚Óä“@>/v1/{name=projects/*/databases/*/collectionGroups/*/indexes/*}£
-DeleteIndex-.google.firestore.admin.v1.DeleteIndexRequest.google.protobuf.Empty"MÚAname‚Óä“@*>/v1/{name=projects/*/databases/*/collectionGroups/*/indexes/*}¦
-GetField*.google.firestore.admin.v1.GetFieldRequest .google.firestore.admin.v1.Field"LÚAname‚Óä“?=/v1/{name=projects/*/databases/*/collectionGroups/*/fields/*}Ù
-UpdateField-.google.firestore.admin.v1.UpdateFieldRequest.google.longrunning.Operation"|ÊA
-FieldFieldOperationMetadataÚAfield‚Óä“L2C/v1/{field.name=projects/*/databases/*/collectionGroups/*/fields/*}:field¹
-
-ListFields,.google.firestore.admin.v1.ListFieldsRequest-.google.firestore.admin.v1.ListFieldsResponse"NÚAparent‚Óä“?=/v1/{parent=projects/*/databases/*/collectionGroups/*}/fieldsÝ
-ExportDocuments1.google.firestore.admin.v1.ExportDocumentsRequest.google.longrunning.Operation"xÊA2
-ExportDocumentsResponseExportDocumentsMetadataÚAname‚Óä“6"1/v1/{name=projects/*/databases/*}:exportDocuments:*Û
-ImportDocuments1.google.firestore.admin.v1.ImportDocumentsRequest.google.longrunning.Operation"vÊA0
-google.protobuf.EmptyImportDocumentsMetadataÚAname‚Óä“6"1/v1/{name=projects/*/databases/*}:importDocuments:*ò
-BulkDeleteDocuments5.google.firestore.admin.v1.BulkDeleteDocumentsRequest.google.longrunning.Operation"„ÊA:
-BulkDeleteDocumentsResponseBulkDeleteDocumentsMetadataÚAname‚Óä“:"5/v1/{name=projects/*/databases/*}:bulkDeleteDocuments:*Ù
-CreateDatabase0.google.firestore.admin.v1.CreateDatabaseRequest.google.longrunning.Operation"vÊA"
-DatabaseCreateDatabaseMetadataÚAparent,database,database_id‚Óä“-"!/v1/{parent=projects/*}/databases:database“
-GetDatabase-.google.firestore.admin.v1.GetDatabaseRequest#.google.firestore.admin.v1.Database"0ÚAname‚Óä“#!/v1/{name=projects/*/databases/*}¦
-
ListDatabases/.google.firestore.admin.v1.ListDatabasesRequest0.google.firestore.admin.v1.ListDatabasesResponse"2ÚAparent‚Óä“#!/v1/{parent=projects/*}/databasesÛ
-UpdateDatabase0.google.firestore.admin.v1.UpdateDatabaseRequest.google.longrunning.Operation"xÊA"
-DatabaseUpdateDatabaseMetadataÚAdatabase,update_mask‚Óä“62*/v1/{database.name=projects/*/databases/*}:database¸
-DeleteDatabase0.google.firestore.admin.v1.DeleteDatabaseRequest.google.longrunning.Operation"UÊA"
-DatabaseDeleteDatabaseMetadataÚAname‚Óä“#*!/v1/{name=projects/*/databases/*}—
- GetBackup+.google.firestore.admin.v1.GetBackupRequest!.google.firestore.admin.v1.Backup":ÚAname‚Óä“-+/v1/{name=projects/*/locations/*/backups/*}ª
-ListBackups-.google.firestore.admin.v1.ListBackupsRequest..google.firestore.admin.v1.ListBackupsResponse"<ÚAparent‚Óä“-+/v1/{parent=projects/*/locations/*}/backups’
-DeleteBackup..google.firestore.admin.v1.DeleteBackupRequest.google.protobuf.Empty":ÚAname‚Óä“-*+/v1/{name=projects/*/locations/*/backups/*}¿
-RestoreDatabase1.google.firestore.admin.v1.RestoreDatabaseRequest.google.longrunning.Operation"ZÊA#
-DatabaseRestoreDatabaseMetadata‚Óä“.")/v1/{parent=projects/*}/databases:restore:*à
-CreateBackupSchedule6.google.firestore.admin.v1.CreateBackupScheduleRequest).google.firestore.admin.v1.BackupSchedule"eÚAparent,backup_schedule‚Óä“F"3/v1/{parent=projects/*/databases/*}/backupSchedules:backup_schedule·
-GetBackupSchedule3.google.firestore.admin.v1.GetBackupScheduleRequest).google.firestore.admin.v1.BackupSchedule"BÚAname‚Óä“53/v1/{name=projects/*/databases/*/backupSchedules/*}Ê
-ListBackupSchedules5.google.firestore.admin.v1.ListBackupSchedulesRequest6.google.firestore.admin.v1.ListBackupSchedulesResponse"DÚAparent‚Óä“53/v1/{parent=projects/*/databases/*}/backupSchedulesõ
-UpdateBackupSchedule6.google.firestore.admin.v1.UpdateBackupScheduleRequest).google.firestore.admin.v1.BackupSchedule"zÚAbackup_schedule,update_mask‚Óä“V2C/v1/{backup_schedule.name=projects/*/databases/*/backupSchedules/*}:backup_scheduleª
-DeleteBackupSchedule6.google.firestore.admin.v1.DeleteBackupScheduleRequest.google.protobuf.Empty"BÚAname‚Óä“5*3/v1/{name=projects/*/databases/*/backupSchedules/*}vÊAfirestore.googleapis.comÒAXhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/datastoreB¥
-com.google.firestore.admin.v1BFirestoreAdminProtoPZ9cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb¢GCFSªGoogle.Cloud.Firestore.Admin.V1ÊGoogle\\Cloud\\Firestore\\Admin\\V1ê#Google::Cloud::Firestore::Admin::V1êAL
-!firestore.googleapis.com/Location\'projects/{project}/locations/{location}êAq
-(firestore.googleapis.com/CollectionGroupEprojects/{project}/databases/{database}/collectionGroups/{collection}bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Index.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Index.php
deleted file mode 100644
index 9c0e6c1657d3..000000000000
Binary files a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Index.php and /dev/null differ
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Location.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Location.php
deleted file mode 100644
index 3c93ac4fddbd..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Location.php
+++ /dev/null
@@ -1,28 +0,0 @@
-internalAddGeneratedFile(
- '
-À
-(google/firestore/admin/v1/location.protogoogle.firestore.admin.v1"
-LocationMetadataBÜ
-com.google.firestore.admin.v1B
LocationProtoPZ9cloud.google.com/go/firestore/apiv1/admin/adminpb;adminpb¢GCFSªGoogle.Cloud.Firestore.Admin.V1ÊGoogle\\Cloud\\Firestore\\Admin\\V1ê#Google::Cloud::Firestore::Admin::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Operation.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Operation.php
deleted file mode 100644
index 2bba74bd463f..000000000000
Binary files a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Operation.php and /dev/null differ
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Schedule.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Schedule.php
deleted file mode 100644
index 6b7a44d3274c..000000000000
Binary files a/owl-bot-staging/Firestore/v1/Admin/proto/src/GPBMetadata/Google/Firestore/Admin/V1/Schedule.php and /dev/null differ
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Backup.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Backup.php
deleted file mode 100644
index 2ff6e412fa0e..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Backup.php
+++ /dev/null
@@ -1,327 +0,0 @@
-google.firestore.admin.v1.Backup
- */
-class Backup extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The unique resource name of the Backup.
- * Format is `projects/{project}/locations/{location}/backups/{backup}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * Output only. Name of the Firestore database that the backup is from.
- * Format is `projects/{project}/databases/{database}`.
- *
- * Generated from protobuf field string database = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $database = '';
- /**
- * Output only. The system-generated UUID4 for the Firestore database that the
- * backup is from.
- *
- * Generated from protobuf field string database_uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $database_uid = '';
- /**
- * Output only. The backup contains an externally consistent copy of the
- * database at this time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $snapshot_time = null;
- /**
- * Output only. The timestamp at which this backup expires.
- *
- * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $expire_time = null;
- /**
- * Output only. Statistics about the backup.
- * This data only becomes available after the backup is fully materialized to
- * secondary storage. This field will be empty till then.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Backup.Stats stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $stats = null;
- /**
- * Output only. The current state of the backup.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. The unique resource name of the Backup.
- * Format is `projects/{project}/locations/{location}/backups/{backup}`.
- * @type string $database
- * Output only. Name of the Firestore database that the backup is from.
- * Format is `projects/{project}/databases/{database}`.
- * @type string $database_uid
- * Output only. The system-generated UUID4 for the Firestore database that the
- * backup is from.
- * @type \Google\Protobuf\Timestamp $snapshot_time
- * Output only. The backup contains an externally consistent copy of the
- * database at this time.
- * @type \Google\Protobuf\Timestamp $expire_time
- * Output only. The timestamp at which this backup expires.
- * @type \Google\Cloud\Firestore\Admin\V1\Backup\Stats $stats
- * Output only. Statistics about the backup.
- * This data only becomes available after the backup is fully materialized to
- * secondary storage. This field will be empty till then.
- * @type int $state
- * Output only. The current state of the backup.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Backup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The unique resource name of the Backup.
- * Format is `projects/{project}/locations/{location}/backups/{backup}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. The unique resource name of the Backup.
- * Format is `projects/{project}/locations/{location}/backups/{backup}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Name of the Firestore database that the backup is from.
- * Format is `projects/{project}/databases/{database}`.
- *
- * Generated from protobuf field string database = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getDatabase()
- {
- return $this->database;
- }
-
- /**
- * Output only. Name of the Firestore database that the backup is from.
- * Format is `projects/{project}/databases/{database}`.
- *
- * Generated from protobuf field string database = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setDatabase($var)
- {
- GPBUtil::checkString($var, True);
- $this->database = $var;
-
- return $this;
- }
-
- /**
- * Output only. The system-generated UUID4 for the Firestore database that the
- * backup is from.
- *
- * Generated from protobuf field string database_uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getDatabaseUid()
- {
- return $this->database_uid;
- }
-
- /**
- * Output only. The system-generated UUID4 for the Firestore database that the
- * backup is from.
- *
- * Generated from protobuf field string database_uid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setDatabaseUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->database_uid = $var;
-
- return $this;
- }
-
- /**
- * Output only. The backup contains an externally consistent copy of the
- * database at this time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getSnapshotTime()
- {
- return $this->snapshot_time;
- }
-
- public function hasSnapshotTime()
- {
- return isset($this->snapshot_time);
- }
-
- public function clearSnapshotTime()
- {
- unset($this->snapshot_time);
- }
-
- /**
- * Output only. The backup contains an externally consistent copy of the
- * database at this time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setSnapshotTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->snapshot_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp at which this backup expires.
- *
- * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getExpireTime()
- {
- return $this->expire_time;
- }
-
- public function hasExpireTime()
- {
- return isset($this->expire_time);
- }
-
- public function clearExpireTime()
- {
- unset($this->expire_time);
- }
-
- /**
- * Output only. The timestamp at which this backup expires.
- *
- * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setExpireTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->expire_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Statistics about the backup.
- * This data only becomes available after the backup is fully materialized to
- * secondary storage. This field will be empty till then.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Backup.Stats stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Firestore\Admin\V1\Backup\Stats|null
- */
- public function getStats()
- {
- return $this->stats;
- }
-
- public function hasStats()
- {
- return isset($this->stats);
- }
-
- public function clearStats()
- {
- unset($this->stats);
- }
-
- /**
- * Output only. Statistics about the backup.
- * This data only becomes available after the backup is fully materialized to
- * secondary storage. This field will be empty till then.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Backup.Stats stats = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Firestore\Admin\V1\Backup\Stats $var
- * @return $this
- */
- public function setStats($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Backup\Stats::class);
- $this->stats = $var;
-
- return $this;
- }
-
- /**
- * Output only. The current state of the backup.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. The current state of the backup.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Backup.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Backup\State::class);
- $this->state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Backup/State.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Backup/State.php
deleted file mode 100644
index b868abc36995..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Backup/State.php
+++ /dev/null
@@ -1,72 +0,0 @@
-google.firestore.admin.v1.Backup.State
- */
-class State
-{
- /**
- * The state is unspecified.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * The pending backup is still being created. Operations on the
- * backup will be rejected in this state.
- *
- * Generated from protobuf enum CREATING = 1;
- */
- const CREATING = 1;
- /**
- * The backup is complete and ready to use.
- *
- * Generated from protobuf enum READY = 2;
- */
- const READY = 2;
- /**
- * The backup is not available at this moment.
- *
- * Generated from protobuf enum NOT_AVAILABLE = 3;
- */
- const NOT_AVAILABLE = 3;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::CREATING => 'CREATING',
- self::READY => 'READY',
- self::NOT_AVAILABLE => 'NOT_AVAILABLE',
- ];
-
- 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(State::class, \Google\Cloud\Firestore\Admin\V1\Backup_State::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Backup/Stats.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Backup/Stats.php
deleted file mode 100644
index 8e69131d5215..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Backup/Stats.php
+++ /dev/null
@@ -1,142 +0,0 @@
-google.firestore.admin.v1.Backup.Stats
- */
-class Stats extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. Summation of the size of all documents and index entries in
- * the backup, measured in bytes.
- *
- * Generated from protobuf field int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $size_bytes = 0;
- /**
- * Output only. The total number of documents contained in the backup.
- *
- * Generated from protobuf field int64 document_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $document_count = 0;
- /**
- * Output only. The total number of index entries contained in the backup.
- *
- * Generated from protobuf field int64 index_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $index_count = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $size_bytes
- * Output only. Summation of the size of all documents and index entries in
- * the backup, measured in bytes.
- * @type int|string $document_count
- * Output only. The total number of documents contained in the backup.
- * @type int|string $index_count
- * Output only. The total number of index entries contained in the backup.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Backup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. Summation of the size of all documents and index entries in
- * the backup, measured in bytes.
- *
- * Generated from protobuf field int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getSizeBytes()
- {
- return $this->size_bytes;
- }
-
- /**
- * Output only. Summation of the size of all documents and index entries in
- * the backup, measured in bytes.
- *
- * Generated from protobuf field int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setSizeBytes($var)
- {
- GPBUtil::checkInt64($var);
- $this->size_bytes = $var;
-
- return $this;
- }
-
- /**
- * Output only. The total number of documents contained in the backup.
- *
- * Generated from protobuf field int64 document_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getDocumentCount()
- {
- return $this->document_count;
- }
-
- /**
- * Output only. The total number of documents contained in the backup.
- *
- * Generated from protobuf field int64 document_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setDocumentCount($var)
- {
- GPBUtil::checkInt64($var);
- $this->document_count = $var;
-
- return $this;
- }
-
- /**
- * Output only. The total number of index entries contained in the backup.
- *
- * Generated from protobuf field int64 index_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getIndexCount()
- {
- return $this->index_count;
- }
-
- /**
- * Output only. The total number of index entries contained in the backup.
- *
- * Generated from protobuf field int64 index_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setIndexCount($var)
- {
- GPBUtil::checkInt64($var);
- $this->index_count = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(Stats::class, \Google\Cloud\Firestore\Admin\V1\Backup_Stats::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/BackupSchedule.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/BackupSchedule.php
deleted file mode 100644
index cfa5781d5f40..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/BackupSchedule.php
+++ /dev/null
@@ -1,316 +0,0 @@
-google.firestore.admin.v1.BackupSchedule
- */
-class BackupSchedule extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The unique backup schedule identifier across all locations and
- * databases for the given project.
- * This will be auto-assigned.
- * Format is
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * Output only. The timestamp at which this backup schedule was created and
- * effective since.
- * No backups will be created for this schedule before this time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. The timestamp at which this backup schedule was most recently
- * updated. When a backup schedule is first created, this is the same as
- * create_time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * At what relative time in the future, compared to its creation time,
- * the backup should be deleted, e.g. keep backups for 7 days.
- * The maximum supported retention period is 14 weeks.
- *
- * Generated from protobuf field .google.protobuf.Duration retention = 6;
- */
- protected $retention = null;
- protected $recurrence;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. The unique backup schedule identifier across all locations and
- * databases for the given project.
- * This will be auto-assigned.
- * Format is
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The timestamp at which this backup schedule was created and
- * effective since.
- * No backups will be created for this schedule before this time.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. The timestamp at which this backup schedule was most recently
- * updated. When a backup schedule is first created, this is the same as
- * create_time.
- * @type \Google\Protobuf\Duration $retention
- * At what relative time in the future, compared to its creation time,
- * the backup should be deleted, e.g. keep backups for 7 days.
- * The maximum supported retention period is 14 weeks.
- * @type \Google\Cloud\Firestore\Admin\V1\DailyRecurrence $daily_recurrence
- * For a schedule that runs daily.
- * @type \Google\Cloud\Firestore\Admin\V1\WeeklyRecurrence $weekly_recurrence
- * For a schedule that runs weekly on a specific day.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Schedule::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The unique backup schedule identifier across all locations and
- * databases for the given project.
- * This will be auto-assigned.
- * Format is
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. The unique backup schedule identifier across all locations and
- * databases for the given project.
- * This will be auto-assigned.
- * Format is
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp at which this backup schedule was created and
- * effective since.
- * No backups will be created for this schedule before this time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The timestamp at which this backup schedule was created and
- * effective since.
- * No backups will be created for this schedule before this time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp at which this backup schedule was most recently
- * updated. When a backup schedule is first created, this is the same as
- * create_time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. The timestamp at which this backup schedule was most recently
- * updated. When a backup schedule is first created, this is the same as
- * create_time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * At what relative time in the future, compared to its creation time,
- * the backup should be deleted, e.g. keep backups for 7 days.
- * The maximum supported retention period is 14 weeks.
- *
- * Generated from protobuf field .google.protobuf.Duration retention = 6;
- * @return \Google\Protobuf\Duration|null
- */
- public function getRetention()
- {
- return $this->retention;
- }
-
- public function hasRetention()
- {
- return isset($this->retention);
- }
-
- public function clearRetention()
- {
- unset($this->retention);
- }
-
- /**
- * At what relative time in the future, compared to its creation time,
- * the backup should be deleted, e.g. keep backups for 7 days.
- * The maximum supported retention period is 14 weeks.
- *
- * Generated from protobuf field .google.protobuf.Duration retention = 6;
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setRetention($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->retention = $var;
-
- return $this;
- }
-
- /**
- * For a schedule that runs daily.
- *
- * Generated from protobuf field .google.firestore.admin.v1.DailyRecurrence daily_recurrence = 7;
- * @return \Google\Cloud\Firestore\Admin\V1\DailyRecurrence|null
- */
- public function getDailyRecurrence()
- {
- return $this->readOneof(7);
- }
-
- public function hasDailyRecurrence()
- {
- return $this->hasOneof(7);
- }
-
- /**
- * For a schedule that runs daily.
- *
- * Generated from protobuf field .google.firestore.admin.v1.DailyRecurrence daily_recurrence = 7;
- * @param \Google\Cloud\Firestore\Admin\V1\DailyRecurrence $var
- * @return $this
- */
- public function setDailyRecurrence($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\DailyRecurrence::class);
- $this->writeOneof(7, $var);
-
- return $this;
- }
-
- /**
- * For a schedule that runs weekly on a specific day.
- *
- * Generated from protobuf field .google.firestore.admin.v1.WeeklyRecurrence weekly_recurrence = 8;
- * @return \Google\Cloud\Firestore\Admin\V1\WeeklyRecurrence|null
- */
- public function getWeeklyRecurrence()
- {
- return $this->readOneof(8);
- }
-
- public function hasWeeklyRecurrence()
- {
- return $this->hasOneof(8);
- }
-
- /**
- * For a schedule that runs weekly on a specific day.
- *
- * Generated from protobuf field .google.firestore.admin.v1.WeeklyRecurrence weekly_recurrence = 8;
- * @param \Google\Cloud\Firestore\Admin\V1\WeeklyRecurrence $var
- * @return $this
- */
- public function setWeeklyRecurrence($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\WeeklyRecurrence::class);
- $this->writeOneof(8, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getRecurrence()
- {
- return $this->whichOneof("recurrence");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/BulkDeleteDocumentsMetadata.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/BulkDeleteDocumentsMetadata.php
deleted file mode 100644
index 86589b066bd9..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/BulkDeleteDocumentsMetadata.php
+++ /dev/null
@@ -1,373 +0,0 @@
-google.firestore.admin.v1.BulkDeleteDocumentsMetadata
- */
-class BulkDeleteDocumentsMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- */
- protected $start_time = null;
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- */
- protected $end_time = null;
- /**
- * The state of the operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState operation_state = 3;
- */
- protected $operation_state = 0;
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 4;
- */
- protected $progress_documents = null;
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 5;
- */
- protected $progress_bytes = null;
- /**
- * The IDs of the collection groups that are being deleted.
- *
- * Generated from protobuf field repeated string collection_ids = 6;
- */
- private $collection_ids;
- /**
- * Which namespace IDs are being deleted.
- *
- * Generated from protobuf field repeated string namespace_ids = 7;
- */
- private $namespace_ids;
- /**
- * The timestamp that corresponds to the version of the database that is being
- * read to get the list of documents to delete. This time can also be used as
- * the timestamp of PITR in case of disaster recovery (subject to PITR window
- * limit).
- *
- * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 8;
- */
- protected $snapshot_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $start_time
- * The time this operation started.
- * @type \Google\Protobuf\Timestamp $end_time
- * The time this operation completed. Will be unset if operation still in
- * progress.
- * @type int $operation_state
- * The state of the operation.
- * @type \Google\Cloud\Firestore\Admin\V1\Progress $progress_documents
- * The progress, in documents, of this operation.
- * @type \Google\Cloud\Firestore\Admin\V1\Progress $progress_bytes
- * The progress, in bytes, of this operation.
- * @type array|\Google\Protobuf\Internal\RepeatedField $collection_ids
- * The IDs of the collection groups that are being deleted.
- * @type array|\Google\Protobuf\Internal\RepeatedField $namespace_ids
- * Which namespace IDs are being deleted.
- * @type \Google\Protobuf\Timestamp $snapshot_time
- * The timestamp that corresponds to the version of the database that is being
- * read to get the list of documents to delete. This time can also be used as
- * the timestamp of PITR in case of disaster recovery (subject to PITR window
- * limit).
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Operation::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
- /**
- * The state of the operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState operation_state = 3;
- * @return int
- */
- public function getOperationState()
- {
- return $this->operation_state;
- }
-
- /**
- * The state of the operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState operation_state = 3;
- * @param int $var
- * @return $this
- */
- public function setOperationState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\OperationState::class);
- $this->operation_state = $var;
-
- return $this;
- }
-
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 4;
- * @return \Google\Cloud\Firestore\Admin\V1\Progress|null
- */
- public function getProgressDocuments()
- {
- return $this->progress_documents;
- }
-
- public function hasProgressDocuments()
- {
- return isset($this->progress_documents);
- }
-
- public function clearProgressDocuments()
- {
- unset($this->progress_documents);
- }
-
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 4;
- * @param \Google\Cloud\Firestore\Admin\V1\Progress $var
- * @return $this
- */
- public function setProgressDocuments($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Progress::class);
- $this->progress_documents = $var;
-
- return $this;
- }
-
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 5;
- * @return \Google\Cloud\Firestore\Admin\V1\Progress|null
- */
- public function getProgressBytes()
- {
- return $this->progress_bytes;
- }
-
- public function hasProgressBytes()
- {
- return isset($this->progress_bytes);
- }
-
- public function clearProgressBytes()
- {
- unset($this->progress_bytes);
- }
-
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 5;
- * @param \Google\Cloud\Firestore\Admin\V1\Progress $var
- * @return $this
- */
- public function setProgressBytes($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Progress::class);
- $this->progress_bytes = $var;
-
- return $this;
- }
-
- /**
- * The IDs of the collection groups that are being deleted.
- *
- * Generated from protobuf field repeated string collection_ids = 6;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCollectionIds()
- {
- return $this->collection_ids;
- }
-
- /**
- * The IDs of the collection groups that are being deleted.
- *
- * Generated from protobuf field repeated string collection_ids = 6;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCollectionIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->collection_ids = $arr;
-
- return $this;
- }
-
- /**
- * Which namespace IDs are being deleted.
- *
- * Generated from protobuf field repeated string namespace_ids = 7;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getNamespaceIds()
- {
- return $this->namespace_ids;
- }
-
- /**
- * Which namespace IDs are being deleted.
- *
- * Generated from protobuf field repeated string namespace_ids = 7;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setNamespaceIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->namespace_ids = $arr;
-
- return $this;
- }
-
- /**
- * The timestamp that corresponds to the version of the database that is being
- * read to get the list of documents to delete. This time can also be used as
- * the timestamp of PITR in case of disaster recovery (subject to PITR window
- * limit).
- *
- * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 8;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getSnapshotTime()
- {
- return $this->snapshot_time;
- }
-
- public function hasSnapshotTime()
- {
- return isset($this->snapshot_time);
- }
-
- public function clearSnapshotTime()
- {
- unset($this->snapshot_time);
- }
-
- /**
- * The timestamp that corresponds to the version of the database that is being
- * read to get the list of documents to delete. This time can also be used as
- * the timestamp of PITR in case of disaster recovery (subject to PITR window
- * limit).
- *
- * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 8;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setSnapshotTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->snapshot_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/BulkDeleteDocumentsRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/BulkDeleteDocumentsRequest.php
deleted file mode 100644
index 0d14c82fb131..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/BulkDeleteDocumentsRequest.php
+++ /dev/null
@@ -1,193 +0,0 @@
-google.firestore.admin.v1.BulkDeleteDocumentsRequest
- */
-class BulkDeleteDocumentsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Database to operate. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Optional. IDs of the collection groups to delete. Unspecified means all
- * collection groups.
- * Each collection group in this list must be unique.
- *
- * Generated from protobuf field repeated string collection_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $collection_ids;
- /**
- * Optional. Namespaces to delete.
- * An empty list means all namespaces. This is the recommended
- * usage for databases that don't use namespaces.
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to delete from them.
- * Each namespace in this list must be unique.
- *
- * Generated from protobuf field repeated string namespace_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $namespace_ids;
-
- /**
- * @param string $name Required. Database to operate. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`. Please see
- * {@see FirestoreAdminClient::databaseName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\BulkDeleteDocumentsRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Database to operate. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- * @type array|\Google\Protobuf\Internal\RepeatedField $collection_ids
- * Optional. IDs of the collection groups to delete. Unspecified means all
- * collection groups.
- * Each collection group in this list must be unique.
- * @type array|\Google\Protobuf\Internal\RepeatedField $namespace_ids
- * Optional. Namespaces to delete.
- * An empty list means all namespaces. This is the recommended
- * usage for databases that don't use namespaces.
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to delete from them.
- * Each namespace in this list must be unique.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Database to operate. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Database to operate. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. IDs of the collection groups to delete. Unspecified means all
- * collection groups.
- * Each collection group in this list must be unique.
- *
- * Generated from protobuf field repeated string collection_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCollectionIds()
- {
- return $this->collection_ids;
- }
-
- /**
- * Optional. IDs of the collection groups to delete. Unspecified means all
- * collection groups.
- * Each collection group in this list must be unique.
- *
- * Generated from protobuf field repeated string collection_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCollectionIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->collection_ids = $arr;
-
- return $this;
- }
-
- /**
- * Optional. Namespaces to delete.
- * An empty list means all namespaces. This is the recommended
- * usage for databases that don't use namespaces.
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to delete from them.
- * Each namespace in this list must be unique.
- *
- * Generated from protobuf field repeated string namespace_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getNamespaceIds()
- {
- return $this->namespace_ids;
- }
-
- /**
- * Optional. Namespaces to delete.
- * An empty list means all namespaces. This is the recommended
- * usage for databases that don't use namespaces.
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to delete from them.
- * Each namespace in this list must be unique.
- *
- * Generated from protobuf field repeated string namespace_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setNamespaceIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->namespace_ids = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/BulkDeleteDocumentsResponse.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/BulkDeleteDocumentsResponse.php
deleted file mode 100644
index a1d244d022c1..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/BulkDeleteDocumentsResponse.php
+++ /dev/null
@@ -1,34 +0,0 @@
-google.firestore.admin.v1.BulkDeleteDocumentsResponse
- */
-class BulkDeleteDocumentsResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/CreateBackupScheduleRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/CreateBackupScheduleRequest.php
deleted file mode 100644
index bebd307d5f85..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/CreateBackupScheduleRequest.php
+++ /dev/null
@@ -1,134 +0,0 @@
-google.firestore.admin.v1.CreateBackupScheduleRequest
- */
-class CreateBackupScheduleRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent database.
- * Format `projects/{project}/databases/{database}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. The backup schedule to create.
- *
- * Generated from protobuf field .google.firestore.admin.v1.BackupSchedule backup_schedule = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $backup_schedule = null;
-
- /**
- * @param string $parent Required. The parent database.
- *
- * Format `projects/{project}/databases/{database}`
- * Please see {@see FirestoreAdminClient::databaseName()} for help formatting this field.
- * @param \Google\Cloud\Firestore\Admin\V1\BackupSchedule $backupSchedule Required. The backup schedule to create.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\CreateBackupScheduleRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\Firestore\Admin\V1\BackupSchedule $backupSchedule): self
- {
- return (new self())
- ->setParent($parent)
- ->setBackupSchedule($backupSchedule);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent database.
- * Format `projects/{project}/databases/{database}`
- * @type \Google\Cloud\Firestore\Admin\V1\BackupSchedule $backup_schedule
- * Required. The backup schedule to create.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent database.
- * Format `projects/{project}/databases/{database}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent database.
- * Format `projects/{project}/databases/{database}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. The backup schedule to create.
- *
- * Generated from protobuf field .google.firestore.admin.v1.BackupSchedule backup_schedule = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Firestore\Admin\V1\BackupSchedule|null
- */
- public function getBackupSchedule()
- {
- return $this->backup_schedule;
- }
-
- public function hasBackupSchedule()
- {
- return isset($this->backup_schedule);
- }
-
- public function clearBackupSchedule()
- {
- unset($this->backup_schedule);
- }
-
- /**
- * Required. The backup schedule to create.
- *
- * Generated from protobuf field .google.firestore.admin.v1.BackupSchedule backup_schedule = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Firestore\Admin\V1\BackupSchedule $var
- * @return $this
- */
- public function setBackupSchedule($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\BackupSchedule::class);
- $this->backup_schedule = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/CreateDatabaseMetadata.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/CreateDatabaseMetadata.php
deleted file mode 100644
index 3a33d72e60b6..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/CreateDatabaseMetadata.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.firestore.admin.v1.CreateDatabaseMetadata
- */
-class CreateDatabaseMetadata extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/CreateDatabaseRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/CreateDatabaseRequest.php
deleted file mode 100644
index f56ded28064e..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/CreateDatabaseRequest.php
+++ /dev/null
@@ -1,196 +0,0 @@
-google.firestore.admin.v1.CreateDatabaseRequest
- */
-class CreateDatabaseRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A parent name of the form
- * `projects/{project_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. The Database to create.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $database = null;
- /**
- * Required. The ID to use for the database, which will become the final
- * component of the database's resource name.
- * This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
- * with first character a letter and the last a letter or a number. Must not
- * be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
- * "(default)" database ID is also valid.
- *
- * Generated from protobuf field string database_id = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $database_id = '';
-
- /**
- * @param string $parent Required. A parent name of the form
- * `projects/{project_id}`
- * Please see {@see FirestoreAdminClient::projectName()} for help formatting this field.
- * @param \Google\Cloud\Firestore\Admin\V1\Database $database Required. The Database to create.
- * @param string $databaseId Required. The ID to use for the database, which will become the final
- * component of the database's resource name.
- *
- * This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
- * with first character a letter and the last a letter or a number. Must not
- * be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
- *
- * "(default)" database ID is also valid.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\CreateDatabaseRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\Firestore\Admin\V1\Database $database, string $databaseId): self
- {
- return (new self())
- ->setParent($parent)
- ->setDatabase($database)
- ->setDatabaseId($databaseId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. A parent name of the form
- * `projects/{project_id}`
- * @type \Google\Cloud\Firestore\Admin\V1\Database $database
- * Required. The Database to create.
- * @type string $database_id
- * Required. The ID to use for the database, which will become the final
- * component of the database's resource name.
- * This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
- * with first character a letter and the last a letter or a number. Must not
- * be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
- * "(default)" database ID is also valid.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A parent name of the form
- * `projects/{project_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. A parent name of the form
- * `projects/{project_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. The Database to create.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Firestore\Admin\V1\Database|null
- */
- public function getDatabase()
- {
- return $this->database;
- }
-
- public function hasDatabase()
- {
- return isset($this->database);
- }
-
- public function clearDatabase()
- {
- unset($this->database);
- }
-
- /**
- * Required. The Database to create.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database database = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Firestore\Admin\V1\Database $var
- * @return $this
- */
- public function setDatabase($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Database::class);
- $this->database = $var;
-
- return $this;
- }
-
- /**
- * Required. The ID to use for the database, which will become the final
- * component of the database's resource name.
- * This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
- * with first character a letter and the last a letter or a number. Must not
- * be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
- * "(default)" database ID is also valid.
- *
- * Generated from protobuf field string database_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getDatabaseId()
- {
- return $this->database_id;
- }
-
- /**
- * Required. The ID to use for the database, which will become the final
- * component of the database's resource name.
- * This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
- * with first character a letter and the last a letter or a number. Must not
- * be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
- * "(default)" database ID is also valid.
- *
- * Generated from protobuf field string database_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setDatabaseId($var)
- {
- GPBUtil::checkString($var, True);
- $this->database_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/CreateIndexRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/CreateIndexRequest.php
deleted file mode 100644
index a09b8194ce62..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/CreateIndexRequest.php
+++ /dev/null
@@ -1,133 +0,0 @@
-google.firestore.admin.v1.CreateIndexRequest
- */
-class CreateIndexRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. The composite index to create.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index index = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $index = null;
-
- /**
- * @param string $parent Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- * Please see {@see FirestoreAdminClient::collectionGroupName()} for help formatting this field.
- * @param \Google\Cloud\Firestore\Admin\V1\Index $index Required. The composite index to create.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\CreateIndexRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\Firestore\Admin\V1\Index $index): self
- {
- return (new self())
- ->setParent($parent)
- ->setIndex($index);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- * @type \Google\Cloud\Firestore\Admin\V1\Index $index
- * Required. The composite index to create.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. The composite index to create.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index index = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Firestore\Admin\V1\Index|null
- */
- public function getIndex()
- {
- return $this->index;
- }
-
- public function hasIndex()
- {
- return isset($this->index);
- }
-
- public function clearIndex()
- {
- unset($this->index);
- }
-
- /**
- * Required. The composite index to create.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index index = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Firestore\Admin\V1\Index $var
- * @return $this
- */
- public function setIndex($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Index::class);
- $this->index = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DailyRecurrence.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DailyRecurrence.php
deleted file mode 100644
index 0e6c88db898c..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DailyRecurrence.php
+++ /dev/null
@@ -1,34 +0,0 @@
-google.firestore.admin.v1.DailyRecurrence
- */
-class DailyRecurrence extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Schedule::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database.php
deleted file mode 100644
index fd75657657f7..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database.php
+++ /dev/null
@@ -1,831 +0,0 @@
-google.firestore.admin.v1.Database
- */
-class Database extends \Google\Protobuf\Internal\Message
-{
- /**
- * The resource name of the Database.
- * Format: `projects/{project}/databases/{database}`
- *
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
- /**
- * Output only. The system-generated UUID4 for this Database.
- *
- * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uid = '';
- /**
- * Output only. The timestamp at which this database was created. Databases
- * created before 2016 do not populate create_time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. The timestamp at which this database was most recently
- * updated. Note this only includes updates to the database resource and not
- * data contained by the database.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * Output only. The timestamp at which this database was deleted. Only set if
- * the database has been deleted.
- *
- * Generated from protobuf field .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $delete_time = null;
- /**
- * The location of the database. Available locations are listed at
- * https://cloud.google.com/firestore/docs/locations.
- *
- * Generated from protobuf field string location_id = 9;
- */
- protected $location_id = '';
- /**
- * The type of the database.
- * See https://cloud.google.com/datastore/docs/firestore-or-datastore for
- * information about how to choose.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.DatabaseType type = 10;
- */
- protected $type = 0;
- /**
- * The concurrency control mode to use for this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.ConcurrencyMode concurrency_mode = 15;
- */
- protected $concurrency_mode = 0;
- /**
- * Output only. The period during which past versions of data are retained in
- * the database.
- * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
- * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
- * a `read_time` within this window, and will read the state of the database
- * at that time.
- * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
- * the retention period is 1 hour.
- *
- * Generated from protobuf field .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $version_retention_period = null;
- /**
- * Output only. The earliest timestamp at which older versions of the data can
- * be read from the database. See [version_retention_period] above; this field
- * is populated with `now - version_retention_period`.
- * This value is continuously updated, and becomes stale the moment it is
- * queried. If you are using this value to recover data, make sure to account
- * for the time from the moment when the value is queried to the moment when
- * you initiate the recovery.
- *
- * Generated from protobuf field .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $earliest_version_time = null;
- /**
- * Whether to enable the PITR feature on this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21;
- */
- protected $point_in_time_recovery_enablement = 0;
- /**
- * The App Engine integration mode to use for this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.AppEngineIntegrationMode app_engine_integration_mode = 19;
- */
- protected $app_engine_integration_mode = 0;
- /**
- * Output only. The key_prefix for this database. This key_prefix is used, in
- * combination with the project ID ("~") to construct
- * the application ID that is returned from the Cloud Datastore APIs in Google
- * App Engine first generation runtimes.
- * This value may be empty in which case the appid to use for URL-encoded keys
- * is the project_id (eg: foo instead of v~foo).
- *
- * Generated from protobuf field string key_prefix = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $key_prefix = '';
- /**
- * State of delete protection for the database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.DeleteProtectionState delete_protection_state = 22;
- */
- protected $delete_protection_state = 0;
- /**
- * Optional. Presence indicates CMEK is enabled for this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.CmekConfig cmek_config = 23 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $cmek_config = null;
- /**
- * Output only. The database resource's prior database ID. This field is only
- * populated for deleted databases.
- *
- * Generated from protobuf field string previous_id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $previous_id = '';
- /**
- * Output only. Information about the provenance of this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.SourceInfo source_info = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $source_info = null;
- /**
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 99;
- */
- protected $etag = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * The resource name of the Database.
- * Format: `projects/{project}/databases/{database}`
- * @type string $uid
- * Output only. The system-generated UUID4 for this Database.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The timestamp at which this database was created. Databases
- * created before 2016 do not populate create_time.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. The timestamp at which this database was most recently
- * updated. Note this only includes updates to the database resource and not
- * data contained by the database.
- * @type \Google\Protobuf\Timestamp $delete_time
- * Output only. The timestamp at which this database was deleted. Only set if
- * the database has been deleted.
- * @type string $location_id
- * The location of the database. Available locations are listed at
- * https://cloud.google.com/firestore/docs/locations.
- * @type int $type
- * The type of the database.
- * See https://cloud.google.com/datastore/docs/firestore-or-datastore for
- * information about how to choose.
- * @type int $concurrency_mode
- * The concurrency control mode to use for this database.
- * @type \Google\Protobuf\Duration $version_retention_period
- * Output only. The period during which past versions of data are retained in
- * the database.
- * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
- * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
- * a `read_time` within this window, and will read the state of the database
- * at that time.
- * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
- * the retention period is 1 hour.
- * @type \Google\Protobuf\Timestamp $earliest_version_time
- * Output only. The earliest timestamp at which older versions of the data can
- * be read from the database. See [version_retention_period] above; this field
- * is populated with `now - version_retention_period`.
- * This value is continuously updated, and becomes stale the moment it is
- * queried. If you are using this value to recover data, make sure to account
- * for the time from the moment when the value is queried to the moment when
- * you initiate the recovery.
- * @type int $point_in_time_recovery_enablement
- * Whether to enable the PITR feature on this database.
- * @type int $app_engine_integration_mode
- * The App Engine integration mode to use for this database.
- * @type string $key_prefix
- * Output only. The key_prefix for this database. This key_prefix is used, in
- * combination with the project ID ("~") to construct
- * the application ID that is returned from the Cloud Datastore APIs in Google
- * App Engine first generation runtimes.
- * This value may be empty in which case the appid to use for URL-encoded keys
- * is the project_id (eg: foo instead of v~foo).
- * @type int $delete_protection_state
- * State of delete protection for the database.
- * @type \Google\Cloud\Firestore\Admin\V1\Database\CmekConfig $cmek_config
- * Optional. Presence indicates CMEK is enabled for this database.
- * @type string $previous_id
- * Output only. The database resource's prior database ID. This field is only
- * populated for deleted databases.
- * @type \Google\Cloud\Firestore\Admin\V1\Database\SourceInfo $source_info
- * Output only. Information about the provenance of this database.
- * @type string $etag
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Database::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The resource name of the Database.
- * Format: `projects/{project}/databases/{database}`
- *
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * The resource name of the Database.
- * Format: `projects/{project}/databases/{database}`
- *
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. The system-generated UUID4 for this Database.
- *
- * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-
- /**
- * Output only. The system-generated UUID4 for this Database.
- *
- * Generated from protobuf field string uid = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->uid = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp at which this database was created. Databases
- * created before 2016 do not populate create_time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The timestamp at which this database was created. Databases
- * created before 2016 do not populate create_time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp at which this database was most recently
- * updated. Note this only includes updates to the database resource and not
- * data contained by the database.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. The timestamp at which this database was most recently
- * updated. Note this only includes updates to the database resource and not
- * data contained by the database.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp at which this database was deleted. Only set if
- * the database has been deleted.
- *
- * Generated from protobuf field .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getDeleteTime()
- {
- return $this->delete_time;
- }
-
- public function hasDeleteTime()
- {
- return isset($this->delete_time);
- }
-
- public function clearDeleteTime()
- {
- unset($this->delete_time);
- }
-
- /**
- * Output only. The timestamp at which this database was deleted. Only set if
- * the database has been deleted.
- *
- * Generated from protobuf field .google.protobuf.Timestamp delete_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setDeleteTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->delete_time = $var;
-
- return $this;
- }
-
- /**
- * The location of the database. Available locations are listed at
- * https://cloud.google.com/firestore/docs/locations.
- *
- * Generated from protobuf field string location_id = 9;
- * @return string
- */
- public function getLocationId()
- {
- return $this->location_id;
- }
-
- /**
- * The location of the database. Available locations are listed at
- * https://cloud.google.com/firestore/docs/locations.
- *
- * Generated from protobuf field string location_id = 9;
- * @param string $var
- * @return $this
- */
- public function setLocationId($var)
- {
- GPBUtil::checkString($var, True);
- $this->location_id = $var;
-
- return $this;
- }
-
- /**
- * The type of the database.
- * See https://cloud.google.com/datastore/docs/firestore-or-datastore for
- * information about how to choose.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.DatabaseType type = 10;
- * @return int
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * The type of the database.
- * See https://cloud.google.com/datastore/docs/firestore-or-datastore for
- * information about how to choose.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.DatabaseType type = 10;
- * @param int $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Database\DatabaseType::class);
- $this->type = $var;
-
- return $this;
- }
-
- /**
- * The concurrency control mode to use for this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.ConcurrencyMode concurrency_mode = 15;
- * @return int
- */
- public function getConcurrencyMode()
- {
- return $this->concurrency_mode;
- }
-
- /**
- * The concurrency control mode to use for this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.ConcurrencyMode concurrency_mode = 15;
- * @param int $var
- * @return $this
- */
- public function setConcurrencyMode($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Database\ConcurrencyMode::class);
- $this->concurrency_mode = $var;
-
- return $this;
- }
-
- /**
- * Output only. The period during which past versions of data are retained in
- * the database.
- * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
- * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
- * a `read_time` within this window, and will read the state of the database
- * at that time.
- * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
- * the retention period is 1 hour.
- *
- * Generated from protobuf field .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Duration|null
- */
- public function getVersionRetentionPeriod()
- {
- return $this->version_retention_period;
- }
-
- public function hasVersionRetentionPeriod()
- {
- return isset($this->version_retention_period);
- }
-
- public function clearVersionRetentionPeriod()
- {
- unset($this->version_retention_period);
- }
-
- /**
- * Output only. The period during which past versions of data are retained in
- * the database.
- * Any [read][google.firestore.v1.GetDocumentRequest.read_time]
- * or [query][google.firestore.v1.ListDocumentsRequest.read_time] can specify
- * a `read_time` within this window, and will read the state of the database
- * at that time.
- * If the PITR feature is enabled, the retention period is 7 days. Otherwise,
- * the retention period is 1 hour.
- *
- * Generated from protobuf field .google.protobuf.Duration version_retention_period = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setVersionRetentionPeriod($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->version_retention_period = $var;
-
- return $this;
- }
-
- /**
- * Output only. The earliest timestamp at which older versions of the data can
- * be read from the database. See [version_retention_period] above; this field
- * is populated with `now - version_retention_period`.
- * This value is continuously updated, and becomes stale the moment it is
- * queried. If you are using this value to recover data, make sure to account
- * for the time from the moment when the value is queried to the moment when
- * you initiate the recovery.
- *
- * Generated from protobuf field .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEarliestVersionTime()
- {
- return $this->earliest_version_time;
- }
-
- public function hasEarliestVersionTime()
- {
- return isset($this->earliest_version_time);
- }
-
- public function clearEarliestVersionTime()
- {
- unset($this->earliest_version_time);
- }
-
- /**
- * Output only. The earliest timestamp at which older versions of the data can
- * be read from the database. See [version_retention_period] above; this field
- * is populated with `now - version_retention_period`.
- * This value is continuously updated, and becomes stale the moment it is
- * queried. If you are using this value to recover data, make sure to account
- * for the time from the moment when the value is queried to the moment when
- * you initiate the recovery.
- *
- * Generated from protobuf field .google.protobuf.Timestamp earliest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEarliestVersionTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->earliest_version_time = $var;
-
- return $this;
- }
-
- /**
- * Whether to enable the PITR feature on this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21;
- * @return int
- */
- public function getPointInTimeRecoveryEnablement()
- {
- return $this->point_in_time_recovery_enablement;
- }
-
- /**
- * Whether to enable the PITR feature on this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement point_in_time_recovery_enablement = 21;
- * @param int $var
- * @return $this
- */
- public function setPointInTimeRecoveryEnablement($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Database\PointInTimeRecoveryEnablement::class);
- $this->point_in_time_recovery_enablement = $var;
-
- return $this;
- }
-
- /**
- * The App Engine integration mode to use for this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.AppEngineIntegrationMode app_engine_integration_mode = 19;
- * @return int
- */
- public function getAppEngineIntegrationMode()
- {
- return $this->app_engine_integration_mode;
- }
-
- /**
- * The App Engine integration mode to use for this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.AppEngineIntegrationMode app_engine_integration_mode = 19;
- * @param int $var
- * @return $this
- */
- public function setAppEngineIntegrationMode($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Database\AppEngineIntegrationMode::class);
- $this->app_engine_integration_mode = $var;
-
- return $this;
- }
-
- /**
- * Output only. The key_prefix for this database. This key_prefix is used, in
- * combination with the project ID ("~") to construct
- * the application ID that is returned from the Cloud Datastore APIs in Google
- * App Engine first generation runtimes.
- * This value may be empty in which case the appid to use for URL-encoded keys
- * is the project_id (eg: foo instead of v~foo).
- *
- * Generated from protobuf field string key_prefix = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getKeyPrefix()
- {
- return $this->key_prefix;
- }
-
- /**
- * Output only. The key_prefix for this database. This key_prefix is used, in
- * combination with the project ID ("~") to construct
- * the application ID that is returned from the Cloud Datastore APIs in Google
- * App Engine first generation runtimes.
- * This value may be empty in which case the appid to use for URL-encoded keys
- * is the project_id (eg: foo instead of v~foo).
- *
- * Generated from protobuf field string key_prefix = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setKeyPrefix($var)
- {
- GPBUtil::checkString($var, True);
- $this->key_prefix = $var;
-
- return $this;
- }
-
- /**
- * State of delete protection for the database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.DeleteProtectionState delete_protection_state = 22;
- * @return int
- */
- public function getDeleteProtectionState()
- {
- return $this->delete_protection_state;
- }
-
- /**
- * State of delete protection for the database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.DeleteProtectionState delete_protection_state = 22;
- * @param int $var
- * @return $this
- */
- public function setDeleteProtectionState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Database\DeleteProtectionState::class);
- $this->delete_protection_state = $var;
-
- return $this;
- }
-
- /**
- * Optional. Presence indicates CMEK is enabled for this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.CmekConfig cmek_config = 23 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Firestore\Admin\V1\Database\CmekConfig|null
- */
- public function getCmekConfig()
- {
- return $this->cmek_config;
- }
-
- public function hasCmekConfig()
- {
- return isset($this->cmek_config);
- }
-
- public function clearCmekConfig()
- {
- unset($this->cmek_config);
- }
-
- /**
- * Optional. Presence indicates CMEK is enabled for this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.CmekConfig cmek_config = 23 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Firestore\Admin\V1\Database\CmekConfig $var
- * @return $this
- */
- public function setCmekConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Database\CmekConfig::class);
- $this->cmek_config = $var;
-
- return $this;
- }
-
- /**
- * Output only. The database resource's prior database ID. This field is only
- * populated for deleted databases.
- *
- * Generated from protobuf field string previous_id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getPreviousId()
- {
- return $this->previous_id;
- }
-
- /**
- * Output only. The database resource's prior database ID. This field is only
- * populated for deleted databases.
- *
- * Generated from protobuf field string previous_id = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setPreviousId($var)
- {
- GPBUtil::checkString($var, True);
- $this->previous_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. Information about the provenance of this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.SourceInfo source_info = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Firestore\Admin\V1\Database\SourceInfo|null
- */
- public function getSourceInfo()
- {
- return $this->source_info;
- }
-
- public function hasSourceInfo()
- {
- return isset($this->source_info);
- }
-
- public function clearSourceInfo()
- {
- unset($this->source_info);
- }
-
- /**
- * Output only. Information about the provenance of this database.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.SourceInfo source_info = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Firestore\Admin\V1\Database\SourceInfo $var
- * @return $this
- */
- public function setSourceInfo($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Database\SourceInfo::class);
- $this->source_info = $var;
-
- return $this;
- }
-
- /**
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 99;
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * This checksum is computed by the server based on the value of other
- * fields, and may be sent on update and delete requests to ensure the
- * client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 99;
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/AppEngineIntegrationMode.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/AppEngineIntegrationMode.php
deleted file mode 100644
index 2a871f5971f6..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/AppEngineIntegrationMode.php
+++ /dev/null
@@ -1,69 +0,0 @@
-google.firestore.admin.v1.Database.AppEngineIntegrationMode
- */
-class AppEngineIntegrationMode
-{
- /**
- * Not used.
- *
- * Generated from protobuf enum APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED = 0;
- */
- const APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED = 0;
- /**
- * If an App Engine application exists in the same region as this database,
- * App Engine configuration will impact this database. This includes
- * disabling of the application & database, as well as disabling writes to
- * the database.
- *
- * Generated from protobuf enum ENABLED = 1;
- */
- const ENABLED = 1;
- /**
- * App Engine has no effect on the ability of this database to serve
- * requests.
- * This is the default setting for databases created with the Firestore API.
- *
- * Generated from protobuf enum DISABLED = 2;
- */
- const DISABLED = 2;
-
- private static $valueToName = [
- self::APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED => 'APP_ENGINE_INTEGRATION_MODE_UNSPECIFIED',
- self::ENABLED => 'ENABLED',
- self::DISABLED => 'DISABLED',
- ];
-
- 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(AppEngineIntegrationMode::class, \Google\Cloud\Firestore\Admin\V1\Database_AppEngineIntegrationMode::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/CmekConfig.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/CmekConfig.php
deleted file mode 100644
index 3869c3ed18fe..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/CmekConfig.php
+++ /dev/null
@@ -1,154 +0,0 @@
-google.firestore.admin.v1.Database.CmekConfig
- */
-class CmekConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Only keys in the same location as this database are allowed to
- * be used for encryption.
- * For Firestore's nam5 multi-region, this corresponds to Cloud KMS
- * multi-region us. For Firestore's eur3 multi-region, this corresponds to
- * Cloud KMS multi-region europe. See
- * https://cloud.google.com/kms/docs/locations.
- * The expected format is
- * `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- *
- * Generated from protobuf field string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $kms_key_name = '';
- /**
- * Output only. Currently in-use [KMS key
- * versions](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions).
- * During [key rotation](https://cloud.google.com/kms/docs/key-rotation),
- * there can be multiple in-use key versions.
- * The expected format is
- * `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{key_version}`.
- *
- * Generated from protobuf field repeated string active_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $active_key_version;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $kms_key_name
- * Required. Only keys in the same location as this database are allowed to
- * be used for encryption.
- * For Firestore's nam5 multi-region, this corresponds to Cloud KMS
- * multi-region us. For Firestore's eur3 multi-region, this corresponds to
- * Cloud KMS multi-region europe. See
- * https://cloud.google.com/kms/docs/locations.
- * The expected format is
- * `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- * @type array|\Google\Protobuf\Internal\RepeatedField $active_key_version
- * Output only. Currently in-use [KMS key
- * versions](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions).
- * During [key rotation](https://cloud.google.com/kms/docs/key-rotation),
- * there can be multiple in-use key versions.
- * The expected format is
- * `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{key_version}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Database::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Only keys in the same location as this database are allowed to
- * be used for encryption.
- * For Firestore's nam5 multi-region, this corresponds to Cloud KMS
- * multi-region us. For Firestore's eur3 multi-region, this corresponds to
- * Cloud KMS multi-region europe. See
- * https://cloud.google.com/kms/docs/locations.
- * The expected format is
- * `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- *
- * Generated from protobuf field string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getKmsKeyName()
- {
- return $this->kms_key_name;
- }
-
- /**
- * Required. Only keys in the same location as this database are allowed to
- * be used for encryption.
- * For Firestore's nam5 multi-region, this corresponds to Cloud KMS
- * multi-region us. For Firestore's eur3 multi-region, this corresponds to
- * Cloud KMS multi-region europe. See
- * https://cloud.google.com/kms/docs/locations.
- * The expected format is
- * `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- *
- * Generated from protobuf field string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setKmsKeyName($var)
- {
- GPBUtil::checkString($var, True);
- $this->kms_key_name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Currently in-use [KMS key
- * versions](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions).
- * During [key rotation](https://cloud.google.com/kms/docs/key-rotation),
- * there can be multiple in-use key versions.
- * The expected format is
- * `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{key_version}`.
- *
- * Generated from protobuf field repeated string active_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getActiveKeyVersion()
- {
- return $this->active_key_version;
- }
-
- /**
- * Output only. Currently in-use [KMS key
- * versions](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions).
- * During [key rotation](https://cloud.google.com/kms/docs/key-rotation),
- * there can be multiple in-use key versions.
- * The expected format is
- * `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{key_version}`.
- *
- * Generated from protobuf field repeated string active_key_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setActiveKeyVersion($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->active_key_version = $arr;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(CmekConfig::class, \Google\Cloud\Firestore\Admin\V1\Database_CmekConfig::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/ConcurrencyMode.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/ConcurrencyMode.php
deleted file mode 100644
index 2e88fde688f8..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/ConcurrencyMode.php
+++ /dev/null
@@ -1,77 +0,0 @@
-google.firestore.admin.v1.Database.ConcurrencyMode
- */
-class ConcurrencyMode
-{
- /**
- * Not used.
- *
- * Generated from protobuf enum CONCURRENCY_MODE_UNSPECIFIED = 0;
- */
- const CONCURRENCY_MODE_UNSPECIFIED = 0;
- /**
- * Use optimistic concurrency control by default. This mode is available
- * for Cloud Firestore databases.
- *
- * Generated from protobuf enum OPTIMISTIC = 1;
- */
- const OPTIMISTIC = 1;
- /**
- * Use pessimistic concurrency control by default. This mode is available
- * for Cloud Firestore databases.
- * This is the default setting for Cloud Firestore.
- *
- * Generated from protobuf enum PESSIMISTIC = 2;
- */
- const PESSIMISTIC = 2;
- /**
- * Use optimistic concurrency control with entity groups by default.
- * This is the only available mode for Cloud Datastore.
- * This mode is also available for Cloud Firestore with Datastore Mode but
- * is not recommended.
- *
- * Generated from protobuf enum OPTIMISTIC_WITH_ENTITY_GROUPS = 3;
- */
- const OPTIMISTIC_WITH_ENTITY_GROUPS = 3;
-
- private static $valueToName = [
- self::CONCURRENCY_MODE_UNSPECIFIED => 'CONCURRENCY_MODE_UNSPECIFIED',
- self::OPTIMISTIC => 'OPTIMISTIC',
- self::PESSIMISTIC => 'PESSIMISTIC',
- self::OPTIMISTIC_WITH_ENTITY_GROUPS => 'OPTIMISTIC_WITH_ENTITY_GROUPS',
- ];
-
- 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(ConcurrencyMode::class, \Google\Cloud\Firestore\Admin\V1\Database_ConcurrencyMode::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/DatabaseType.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/DatabaseType.php
deleted file mode 100644
index 8fed66a0fc28..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/DatabaseType.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.firestore.admin.v1.Database.DatabaseType
- */
-class DatabaseType
-{
- /**
- * Not used.
- *
- * Generated from protobuf enum DATABASE_TYPE_UNSPECIFIED = 0;
- */
- const DATABASE_TYPE_UNSPECIFIED = 0;
- /**
- * Firestore Native Mode
- *
- * Generated from protobuf enum FIRESTORE_NATIVE = 1;
- */
- const FIRESTORE_NATIVE = 1;
- /**
- * Firestore in Datastore Mode.
- *
- * Generated from protobuf enum DATASTORE_MODE = 2;
- */
- const DATASTORE_MODE = 2;
-
- private static $valueToName = [
- self::DATABASE_TYPE_UNSPECIFIED => 'DATABASE_TYPE_UNSPECIFIED',
- self::FIRESTORE_NATIVE => 'FIRESTORE_NATIVE',
- self::DATASTORE_MODE => 'DATASTORE_MODE',
- ];
-
- 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(DatabaseType::class, \Google\Cloud\Firestore\Admin\V1\Database_DatabaseType::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/DeleteProtectionState.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/DeleteProtectionState.php
deleted file mode 100644
index 34ade3e23333..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/DeleteProtectionState.php
+++ /dev/null
@@ -1,64 +0,0 @@
-google.firestore.admin.v1.Database.DeleteProtectionState
- */
-class DeleteProtectionState
-{
- /**
- * The default value. Delete protection type is not specified
- *
- * Generated from protobuf enum DELETE_PROTECTION_STATE_UNSPECIFIED = 0;
- */
- const DELETE_PROTECTION_STATE_UNSPECIFIED = 0;
- /**
- * Delete protection is disabled
- *
- * Generated from protobuf enum DELETE_PROTECTION_DISABLED = 1;
- */
- const DELETE_PROTECTION_DISABLED = 1;
- /**
- * Delete protection is enabled
- *
- * Generated from protobuf enum DELETE_PROTECTION_ENABLED = 2;
- */
- const DELETE_PROTECTION_ENABLED = 2;
-
- private static $valueToName = [
- self::DELETE_PROTECTION_STATE_UNSPECIFIED => 'DELETE_PROTECTION_STATE_UNSPECIFIED',
- self::DELETE_PROTECTION_DISABLED => 'DELETE_PROTECTION_DISABLED',
- self::DELETE_PROTECTION_ENABLED => 'DELETE_PROTECTION_ENABLED',
- ];
-
- 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(DeleteProtectionState::class, \Google\Cloud\Firestore\Admin\V1\Database_DeleteProtectionState::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/EncryptionConfig.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/EncryptionConfig.php
deleted file mode 100644
index b6f8262797ce..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/EncryptionConfig.php
+++ /dev/null
@@ -1,146 +0,0 @@
-google.firestore.admin.v1.Database.EncryptionConfig
- */
-class EncryptionConfig extends \Google\Protobuf\Internal\Message
-{
- protected $encryption_type;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig\GoogleDefaultEncryptionOptions $google_default_encryption
- * Use Google default encryption.
- * @type \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig\SourceEncryptionOptions $use_source_encryption
- * The database will use the same encryption configuration as the source.
- * @type \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig\CustomerManagedEncryptionOptions $customer_managed_encryption
- * Use Customer Managed Encryption Keys (CMEK) for encryption.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Database::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Use Google default encryption.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions google_default_encryption = 1;
- * @return \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig\GoogleDefaultEncryptionOptions|null
- */
- public function getGoogleDefaultEncryption()
- {
- return $this->readOneof(1);
- }
-
- public function hasGoogleDefaultEncryption()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * Use Google default encryption.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions google_default_encryption = 1;
- * @param \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig\GoogleDefaultEncryptionOptions $var
- * @return $this
- */
- public function setGoogleDefaultEncryption($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig\GoogleDefaultEncryptionOptions::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * The database will use the same encryption configuration as the source.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions use_source_encryption = 2;
- * @return \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig\SourceEncryptionOptions|null
- */
- public function getUseSourceEncryption()
- {
- return $this->readOneof(2);
- }
-
- public function hasUseSourceEncryption()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * The database will use the same encryption configuration as the source.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions use_source_encryption = 2;
- * @param \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig\SourceEncryptionOptions $var
- * @return $this
- */
- public function setUseSourceEncryption($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig\SourceEncryptionOptions::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * Use Customer Managed Encryption Keys (CMEK) for encryption.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions customer_managed_encryption = 3;
- * @return \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig\CustomerManagedEncryptionOptions|null
- */
- public function getCustomerManagedEncryption()
- {
- return $this->readOneof(3);
- }
-
- public function hasCustomerManagedEncryption()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * Use Customer Managed Encryption Keys (CMEK) for encryption.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions customer_managed_encryption = 3;
- * @param \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig\CustomerManagedEncryptionOptions $var
- * @return $this
- */
- public function setCustomerManagedEncryption($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig\CustomerManagedEncryptionOptions::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getEncryptionType()
- {
- return $this->whichOneof("encryption_type");
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(EncryptionConfig::class, \Google\Cloud\Firestore\Admin\V1\Database_EncryptionConfig::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/EncryptionConfig/CustomerManagedEncryptionOptions.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/EncryptionConfig/CustomerManagedEncryptionOptions.php
deleted file mode 100644
index d00df462c9c5..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/EncryptionConfig/CustomerManagedEncryptionOptions.php
+++ /dev/null
@@ -1,99 +0,0 @@
-google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions
- */
-class CustomerManagedEncryptionOptions extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Only keys in the same location as the database are allowed to
- * be used for encryption.
- * For Firestore's nam5 multi-region, this corresponds to Cloud KMS
- * multi-region us. For Firestore's eur3 multi-region, this corresponds to
- * Cloud KMS multi-region europe. See
- * https://cloud.google.com/kms/docs/locations.
- * The expected format is
- * `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- *
- * Generated from protobuf field string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $kms_key_name = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $kms_key_name
- * Required. Only keys in the same location as the database are allowed to
- * be used for encryption.
- * For Firestore's nam5 multi-region, this corresponds to Cloud KMS
- * multi-region us. For Firestore's eur3 multi-region, this corresponds to
- * Cloud KMS multi-region europe. See
- * https://cloud.google.com/kms/docs/locations.
- * The expected format is
- * `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Database::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Only keys in the same location as the database are allowed to
- * be used for encryption.
- * For Firestore's nam5 multi-region, this corresponds to Cloud KMS
- * multi-region us. For Firestore's eur3 multi-region, this corresponds to
- * Cloud KMS multi-region europe. See
- * https://cloud.google.com/kms/docs/locations.
- * The expected format is
- * `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- *
- * Generated from protobuf field string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getKmsKeyName()
- {
- return $this->kms_key_name;
- }
-
- /**
- * Required. Only keys in the same location as the database are allowed to
- * be used for encryption.
- * For Firestore's nam5 multi-region, this corresponds to Cloud KMS
- * multi-region us. For Firestore's eur3 multi-region, this corresponds to
- * Cloud KMS multi-region europe. See
- * https://cloud.google.com/kms/docs/locations.
- * The expected format is
- * `projects/{project_id}/locations/{kms_location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- *
- * Generated from protobuf field string kms_key_name = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setKmsKeyName($var)
- {
- GPBUtil::checkString($var, True);
- $this->kms_key_name = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(CustomerManagedEncryptionOptions::class, \Google\Cloud\Firestore\Admin\V1\Database_EncryptionConfig_CustomerManagedEncryptionOptions::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/EncryptionConfig/GoogleDefaultEncryptionOptions.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/EncryptionConfig/GoogleDefaultEncryptionOptions.php
deleted file mode 100644
index 6a47d15b6b48..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/EncryptionConfig/GoogleDefaultEncryptionOptions.php
+++ /dev/null
@@ -1,36 +0,0 @@
-google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions
- */
-class GoogleDefaultEncryptionOptions extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Database::initOnce();
- parent::__construct($data);
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(GoogleDefaultEncryptionOptions::class, \Google\Cloud\Firestore\Admin\V1\Database_EncryptionConfig_GoogleDefaultEncryptionOptions::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/EncryptionConfig/SourceEncryptionOptions.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/EncryptionConfig/SourceEncryptionOptions.php
deleted file mode 100644
index 6bf765a0fb15..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/EncryptionConfig/SourceEncryptionOptions.php
+++ /dev/null
@@ -1,37 +0,0 @@
-google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions
- */
-class SourceEncryptionOptions extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Database::initOnce();
- parent::__construct($data);
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(SourceEncryptionOptions::class, \Google\Cloud\Firestore\Admin\V1\Database_EncryptionConfig_SourceEncryptionOptions::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/PointInTimeRecoveryEnablement.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/PointInTimeRecoveryEnablement.php
deleted file mode 100644
index 14a69b79b174..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/PointInTimeRecoveryEnablement.php
+++ /dev/null
@@ -1,70 +0,0 @@
-google.firestore.admin.v1.Database.PointInTimeRecoveryEnablement
- */
-class PointInTimeRecoveryEnablement
-{
- /**
- * Not used.
- *
- * Generated from protobuf enum POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED = 0;
- */
- const POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED = 0;
- /**
- * Reads are supported on selected versions of the data from within the past
- * 7 days:
- * * Reads against any timestamp within the past hour
- * * Reads against 1-minute snapshots beyond 1 hour and within 7 days
- * `version_retention_period` and `earliest_version_time` can be
- * used to determine the supported versions.
- *
- * Generated from protobuf enum POINT_IN_TIME_RECOVERY_ENABLED = 1;
- */
- const POINT_IN_TIME_RECOVERY_ENABLED = 1;
- /**
- * Reads are supported on any version of the data from within the past 1
- * hour.
- *
- * Generated from protobuf enum POINT_IN_TIME_RECOVERY_DISABLED = 2;
- */
- const POINT_IN_TIME_RECOVERY_DISABLED = 2;
-
- private static $valueToName = [
- self::POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED => 'POINT_IN_TIME_RECOVERY_ENABLEMENT_UNSPECIFIED',
- self::POINT_IN_TIME_RECOVERY_ENABLED => 'POINT_IN_TIME_RECOVERY_ENABLED',
- self::POINT_IN_TIME_RECOVERY_DISABLED => 'POINT_IN_TIME_RECOVERY_DISABLED',
- ];
-
- 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(PointInTimeRecoveryEnablement::class, \Google\Cloud\Firestore\Admin\V1\Database_PointInTimeRecoveryEnablement::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/SourceInfo.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/SourceInfo.php
deleted file mode 100644
index 198612e6dfbd..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/SourceInfo.php
+++ /dev/null
@@ -1,123 +0,0 @@
-google.firestore.admin.v1.Database.SourceInfo
- */
-class SourceInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * The associated long-running operation. This field may not be set after
- * the operation has completed. Format:
- * `projects/{project}/databases/{database}/operations/{operation}`.
- *
- * Generated from protobuf field string operation = 3 [(.google.api.resource_reference) = {
- */
- protected $operation = '';
- protected $source;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\Admin\V1\Database\SourceInfo\BackupSource $backup
- * If set, this database was restored from the specified backup (or a
- * snapshot thereof).
- * @type string $operation
- * The associated long-running operation. This field may not be set after
- * the operation has completed. Format:
- * `projects/{project}/databases/{database}/operations/{operation}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Database::initOnce();
- parent::__construct($data);
- }
-
- /**
- * If set, this database was restored from the specified backup (or a
- * snapshot thereof).
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
- * @return \Google\Cloud\Firestore\Admin\V1\Database\SourceInfo\BackupSource|null
- */
- public function getBackup()
- {
- return $this->readOneof(1);
- }
-
- public function hasBackup()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * If set, this database was restored from the specified backup (or a
- * snapshot thereof).
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.SourceInfo.BackupSource backup = 1;
- * @param \Google\Cloud\Firestore\Admin\V1\Database\SourceInfo\BackupSource $var
- * @return $this
- */
- public function setBackup($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Database\SourceInfo\BackupSource::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * The associated long-running operation. This field may not be set after
- * the operation has completed. Format:
- * `projects/{project}/databases/{database}/operations/{operation}`.
- *
- * Generated from protobuf field string operation = 3 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getOperation()
- {
- return $this->operation;
- }
-
- /**
- * The associated long-running operation. This field may not be set after
- * the operation has completed. Format:
- * `projects/{project}/databases/{database}/operations/{operation}`.
- *
- * Generated from protobuf field string operation = 3 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setOperation($var)
- {
- GPBUtil::checkString($var, True);
- $this->operation = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getSource()
- {
- return $this->whichOneof("source");
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(SourceInfo::class, \Google\Cloud\Firestore\Admin\V1\Database_SourceInfo::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/SourceInfo/BackupSource.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/SourceInfo/BackupSource.php
deleted file mode 100644
index 4f0caa63d22d..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Database/SourceInfo/BackupSource.php
+++ /dev/null
@@ -1,78 +0,0 @@
-google.firestore.admin.v1.Database.SourceInfo.BackupSource
- */
-class BackupSource extends \Google\Protobuf\Internal\Message
-{
- /**
- * The resource name of the backup that was used to restore this
- * database. Format:
- * `projects/{project}/locations/{location}/backups/{backup}`.
- *
- * Generated from protobuf field string backup = 1 [(.google.api.resource_reference) = {
- */
- protected $backup = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $backup
- * The resource name of the backup that was used to restore this
- * database. Format:
- * `projects/{project}/locations/{location}/backups/{backup}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Database::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The resource name of the backup that was used to restore this
- * database. Format:
- * `projects/{project}/locations/{location}/backups/{backup}`.
- *
- * Generated from protobuf field string backup = 1 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getBackup()
- {
- return $this->backup;
- }
-
- /**
- * The resource name of the backup that was used to restore this
- * database. Format:
- * `projects/{project}/locations/{location}/backups/{backup}`.
- *
- * Generated from protobuf field string backup = 1 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setBackup($var)
- {
- GPBUtil::checkString($var, True);
- $this->backup = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(BackupSource::class, \Google\Cloud\Firestore\Admin\V1\Database_SourceInfo_BackupSource::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteBackupRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteBackupRequest.php
deleted file mode 100644
index b1c17f2db7ce..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteBackupRequest.php
+++ /dev/null
@@ -1,88 +0,0 @@
-google.firestore.admin.v1.DeleteBackupRequest
- */
-class DeleteBackupRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the backup to delete.
- * format is `projects/{project}/locations/{location}/backups/{backup}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the backup to delete.
- *
- * format is `projects/{project}/locations/{location}/backups/{backup}`. Please see
- * {@see FirestoreAdminClient::backupName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\DeleteBackupRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the backup to delete.
- * format is `projects/{project}/locations/{location}/backups/{backup}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the backup to delete.
- * format is `projects/{project}/locations/{location}/backups/{backup}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the backup to delete.
- * format is `projects/{project}/locations/{location}/backups/{backup}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteBackupScheduleRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteBackupScheduleRequest.php
deleted file mode 100644
index 9d3bc056d176..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteBackupScheduleRequest.php
+++ /dev/null
@@ -1,92 +0,0 @@
-google.firestore.admin.v1.DeleteBackupScheduleRequest
- */
-class DeleteBackupScheduleRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the backup schedule.
- * Format
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. The name of the backup schedule.
- *
- * Format
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- * Please see {@see FirestoreAdminClient::backupScheduleName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\DeleteBackupScheduleRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The name of the backup schedule.
- * Format
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the backup schedule.
- * Format
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The name of the backup schedule.
- * Format
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteDatabaseMetadata.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteDatabaseMetadata.php
deleted file mode 100644
index c411410ff5b5..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteDatabaseMetadata.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.firestore.admin.v1.DeleteDatabaseMetadata
- */
-class DeleteDatabaseMetadata extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteDatabaseRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteDatabaseRequest.php
deleted file mode 100644
index 5118ae7c1271..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteDatabaseRequest.php
+++ /dev/null
@@ -1,129 +0,0 @@
-google.firestore.admin.v1.DeleteDatabaseRequest
- */
-class DeleteDatabaseRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * The current etag of the Database.
- * If an etag is provided and does not match the current etag of the database,
- * deletion will be blocked and a FAILED_PRECONDITION error will be returned.
- *
- * Generated from protobuf field string etag = 3;
- */
- protected $etag = '';
-
- /**
- * @param string $name Required. A name of the form
- * `projects/{project_id}/databases/{database_id}`
- * Please see {@see FirestoreAdminClient::databaseName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\DeleteDatabaseRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}`
- * @type string $etag
- * The current etag of the Database.
- * If an etag is provided and does not match the current etag of the database,
- * deletion will be blocked and a FAILED_PRECONDITION error will be returned.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * The current etag of the Database.
- * If an etag is provided and does not match the current etag of the database,
- * deletion will be blocked and a FAILED_PRECONDITION error will be returned.
- *
- * Generated from protobuf field string etag = 3;
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * The current etag of the Database.
- * If an etag is provided and does not match the current etag of the database,
- * deletion will be blocked and a FAILED_PRECONDITION error will be returned.
- *
- * Generated from protobuf field string etag = 3;
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteIndexRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteIndexRequest.php
deleted file mode 100644
index 0ff8c174cfd6..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/DeleteIndexRequest.php
+++ /dev/null
@@ -1,87 +0,0 @@
-google.firestore.admin.v1.DeleteIndexRequest
- */
-class DeleteIndexRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- * Please see {@see FirestoreAdminClient::indexName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\DeleteIndexRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ExportDocumentsMetadata.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ExportDocumentsMetadata.php
deleted file mode 100644
index 0f208185cfa5..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ExportDocumentsMetadata.php
+++ /dev/null
@@ -1,403 +0,0 @@
-google.firestore.admin.v1.ExportDocumentsMetadata
- */
-class ExportDocumentsMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- */
- protected $start_time = null;
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- */
- protected $end_time = null;
- /**
- * The state of the export operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState operation_state = 3;
- */
- protected $operation_state = 0;
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 4;
- */
- protected $progress_documents = null;
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 5;
- */
- protected $progress_bytes = null;
- /**
- * Which collection IDs are being exported.
- *
- * Generated from protobuf field repeated string collection_ids = 6;
- */
- private $collection_ids;
- /**
- * Where the documents are being exported to.
- *
- * Generated from protobuf field string output_uri_prefix = 7;
- */
- protected $output_uri_prefix = '';
- /**
- * Which namespace IDs are being exported.
- *
- * Generated from protobuf field repeated string namespace_ids = 8;
- */
- private $namespace_ids;
- /**
- * The timestamp that corresponds to the version of the database that is being
- * exported. If unspecified, there are no guarantees about the consistency of
- * the documents being exported.
- *
- * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 9;
- */
- protected $snapshot_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $start_time
- * The time this operation started.
- * @type \Google\Protobuf\Timestamp $end_time
- * The time this operation completed. Will be unset if operation still in
- * progress.
- * @type int $operation_state
- * The state of the export operation.
- * @type \Google\Cloud\Firestore\Admin\V1\Progress $progress_documents
- * The progress, in documents, of this operation.
- * @type \Google\Cloud\Firestore\Admin\V1\Progress $progress_bytes
- * The progress, in bytes, of this operation.
- * @type array|\Google\Protobuf\Internal\RepeatedField $collection_ids
- * Which collection IDs are being exported.
- * @type string $output_uri_prefix
- * Where the documents are being exported to.
- * @type array|\Google\Protobuf\Internal\RepeatedField $namespace_ids
- * Which namespace IDs are being exported.
- * @type \Google\Protobuf\Timestamp $snapshot_time
- * The timestamp that corresponds to the version of the database that is being
- * exported. If unspecified, there are no guarantees about the consistency of
- * the documents being exported.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Operation::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
- /**
- * The state of the export operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState operation_state = 3;
- * @return int
- */
- public function getOperationState()
- {
- return $this->operation_state;
- }
-
- /**
- * The state of the export operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState operation_state = 3;
- * @param int $var
- * @return $this
- */
- public function setOperationState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\OperationState::class);
- $this->operation_state = $var;
-
- return $this;
- }
-
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 4;
- * @return \Google\Cloud\Firestore\Admin\V1\Progress|null
- */
- public function getProgressDocuments()
- {
- return $this->progress_documents;
- }
-
- public function hasProgressDocuments()
- {
- return isset($this->progress_documents);
- }
-
- public function clearProgressDocuments()
- {
- unset($this->progress_documents);
- }
-
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 4;
- * @param \Google\Cloud\Firestore\Admin\V1\Progress $var
- * @return $this
- */
- public function setProgressDocuments($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Progress::class);
- $this->progress_documents = $var;
-
- return $this;
- }
-
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 5;
- * @return \Google\Cloud\Firestore\Admin\V1\Progress|null
- */
- public function getProgressBytes()
- {
- return $this->progress_bytes;
- }
-
- public function hasProgressBytes()
- {
- return isset($this->progress_bytes);
- }
-
- public function clearProgressBytes()
- {
- unset($this->progress_bytes);
- }
-
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 5;
- * @param \Google\Cloud\Firestore\Admin\V1\Progress $var
- * @return $this
- */
- public function setProgressBytes($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Progress::class);
- $this->progress_bytes = $var;
-
- return $this;
- }
-
- /**
- * Which collection IDs are being exported.
- *
- * Generated from protobuf field repeated string collection_ids = 6;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCollectionIds()
- {
- return $this->collection_ids;
- }
-
- /**
- * Which collection IDs are being exported.
- *
- * Generated from protobuf field repeated string collection_ids = 6;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCollectionIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->collection_ids = $arr;
-
- return $this;
- }
-
- /**
- * Where the documents are being exported to.
- *
- * Generated from protobuf field string output_uri_prefix = 7;
- * @return string
- */
- public function getOutputUriPrefix()
- {
- return $this->output_uri_prefix;
- }
-
- /**
- * Where the documents are being exported to.
- *
- * Generated from protobuf field string output_uri_prefix = 7;
- * @param string $var
- * @return $this
- */
- public function setOutputUriPrefix($var)
- {
- GPBUtil::checkString($var, True);
- $this->output_uri_prefix = $var;
-
- return $this;
- }
-
- /**
- * Which namespace IDs are being exported.
- *
- * Generated from protobuf field repeated string namespace_ids = 8;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getNamespaceIds()
- {
- return $this->namespace_ids;
- }
-
- /**
- * Which namespace IDs are being exported.
- *
- * Generated from protobuf field repeated string namespace_ids = 8;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setNamespaceIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->namespace_ids = $arr;
-
- return $this;
- }
-
- /**
- * The timestamp that corresponds to the version of the database that is being
- * exported. If unspecified, there are no guarantees about the consistency of
- * the documents being exported.
- *
- * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 9;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getSnapshotTime()
- {
- return $this->snapshot_time;
- }
-
- public function hasSnapshotTime()
- {
- return isset($this->snapshot_time);
- }
-
- public function clearSnapshotTime()
- {
- unset($this->snapshot_time);
- }
-
- /**
- * The timestamp that corresponds to the version of the database that is being
- * exported. If unspecified, there are no guarantees about the consistency of
- * the documents being exported.
- *
- * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 9;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setSnapshotTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->snapshot_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ExportDocumentsRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ExportDocumentsRequest.php
deleted file mode 100644
index b0bdac928f3a..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ExportDocumentsRequest.php
+++ /dev/null
@@ -1,305 +0,0 @@
-google.firestore.admin.v1.ExportDocumentsRequest
- */
-class ExportDocumentsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Database to export. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Which collection IDs to export. Unspecified means all collections. Each
- * collection ID in this list must be unique.
- *
- * Generated from protobuf field repeated string collection_ids = 2;
- */
- private $collection_ids;
- /**
- * The output URI. Currently only supports Google Cloud Storage URIs of the
- * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
- * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
- * Google Cloud Storage namespace path. When
- * choosing a name, be sure to consider Google Cloud Storage naming
- * guidelines: https://cloud.google.com/storage/docs/naming.
- * If the URI is a bucket (without a namespace path), a prefix will be
- * generated based on the start time.
- *
- * Generated from protobuf field string output_uri_prefix = 3;
- */
- protected $output_uri_prefix = '';
- /**
- * An empty list represents all namespaces. This is the preferred
- * usage for databases that don't use namespaces.
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to include them. Each namespace in this list must be unique.
- *
- * Generated from protobuf field repeated string namespace_ids = 4;
- */
- private $namespace_ids;
- /**
- * The timestamp that corresponds to the version of the database to be
- * exported. The timestamp must be in the past, rounded to the minute and not
- * older than
- * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
- * If specified, then the exported documents will represent a consistent view
- * of the database at the provided time. Otherwise, there are no guarantees
- * about the consistency of the exported documents.
- *
- * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 5;
- */
- protected $snapshot_time = null;
-
- /**
- * @param string $name Required. Database to export. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`. Please see
- * {@see FirestoreAdminClient::databaseName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\ExportDocumentsRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Database to export. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- * @type array|\Google\Protobuf\Internal\RepeatedField $collection_ids
- * Which collection IDs to export. Unspecified means all collections. Each
- * collection ID in this list must be unique.
- * @type string $output_uri_prefix
- * The output URI. Currently only supports Google Cloud Storage URIs of the
- * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
- * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
- * Google Cloud Storage namespace path. When
- * choosing a name, be sure to consider Google Cloud Storage naming
- * guidelines: https://cloud.google.com/storage/docs/naming.
- * If the URI is a bucket (without a namespace path), a prefix will be
- * generated based on the start time.
- * @type array|\Google\Protobuf\Internal\RepeatedField $namespace_ids
- * An empty list represents all namespaces. This is the preferred
- * usage for databases that don't use namespaces.
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to include them. Each namespace in this list must be unique.
- * @type \Google\Protobuf\Timestamp $snapshot_time
- * The timestamp that corresponds to the version of the database to be
- * exported. The timestamp must be in the past, rounded to the minute and not
- * older than
- * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
- * If specified, then the exported documents will represent a consistent view
- * of the database at the provided time. Otherwise, there are no guarantees
- * about the consistency of the exported documents.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Database to export. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Database to export. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Which collection IDs to export. Unspecified means all collections. Each
- * collection ID in this list must be unique.
- *
- * Generated from protobuf field repeated string collection_ids = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCollectionIds()
- {
- return $this->collection_ids;
- }
-
- /**
- * Which collection IDs to export. Unspecified means all collections. Each
- * collection ID in this list must be unique.
- *
- * Generated from protobuf field repeated string collection_ids = 2;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCollectionIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->collection_ids = $arr;
-
- return $this;
- }
-
- /**
- * The output URI. Currently only supports Google Cloud Storage URIs of the
- * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
- * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
- * Google Cloud Storage namespace path. When
- * choosing a name, be sure to consider Google Cloud Storage naming
- * guidelines: https://cloud.google.com/storage/docs/naming.
- * If the URI is a bucket (without a namespace path), a prefix will be
- * generated based on the start time.
- *
- * Generated from protobuf field string output_uri_prefix = 3;
- * @return string
- */
- public function getOutputUriPrefix()
- {
- return $this->output_uri_prefix;
- }
-
- /**
- * The output URI. Currently only supports Google Cloud Storage URIs of the
- * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
- * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
- * Google Cloud Storage namespace path. When
- * choosing a name, be sure to consider Google Cloud Storage naming
- * guidelines: https://cloud.google.com/storage/docs/naming.
- * If the URI is a bucket (without a namespace path), a prefix will be
- * generated based on the start time.
- *
- * Generated from protobuf field string output_uri_prefix = 3;
- * @param string $var
- * @return $this
- */
- public function setOutputUriPrefix($var)
- {
- GPBUtil::checkString($var, True);
- $this->output_uri_prefix = $var;
-
- return $this;
- }
-
- /**
- * An empty list represents all namespaces. This is the preferred
- * usage for databases that don't use namespaces.
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to include them. Each namespace in this list must be unique.
- *
- * Generated from protobuf field repeated string namespace_ids = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getNamespaceIds()
- {
- return $this->namespace_ids;
- }
-
- /**
- * An empty list represents all namespaces. This is the preferred
- * usage for databases that don't use namespaces.
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to include them. Each namespace in this list must be unique.
- *
- * Generated from protobuf field repeated string namespace_ids = 4;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setNamespaceIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->namespace_ids = $arr;
-
- return $this;
- }
-
- /**
- * The timestamp that corresponds to the version of the database to be
- * exported. The timestamp must be in the past, rounded to the minute and not
- * older than
- * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
- * If specified, then the exported documents will represent a consistent view
- * of the database at the provided time. Otherwise, there are no guarantees
- * about the consistency of the exported documents.
- *
- * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 5;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getSnapshotTime()
- {
- return $this->snapshot_time;
- }
-
- public function hasSnapshotTime()
- {
- return isset($this->snapshot_time);
- }
-
- public function clearSnapshotTime()
- {
- unset($this->snapshot_time);
- }
-
- /**
- * The timestamp that corresponds to the version of the database to be
- * exported. The timestamp must be in the past, rounded to the minute and not
- * older than
- * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
- * If specified, then the exported documents will represent a consistent view
- * of the database at the provided time. Otherwise, there are no guarantees
- * about the consistency of the exported documents.
- *
- * Generated from protobuf field .google.protobuf.Timestamp snapshot_time = 5;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setSnapshotTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->snapshot_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ExportDocumentsResponse.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ExportDocumentsResponse.php
deleted file mode 100644
index 98d2d38246b1..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ExportDocumentsResponse.php
+++ /dev/null
@@ -1,76 +0,0 @@
-google.firestore.admin.v1.ExportDocumentsResponse
- */
-class ExportDocumentsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Location of the output files. This can be used to begin an import
- * into Cloud Firestore (this project or another project) after the operation
- * completes successfully.
- *
- * Generated from protobuf field string output_uri_prefix = 1;
- */
- protected $output_uri_prefix = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $output_uri_prefix
- * Location of the output files. This can be used to begin an import
- * into Cloud Firestore (this project or another project) after the operation
- * completes successfully.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Operation::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Location of the output files. This can be used to begin an import
- * into Cloud Firestore (this project or another project) after the operation
- * completes successfully.
- *
- * Generated from protobuf field string output_uri_prefix = 1;
- * @return string
- */
- public function getOutputUriPrefix()
- {
- return $this->output_uri_prefix;
- }
-
- /**
- * Location of the output files. This can be used to begin an import
- * into Cloud Firestore (this project or another project) after the operation
- * completes successfully.
- *
- * Generated from protobuf field string output_uri_prefix = 1;
- * @param string $var
- * @return $this
- */
- public function setOutputUriPrefix($var)
- {
- GPBUtil::checkString($var, True);
- $this->output_uri_prefix = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Field.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Field.php
deleted file mode 100644
index 3a9433d22017..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Field.php
+++ /dev/null
@@ -1,253 +0,0 @@
-google.firestore.admin.v1.Field
- */
-class Field extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A field name of the form:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
- * A field path can be a simple field name, e.g. `address` or a path to fields
- * within `map_value` , e.g. `address.city`,
- * or a special field path. The only valid special field is `*`, which
- * represents any field.
- * Field paths can be quoted using `` ` `` (backtick). The only character that
- * must be escaped within a quoted field path is the backtick character
- * itself, escaped using a backslash. Special characters in field paths that
- * must be quoted include: `*`, `.`,
- * `` ` `` (backtick), `[`, `]`, as well as any ascii symbolic characters.
- * Examples:
- * `` `address.city` `` represents a field named `address.city`, not the map
- * key `city` in the field `address`. `` `*` `` represents a field named `*`,
- * not any field.
- * A special `Field` contains the default indexing settings for all fields.
- * This field's resource name is:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
- * Indexes defined on this `Field` will be applied to all fields which do not
- * have their own `Field` index configuration.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $name = '';
- /**
- * The index configuration for this field. If unset, field indexing will
- * revert to the configuration defined by the `ancestor_field`. To
- * explicitly remove all indexes for this field, specify an index config
- * with an empty list of indexes.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Field.IndexConfig index_config = 2;
- */
- protected $index_config = null;
- /**
- * The TTL configuration for this `Field`.
- * Setting or unsetting this will enable or disable the TTL for
- * documents that have this `Field`.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Field.TtlConfig ttl_config = 3;
- */
- protected $ttl_config = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. A field name of the form:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
- * A field path can be a simple field name, e.g. `address` or a path to fields
- * within `map_value` , e.g. `address.city`,
- * or a special field path. The only valid special field is `*`, which
- * represents any field.
- * Field paths can be quoted using `` ` `` (backtick). The only character that
- * must be escaped within a quoted field path is the backtick character
- * itself, escaped using a backslash. Special characters in field paths that
- * must be quoted include: `*`, `.`,
- * `` ` `` (backtick), `[`, `]`, as well as any ascii symbolic characters.
- * Examples:
- * `` `address.city` `` represents a field named `address.city`, not the map
- * key `city` in the field `address`. `` `*` `` represents a field named `*`,
- * not any field.
- * A special `Field` contains the default indexing settings for all fields.
- * This field's resource name is:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
- * Indexes defined on this `Field` will be applied to all fields which do not
- * have their own `Field` index configuration.
- * @type \Google\Cloud\Firestore\Admin\V1\Field\IndexConfig $index_config
- * The index configuration for this field. If unset, field indexing will
- * revert to the configuration defined by the `ancestor_field`. To
- * explicitly remove all indexes for this field, specify an index config
- * with an empty list of indexes.
- * @type \Google\Cloud\Firestore\Admin\V1\Field\TtlConfig $ttl_config
- * The TTL configuration for this `Field`.
- * Setting or unsetting this will enable or disable the TTL for
- * documents that have this `Field`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Field::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A field name of the form:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
- * A field path can be a simple field name, e.g. `address` or a path to fields
- * within `map_value` , e.g. `address.city`,
- * or a special field path. The only valid special field is `*`, which
- * represents any field.
- * Field paths can be quoted using `` ` `` (backtick). The only character that
- * must be escaped within a quoted field path is the backtick character
- * itself, escaped using a backslash. Special characters in field paths that
- * must be quoted include: `*`, `.`,
- * `` ` `` (backtick), `[`, `]`, as well as any ascii symbolic characters.
- * Examples:
- * `` `address.city` `` represents a field named `address.city`, not the map
- * key `city` in the field `address`. `` `*` `` represents a field named `*`,
- * not any field.
- * A special `Field` contains the default indexing settings for all fields.
- * This field's resource name is:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
- * Indexes defined on this `Field` will be applied to all fields which do not
- * have their own `Field` index configuration.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. A field name of the form:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
- * A field path can be a simple field name, e.g. `address` or a path to fields
- * within `map_value` , e.g. `address.city`,
- * or a special field path. The only valid special field is `*`, which
- * represents any field.
- * Field paths can be quoted using `` ` `` (backtick). The only character that
- * must be escaped within a quoted field path is the backtick character
- * itself, escaped using a backslash. Special characters in field paths that
- * must be quoted include: `*`, `.`,
- * `` ` `` (backtick), `[`, `]`, as well as any ascii symbolic characters.
- * Examples:
- * `` `address.city` `` represents a field named `address.city`, not the map
- * key `city` in the field `address`. `` `*` `` represents a field named `*`,
- * not any field.
- * A special `Field` contains the default indexing settings for all fields.
- * This field's resource name is:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`
- * Indexes defined on this `Field` will be applied to all fields which do not
- * have their own `Field` index configuration.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * The index configuration for this field. If unset, field indexing will
- * revert to the configuration defined by the `ancestor_field`. To
- * explicitly remove all indexes for this field, specify an index config
- * with an empty list of indexes.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Field.IndexConfig index_config = 2;
- * @return \Google\Cloud\Firestore\Admin\V1\Field\IndexConfig|null
- */
- public function getIndexConfig()
- {
- return $this->index_config;
- }
-
- public function hasIndexConfig()
- {
- return isset($this->index_config);
- }
-
- public function clearIndexConfig()
- {
- unset($this->index_config);
- }
-
- /**
- * The index configuration for this field. If unset, field indexing will
- * revert to the configuration defined by the `ancestor_field`. To
- * explicitly remove all indexes for this field, specify an index config
- * with an empty list of indexes.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Field.IndexConfig index_config = 2;
- * @param \Google\Cloud\Firestore\Admin\V1\Field\IndexConfig $var
- * @return $this
- */
- public function setIndexConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Field\IndexConfig::class);
- $this->index_config = $var;
-
- return $this;
- }
-
- /**
- * The TTL configuration for this `Field`.
- * Setting or unsetting this will enable or disable the TTL for
- * documents that have this `Field`.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Field.TtlConfig ttl_config = 3;
- * @return \Google\Cloud\Firestore\Admin\V1\Field\TtlConfig|null
- */
- public function getTtlConfig()
- {
- return $this->ttl_config;
- }
-
- public function hasTtlConfig()
- {
- return isset($this->ttl_config);
- }
-
- public function clearTtlConfig()
- {
- unset($this->ttl_config);
- }
-
- /**
- * The TTL configuration for this `Field`.
- * Setting or unsetting this will enable or disable the TTL for
- * documents that have this `Field`.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Field.TtlConfig ttl_config = 3;
- * @param \Google\Cloud\Firestore\Admin\V1\Field\TtlConfig $var
- * @return $this
- */
- public function setTtlConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Field\TtlConfig::class);
- $this->ttl_config = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Field/IndexConfig.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Field/IndexConfig.php
deleted file mode 100644
index 42a4d5ce8fd3..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Field/IndexConfig.php
+++ /dev/null
@@ -1,208 +0,0 @@
-google.firestore.admin.v1.Field.IndexConfig
- */
-class IndexConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * The indexes supported for this field.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Index indexes = 1;
- */
- private $indexes;
- /**
- * Output only. When true, the `Field`'s index configuration is set from the
- * configuration specified by the `ancestor_field`.
- * When false, the `Field`'s index configuration is defined explicitly.
- *
- * Generated from protobuf field bool uses_ancestor_config = 2;
- */
- protected $uses_ancestor_config = false;
- /**
- * Output only. Specifies the resource name of the `Field` from which this
- * field's index configuration is set (when `uses_ancestor_config` is true),
- * or from which it *would* be set if this field had no index configuration
- * (when `uses_ancestor_config` is false).
- *
- * Generated from protobuf field string ancestor_field = 3;
- */
- protected $ancestor_field = '';
- /**
- * Output only
- * When true, the `Field`'s index configuration is in the process of being
- * reverted. Once complete, the index config will transition to the same
- * state as the field specified by `ancestor_field`, at which point
- * `uses_ancestor_config` will be `true` and `reverting` will be `false`.
- *
- * Generated from protobuf field bool reverting = 4;
- */
- protected $reverting = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Firestore\Admin\V1\Index>|\Google\Protobuf\Internal\RepeatedField $indexes
- * The indexes supported for this field.
- * @type bool $uses_ancestor_config
- * Output only. When true, the `Field`'s index configuration is set from the
- * configuration specified by the `ancestor_field`.
- * When false, the `Field`'s index configuration is defined explicitly.
- * @type string $ancestor_field
- * Output only. Specifies the resource name of the `Field` from which this
- * field's index configuration is set (when `uses_ancestor_config` is true),
- * or from which it *would* be set if this field had no index configuration
- * (when `uses_ancestor_config` is false).
- * @type bool $reverting
- * Output only
- * When true, the `Field`'s index configuration is in the process of being
- * reverted. Once complete, the index config will transition to the same
- * state as the field specified by `ancestor_field`, at which point
- * `uses_ancestor_config` will be `true` and `reverting` will be `false`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Field::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The indexes supported for this field.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Index indexes = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getIndexes()
- {
- return $this->indexes;
- }
-
- /**
- * The indexes supported for this field.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Index indexes = 1;
- * @param array<\Google\Cloud\Firestore\Admin\V1\Index>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setIndexes($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\Admin\V1\Index::class);
- $this->indexes = $arr;
-
- return $this;
- }
-
- /**
- * Output only. When true, the `Field`'s index configuration is set from the
- * configuration specified by the `ancestor_field`.
- * When false, the `Field`'s index configuration is defined explicitly.
- *
- * Generated from protobuf field bool uses_ancestor_config = 2;
- * @return bool
- */
- public function getUsesAncestorConfig()
- {
- return $this->uses_ancestor_config;
- }
-
- /**
- * Output only. When true, the `Field`'s index configuration is set from the
- * configuration specified by the `ancestor_field`.
- * When false, the `Field`'s index configuration is defined explicitly.
- *
- * Generated from protobuf field bool uses_ancestor_config = 2;
- * @param bool $var
- * @return $this
- */
- public function setUsesAncestorConfig($var)
- {
- GPBUtil::checkBool($var);
- $this->uses_ancestor_config = $var;
-
- return $this;
- }
-
- /**
- * Output only. Specifies the resource name of the `Field` from which this
- * field's index configuration is set (when `uses_ancestor_config` is true),
- * or from which it *would* be set if this field had no index configuration
- * (when `uses_ancestor_config` is false).
- *
- * Generated from protobuf field string ancestor_field = 3;
- * @return string
- */
- public function getAncestorField()
- {
- return $this->ancestor_field;
- }
-
- /**
- * Output only. Specifies the resource name of the `Field` from which this
- * field's index configuration is set (when `uses_ancestor_config` is true),
- * or from which it *would* be set if this field had no index configuration
- * (when `uses_ancestor_config` is false).
- *
- * Generated from protobuf field string ancestor_field = 3;
- * @param string $var
- * @return $this
- */
- public function setAncestorField($var)
- {
- GPBUtil::checkString($var, True);
- $this->ancestor_field = $var;
-
- return $this;
- }
-
- /**
- * Output only
- * When true, the `Field`'s index configuration is in the process of being
- * reverted. Once complete, the index config will transition to the same
- * state as the field specified by `ancestor_field`, at which point
- * `uses_ancestor_config` will be `true` and `reverting` will be `false`.
- *
- * Generated from protobuf field bool reverting = 4;
- * @return bool
- */
- public function getReverting()
- {
- return $this->reverting;
- }
-
- /**
- * Output only
- * When true, the `Field`'s index configuration is in the process of being
- * reverted. Once complete, the index config will transition to the same
- * state as the field specified by `ancestor_field`, at which point
- * `uses_ancestor_config` will be `true` and `reverting` will be `false`.
- *
- * Generated from protobuf field bool reverting = 4;
- * @param bool $var
- * @return $this
- */
- public function setReverting($var)
- {
- GPBUtil::checkBool($var);
- $this->reverting = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(IndexConfig::class, \Google\Cloud\Firestore\Admin\V1\Field_IndexConfig::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Field/TtlConfig.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Field/TtlConfig.php
deleted file mode 100644
index 7bb0a4304ab4..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Field/TtlConfig.php
+++ /dev/null
@@ -1,76 +0,0 @@
-google.firestore.admin.v1.Field.TtlConfig
- */
-class TtlConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The state of the TTL configuration.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Field.TtlConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $state
- * Output only. The state of the TTL configuration.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Field::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The state of the TTL configuration.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Field.TtlConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. The state of the TTL configuration.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Field.TtlConfig.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Field\TtlConfig\State::class);
- $this->state = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(TtlConfig::class, \Google\Cloud\Firestore\Admin\V1\Field_TtlConfig::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Field/TtlConfig/State.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Field/TtlConfig/State.php
deleted file mode 100644
index 7722ca6e7e0a..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Field/TtlConfig/State.php
+++ /dev/null
@@ -1,78 +0,0 @@
-google.firestore.admin.v1.Field.TtlConfig.State
- */
-class State
-{
- /**
- * The state is unspecified or unknown.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * The TTL is being applied. There is an active long-running operation to
- * track the change. Newly written documents will have TTLs applied as
- * requested. Requested TTLs on existing documents are still being
- * processed. When TTLs on all existing documents have been processed, the
- * state will move to 'ACTIVE'.
- *
- * Generated from protobuf enum CREATING = 1;
- */
- const CREATING = 1;
- /**
- * The TTL is active for all documents.
- *
- * Generated from protobuf enum ACTIVE = 2;
- */
- const ACTIVE = 2;
- /**
- * The TTL configuration could not be enabled for all existing documents.
- * Newly written documents will continue to have their TTL applied.
- * The LRO returned when last attempting to enable TTL for this `Field`
- * has failed, and may have more details.
- *
- * Generated from protobuf enum NEEDS_REPAIR = 3;
- */
- const NEEDS_REPAIR = 3;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::CREATING => 'CREATING',
- self::ACTIVE => 'ACTIVE',
- self::NEEDS_REPAIR => 'NEEDS_REPAIR',
- ];
-
- 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(State::class, \Google\Cloud\Firestore\Admin\V1\Field_TtlConfig_State::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata.php
deleted file mode 100644
index 1d5d2218c70e..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata.php
+++ /dev/null
@@ -1,373 +0,0 @@
-google.firestore.admin.v1.FieldOperationMetadata
- */
-class FieldOperationMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- */
- protected $start_time = null;
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- */
- protected $end_time = null;
- /**
- * The field resource that this operation is acting on. For example:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
- *
- * Generated from protobuf field string field = 3;
- */
- protected $field = '';
- /**
- * A list of
- * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
- * which describe the intent of this operation.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
- */
- private $index_config_deltas;
- /**
- * The state of the operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState state = 5;
- */
- protected $state = 0;
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 6;
- */
- protected $progress_documents = null;
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 7;
- */
- protected $progress_bytes = null;
- /**
- * Describes the deltas of TTL configuration.
- *
- * Generated from protobuf field .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
- */
- protected $ttl_config_delta = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $start_time
- * The time this operation started.
- * @type \Google\Protobuf\Timestamp $end_time
- * The time this operation completed. Will be unset if operation still in
- * progress.
- * @type string $field
- * The field resource that this operation is acting on. For example:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
- * @type array<\Google\Cloud\Firestore\Admin\V1\FieldOperationMetadata\IndexConfigDelta>|\Google\Protobuf\Internal\RepeatedField $index_config_deltas
- * A list of
- * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
- * which describe the intent of this operation.
- * @type int $state
- * The state of the operation.
- * @type \Google\Cloud\Firestore\Admin\V1\Progress $progress_documents
- * The progress, in documents, of this operation.
- * @type \Google\Cloud\Firestore\Admin\V1\Progress $progress_bytes
- * The progress, in bytes, of this operation.
- * @type \Google\Cloud\Firestore\Admin\V1\FieldOperationMetadata\TtlConfigDelta $ttl_config_delta
- * Describes the deltas of TTL configuration.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Operation::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
- /**
- * The field resource that this operation is acting on. For example:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
- *
- * Generated from protobuf field string field = 3;
- * @return string
- */
- public function getField()
- {
- return $this->field;
- }
-
- /**
- * The field resource that this operation is acting on. For example:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
- *
- * Generated from protobuf field string field = 3;
- * @param string $var
- * @return $this
- */
- public function setField($var)
- {
- GPBUtil::checkString($var, True);
- $this->field = $var;
-
- return $this;
- }
-
- /**
- * A list of
- * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
- * which describe the intent of this operation.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getIndexConfigDeltas()
- {
- return $this->index_config_deltas;
- }
-
- /**
- * A list of
- * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
- * which describe the intent of this operation.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
- * @param array<\Google\Cloud\Firestore\Admin\V1\FieldOperationMetadata\IndexConfigDelta>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setIndexConfigDeltas($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\Admin\V1\FieldOperationMetadata\IndexConfigDelta::class);
- $this->index_config_deltas = $arr;
-
- return $this;
- }
-
- /**
- * The state of the operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState state = 5;
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * The state of the operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState state = 5;
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\OperationState::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 6;
- * @return \Google\Cloud\Firestore\Admin\V1\Progress|null
- */
- public function getProgressDocuments()
- {
- return $this->progress_documents;
- }
-
- public function hasProgressDocuments()
- {
- return isset($this->progress_documents);
- }
-
- public function clearProgressDocuments()
- {
- unset($this->progress_documents);
- }
-
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 6;
- * @param \Google\Cloud\Firestore\Admin\V1\Progress $var
- * @return $this
- */
- public function setProgressDocuments($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Progress::class);
- $this->progress_documents = $var;
-
- return $this;
- }
-
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 7;
- * @return \Google\Cloud\Firestore\Admin\V1\Progress|null
- */
- public function getProgressBytes()
- {
- return $this->progress_bytes;
- }
-
- public function hasProgressBytes()
- {
- return isset($this->progress_bytes);
- }
-
- public function clearProgressBytes()
- {
- unset($this->progress_bytes);
- }
-
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 7;
- * @param \Google\Cloud\Firestore\Admin\V1\Progress $var
- * @return $this
- */
- public function setProgressBytes($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Progress::class);
- $this->progress_bytes = $var;
-
- return $this;
- }
-
- /**
- * Describes the deltas of TTL configuration.
- *
- * Generated from protobuf field .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
- * @return \Google\Cloud\Firestore\Admin\V1\FieldOperationMetadata\TtlConfigDelta|null
- */
- public function getTtlConfigDelta()
- {
- return $this->ttl_config_delta;
- }
-
- public function hasTtlConfigDelta()
- {
- return isset($this->ttl_config_delta);
- }
-
- public function clearTtlConfigDelta()
- {
- unset($this->ttl_config_delta);
- }
-
- /**
- * Describes the deltas of TTL configuration.
- *
- * Generated from protobuf field .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
- * @param \Google\Cloud\Firestore\Admin\V1\FieldOperationMetadata\TtlConfigDelta $var
- * @return $this
- */
- public function setTtlConfigDelta($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\FieldOperationMetadata\TtlConfigDelta::class);
- $this->ttl_config_delta = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata/IndexConfigDelta.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata/IndexConfigDelta.php
deleted file mode 100644
index 1ad9e51b4401..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata/IndexConfigDelta.php
+++ /dev/null
@@ -1,114 +0,0 @@
-google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
- */
-class IndexConfigDelta extends \Google\Protobuf\Internal\Message
-{
- /**
- * Specifies how the index is changing.
- *
- * Generated from protobuf field .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
- */
- protected $change_type = 0;
- /**
- * The index being changed.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index index = 2;
- */
- protected $index = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $change_type
- * Specifies how the index is changing.
- * @type \Google\Cloud\Firestore\Admin\V1\Index $index
- * The index being changed.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Operation::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Specifies how the index is changing.
- *
- * Generated from protobuf field .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
- * @return int
- */
- public function getChangeType()
- {
- return $this->change_type;
- }
-
- /**
- * Specifies how the index is changing.
- *
- * Generated from protobuf field .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
- * @param int $var
- * @return $this
- */
- public function setChangeType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\FieldOperationMetadata\IndexConfigDelta\ChangeType::class);
- $this->change_type = $var;
-
- return $this;
- }
-
- /**
- * The index being changed.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index index = 2;
- * @return \Google\Cloud\Firestore\Admin\V1\Index|null
- */
- public function getIndex()
- {
- return $this->index;
- }
-
- public function hasIndex()
- {
- return isset($this->index);
- }
-
- public function clearIndex()
- {
- unset($this->index);
- }
-
- /**
- * The index being changed.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index index = 2;
- * @param \Google\Cloud\Firestore\Admin\V1\Index $var
- * @return $this
- */
- public function setIndex($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Index::class);
- $this->index = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(IndexConfigDelta::class, \Google\Cloud\Firestore\Admin\V1\FieldOperationMetadata_IndexConfigDelta::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata/IndexConfigDelta/ChangeType.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata/IndexConfigDelta/ChangeType.php
deleted file mode 100644
index df7d29035371..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata/IndexConfigDelta/ChangeType.php
+++ /dev/null
@@ -1,64 +0,0 @@
-google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
- */
-class ChangeType
-{
- /**
- * The type of change is not specified or known.
- *
- * Generated from protobuf enum CHANGE_TYPE_UNSPECIFIED = 0;
- */
- const CHANGE_TYPE_UNSPECIFIED = 0;
- /**
- * The single field index is being added.
- *
- * Generated from protobuf enum ADD = 1;
- */
- const ADD = 1;
- /**
- * The single field index is being removed.
- *
- * Generated from protobuf enum REMOVE = 2;
- */
- const REMOVE = 2;
-
- private static $valueToName = [
- self::CHANGE_TYPE_UNSPECIFIED => 'CHANGE_TYPE_UNSPECIFIED',
- self::ADD => 'ADD',
- self::REMOVE => 'REMOVE',
- ];
-
- 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(ChangeType::class, \Google\Cloud\Firestore\Admin\V1\FieldOperationMetadata_IndexConfigDelta_ChangeType::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata/TtlConfigDelta.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata/TtlConfigDelta.php
deleted file mode 100644
index a9d9a6a54440..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata/TtlConfigDelta.php
+++ /dev/null
@@ -1,70 +0,0 @@
-google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta
- */
-class TtlConfigDelta extends \Google\Protobuf\Internal\Message
-{
- /**
- * Specifies how the TTL configuration is changing.
- *
- * Generated from protobuf field .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType change_type = 1;
- */
- protected $change_type = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $change_type
- * Specifies how the TTL configuration is changing.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Operation::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Specifies how the TTL configuration is changing.
- *
- * Generated from protobuf field .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType change_type = 1;
- * @return int
- */
- public function getChangeType()
- {
- return $this->change_type;
- }
-
- /**
- * Specifies how the TTL configuration is changing.
- *
- * Generated from protobuf field .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType change_type = 1;
- * @param int $var
- * @return $this
- */
- public function setChangeType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\FieldOperationMetadata\TtlConfigDelta\ChangeType::class);
- $this->change_type = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(TtlConfigDelta::class, \Google\Cloud\Firestore\Admin\V1\FieldOperationMetadata_TtlConfigDelta::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata/TtlConfigDelta/ChangeType.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata/TtlConfigDelta/ChangeType.php
deleted file mode 100644
index 600dbab57322..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/FieldOperationMetadata/TtlConfigDelta/ChangeType.php
+++ /dev/null
@@ -1,64 +0,0 @@
-google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType
- */
-class ChangeType
-{
- /**
- * The type of change is not specified or known.
- *
- * Generated from protobuf enum CHANGE_TYPE_UNSPECIFIED = 0;
- */
- const CHANGE_TYPE_UNSPECIFIED = 0;
- /**
- * The TTL config is being added.
- *
- * Generated from protobuf enum ADD = 1;
- */
- const ADD = 1;
- /**
- * The TTL config is being removed.
- *
- * Generated from protobuf enum REMOVE = 2;
- */
- const REMOVE = 2;
-
- private static $valueToName = [
- self::CHANGE_TYPE_UNSPECIFIED => 'CHANGE_TYPE_UNSPECIFIED',
- self::ADD => 'ADD',
- self::REMOVE => 'REMOVE',
- ];
-
- 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(ChangeType::class, \Google\Cloud\Firestore\Admin\V1\FieldOperationMetadata_TtlConfigDelta_ChangeType::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetBackupRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetBackupRequest.php
deleted file mode 100644
index 9663203b71d3..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetBackupRequest.php
+++ /dev/null
@@ -1,88 +0,0 @@
-google.firestore.admin.v1.GetBackupRequest
- */
-class GetBackupRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the backup to fetch.
- * Format is `projects/{project}/locations/{location}/backups/{backup}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the backup to fetch.
- *
- * Format is `projects/{project}/locations/{location}/backups/{backup}`. Please see
- * {@see FirestoreAdminClient::backupName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\GetBackupRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the backup to fetch.
- * Format is `projects/{project}/locations/{location}/backups/{backup}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the backup to fetch.
- * Format is `projects/{project}/locations/{location}/backups/{backup}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the backup to fetch.
- * Format is `projects/{project}/locations/{location}/backups/{backup}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetBackupScheduleRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetBackupScheduleRequest.php
deleted file mode 100644
index ce2dfbc7e39f..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetBackupScheduleRequest.php
+++ /dev/null
@@ -1,93 +0,0 @@
-google.firestore.admin.v1.GetBackupScheduleRequest
- */
-class GetBackupScheduleRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the backup schedule.
- * Format
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. The name of the backup schedule.
- *
- * Format
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- * Please see {@see FirestoreAdminClient::backupScheduleName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\GetBackupScheduleRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The name of the backup schedule.
- * Format
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the backup schedule.
- * Format
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The name of the backup schedule.
- * Format
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetDatabaseRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetDatabaseRequest.php
deleted file mode 100644
index 21451d1b0a94..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetDatabaseRequest.php
+++ /dev/null
@@ -1,87 +0,0 @@
-google.firestore.admin.v1.GetDatabaseRequest
- */
-class GetDatabaseRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. A name of the form
- * `projects/{project_id}/databases/{database_id}`
- * Please see {@see FirestoreAdminClient::databaseName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\GetDatabaseRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetFieldRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetFieldRequest.php
deleted file mode 100644
index 3b25bbe324d8..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetFieldRequest.php
+++ /dev/null
@@ -1,87 +0,0 @@
-google.firestore.admin.v1.GetFieldRequest
- */
-class GetFieldRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
- * Please see {@see FirestoreAdminClient::fieldName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\GetFieldRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetIndexRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetIndexRequest.php
deleted file mode 100644
index 5b700df02b53..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/GetIndexRequest.php
+++ /dev/null
@@ -1,87 +0,0 @@
-google.firestore.admin.v1.GetIndexRequest
- */
-class GetIndexRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- * Please see {@see FirestoreAdminClient::indexName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\GetIndexRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ImportDocumentsMetadata.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ImportDocumentsMetadata.php
deleted file mode 100644
index 35b530fe12b7..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ImportDocumentsMetadata.php
+++ /dev/null
@@ -1,351 +0,0 @@
-google.firestore.admin.v1.ImportDocumentsMetadata
- */
-class ImportDocumentsMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- */
- protected $start_time = null;
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- */
- protected $end_time = null;
- /**
- * The state of the import operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState operation_state = 3;
- */
- protected $operation_state = 0;
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 4;
- */
- protected $progress_documents = null;
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 5;
- */
- protected $progress_bytes = null;
- /**
- * Which collection IDs are being imported.
- *
- * Generated from protobuf field repeated string collection_ids = 6;
- */
- private $collection_ids;
- /**
- * The location of the documents being imported.
- *
- * Generated from protobuf field string input_uri_prefix = 7;
- */
- protected $input_uri_prefix = '';
- /**
- * Which namespace IDs are being imported.
- *
- * Generated from protobuf field repeated string namespace_ids = 8;
- */
- private $namespace_ids;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $start_time
- * The time this operation started.
- * @type \Google\Protobuf\Timestamp $end_time
- * The time this operation completed. Will be unset if operation still in
- * progress.
- * @type int $operation_state
- * The state of the import operation.
- * @type \Google\Cloud\Firestore\Admin\V1\Progress $progress_documents
- * The progress, in documents, of this operation.
- * @type \Google\Cloud\Firestore\Admin\V1\Progress $progress_bytes
- * The progress, in bytes, of this operation.
- * @type array|\Google\Protobuf\Internal\RepeatedField $collection_ids
- * Which collection IDs are being imported.
- * @type string $input_uri_prefix
- * The location of the documents being imported.
- * @type array|\Google\Protobuf\Internal\RepeatedField $namespace_ids
- * Which namespace IDs are being imported.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Operation::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
- /**
- * The state of the import operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState operation_state = 3;
- * @return int
- */
- public function getOperationState()
- {
- return $this->operation_state;
- }
-
- /**
- * The state of the import operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState operation_state = 3;
- * @param int $var
- * @return $this
- */
- public function setOperationState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\OperationState::class);
- $this->operation_state = $var;
-
- return $this;
- }
-
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 4;
- * @return \Google\Cloud\Firestore\Admin\V1\Progress|null
- */
- public function getProgressDocuments()
- {
- return $this->progress_documents;
- }
-
- public function hasProgressDocuments()
- {
- return isset($this->progress_documents);
- }
-
- public function clearProgressDocuments()
- {
- unset($this->progress_documents);
- }
-
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 4;
- * @param \Google\Cloud\Firestore\Admin\V1\Progress $var
- * @return $this
- */
- public function setProgressDocuments($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Progress::class);
- $this->progress_documents = $var;
-
- return $this;
- }
-
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 5;
- * @return \Google\Cloud\Firestore\Admin\V1\Progress|null
- */
- public function getProgressBytes()
- {
- return $this->progress_bytes;
- }
-
- public function hasProgressBytes()
- {
- return isset($this->progress_bytes);
- }
-
- public function clearProgressBytes()
- {
- unset($this->progress_bytes);
- }
-
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 5;
- * @param \Google\Cloud\Firestore\Admin\V1\Progress $var
- * @return $this
- */
- public function setProgressBytes($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Progress::class);
- $this->progress_bytes = $var;
-
- return $this;
- }
-
- /**
- * Which collection IDs are being imported.
- *
- * Generated from protobuf field repeated string collection_ids = 6;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCollectionIds()
- {
- return $this->collection_ids;
- }
-
- /**
- * Which collection IDs are being imported.
- *
- * Generated from protobuf field repeated string collection_ids = 6;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCollectionIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->collection_ids = $arr;
-
- return $this;
- }
-
- /**
- * The location of the documents being imported.
- *
- * Generated from protobuf field string input_uri_prefix = 7;
- * @return string
- */
- public function getInputUriPrefix()
- {
- return $this->input_uri_prefix;
- }
-
- /**
- * The location of the documents being imported.
- *
- * Generated from protobuf field string input_uri_prefix = 7;
- * @param string $var
- * @return $this
- */
- public function setInputUriPrefix($var)
- {
- GPBUtil::checkString($var, True);
- $this->input_uri_prefix = $var;
-
- return $this;
- }
-
- /**
- * Which namespace IDs are being imported.
- *
- * Generated from protobuf field repeated string namespace_ids = 8;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getNamespaceIds()
- {
- return $this->namespace_ids;
- }
-
- /**
- * Which namespace IDs are being imported.
- *
- * Generated from protobuf field repeated string namespace_ids = 8;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setNamespaceIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->namespace_ids = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ImportDocumentsRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ImportDocumentsRequest.php
deleted file mode 100644
index 56488d0a8ef9..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ImportDocumentsRequest.php
+++ /dev/null
@@ -1,225 +0,0 @@
-google.firestore.admin.v1.ImportDocumentsRequest
- */
-class ImportDocumentsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Database to import into. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Which collection IDs to import. Unspecified means all collections included
- * in the import. Each collection ID in this list must be unique.
- *
- * Generated from protobuf field repeated string collection_ids = 2;
- */
- private $collection_ids;
- /**
- * Location of the exported files.
- * This must match the output_uri_prefix of an ExportDocumentsResponse from
- * an export that has completed successfully.
- * See:
- * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
- *
- * Generated from protobuf field string input_uri_prefix = 3;
- */
- protected $input_uri_prefix = '';
- /**
- * An empty list represents all namespaces. This is the preferred
- * usage for databases that don't use namespaces.
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to include them. Each namespace in this list must be unique.
- *
- * Generated from protobuf field repeated string namespace_ids = 4;
- */
- private $namespace_ids;
-
- /**
- * @param string $name Required. Database to import into. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`. Please see
- * {@see FirestoreAdminClient::databaseName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\ImportDocumentsRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Database to import into. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- * @type array|\Google\Protobuf\Internal\RepeatedField $collection_ids
- * Which collection IDs to import. Unspecified means all collections included
- * in the import. Each collection ID in this list must be unique.
- * @type string $input_uri_prefix
- * Location of the exported files.
- * This must match the output_uri_prefix of an ExportDocumentsResponse from
- * an export that has completed successfully.
- * See:
- * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
- * @type array|\Google\Protobuf\Internal\RepeatedField $namespace_ids
- * An empty list represents all namespaces. This is the preferred
- * usage for databases that don't use namespaces.
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to include them. Each namespace in this list must be unique.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Database to import into. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Database to import into. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Which collection IDs to import. Unspecified means all collections included
- * in the import. Each collection ID in this list must be unique.
- *
- * Generated from protobuf field repeated string collection_ids = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCollectionIds()
- {
- return $this->collection_ids;
- }
-
- /**
- * Which collection IDs to import. Unspecified means all collections included
- * in the import. Each collection ID in this list must be unique.
- *
- * Generated from protobuf field repeated string collection_ids = 2;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCollectionIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->collection_ids = $arr;
-
- return $this;
- }
-
- /**
- * Location of the exported files.
- * This must match the output_uri_prefix of an ExportDocumentsResponse from
- * an export that has completed successfully.
- * See:
- * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
- *
- * Generated from protobuf field string input_uri_prefix = 3;
- * @return string
- */
- public function getInputUriPrefix()
- {
- return $this->input_uri_prefix;
- }
-
- /**
- * Location of the exported files.
- * This must match the output_uri_prefix of an ExportDocumentsResponse from
- * an export that has completed successfully.
- * See:
- * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
- *
- * Generated from protobuf field string input_uri_prefix = 3;
- * @param string $var
- * @return $this
- */
- public function setInputUriPrefix($var)
- {
- GPBUtil::checkString($var, True);
- $this->input_uri_prefix = $var;
-
- return $this;
- }
-
- /**
- * An empty list represents all namespaces. This is the preferred
- * usage for databases that don't use namespaces.
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to include them. Each namespace in this list must be unique.
- *
- * Generated from protobuf field repeated string namespace_ids = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getNamespaceIds()
- {
- return $this->namespace_ids;
- }
-
- /**
- * An empty list represents all namespaces. This is the preferred
- * usage for databases that don't use namespaces.
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to include them. Each namespace in this list must be unique.
- *
- * Generated from protobuf field repeated string namespace_ids = 4;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setNamespaceIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->namespace_ids = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index.php
deleted file mode 100644
index f1d8114eafe6..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index.php
+++ /dev/null
@@ -1,268 +0,0 @@
-google.firestore.admin.v1.Index
- */
-class Index extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. A server defined name for this index.
- * The form of this name for composite indexes will be:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
- * For single field indexes, this field will be empty.
- *
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
- /**
- * Indexes with a collection query scope specified allow queries
- * against a collection that is the child of a specific document, specified at
- * query time, and that has the same collection ID.
- * Indexes with a collection group query scope specified allow queries against
- * all collections descended from a specific document, specified at query
- * time, and that have the same collection ID as this index.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.QueryScope query_scope = 2;
- */
- protected $query_scope = 0;
- /**
- * The API scope supported by this index.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.ApiScope api_scope = 5;
- */
- protected $api_scope = 0;
- /**
- * The fields supported by this index.
- * For composite indexes, this requires a minimum of 2 and a maximum of 100
- * fields. The last field entry is always for the field path `__name__`. If,
- * on creation, `__name__` was not specified as the last field, it will be
- * added automatically with the same direction as that of the last field
- * defined. If the final field in a composite index is not directional, the
- * `__name__` will be ordered ASCENDING (unless explicitly specified).
- * For single field indexes, this will always be exactly one entry with a
- * field path equal to the field path of the associated field.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
- */
- private $fields;
- /**
- * Output only. The serving state of the index.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.State state = 4;
- */
- protected $state = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. A server defined name for this index.
- * The form of this name for composite indexes will be:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
- * For single field indexes, this field will be empty.
- * @type int $query_scope
- * Indexes with a collection query scope specified allow queries
- * against a collection that is the child of a specific document, specified at
- * query time, and that has the same collection ID.
- * Indexes with a collection group query scope specified allow queries against
- * all collections descended from a specific document, specified at query
- * time, and that have the same collection ID as this index.
- * @type int $api_scope
- * The API scope supported by this index.
- * @type array<\Google\Cloud\Firestore\Admin\V1\Index\IndexField>|\Google\Protobuf\Internal\RepeatedField $fields
- * The fields supported by this index.
- * For composite indexes, this requires a minimum of 2 and a maximum of 100
- * fields. The last field entry is always for the field path `__name__`. If,
- * on creation, `__name__` was not specified as the last field, it will be
- * added automatically with the same direction as that of the last field
- * defined. If the final field in a composite index is not directional, the
- * `__name__` will be ordered ASCENDING (unless explicitly specified).
- * For single field indexes, this will always be exactly one entry with a
- * field path equal to the field path of the associated field.
- * @type int $state
- * Output only. The serving state of the index.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Index::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. A server defined name for this index.
- * The form of this name for composite indexes will be:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
- * For single field indexes, this field will be empty.
- *
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. A server defined name for this index.
- * The form of this name for composite indexes will be:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{composite_index_id}`
- * For single field indexes, this field will be empty.
- *
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Indexes with a collection query scope specified allow queries
- * against a collection that is the child of a specific document, specified at
- * query time, and that has the same collection ID.
- * Indexes with a collection group query scope specified allow queries against
- * all collections descended from a specific document, specified at query
- * time, and that have the same collection ID as this index.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.QueryScope query_scope = 2;
- * @return int
- */
- public function getQueryScope()
- {
- return $this->query_scope;
- }
-
- /**
- * Indexes with a collection query scope specified allow queries
- * against a collection that is the child of a specific document, specified at
- * query time, and that has the same collection ID.
- * Indexes with a collection group query scope specified allow queries against
- * all collections descended from a specific document, specified at query
- * time, and that have the same collection ID as this index.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.QueryScope query_scope = 2;
- * @param int $var
- * @return $this
- */
- public function setQueryScope($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Index\QueryScope::class);
- $this->query_scope = $var;
-
- return $this;
- }
-
- /**
- * The API scope supported by this index.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.ApiScope api_scope = 5;
- * @return int
- */
- public function getApiScope()
- {
- return $this->api_scope;
- }
-
- /**
- * The API scope supported by this index.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.ApiScope api_scope = 5;
- * @param int $var
- * @return $this
- */
- public function setApiScope($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Index\ApiScope::class);
- $this->api_scope = $var;
-
- return $this;
- }
-
- /**
- * The fields supported by this index.
- * For composite indexes, this requires a minimum of 2 and a maximum of 100
- * fields. The last field entry is always for the field path `__name__`. If,
- * on creation, `__name__` was not specified as the last field, it will be
- * added automatically with the same direction as that of the last field
- * defined. If the final field in a composite index is not directional, the
- * `__name__` will be ordered ASCENDING (unless explicitly specified).
- * For single field indexes, this will always be exactly one entry with a
- * field path equal to the field path of the associated field.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFields()
- {
- return $this->fields;
- }
-
- /**
- * The fields supported by this index.
- * For composite indexes, this requires a minimum of 2 and a maximum of 100
- * fields. The last field entry is always for the field path `__name__`. If,
- * on creation, `__name__` was not specified as the last field, it will be
- * added automatically with the same direction as that of the last field
- * defined. If the final field in a composite index is not directional, the
- * `__name__` will be ordered ASCENDING (unless explicitly specified).
- * For single field indexes, this will always be exactly one entry with a
- * field path equal to the field path of the associated field.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Index.IndexField fields = 3;
- * @param array<\Google\Cloud\Firestore\Admin\V1\Index\IndexField>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFields($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\Admin\V1\Index\IndexField::class);
- $this->fields = $arr;
-
- return $this;
- }
-
- /**
- * Output only. The serving state of the index.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.State state = 4;
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. The serving state of the index.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.State state = 4;
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Index\State::class);
- $this->state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/ApiScope.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/ApiScope.php
deleted file mode 100644
index d85fe6616eec..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/ApiScope.php
+++ /dev/null
@@ -1,59 +0,0 @@
-google.firestore.admin.v1.Index.ApiScope
- */
-class ApiScope
-{
- /**
- * The index can only be used by the Firestore Native query API.
- * This is the default.
- *
- * Generated from protobuf enum ANY_API = 0;
- */
- const ANY_API = 0;
- /**
- * The index can only be used by the Firestore in Datastore Mode query API.
- *
- * Generated from protobuf enum DATASTORE_MODE_API = 1;
- */
- const DATASTORE_MODE_API = 1;
-
- private static $valueToName = [
- self::ANY_API => 'ANY_API',
- self::DATASTORE_MODE_API => 'DATASTORE_MODE_API',
- ];
-
- 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(ApiScope::class, \Google\Cloud\Firestore\Admin\V1\Index_ApiScope::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField.php
deleted file mode 100644
index 0f49391e6a9f..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField.php
+++ /dev/null
@@ -1,194 +0,0 @@
-google.firestore.admin.v1.Index.IndexField
- */
-class IndexField extends \Google\Protobuf\Internal\Message
-{
- /**
- * Can be __name__.
- * For single field indexes, this must match the name of the field or may
- * be omitted.
- *
- * Generated from protobuf field string field_path = 1;
- */
- protected $field_path = '';
- protected $value_mode;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $field_path
- * Can be __name__.
- * For single field indexes, this must match the name of the field or may
- * be omitted.
- * @type int $order
- * Indicates that this field supports ordering by the specified order or
- * comparing using =, !=, <, <=, >, >=.
- * @type int $array_config
- * Indicates that this field supports operations on `array_value`s.
- * @type \Google\Cloud\Firestore\Admin\V1\Index\IndexField\VectorConfig $vector_config
- * Indicates that this field supports nearest neighbor and distance
- * operations on vector.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Index::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Can be __name__.
- * For single field indexes, this must match the name of the field or may
- * be omitted.
- *
- * Generated from protobuf field string field_path = 1;
- * @return string
- */
- public function getFieldPath()
- {
- return $this->field_path;
- }
-
- /**
- * Can be __name__.
- * For single field indexes, this must match the name of the field or may
- * be omitted.
- *
- * Generated from protobuf field string field_path = 1;
- * @param string $var
- * @return $this
- */
- public function setFieldPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->field_path = $var;
-
- return $this;
- }
-
- /**
- * Indicates that this field supports ordering by the specified order or
- * comparing using =, !=, <, <=, >, >=.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.IndexField.Order order = 2;
- * @return int
- */
- public function getOrder()
- {
- return $this->readOneof(2);
- }
-
- public function hasOrder()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Indicates that this field supports ordering by the specified order or
- * comparing using =, !=, <, <=, >, >=.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.IndexField.Order order = 2;
- * @param int $var
- * @return $this
- */
- public function setOrder($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Index\IndexField\Order::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * Indicates that this field supports operations on `array_value`s.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
- * @return int
- */
- public function getArrayConfig()
- {
- return $this->readOneof(3);
- }
-
- public function hasArrayConfig()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * Indicates that this field supports operations on `array_value`s.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.IndexField.ArrayConfig array_config = 3;
- * @param int $var
- * @return $this
- */
- public function setArrayConfig($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\Index\IndexField\ArrayConfig::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * Indicates that this field supports nearest neighbor and distance
- * operations on vector.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4;
- * @return \Google\Cloud\Firestore\Admin\V1\Index\IndexField\VectorConfig|null
- */
- public function getVectorConfig()
- {
- return $this->readOneof(4);
- }
-
- public function hasVectorConfig()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Indicates that this field supports nearest neighbor and distance
- * operations on vector.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.IndexField.VectorConfig vector_config = 4;
- * @param \Google\Cloud\Firestore\Admin\V1\Index\IndexField\VectorConfig $var
- * @return $this
- */
- public function setVectorConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Index\IndexField\VectorConfig::class);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getValueMode()
- {
- return $this->whichOneof("value_mode");
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(IndexField::class, \Google\Cloud\Firestore\Admin\V1\Index_IndexField::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField/ArrayConfig.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField/ArrayConfig.php
deleted file mode 100644
index e7ba6fe94de4..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField/ArrayConfig.php
+++ /dev/null
@@ -1,57 +0,0 @@
-google.firestore.admin.v1.Index.IndexField.ArrayConfig
- */
-class ArrayConfig
-{
- /**
- * The index does not support additional array queries.
- *
- * Generated from protobuf enum ARRAY_CONFIG_UNSPECIFIED = 0;
- */
- const ARRAY_CONFIG_UNSPECIFIED = 0;
- /**
- * The index supports array containment queries.
- *
- * Generated from protobuf enum CONTAINS = 1;
- */
- const CONTAINS = 1;
-
- private static $valueToName = [
- self::ARRAY_CONFIG_UNSPECIFIED => 'ARRAY_CONFIG_UNSPECIFIED',
- self::CONTAINS => 'CONTAINS',
- ];
-
- 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(ArrayConfig::class, \Google\Cloud\Firestore\Admin\V1\Index_IndexField_ArrayConfig::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField/Order.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField/Order.php
deleted file mode 100644
index d523938322b4..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField/Order.php
+++ /dev/null
@@ -1,64 +0,0 @@
-google.firestore.admin.v1.Index.IndexField.Order
- */
-class Order
-{
- /**
- * The ordering is unspecified. Not a valid option.
- *
- * Generated from protobuf enum ORDER_UNSPECIFIED = 0;
- */
- const ORDER_UNSPECIFIED = 0;
- /**
- * The field is ordered by ascending field value.
- *
- * Generated from protobuf enum ASCENDING = 1;
- */
- const ASCENDING = 1;
- /**
- * The field is ordered by descending field value.
- *
- * Generated from protobuf enum DESCENDING = 2;
- */
- const DESCENDING = 2;
-
- private static $valueToName = [
- self::ORDER_UNSPECIFIED => 'ORDER_UNSPECIFIED',
- self::ASCENDING => 'ASCENDING',
- self::DESCENDING => 'DESCENDING',
- ];
-
- 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(Order::class, \Google\Cloud\Firestore\Admin\V1\Index_IndexField_Order::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField/VectorConfig.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField/VectorConfig.php
deleted file mode 100644
index 7f7d1a63104c..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField/VectorConfig.php
+++ /dev/null
@@ -1,120 +0,0 @@
-google.firestore.admin.v1.Index.IndexField.VectorConfig
- */
-class VectorConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The vector dimension this configuration applies to.
- * The resulting index will only include vectors of this dimension, and
- * can be used for vector search with the same dimension.
- *
- * Generated from protobuf field int32 dimension = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $dimension = 0;
- protected $type;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $dimension
- * Required. The vector dimension this configuration applies to.
- * The resulting index will only include vectors of this dimension, and
- * can be used for vector search with the same dimension.
- * @type \Google\Cloud\Firestore\Admin\V1\Index\IndexField\VectorConfig\FlatIndex $flat
- * Indicates the vector index is a flat index.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Index::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The vector dimension this configuration applies to.
- * The resulting index will only include vectors of this dimension, and
- * can be used for vector search with the same dimension.
- *
- * Generated from protobuf field int32 dimension = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getDimension()
- {
- return $this->dimension;
- }
-
- /**
- * Required. The vector dimension this configuration applies to.
- * The resulting index will only include vectors of this dimension, and
- * can be used for vector search with the same dimension.
- *
- * Generated from protobuf field int32 dimension = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setDimension($var)
- {
- GPBUtil::checkInt32($var);
- $this->dimension = $var;
-
- return $this;
- }
-
- /**
- * Indicates the vector index is a flat index.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex flat = 2;
- * @return \Google\Cloud\Firestore\Admin\V1\Index\IndexField\VectorConfig\FlatIndex|null
- */
- public function getFlat()
- {
- return $this->readOneof(2);
- }
-
- public function hasFlat()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Indicates the vector index is a flat index.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex flat = 2;
- * @param \Google\Cloud\Firestore\Admin\V1\Index\IndexField\VectorConfig\FlatIndex $var
- * @return $this
- */
- public function setFlat($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Index\IndexField\VectorConfig\FlatIndex::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getType()
- {
- return $this->whichOneof("type");
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(VectorConfig::class, \Google\Cloud\Firestore\Admin\V1\Index_IndexField_VectorConfig::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField/VectorConfig/FlatIndex.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField/VectorConfig/FlatIndex.php
deleted file mode 100644
index b2321214c64d..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/IndexField/VectorConfig/FlatIndex.php
+++ /dev/null
@@ -1,37 +0,0 @@
-google.firestore.admin.v1.Index.IndexField.VectorConfig.FlatIndex
- */
-class FlatIndex extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Index::initOnce();
- parent::__construct($data);
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(FlatIndex::class, \Google\Cloud\Firestore\Admin\V1\Index_IndexField_VectorConfig_FlatIndex::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/QueryScope.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/QueryScope.php
deleted file mode 100644
index f368fa80f89d..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/QueryScope.php
+++ /dev/null
@@ -1,77 +0,0 @@
-google.firestore.admin.v1.Index.QueryScope
- */
-class QueryScope
-{
- /**
- * The query scope is unspecified. Not a valid option.
- *
- * Generated from protobuf enum QUERY_SCOPE_UNSPECIFIED = 0;
- */
- const QUERY_SCOPE_UNSPECIFIED = 0;
- /**
- * Indexes with a collection query scope specified allow queries
- * against a collection that is the child of a specific document, specified
- * at query time, and that has the collection ID specified by the index.
- *
- * Generated from protobuf enum COLLECTION = 1;
- */
- const COLLECTION = 1;
- /**
- * Indexes with a collection group query scope specified allow queries
- * against all collections that has the collection ID specified by the
- * index.
- *
- * Generated from protobuf enum COLLECTION_GROUP = 2;
- */
- const COLLECTION_GROUP = 2;
- /**
- * Include all the collections's ancestor in the index. Only available for
- * Datastore Mode databases.
- *
- * Generated from protobuf enum COLLECTION_RECURSIVE = 3;
- */
- const COLLECTION_RECURSIVE = 3;
-
- private static $valueToName = [
- self::QUERY_SCOPE_UNSPECIFIED => 'QUERY_SCOPE_UNSPECIFIED',
- self::COLLECTION => 'COLLECTION',
- self::COLLECTION_GROUP => 'COLLECTION_GROUP',
- self::COLLECTION_RECURSIVE => 'COLLECTION_RECURSIVE',
- ];
-
- 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(QueryScope::class, \Google\Cloud\Firestore\Admin\V1\Index_QueryScope::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/State.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/State.php
deleted file mode 100644
index d9f96475cd8e..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Index/State.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.firestore.admin.v1.Index.State
- */
-class State
-{
- /**
- * The state is unspecified.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * The index is being created.
- * There is an active long-running operation for the index.
- * The index is updated when writing a document.
- * Some index data may exist.
- *
- * Generated from protobuf enum CREATING = 1;
- */
- const CREATING = 1;
- /**
- * The index is ready to be used.
- * The index is updated when writing a document.
- * The index is fully populated from all stored documents it applies to.
- *
- * Generated from protobuf enum READY = 2;
- */
- const READY = 2;
- /**
- * The index was being created, but something went wrong.
- * There is no active long-running operation for the index,
- * and the most recently finished long-running operation failed.
- * The index is not updated when writing a document.
- * Some index data may exist.
- * Use the google.longrunning.Operations API to determine why the operation
- * that last attempted to create this index failed, then re-create the
- * index.
- *
- * Generated from protobuf enum NEEDS_REPAIR = 3;
- */
- const NEEDS_REPAIR = 3;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::CREATING => 'CREATING',
- self::READY => 'READY',
- self::NEEDS_REPAIR => 'NEEDS_REPAIR',
- ];
-
- 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(State::class, \Google\Cloud\Firestore\Admin\V1\Index_State::class);
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/IndexOperationMetadata.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/IndexOperationMetadata.php
deleted file mode 100644
index 4144b5459434..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/IndexOperationMetadata.php
+++ /dev/null
@@ -1,287 +0,0 @@
-google.firestore.admin.v1.IndexOperationMetadata
- */
-class IndexOperationMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- */
- protected $start_time = null;
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- */
- protected $end_time = null;
- /**
- * The index resource that this operation is acting on. For example:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- *
- * Generated from protobuf field string index = 3;
- */
- protected $index = '';
- /**
- * The state of the operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState state = 4;
- */
- protected $state = 0;
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 5;
- */
- protected $progress_documents = null;
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 6;
- */
- protected $progress_bytes = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $start_time
- * The time this operation started.
- * @type \Google\Protobuf\Timestamp $end_time
- * The time this operation completed. Will be unset if operation still in
- * progress.
- * @type string $index
- * The index resource that this operation is acting on. For example:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- * @type int $state
- * The state of the operation.
- * @type \Google\Cloud\Firestore\Admin\V1\Progress $progress_documents
- * The progress, in documents, of this operation.
- * @type \Google\Cloud\Firestore\Admin\V1\Progress $progress_bytes
- * The progress, in bytes, of this operation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Operation::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * The time this operation started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * The time this operation completed. Will be unset if operation still in
- * progress.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
- /**
- * The index resource that this operation is acting on. For example:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- *
- * Generated from protobuf field string index = 3;
- * @return string
- */
- public function getIndex()
- {
- return $this->index;
- }
-
- /**
- * The index resource that this operation is acting on. For example:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- *
- * Generated from protobuf field string index = 3;
- * @param string $var
- * @return $this
- */
- public function setIndex($var)
- {
- GPBUtil::checkString($var, True);
- $this->index = $var;
-
- return $this;
- }
-
- /**
- * The state of the operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState state = 4;
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * The state of the operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState state = 4;
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\OperationState::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 5;
- * @return \Google\Cloud\Firestore\Admin\V1\Progress|null
- */
- public function getProgressDocuments()
- {
- return $this->progress_documents;
- }
-
- public function hasProgressDocuments()
- {
- return isset($this->progress_documents);
- }
-
- public function clearProgressDocuments()
- {
- unset($this->progress_documents);
- }
-
- /**
- * The progress, in documents, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_documents = 5;
- * @param \Google\Cloud\Firestore\Admin\V1\Progress $var
- * @return $this
- */
- public function setProgressDocuments($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Progress::class);
- $this->progress_documents = $var;
-
- return $this;
- }
-
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 6;
- * @return \Google\Cloud\Firestore\Admin\V1\Progress|null
- */
- public function getProgressBytes()
- {
- return $this->progress_bytes;
- }
-
- public function hasProgressBytes()
- {
- return isset($this->progress_bytes);
- }
-
- public function clearProgressBytes()
- {
- unset($this->progress_bytes);
- }
-
- /**
- * The progress, in bytes, of this operation.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_bytes = 6;
- * @param \Google\Cloud\Firestore\Admin\V1\Progress $var
- * @return $this
- */
- public function setProgressBytes($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Progress::class);
- $this->progress_bytes = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListBackupSchedulesRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListBackupSchedulesRequest.php
deleted file mode 100644
index ad8c349dacd6..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListBackupSchedulesRequest.php
+++ /dev/null
@@ -1,88 +0,0 @@
-google.firestore.admin.v1.ListBackupSchedulesRequest
- */
-class ListBackupSchedulesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent database.
- * Format is `projects/{project}/databases/{database}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
-
- /**
- * @param string $parent Required. The parent database.
- *
- * Format is `projects/{project}/databases/{database}`. Please see
- * {@see FirestoreAdminClient::databaseName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\ListBackupSchedulesRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent database.
- * Format is `projects/{project}/databases/{database}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent database.
- * Format is `projects/{project}/databases/{database}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent database.
- * Format is `projects/{project}/databases/{database}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListBackupSchedulesResponse.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListBackupSchedulesResponse.php
deleted file mode 100644
index bda082e013e8..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListBackupSchedulesResponse.php
+++ /dev/null
@@ -1,68 +0,0 @@
-google.firestore.admin.v1.ListBackupSchedulesResponse
- */
-class ListBackupSchedulesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * List of all backup schedules.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.BackupSchedule backup_schedules = 1;
- */
- private $backup_schedules;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Firestore\Admin\V1\BackupSchedule>|\Google\Protobuf\Internal\RepeatedField $backup_schedules
- * List of all backup schedules.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * List of all backup schedules.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.BackupSchedule backup_schedules = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getBackupSchedules()
- {
- return $this->backup_schedules;
- }
-
- /**
- * List of all backup schedules.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.BackupSchedule backup_schedules = 1;
- * @param array<\Google\Cloud\Firestore\Admin\V1\BackupSchedule>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setBackupSchedules($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\Admin\V1\BackupSchedule::class);
- $this->backup_schedules = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListBackupsRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListBackupsRequest.php
deleted file mode 100644
index fa8525ee48bc..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListBackupsRequest.php
+++ /dev/null
@@ -1,103 +0,0 @@
-google.firestore.admin.v1.ListBackupsRequest
- */
-class ListBackupsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The location to list backups from.
- * Format is `projects/{project}/locations/{location}`.
- * Use `{location} = '-'` to list backups from all locations for the given
- * project. This allows listing backups from a single location or from all
- * locations.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
-
- /**
- * @param string $parent Required. The location to list backups from.
- *
- * Format is `projects/{project}/locations/{location}`.
- * Use `{location} = '-'` to list backups from all locations for the given
- * project. This allows listing backups from a single location or from all
- * locations. Please see
- * {@see FirestoreAdminClient::locationName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\ListBackupsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The location to list backups from.
- * Format is `projects/{project}/locations/{location}`.
- * Use `{location} = '-'` to list backups from all locations for the given
- * project. This allows listing backups from a single location or from all
- * locations.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The location to list backups from.
- * Format is `projects/{project}/locations/{location}`.
- * Use `{location} = '-'` to list backups from all locations for the given
- * project. This allows listing backups from a single location or from all
- * locations.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The location to list backups from.
- * Format is `projects/{project}/locations/{location}`.
- * Use `{location} = '-'` to list backups from all locations for the given
- * project. This allows listing backups from a single location or from all
- * locations.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListBackupsResponse.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListBackupsResponse.php
deleted file mode 100644
index b3fa74286dcb..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListBackupsResponse.php
+++ /dev/null
@@ -1,118 +0,0 @@
-google.firestore.admin.v1.ListBackupsResponse
- */
-class ListBackupsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * List of all backups for the project.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Backup backups = 1;
- */
- private $backups;
- /**
- * List of locations that existing backups were not able to be fetched from.
- * Instead of failing the entire requests when a single location is
- * unreachable, this response returns a partial result set and list of
- * locations unable to be reached here. The request can be retried against a
- * single location to get a concrete error.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Firestore\Admin\V1\Backup>|\Google\Protobuf\Internal\RepeatedField $backups
- * List of all backups for the project.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * List of locations that existing backups were not able to be fetched from.
- * Instead of failing the entire requests when a single location is
- * unreachable, this response returns a partial result set and list of
- * locations unable to be reached here. The request can be retried against a
- * single location to get a concrete error.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * List of all backups for the project.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Backup backups = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getBackups()
- {
- return $this->backups;
- }
-
- /**
- * List of all backups for the project.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Backup backups = 1;
- * @param array<\Google\Cloud\Firestore\Admin\V1\Backup>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setBackups($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\Admin\V1\Backup::class);
- $this->backups = $arr;
-
- return $this;
- }
-
- /**
- * List of locations that existing backups were not able to be fetched from.
- * Instead of failing the entire requests when a single location is
- * unreachable, this response returns a partial result set and list of
- * locations unable to be reached here. The request can be retried against a
- * single location to get a concrete error.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * List of locations that existing backups were not able to be fetched from.
- * Instead of failing the entire requests when a single location is
- * unreachable, this response returns a partial result set and list of
- * locations unable to be reached here. The request can be retried against a
- * single location to get a concrete error.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListDatabasesRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListDatabasesRequest.php
deleted file mode 100644
index afeeb262a56b..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListDatabasesRequest.php
+++ /dev/null
@@ -1,120 +0,0 @@
-google.firestore.admin.v1.ListDatabasesRequest
- */
-class ListDatabasesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A parent name of the form
- * `projects/{project_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * If true, also returns deleted resources.
- *
- * Generated from protobuf field bool show_deleted = 4;
- */
- protected $show_deleted = false;
-
- /**
- * @param string $parent Required. A parent name of the form
- * `projects/{project_id}`
- * Please see {@see FirestoreAdminClient::projectName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\ListDatabasesRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. A parent name of the form
- * `projects/{project_id}`
- * @type bool $show_deleted
- * If true, also returns deleted resources.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A parent name of the form
- * `projects/{project_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. A parent name of the form
- * `projects/{project_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * If true, also returns deleted resources.
- *
- * Generated from protobuf field bool show_deleted = 4;
- * @return bool
- */
- public function getShowDeleted()
- {
- return $this->show_deleted;
- }
-
- /**
- * If true, also returns deleted resources.
- *
- * Generated from protobuf field bool show_deleted = 4;
- * @param bool $var
- * @return $this
- */
- public function setShowDeleted($var)
- {
- GPBUtil::checkBool($var);
- $this->show_deleted = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListDatabasesResponse.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListDatabasesResponse.php
deleted file mode 100644
index efe6b7b4ae83..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListDatabasesResponse.php
+++ /dev/null
@@ -1,129 +0,0 @@
-google.firestore.admin.v1.ListDatabasesResponse
- */
-class ListDatabasesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The databases in the project.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Database databases = 1;
- */
- private $databases;
- /**
- * In the event that data about individual databases cannot be listed they
- * will be recorded here.
- * An example entry might be: projects/some_project/locations/some_location
- * This can happen if the Cloud Region that the Database resides in is
- * currently unavailable. In this case we can't fetch all the details about
- * the database. You may be able to get a more detailed error message
- * (or possibly fetch the resource) by sending a 'Get' request for the
- * resource or a 'List' request for the specific location.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Firestore\Admin\V1\Database>|\Google\Protobuf\Internal\RepeatedField $databases
- * The databases in the project.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * In the event that data about individual databases cannot be listed they
- * will be recorded here.
- * An example entry might be: projects/some_project/locations/some_location
- * This can happen if the Cloud Region that the Database resides in is
- * currently unavailable. In this case we can't fetch all the details about
- * the database. You may be able to get a more detailed error message
- * (or possibly fetch the resource) by sending a 'Get' request for the
- * resource or a 'List' request for the specific location.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The databases in the project.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Database databases = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getDatabases()
- {
- return $this->databases;
- }
-
- /**
- * The databases in the project.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Database databases = 1;
- * @param array<\Google\Cloud\Firestore\Admin\V1\Database>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setDatabases($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\Admin\V1\Database::class);
- $this->databases = $arr;
-
- return $this;
- }
-
- /**
- * In the event that data about individual databases cannot be listed they
- * will be recorded here.
- * An example entry might be: projects/some_project/locations/some_location
- * This can happen if the Cloud Region that the Database resides in is
- * currently unavailable. In this case we can't fetch all the details about
- * the database. You may be able to get a more detailed error message
- * (or possibly fetch the resource) by sending a 'Get' request for the
- * resource or a 'List' request for the specific location.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * In the event that data about individual databases cannot be listed they
- * will be recorded here.
- * An example entry might be: projects/some_project/locations/some_location
- * This can happen if the Cloud Region that the Database resides in is
- * currently unavailable. In this case we can't fetch all the details about
- * the database. You may be able to get a more detailed error message
- * (or possibly fetch the resource) by sending a 'Get' request for the
- * resource or a 'List' request for the specific location.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListFieldsRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListFieldsRequest.php
deleted file mode 100644
index c027afa975ac..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListFieldsRequest.php
+++ /dev/null
@@ -1,221 +0,0 @@
-google.firestore.admin.v1.ListFieldsRequest
- */
-class ListFieldsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * The filter to apply to list results. Currently,
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
- * only supports listing fields that have been explicitly overridden. To issue
- * this query, call
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
- * with a filter that includes `indexConfig.usesAncestorConfig:false` or
- * `ttlConfig:*`.
- *
- * Generated from protobuf field string filter = 2;
- */
- protected $filter = '';
- /**
- * The number of results to return.
- *
- * Generated from protobuf field int32 page_size = 3;
- */
- protected $page_size = 0;
- /**
- * A page token, returned from a previous call to
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields],
- * that may be used to get the next page of results.
- *
- * Generated from protobuf field string page_token = 4;
- */
- protected $page_token = '';
-
- /**
- * @param string $parent Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- * Please see {@see FirestoreAdminClient::collectionGroupName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\ListFieldsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- * @type string $filter
- * The filter to apply to list results. Currently,
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
- * only supports listing fields that have been explicitly overridden. To issue
- * this query, call
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
- * with a filter that includes `indexConfig.usesAncestorConfig:false` or
- * `ttlConfig:*`.
- * @type int $page_size
- * The number of results to return.
- * @type string $page_token
- * A page token, returned from a previous call to
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields],
- * that may be used to get the next page of results.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * The filter to apply to list results. Currently,
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
- * only supports listing fields that have been explicitly overridden. To issue
- * this query, call
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
- * with a filter that includes `indexConfig.usesAncestorConfig:false` or
- * `ttlConfig:*`.
- *
- * Generated from protobuf field string filter = 2;
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * The filter to apply to list results. Currently,
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
- * only supports listing fields that have been explicitly overridden. To issue
- * this query, call
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
- * with a filter that includes `indexConfig.usesAncestorConfig:false` or
- * `ttlConfig:*`.
- *
- * Generated from protobuf field string filter = 2;
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * The number of results to return.
- *
- * Generated from protobuf field int32 page_size = 3;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * The number of results to return.
- *
- * Generated from protobuf field int32 page_size = 3;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * A page token, returned from a previous call to
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields],
- * that may be used to get the next page of results.
- *
- * Generated from protobuf field string page_token = 4;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * A page token, returned from a previous call to
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields],
- * that may be used to get the next page of results.
- *
- * Generated from protobuf field string page_token = 4;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListFieldsResponse.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListFieldsResponse.php
deleted file mode 100644
index 58d931b50c93..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListFieldsResponse.php
+++ /dev/null
@@ -1,106 +0,0 @@
-google.firestore.admin.v1.ListFieldsResponse
- */
-class ListFieldsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The requested fields.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Field fields = 1;
- */
- private $fields;
- /**
- * A page token that may be used to request another page of results. If blank,
- * this is the last page.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Firestore\Admin\V1\Field>|\Google\Protobuf\Internal\RepeatedField $fields
- * The requested fields.
- * @type string $next_page_token
- * A page token that may be used to request another page of results. If blank,
- * this is the last page.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The requested fields.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Field fields = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFields()
- {
- return $this->fields;
- }
-
- /**
- * The requested fields.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Field fields = 1;
- * @param array<\Google\Cloud\Firestore\Admin\V1\Field>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFields($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\Admin\V1\Field::class);
- $this->fields = $arr;
-
- return $this;
- }
-
- /**
- * A page token that may be used to request another page of results. If blank,
- * this is the last page.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A page token that may be used to request another page of results. If blank,
- * this is the last page.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListIndexesRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListIndexesRequest.php
deleted file mode 100644
index a0d52b953646..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListIndexesRequest.php
+++ /dev/null
@@ -1,197 +0,0 @@
-google.firestore.admin.v1.ListIndexesRequest
- */
-class ListIndexesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * The filter to apply to list results.
- *
- * Generated from protobuf field string filter = 2;
- */
- protected $filter = '';
- /**
- * The number of results to return.
- *
- * Generated from protobuf field int32 page_size = 3;
- */
- protected $page_size = 0;
- /**
- * A page token, returned from a previous call to
- * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes],
- * that may be used to get the next page of results.
- *
- * Generated from protobuf field string page_token = 4;
- */
- protected $page_token = '';
-
- /**
- * @param string $parent Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- * Please see {@see FirestoreAdminClient::collectionGroupName()} for help formatting this field.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\ListIndexesRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- * @type string $filter
- * The filter to apply to list results.
- * @type int $page_size
- * The number of results to return.
- * @type string $page_token
- * A page token, returned from a previous call to
- * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes],
- * that may be used to get the next page of results.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * The filter to apply to list results.
- *
- * Generated from protobuf field string filter = 2;
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * The filter to apply to list results.
- *
- * Generated from protobuf field string filter = 2;
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * The number of results to return.
- *
- * Generated from protobuf field int32 page_size = 3;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * The number of results to return.
- *
- * Generated from protobuf field int32 page_size = 3;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * A page token, returned from a previous call to
- * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes],
- * that may be used to get the next page of results.
- *
- * Generated from protobuf field string page_token = 4;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * A page token, returned from a previous call to
- * [FirestoreAdmin.ListIndexes][google.firestore.admin.v1.FirestoreAdmin.ListIndexes],
- * that may be used to get the next page of results.
- *
- * Generated from protobuf field string page_token = 4;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListIndexesResponse.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListIndexesResponse.php
deleted file mode 100644
index 6b6ba380cd71..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/ListIndexesResponse.php
+++ /dev/null
@@ -1,106 +0,0 @@
-google.firestore.admin.v1.ListIndexesResponse
- */
-class ListIndexesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The requested indexes.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Index indexes = 1;
- */
- private $indexes;
- /**
- * A page token that may be used to request another page of results. If blank,
- * this is the last page.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Firestore\Admin\V1\Index>|\Google\Protobuf\Internal\RepeatedField $indexes
- * The requested indexes.
- * @type string $next_page_token
- * A page token that may be used to request another page of results. If blank,
- * this is the last page.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The requested indexes.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Index indexes = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getIndexes()
- {
- return $this->indexes;
- }
-
- /**
- * The requested indexes.
- *
- * Generated from protobuf field repeated .google.firestore.admin.v1.Index indexes = 1;
- * @param array<\Google\Cloud\Firestore\Admin\V1\Index>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setIndexes($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\Admin\V1\Index::class);
- $this->indexes = $arr;
-
- return $this;
- }
-
- /**
- * A page token that may be used to request another page of results. If blank,
- * this is the last page.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A page token that may be used to request another page of results. If blank,
- * this is the last page.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/LocationMetadata.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/LocationMetadata.php
deleted file mode 100644
index 36d656955673..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/LocationMetadata.php
+++ /dev/null
@@ -1,34 +0,0 @@
-google.firestore.admin.v1.LocationMetadata
- */
-class LocationMetadata extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Location::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/OperationState.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/OperationState.php
deleted file mode 100644
index 73244df17d28..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/OperationState.php
+++ /dev/null
@@ -1,98 +0,0 @@
-google.firestore.admin.v1.OperationState
- */
-class OperationState
-{
- /**
- * Unspecified.
- *
- * Generated from protobuf enum OPERATION_STATE_UNSPECIFIED = 0;
- */
- const OPERATION_STATE_UNSPECIFIED = 0;
- /**
- * Request is being prepared for processing.
- *
- * Generated from protobuf enum INITIALIZING = 1;
- */
- const INITIALIZING = 1;
- /**
- * Request is actively being processed.
- *
- * Generated from protobuf enum PROCESSING = 2;
- */
- const PROCESSING = 2;
- /**
- * Request is in the process of being cancelled after user called
- * google.longrunning.Operations.CancelOperation on the operation.
- *
- * Generated from protobuf enum CANCELLING = 3;
- */
- const CANCELLING = 3;
- /**
- * Request has been processed and is in its finalization stage.
- *
- * Generated from protobuf enum FINALIZING = 4;
- */
- const FINALIZING = 4;
- /**
- * Request has completed successfully.
- *
- * Generated from protobuf enum SUCCESSFUL = 5;
- */
- const SUCCESSFUL = 5;
- /**
- * Request has finished being processed, but encountered an error.
- *
- * Generated from protobuf enum FAILED = 6;
- */
- const FAILED = 6;
- /**
- * Request has finished being cancelled after user called
- * google.longrunning.Operations.CancelOperation.
- *
- * Generated from protobuf enum CANCELLED = 7;
- */
- const CANCELLED = 7;
-
- private static $valueToName = [
- self::OPERATION_STATE_UNSPECIFIED => 'OPERATION_STATE_UNSPECIFIED',
- self::INITIALIZING => 'INITIALIZING',
- self::PROCESSING => 'PROCESSING',
- self::CANCELLING => 'CANCELLING',
- self::FINALIZING => 'FINALIZING',
- self::SUCCESSFUL => 'SUCCESSFUL',
- self::FAILED => 'FAILED',
- self::CANCELLED => 'CANCELLED',
- ];
-
- 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);
- }
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Progress.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Progress.php
deleted file mode 100644
index 24ea17a96c10..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/Progress.php
+++ /dev/null
@@ -1,103 +0,0 @@
-google.firestore.admin.v1.Progress
- */
-class Progress extends \Google\Protobuf\Internal\Message
-{
- /**
- * The amount of work estimated.
- *
- * Generated from protobuf field int64 estimated_work = 1;
- */
- protected $estimated_work = 0;
- /**
- * The amount of work completed.
- *
- * Generated from protobuf field int64 completed_work = 2;
- */
- protected $completed_work = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $estimated_work
- * The amount of work estimated.
- * @type int|string $completed_work
- * The amount of work completed.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Operation::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The amount of work estimated.
- *
- * Generated from protobuf field int64 estimated_work = 1;
- * @return int|string
- */
- public function getEstimatedWork()
- {
- return $this->estimated_work;
- }
-
- /**
- * The amount of work estimated.
- *
- * Generated from protobuf field int64 estimated_work = 1;
- * @param int|string $var
- * @return $this
- */
- public function setEstimatedWork($var)
- {
- GPBUtil::checkInt64($var);
- $this->estimated_work = $var;
-
- return $this;
- }
-
- /**
- * The amount of work completed.
- *
- * Generated from protobuf field int64 completed_work = 2;
- * @return int|string
- */
- public function getCompletedWork()
- {
- return $this->completed_work;
- }
-
- /**
- * The amount of work completed.
- *
- * Generated from protobuf field int64 completed_work = 2;
- * @param int|string $var
- * @return $this
- */
- public function setCompletedWork($var)
- {
- GPBUtil::checkInt64($var);
- $this->completed_work = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/RestoreDatabaseMetadata.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/RestoreDatabaseMetadata.php
deleted file mode 100644
index 526f1cacab72..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/RestoreDatabaseMetadata.php
+++ /dev/null
@@ -1,268 +0,0 @@
-google.firestore.admin.v1.RestoreDatabaseMetadata
- */
-class RestoreDatabaseMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * The time the restore was started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- */
- protected $start_time = null;
- /**
- * The time the restore finished, unset for ongoing restores.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- */
- protected $end_time = null;
- /**
- * The operation state of the restore.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState operation_state = 3;
- */
- protected $operation_state = 0;
- /**
- * The name of the database being restored to.
- *
- * Generated from protobuf field string database = 4 [(.google.api.resource_reference) = {
- */
- protected $database = '';
- /**
- * The name of the backup restoring from.
- *
- * Generated from protobuf field string backup = 5 [(.google.api.resource_reference) = {
- */
- protected $backup = '';
- /**
- * How far along the restore is as an estimated percentage of remaining time.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_percentage = 8;
- */
- protected $progress_percentage = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $start_time
- * The time the restore was started.
- * @type \Google\Protobuf\Timestamp $end_time
- * The time the restore finished, unset for ongoing restores.
- * @type int $operation_state
- * The operation state of the restore.
- * @type string $database
- * The name of the database being restored to.
- * @type string $backup
- * The name of the backup restoring from.
- * @type \Google\Cloud\Firestore\Admin\V1\Progress $progress_percentage
- * How far along the restore is as an estimated percentage of remaining time.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Operation::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The time the restore was started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * The time the restore was started.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * The time the restore finished, unset for ongoing restores.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * The time the restore finished, unset for ongoing restores.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
- /**
- * The operation state of the restore.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState operation_state = 3;
- * @return int
- */
- public function getOperationState()
- {
- return $this->operation_state;
- }
-
- /**
- * The operation state of the restore.
- *
- * Generated from protobuf field .google.firestore.admin.v1.OperationState operation_state = 3;
- * @param int $var
- * @return $this
- */
- public function setOperationState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\Admin\V1\OperationState::class);
- $this->operation_state = $var;
-
- return $this;
- }
-
- /**
- * The name of the database being restored to.
- *
- * Generated from protobuf field string database = 4 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getDatabase()
- {
- return $this->database;
- }
-
- /**
- * The name of the database being restored to.
- *
- * Generated from protobuf field string database = 4 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setDatabase($var)
- {
- GPBUtil::checkString($var, True);
- $this->database = $var;
-
- return $this;
- }
-
- /**
- * The name of the backup restoring from.
- *
- * Generated from protobuf field string backup = 5 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getBackup()
- {
- return $this->backup;
- }
-
- /**
- * The name of the backup restoring from.
- *
- * Generated from protobuf field string backup = 5 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setBackup($var)
- {
- GPBUtil::checkString($var, True);
- $this->backup = $var;
-
- return $this;
- }
-
- /**
- * How far along the restore is as an estimated percentage of remaining time.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_percentage = 8;
- * @return \Google\Cloud\Firestore\Admin\V1\Progress|null
- */
- public function getProgressPercentage()
- {
- return $this->progress_percentage;
- }
-
- public function hasProgressPercentage()
- {
- return isset($this->progress_percentage);
- }
-
- public function clearProgressPercentage()
- {
- unset($this->progress_percentage);
- }
-
- /**
- * How far along the restore is as an estimated percentage of remaining time.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Progress progress_percentage = 8;
- * @param \Google\Cloud\Firestore\Admin\V1\Progress $var
- * @return $this
- */
- public function setProgressPercentage($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Progress::class);
- $this->progress_percentage = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/RestoreDatabaseRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/RestoreDatabaseRequest.php
deleted file mode 100644
index 768f05b0a071..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/RestoreDatabaseRequest.php
+++ /dev/null
@@ -1,236 +0,0 @@
-google.firestore.admin.v1.RestoreDatabaseRequest
- */
-class RestoreDatabaseRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The project to restore the database in. Format is
- * `projects/{project_id}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. The ID to use for the database, which will become the final
- * component of the database's resource name. This database ID must not be
- * associated with an existing database.
- * This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
- * with first character a letter and the last a letter or a number. Must not
- * be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
- * "(default)" database ID is also valid.
- *
- * Generated from protobuf field string database_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $database_id = '';
- /**
- * Required. Backup to restore from. Must be from the same project as the
- * parent.
- * The restored database will be created in the same location as the source
- * backup.
- * Format is: `projects/{project_id}/locations/{location}/backups/{backup}`
- *
- * Generated from protobuf field string backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $backup = '';
- /**
- * Optional. Encryption configuration for the restored database.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup, namely
- * [use_source_encryption][google.firestore.admin.v1.Database.EncryptionConfig.use_source_encryption].
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.EncryptionConfig encryption_config = 9 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $encryption_config = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The project to restore the database in. Format is
- * `projects/{project_id}`.
- * @type string $database_id
- * Required. The ID to use for the database, which will become the final
- * component of the database's resource name. This database ID must not be
- * associated with an existing database.
- * This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
- * with first character a letter and the last a letter or a number. Must not
- * be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
- * "(default)" database ID is also valid.
- * @type string $backup
- * Required. Backup to restore from. Must be from the same project as the
- * parent.
- * The restored database will be created in the same location as the source
- * backup.
- * Format is: `projects/{project_id}/locations/{location}/backups/{backup}`
- * @type \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig $encryption_config
- * Optional. Encryption configuration for the restored database.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup, namely
- * [use_source_encryption][google.firestore.admin.v1.Database.EncryptionConfig.use_source_encryption].
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The project to restore the database in. Format is
- * `projects/{project_id}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The project to restore the database in. Format is
- * `projects/{project_id}`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. The ID to use for the database, which will become the final
- * component of the database's resource name. This database ID must not be
- * associated with an existing database.
- * This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
- * with first character a letter and the last a letter or a number. Must not
- * be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
- * "(default)" database ID is also valid.
- *
- * Generated from protobuf field string database_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getDatabaseId()
- {
- return $this->database_id;
- }
-
- /**
- * Required. The ID to use for the database, which will become the final
- * component of the database's resource name. This database ID must not be
- * associated with an existing database.
- * This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
- * with first character a letter and the last a letter or a number. Must not
- * be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
- * "(default)" database ID is also valid.
- *
- * Generated from protobuf field string database_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setDatabaseId($var)
- {
- GPBUtil::checkString($var, True);
- $this->database_id = $var;
-
- return $this;
- }
-
- /**
- * Required. Backup to restore from. Must be from the same project as the
- * parent.
- * The restored database will be created in the same location as the source
- * backup.
- * Format is: `projects/{project_id}/locations/{location}/backups/{backup}`
- *
- * Generated from protobuf field string backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getBackup()
- {
- return $this->backup;
- }
-
- /**
- * Required. Backup to restore from. Must be from the same project as the
- * parent.
- * The restored database will be created in the same location as the source
- * backup.
- * Format is: `projects/{project_id}/locations/{location}/backups/{backup}`
- *
- * Generated from protobuf field string backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setBackup($var)
- {
- GPBUtil::checkString($var, True);
- $this->backup = $var;
-
- return $this;
- }
-
- /**
- * Optional. Encryption configuration for the restored database.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup, namely
- * [use_source_encryption][google.firestore.admin.v1.Database.EncryptionConfig.use_source_encryption].
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.EncryptionConfig encryption_config = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig|null
- */
- public function getEncryptionConfig()
- {
- return $this->encryption_config;
- }
-
- public function hasEncryptionConfig()
- {
- return isset($this->encryption_config);
- }
-
- public function clearEncryptionConfig()
- {
- unset($this->encryption_config);
- }
-
- /**
- * Optional. Encryption configuration for the restored database.
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup, namely
- * [use_source_encryption][google.firestore.admin.v1.Database.EncryptionConfig.use_source_encryption].
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database.EncryptionConfig encryption_config = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig $var
- * @return $this
- */
- public function setEncryptionConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Database\EncryptionConfig::class);
- $this->encryption_config = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/UpdateBackupScheduleRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/UpdateBackupScheduleRequest.php
deleted file mode 100644
index cdc9e8b0e306..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/UpdateBackupScheduleRequest.php
+++ /dev/null
@@ -1,137 +0,0 @@
-google.firestore.admin.v1.UpdateBackupScheduleRequest
- */
-class UpdateBackupScheduleRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The backup schedule to update.
- *
- * Generated from protobuf field .google.firestore.admin.v1.BackupSchedule backup_schedule = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $backup_schedule = null;
- /**
- * The list of fields to be updated.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- */
- protected $update_mask = null;
-
- /**
- * @param \Google\Cloud\Firestore\Admin\V1\BackupSchedule $backupSchedule Required. The backup schedule to update.
- * @param \Google\Protobuf\FieldMask $updateMask The list of fields to be updated.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\UpdateBackupScheduleRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\Firestore\Admin\V1\BackupSchedule $backupSchedule, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setBackupSchedule($backupSchedule)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\Admin\V1\BackupSchedule $backup_schedule
- * Required. The backup schedule to update.
- * @type \Google\Protobuf\FieldMask $update_mask
- * The list of fields to be updated.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The backup schedule to update.
- *
- * Generated from protobuf field .google.firestore.admin.v1.BackupSchedule backup_schedule = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Firestore\Admin\V1\BackupSchedule|null
- */
- public function getBackupSchedule()
- {
- return $this->backup_schedule;
- }
-
- public function hasBackupSchedule()
- {
- return isset($this->backup_schedule);
- }
-
- public function clearBackupSchedule()
- {
- unset($this->backup_schedule);
- }
-
- /**
- * Required. The backup schedule to update.
- *
- * Generated from protobuf field .google.firestore.admin.v1.BackupSchedule backup_schedule = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Firestore\Admin\V1\BackupSchedule $var
- * @return $this
- */
- public function setBackupSchedule($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\BackupSchedule::class);
- $this->backup_schedule = $var;
-
- return $this;
- }
-
- /**
- * The list of fields to be updated.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * The list of fields to be updated.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/UpdateDatabaseMetadata.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/UpdateDatabaseMetadata.php
deleted file mode 100644
index bc68c8671ec8..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/UpdateDatabaseMetadata.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.firestore.admin.v1.UpdateDatabaseMetadata
- */
-class UpdateDatabaseMetadata extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/UpdateDatabaseRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/UpdateDatabaseRequest.php
deleted file mode 100644
index 71f72a8e54b1..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/UpdateDatabaseRequest.php
+++ /dev/null
@@ -1,137 +0,0 @@
-google.firestore.admin.v1.UpdateDatabaseRequest
- */
-class UpdateDatabaseRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The database to update.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $database = null;
- /**
- * The list of fields to be updated.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- */
- protected $update_mask = null;
-
- /**
- * @param \Google\Cloud\Firestore\Admin\V1\Database $database Required. The database to update.
- * @param \Google\Protobuf\FieldMask $updateMask The list of fields to be updated.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\UpdateDatabaseRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\Firestore\Admin\V1\Database $database, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setDatabase($database)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\Admin\V1\Database $database
- * Required. The database to update.
- * @type \Google\Protobuf\FieldMask $update_mask
- * The list of fields to be updated.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The database to update.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Firestore\Admin\V1\Database|null
- */
- public function getDatabase()
- {
- return $this->database;
- }
-
- public function hasDatabase()
- {
- return isset($this->database);
- }
-
- public function clearDatabase()
- {
- unset($this->database);
- }
-
- /**
- * Required. The database to update.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Database database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Firestore\Admin\V1\Database $var
- * @return $this
- */
- public function setDatabase($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Database::class);
- $this->database = $var;
-
- return $this;
- }
-
- /**
- * The list of fields to be updated.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * The list of fields to be updated.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/UpdateFieldRequest.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/UpdateFieldRequest.php
deleted file mode 100644
index a860a8be36a7..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/UpdateFieldRequest.php
+++ /dev/null
@@ -1,139 +0,0 @@
-google.firestore.admin.v1.UpdateFieldRequest
- */
-class UpdateFieldRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The field to be updated.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Field field = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $field = null;
- /**
- * A mask, relative to the field. If specified, only configuration specified
- * by this field_mask will be updated in the field.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- */
- protected $update_mask = null;
-
- /**
- * @param \Google\Cloud\Firestore\Admin\V1\Field $field Required. The field to be updated.
- *
- * @return \Google\Cloud\Firestore\Admin\V1\UpdateFieldRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\Firestore\Admin\V1\Field $field): self
- {
- return (new self())
- ->setField($field);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\Admin\V1\Field $field
- * Required. The field to be updated.
- * @type \Google\Protobuf\FieldMask $update_mask
- * A mask, relative to the field. If specified, only configuration specified
- * by this field_mask will be updated in the field.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\FirestoreAdmin::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The field to be updated.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Field field = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Firestore\Admin\V1\Field|null
- */
- public function getField()
- {
- return $this->field;
- }
-
- public function hasField()
- {
- return isset($this->field);
- }
-
- public function clearField()
- {
- unset($this->field);
- }
-
- /**
- * Required. The field to be updated.
- *
- * Generated from protobuf field .google.firestore.admin.v1.Field field = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Firestore\Admin\V1\Field $var
- * @return $this
- */
- public function setField($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\Admin\V1\Field::class);
- $this->field = $var;
-
- return $this;
- }
-
- /**
- * A mask, relative to the field. If specified, only configuration specified
- * by this field_mask will be updated in the field.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * A mask, relative to the field. If specified, only configuration specified
- * by this field_mask will be updated in the field.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/WeeklyRecurrence.php b/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/WeeklyRecurrence.php
deleted file mode 100644
index e7c64ebae899..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/proto/src/Google/Cloud/Firestore/Admin/V1/WeeklyRecurrence.php
+++ /dev/null
@@ -1,72 +0,0 @@
-google.firestore.admin.v1.WeeklyRecurrence
- */
-class WeeklyRecurrence extends \Google\Protobuf\Internal\Message
-{
- /**
- * The day of week to run.
- * DAY_OF_WEEK_UNSPECIFIED is not allowed.
- *
- * Generated from protobuf field .google.type.DayOfWeek day = 2;
- */
- protected $day = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $day
- * The day of week to run.
- * DAY_OF_WEEK_UNSPECIFIED is not allowed.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\Admin\V1\Schedule::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The day of week to run.
- * DAY_OF_WEEK_UNSPECIFIED is not allowed.
- *
- * Generated from protobuf field .google.type.DayOfWeek day = 2;
- * @return int
- */
- public function getDay()
- {
- return $this->day;
- }
-
- /**
- * The day of week to run.
- * DAY_OF_WEEK_UNSPECIFIED is not allowed.
- *
- * Generated from protobuf field .google.type.DayOfWeek day = 2;
- * @param int $var
- * @return $this
- */
- public function setDay($var)
- {
- GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class);
- $this->day = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/bulk_delete_documents.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/bulk_delete_documents.php
deleted file mode 100644
index 68aeec0bfc87..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/bulk_delete_documents.php
+++ /dev/null
@@ -1,91 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $firestoreAdminClient->bulkDeleteDocuments($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var BulkDeleteDocumentsResponse $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FirestoreAdminClient::databaseName('[PROJECT]', '[DATABASE]');
-
- bulk_delete_documents_sample($formattedName);
-}
-// [END firestore_v1_generated_FirestoreAdmin_BulkDeleteDocuments_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/create_backup_schedule.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/create_backup_schedule.php
deleted file mode 100644
index 0e83e8d00dee..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/create_backup_schedule.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setParent($formattedParent)
- ->setBackupSchedule($backupSchedule);
-
- // Call the API and handle any network failures.
- try {
- /** @var BackupSchedule $response */
- $response = $firestoreAdminClient->createBackupSchedule($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = FirestoreAdminClient::databaseName('[PROJECT]', '[DATABASE]');
-
- create_backup_schedule_sample($formattedParent);
-}
-// [END firestore_v1_generated_FirestoreAdmin_CreateBackupSchedule_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/create_database.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/create_database.php
deleted file mode 100644
index 0c47185439d6..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/create_database.php
+++ /dev/null
@@ -1,96 +0,0 @@
-setParent($formattedParent)
- ->setDatabase($database)
- ->setDatabaseId($databaseId);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $firestoreAdminClient->createDatabase($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Database $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = FirestoreAdminClient::projectName('[PROJECT]');
- $databaseId = '[DATABASE_ID]';
-
- create_database_sample($formattedParent, $databaseId);
-}
-// [END firestore_v1_generated_FirestoreAdmin_CreateDatabase_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/create_index.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/create_index.php
deleted file mode 100644
index b3868089e22d..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/create_index.php
+++ /dev/null
@@ -1,94 +0,0 @@
-setParent($formattedParent)
- ->setIndex($index);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $firestoreAdminClient->createIndex($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Index $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = FirestoreAdminClient::collectionGroupName(
- '[PROJECT]',
- '[DATABASE]',
- '[COLLECTION]'
- );
-
- create_index_sample($formattedParent);
-}
-// [END firestore_v1_generated_FirestoreAdmin_CreateIndex_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/delete_backup.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/delete_backup.php
deleted file mode 100644
index fe41a64237fc..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/delete_backup.php
+++ /dev/null
@@ -1,71 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- $firestoreAdminClient->deleteBackup($request);
- printf('Call completed successfully.' . PHP_EOL);
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FirestoreAdminClient::backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
-
- delete_backup_sample($formattedName);
-}
-// [END firestore_v1_generated_FirestoreAdmin_DeleteBackup_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/delete_backup_schedule.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/delete_backup_schedule.php
deleted file mode 100644
index 53a4b98405a4..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/delete_backup_schedule.php
+++ /dev/null
@@ -1,76 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- $firestoreAdminClient->deleteBackupSchedule($request);
- printf('Call completed successfully.' . PHP_EOL);
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FirestoreAdminClient::backupScheduleName(
- '[PROJECT]',
- '[DATABASE]',
- '[BACKUP_SCHEDULE]'
- );
-
- delete_backup_schedule_sample($formattedName);
-}
-// [END firestore_v1_generated_FirestoreAdmin_DeleteBackupSchedule_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/delete_database.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/delete_database.php
deleted file mode 100644
index e9e63f6359ab..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/delete_database.php
+++ /dev/null
@@ -1,84 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $firestoreAdminClient->deleteDatabase($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Database $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FirestoreAdminClient::databaseName('[PROJECT]', '[DATABASE]');
-
- delete_database_sample($formattedName);
-}
-// [END firestore_v1_generated_FirestoreAdmin_DeleteDatabase_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/delete_index.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/delete_index.php
deleted file mode 100644
index 1da8adead502..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/delete_index.php
+++ /dev/null
@@ -1,75 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- $firestoreAdminClient->deleteIndex($request);
- printf('Call completed successfully.' . PHP_EOL);
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FirestoreAdminClient::indexName(
- '[PROJECT]',
- '[DATABASE]',
- '[COLLECTION]',
- '[INDEX]'
- );
-
- delete_index_sample($formattedName);
-}
-// [END firestore_v1_generated_FirestoreAdmin_DeleteIndex_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/export_documents.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/export_documents.php
deleted file mode 100644
index 9fde0db173ba..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/export_documents.php
+++ /dev/null
@@ -1,94 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $firestoreAdminClient->exportDocuments($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var ExportDocumentsResponse $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FirestoreAdminClient::databaseName('[PROJECT]', '[DATABASE]');
-
- export_documents_sample($formattedName);
-}
-// [END firestore_v1_generated_FirestoreAdmin_ExportDocuments_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_backup.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_backup.php
deleted file mode 100644
index a6be739032e1..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_backup.php
+++ /dev/null
@@ -1,73 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Backup $response */
- $response = $firestoreAdminClient->getBackup($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FirestoreAdminClient::backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
-
- get_backup_sample($formattedName);
-}
-// [END firestore_v1_generated_FirestoreAdmin_GetBackup_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_backup_schedule.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_backup_schedule.php
deleted file mode 100644
index d3912a59df7d..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_backup_schedule.php
+++ /dev/null
@@ -1,78 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var BackupSchedule $response */
- $response = $firestoreAdminClient->getBackupSchedule($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FirestoreAdminClient::backupScheduleName(
- '[PROJECT]',
- '[DATABASE]',
- '[BACKUP_SCHEDULE]'
- );
-
- get_backup_schedule_sample($formattedName);
-}
-// [END firestore_v1_generated_FirestoreAdmin_GetBackupSchedule_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_database.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_database.php
deleted file mode 100644
index 8206f7a163fc..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_database.php
+++ /dev/null
@@ -1,72 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Database $response */
- $response = $firestoreAdminClient->getDatabase($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FirestoreAdminClient::databaseName('[PROJECT]', '[DATABASE]');
-
- get_database_sample($formattedName);
-}
-// [END firestore_v1_generated_FirestoreAdmin_GetDatabase_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_field.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_field.php
deleted file mode 100644
index e6fea83d16c5..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_field.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Field $response */
- $response = $firestoreAdminClient->getField($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FirestoreAdminClient::fieldName(
- '[PROJECT]',
- '[DATABASE]',
- '[COLLECTION]',
- '[FIELD]'
- );
-
- get_field_sample($formattedName);
-}
-// [END firestore_v1_generated_FirestoreAdmin_GetField_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_index.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_index.php
deleted file mode 100644
index 1b4ad8918c85..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/get_index.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Index $response */
- $response = $firestoreAdminClient->getIndex($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FirestoreAdminClient::indexName(
- '[PROJECT]',
- '[DATABASE]',
- '[COLLECTION]',
- '[INDEX]'
- );
-
- get_index_sample($formattedName);
-}
-// [END firestore_v1_generated_FirestoreAdmin_GetIndex_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/import_documents.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/import_documents.php
deleted file mode 100644
index 9a2a04e7a9f5..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/import_documents.php
+++ /dev/null
@@ -1,85 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $firestoreAdminClient->importDocuments($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FirestoreAdminClient::databaseName('[PROJECT]', '[DATABASE]');
-
- import_documents_sample($formattedName);
-}
-// [END firestore_v1_generated_FirestoreAdmin_ImportDocuments_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_backup_schedules.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_backup_schedules.php
deleted file mode 100644
index fc8d6552d54d..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_backup_schedules.php
+++ /dev/null
@@ -1,73 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var ListBackupSchedulesResponse $response */
- $response = $firestoreAdminClient->listBackupSchedules($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = FirestoreAdminClient::databaseName('[PROJECT]', '[DATABASE]');
-
- list_backup_schedules_sample($formattedParent);
-}
-// [END firestore_v1_generated_FirestoreAdmin_ListBackupSchedules_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_backups.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_backups.php
deleted file mode 100644
index 79980c681c3e..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_backups.php
+++ /dev/null
@@ -1,76 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var ListBackupsResponse $response */
- $response = $firestoreAdminClient->listBackups($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = FirestoreAdminClient::locationName('[PROJECT]', '[LOCATION]');
-
- list_backups_sample($formattedParent);
-}
-// [END firestore_v1_generated_FirestoreAdmin_ListBackups_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_databases.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_databases.php
deleted file mode 100644
index 695b54581c8c..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_databases.php
+++ /dev/null
@@ -1,72 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var ListDatabasesResponse $response */
- $response = $firestoreAdminClient->listDatabases($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = FirestoreAdminClient::projectName('[PROJECT]');
-
- list_databases_sample($formattedParent);
-}
-// [END firestore_v1_generated_FirestoreAdmin_ListDatabases_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_fields.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_fields.php
deleted file mode 100644
index 6a38c4d901ae..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_fields.php
+++ /dev/null
@@ -1,89 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $firestoreAdminClient->listFields($request);
-
- /** @var Field $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = FirestoreAdminClient::collectionGroupName(
- '[PROJECT]',
- '[DATABASE]',
- '[COLLECTION]'
- );
-
- list_fields_sample($formattedParent);
-}
-// [END firestore_v1_generated_FirestoreAdmin_ListFields_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_indexes.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_indexes.php
deleted file mode 100644
index 4b1b4a26a49e..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/list_indexes.php
+++ /dev/null
@@ -1,81 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $firestoreAdminClient->listIndexes($request);
-
- /** @var Index $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = FirestoreAdminClient::collectionGroupName(
- '[PROJECT]',
- '[DATABASE]',
- '[COLLECTION]'
- );
-
- list_indexes_sample($formattedParent);
-}
-// [END firestore_v1_generated_FirestoreAdmin_ListIndexes_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/restore_database.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/restore_database.php
deleted file mode 100644
index d897c1a1c23f..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/restore_database.php
+++ /dev/null
@@ -1,124 +0,0 @@
-setParent($formattedParent)
- ->setDatabaseId($databaseId)
- ->setBackup($formattedBackup);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $firestoreAdminClient->restoreDatabase($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Database $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = FirestoreAdminClient::projectName('[PROJECT]');
- $databaseId = '[DATABASE_ID]';
- $formattedBackup = FirestoreAdminClient::backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
-
- restore_database_sample($formattedParent, $databaseId, $formattedBackup);
-}
-// [END firestore_v1_generated_FirestoreAdmin_RestoreDatabase_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/update_backup_schedule.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/update_backup_schedule.php
deleted file mode 100644
index eaa50535ba29..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/update_backup_schedule.php
+++ /dev/null
@@ -1,59 +0,0 @@
-setBackupSchedule($backupSchedule);
-
- // Call the API and handle any network failures.
- try {
- /** @var BackupSchedule $response */
- $response = $firestoreAdminClient->updateBackupSchedule($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END firestore_v1_generated_FirestoreAdmin_UpdateBackupSchedule_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/update_database.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/update_database.php
deleted file mode 100644
index c98f5c894ff9..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/update_database.php
+++ /dev/null
@@ -1,71 +0,0 @@
-setDatabase($database);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $firestoreAdminClient->updateDatabase($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Database $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END firestore_v1_generated_FirestoreAdmin_UpdateDatabase_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/update_field.php b/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/update_field.php
deleted file mode 100644
index 9b249c701a51..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/samples/V1/FirestoreAdminClient/update_field.php
+++ /dev/null
@@ -1,122 +0,0 @@
-setName($fieldName);
- $request = (new UpdateFieldRequest())
- ->setField($field);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $firestoreAdminClient->updateField($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Field $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $fieldName = '[NAME]';
-
- update_field_sample($fieldName);
-}
-// [END firestore_v1_generated_FirestoreAdmin_UpdateField_sync]
diff --git a/owl-bot-staging/Firestore/v1/Admin/src/V1/Client/FirestoreAdminClient.php b/owl-bot-staging/Firestore/v1/Admin/src/V1/Client/FirestoreAdminClient.php
deleted file mode 100644
index 8aaac30ebea9..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/src/V1/Client/FirestoreAdminClient.php
+++ /dev/null
@@ -1,1177 +0,0 @@
- bulkDeleteDocumentsAsync(BulkDeleteDocumentsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface createBackupScheduleAsync(CreateBackupScheduleRequest $request, array $optionalArgs = [])
- * @method PromiseInterface createDatabaseAsync(CreateDatabaseRequest $request, array $optionalArgs = [])
- * @method PromiseInterface createIndexAsync(CreateIndexRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteBackupScheduleAsync(DeleteBackupScheduleRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteDatabaseAsync(DeleteDatabaseRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteIndexAsync(DeleteIndexRequest $request, array $optionalArgs = [])
- * @method PromiseInterface exportDocumentsAsync(ExportDocumentsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getBackupScheduleAsync(GetBackupScheduleRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getDatabaseAsync(GetDatabaseRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getFieldAsync(GetFieldRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getIndexAsync(GetIndexRequest $request, array $optionalArgs = [])
- * @method PromiseInterface importDocumentsAsync(ImportDocumentsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listBackupSchedulesAsync(ListBackupSchedulesRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listDatabasesAsync(ListDatabasesRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listFieldsAsync(ListFieldsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listIndexesAsync(ListIndexesRequest $request, array $optionalArgs = [])
- * @method PromiseInterface restoreDatabaseAsync(RestoreDatabaseRequest $request, array $optionalArgs = [])
- * @method PromiseInterface updateBackupScheduleAsync(UpdateBackupScheduleRequest $request, array $optionalArgs = [])
- * @method PromiseInterface updateDatabaseAsync(UpdateDatabaseRequest $request, array $optionalArgs = [])
- * @method PromiseInterface updateFieldAsync(UpdateFieldRequest $request, array $optionalArgs = [])
- */
-final class FirestoreAdminClient
-{
- use GapicClientTrait;
- use ResourceHelperTrait;
-
- /** The name of the service. */
- private const SERVICE_NAME = 'google.firestore.admin.v1.FirestoreAdmin';
-
- /**
- * The default address of the service.
- *
- * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
- */
- private const SERVICE_ADDRESS = 'firestore.googleapis.com';
-
- /** The address template of the service. */
- private const SERVICE_ADDRESS_TEMPLATE = 'firestore.UNIVERSE_DOMAIN';
-
- /** The default port of the service. */
- private const DEFAULT_SERVICE_PORT = 443;
-
- /** The name of the code generator, to be included in the agent header. */
- private const CODEGEN_NAME = 'gapic';
-
- /** The default scopes required by the service. */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- 'https://www.googleapis.com/auth/datastore',
- ];
-
- private $operationsClient;
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/firestore_admin_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/firestore_admin_descriptor_config.php',
- 'gcpApiConfigPath' => __DIR__ . '/../resources/firestore_admin_grpc_config.json',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/firestore_admin_rest_client_config.php',
- ],
- ],
- ];
- }
-
- /**
- * Return an OperationsClient object with the same endpoint as $this.
- *
- * @return OperationsClient
- */
- public function getOperationsClient()
- {
- return $this->operationsClient;
- }
-
- /**
- * Resume an existing long running operation that was previously started by a long
- * running API method. If $methodName is not provided, or does not match a long
- * running API method, then the operation can still be resumed, but the
- * OperationResponse object will not deserialize the final response.
- *
- * @param string $operationName The name of the long running operation
- * @param string $methodName The name of the method used to start the operation
- *
- * @return OperationResponse
- */
- public function resumeOperation($operationName, $methodName = null)
- {
- $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : [];
- $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options);
- $operation->reload();
- return $operation;
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a backup
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $backup
- *
- * @return string The formatted backup resource.
- */
- public static function backupName(string $project, string $location, string $backup): string
- {
- return self::getPathTemplate('backup')->render([
- 'project' => $project,
- 'location' => $location,
- 'backup' => $backup,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a
- * backup_schedule resource.
- *
- * @param string $project
- * @param string $database
- * @param string $backupSchedule
- *
- * @return string The formatted backup_schedule resource.
- */
- public static function backupScheduleName(string $project, string $database, string $backupSchedule): string
- {
- return self::getPathTemplate('backupSchedule')->render([
- 'project' => $project,
- 'database' => $database,
- 'backup_schedule' => $backupSchedule,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a
- * collection_group resource.
- *
- * @param string $project
- * @param string $database
- * @param string $collection
- *
- * @return string The formatted collection_group resource.
- */
- public static function collectionGroupName(string $project, string $database, string $collection): string
- {
- return self::getPathTemplate('collectionGroup')->render([
- 'project' => $project,
- 'database' => $database,
- 'collection' => $collection,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a database
- * resource.
- *
- * @param string $project
- * @param string $database
- *
- * @return string The formatted database resource.
- */
- public static function databaseName(string $project, string $database): string
- {
- return self::getPathTemplate('database')->render([
- 'project' => $project,
- 'database' => $database,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a field
- * resource.
- *
- * @param string $project
- * @param string $database
- * @param string $collection
- * @param string $field
- *
- * @return string The formatted field resource.
- */
- public static function fieldName(string $project, string $database, string $collection, string $field): string
- {
- return self::getPathTemplate('field')->render([
- 'project' => $project,
- 'database' => $database,
- 'collection' => $collection,
- 'field' => $field,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a index
- * resource.
- *
- * @param string $project
- * @param string $database
- * @param string $collection
- * @param string $index
- *
- * @return string The formatted index resource.
- */
- public static function indexName(string $project, string $database, string $collection, string $index): string
- {
- return self::getPathTemplate('index')->render([
- 'project' => $project,
- 'database' => $database,
- 'collection' => $collection,
- 'index' => $index,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a location
- * resource.
- *
- * @param string $project
- * @param string $location
- *
- * @return string The formatted location resource.
- */
- public static function locationName(string $project, string $location): string
- {
- return self::getPathTemplate('location')->render([
- 'project' => $project,
- 'location' => $location,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a operation
- * resource.
- *
- * @param string $project
- * @param string $database
- * @param string $operation
- *
- * @return string The formatted operation resource.
- */
- public static function operationName(string $project, string $database, string $operation): string
- {
- return self::getPathTemplate('operation')->render([
- 'project' => $project,
- 'database' => $database,
- 'operation' => $operation,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a project
- * resource.
- *
- * @param string $project
- *
- * @return string The formatted project resource.
- */
- public static function projectName(string $project): string
- {
- return self::getPathTemplate('project')->render([
- 'project' => $project,
- ]);
- }
-
- /**
- * Parses a formatted name string and returns an associative array of the components in the name.
- * The following name formats are supported:
- * Template: Pattern
- * - backup: projects/{project}/locations/{location}/backups/{backup}
- * - backupSchedule: projects/{project}/databases/{database}/backupSchedules/{backup_schedule}
- * - collectionGroup: projects/{project}/databases/{database}/collectionGroups/{collection}
- * - database: projects/{project}/databases/{database}
- * - field: projects/{project}/databases/{database}/collectionGroups/{collection}/fields/{field}
- * - index: projects/{project}/databases/{database}/collectionGroups/{collection}/indexes/{index}
- * - location: projects/{project}/locations/{location}
- * - operation: projects/{project}/databases/{database}/operations/{operation}
- * - project: projects/{project}
- *
- * The optional $template argument can be supplied to specify a particular pattern,
- * and must match one of the templates listed above. If no $template argument is
- * provided, or if the $template argument does not match one of the templates
- * listed, then parseName will check each of the supported templates, and return
- * the first match.
- *
- * @param string $formattedName The formatted name string
- * @param ?string $template Optional name of template to match
- *
- * @return array An associative array from name component IDs to component values.
- *
- * @throws ValidationException If $formattedName could not be matched.
- */
- public static function parseName(string $formattedName, ?string $template = null): array
- {
- return self::parseFormattedName($formattedName, $template);
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'firestore.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. May be either the string
- * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
- * *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'grpc' => [...],
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and
- * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * @type false|LoggerInterface $logger
- * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
- * 'GOOGLE_SDK_PHP_LOGGING' environment flag
- * }
- *
- * @throws ValidationException
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- $this->operationsClient = $this->createOperationsClient($clientOptions);
- }
-
- /** Handles execution of the async variants for each documented method. */
- public function __call($method, $args)
- {
- if (substr($method, -5) !== 'Async') {
- trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR);
- }
-
- array_unshift($args, substr($method, 0, -5));
- return call_user_func_array([$this, 'startAsyncCall'], $args);
- }
-
- /**
- * Bulk deletes a subset of documents from Google Cloud Firestore.
- * Documents created or updated after the underlying system starts to process
- * the request will not be deleted. The bulk delete occurs in the background
- * and its progress can be monitored and managed via the Operation resource
- * that is created.
- *
- * For more details on bulk delete behavior, refer to:
- * https://cloud.google.com/firestore/docs/manage-data/bulk-delete
- *
- * The async variant is {@see FirestoreAdminClient::bulkDeleteDocumentsAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/bulk_delete_documents.php
- *
- * @param BulkDeleteDocumentsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function bulkDeleteDocuments(BulkDeleteDocumentsRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('BulkDeleteDocuments', $request, $callOptions)->wait();
- }
-
- /**
- * Creates a backup schedule on a database.
- * At most two backup schedules can be configured on a database, one daily
- * backup schedule and one weekly backup schedule.
- *
- * The async variant is {@see FirestoreAdminClient::createBackupScheduleAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/create_backup_schedule.php
- *
- * @param CreateBackupScheduleRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 BackupSchedule
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createBackupSchedule(CreateBackupScheduleRequest $request, array $callOptions = []): BackupSchedule
- {
- return $this->startApiCall('CreateBackupSchedule', $request, $callOptions)->wait();
- }
-
- /**
- * Create a database.
- *
- * The async variant is {@see FirestoreAdminClient::createDatabaseAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/create_database.php
- *
- * @param CreateDatabaseRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createDatabase(CreateDatabaseRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateDatabase', $request, $callOptions)->wait();
- }
-
- /**
- * Creates a composite index. This returns a
- * [google.longrunning.Operation][google.longrunning.Operation] which may be
- * used to track the status of the creation. The metadata for the operation
- * will be the type
- * [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
- *
- * The async variant is {@see FirestoreAdminClient::createIndexAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/create_index.php
- *
- * @param CreateIndexRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createIndex(CreateIndexRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateIndex', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes a backup.
- *
- * The async variant is {@see FirestoreAdminClient::deleteBackupAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/delete_backup.php
- *
- * @param DeleteBackupRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Thrown if the API call fails.
- */
- public function deleteBackup(DeleteBackupRequest $request, array $callOptions = []): void
- {
- $this->startApiCall('DeleteBackup', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes a backup schedule.
- *
- * The async variant is {@see FirestoreAdminClient::deleteBackupScheduleAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/delete_backup_schedule.php
- *
- * @param DeleteBackupScheduleRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Thrown if the API call fails.
- */
- public function deleteBackupSchedule(DeleteBackupScheduleRequest $request, array $callOptions = []): void
- {
- $this->startApiCall('DeleteBackupSchedule', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes a database.
- *
- * The async variant is {@see FirestoreAdminClient::deleteDatabaseAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/delete_database.php
- *
- * @param DeleteDatabaseRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function deleteDatabase(DeleteDatabaseRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('DeleteDatabase', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes a composite index.
- *
- * The async variant is {@see FirestoreAdminClient::deleteIndexAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/delete_index.php
- *
- * @param DeleteIndexRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Thrown if the API call fails.
- */
- public function deleteIndex(DeleteIndexRequest $request, array $callOptions = []): void
- {
- $this->startApiCall('DeleteIndex', $request, $callOptions)->wait();
- }
-
- /**
- * Exports a copy of all or a subset of documents from Google Cloud Firestore
- * to another storage system, such as Google Cloud Storage. Recent updates to
- * documents may not be reflected in the export. The export occurs in the
- * background and its progress can be monitored and managed via the
- * Operation resource that is created. The output of an export may only be
- * used once the associated operation is done. If an export operation is
- * cancelled before completion it may leave partial data behind in Google
- * Cloud Storage.
- *
- * For more details on export behavior and output format, refer to:
- * https://cloud.google.com/firestore/docs/manage-data/export-import
- *
- * The async variant is {@see FirestoreAdminClient::exportDocumentsAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/export_documents.php
- *
- * @param ExportDocumentsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function exportDocuments(ExportDocumentsRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('ExportDocuments', $request, $callOptions)->wait();
- }
-
- /**
- * Gets information about a backup.
- *
- * The async variant is {@see FirestoreAdminClient::getBackupAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/get_backup.php
- *
- * @param GetBackupRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Backup
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getBackup(GetBackupRequest $request, array $callOptions = []): Backup
- {
- return $this->startApiCall('GetBackup', $request, $callOptions)->wait();
- }
-
- /**
- * Gets information about a backup schedule.
- *
- * The async variant is {@see FirestoreAdminClient::getBackupScheduleAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/get_backup_schedule.php
- *
- * @param GetBackupScheduleRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 BackupSchedule
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getBackupSchedule(GetBackupScheduleRequest $request, array $callOptions = []): BackupSchedule
- {
- return $this->startApiCall('GetBackupSchedule', $request, $callOptions)->wait();
- }
-
- /**
- * Gets information about a database.
- *
- * The async variant is {@see FirestoreAdminClient::getDatabaseAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/get_database.php
- *
- * @param GetDatabaseRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Database
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getDatabase(GetDatabaseRequest $request, array $callOptions = []): Database
- {
- return $this->startApiCall('GetDatabase', $request, $callOptions)->wait();
- }
-
- /**
- * Gets the metadata and configuration for a Field.
- *
- * The async variant is {@see FirestoreAdminClient::getFieldAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/get_field.php
- *
- * @param GetFieldRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Field
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getField(GetFieldRequest $request, array $callOptions = []): Field
- {
- return $this->startApiCall('GetField', $request, $callOptions)->wait();
- }
-
- /**
- * Gets a composite index.
- *
- * The async variant is {@see FirestoreAdminClient::getIndexAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/get_index.php
- *
- * @param GetIndexRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Index
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getIndex(GetIndexRequest $request, array $callOptions = []): Index
- {
- return $this->startApiCall('GetIndex', $request, $callOptions)->wait();
- }
-
- /**
- * Imports documents into Google Cloud Firestore. Existing documents with the
- * same name are overwritten. The import occurs in the background and its
- * progress can be monitored and managed via the Operation resource that is
- * created. If an ImportDocuments operation is cancelled, it is possible
- * that a subset of the data has already been imported to Cloud Firestore.
- *
- * The async variant is {@see FirestoreAdminClient::importDocumentsAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/import_documents.php
- *
- * @param ImportDocumentsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function importDocuments(ImportDocumentsRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('ImportDocuments', $request, $callOptions)->wait();
- }
-
- /**
- * List backup schedules.
- *
- * The async variant is {@see FirestoreAdminClient::listBackupSchedulesAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/list_backup_schedules.php
- *
- * @param ListBackupSchedulesRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 ListBackupSchedulesResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listBackupSchedules(ListBackupSchedulesRequest $request, array $callOptions = []): ListBackupSchedulesResponse
- {
- return $this->startApiCall('ListBackupSchedules', $request, $callOptions)->wait();
- }
-
- /**
- * Lists all the backups.
- *
- * The async variant is {@see FirestoreAdminClient::listBackupsAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/list_backups.php
- *
- * @param ListBackupsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 ListBackupsResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listBackups(ListBackupsRequest $request, array $callOptions = []): ListBackupsResponse
- {
- return $this->startApiCall('ListBackups', $request, $callOptions)->wait();
- }
-
- /**
- * List all the databases in the project.
- *
- * The async variant is {@see FirestoreAdminClient::listDatabasesAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/list_databases.php
- *
- * @param ListDatabasesRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 ListDatabasesResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listDatabases(ListDatabasesRequest $request, array $callOptions = []): ListDatabasesResponse
- {
- return $this->startApiCall('ListDatabases', $request, $callOptions)->wait();
- }
-
- /**
- * Lists the field configuration and metadata for this database.
- *
- * Currently,
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
- * only supports listing fields that have been explicitly overridden. To issue
- * this query, call
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
- * with the filter set to `indexConfig.usesAncestorConfig:false` or
- * `ttlConfig:*`.
- *
- * The async variant is {@see FirestoreAdminClient::listFieldsAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/list_fields.php
- *
- * @param ListFieldsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listFields(ListFieldsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListFields', $request, $callOptions);
- }
-
- /**
- * Lists composite indexes.
- *
- * The async variant is {@see FirestoreAdminClient::listIndexesAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/list_indexes.php
- *
- * @param ListIndexesRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listIndexes(ListIndexesRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListIndexes', $request, $callOptions);
- }
-
- /**
- * Creates a new database by restoring from an existing backup.
- *
- * The new database must be in the same cloud region or multi-region location
- * as the existing backup. This behaves similar to
- * [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]
- * except instead of creating a new empty database, a new database is created
- * with the database type, index configuration, and documents from an existing
- * backup.
- *
- * The [long-running operation][google.longrunning.Operation] can be used to
- * track the progress of the restore, with the Operation's
- * [metadata][google.longrunning.Operation.metadata] field type being the
- * [RestoreDatabaseMetadata][google.firestore.admin.v1.RestoreDatabaseMetadata].
- * The [response][google.longrunning.Operation.response] type is the
- * [Database][google.firestore.admin.v1.Database] if the restore was
- * successful. The new database is not readable or writeable until the LRO has
- * completed.
- *
- * The async variant is {@see FirestoreAdminClient::restoreDatabaseAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/restore_database.php
- *
- * @param RestoreDatabaseRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function restoreDatabase(RestoreDatabaseRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('RestoreDatabase', $request, $callOptions)->wait();
- }
-
- /**
- * Updates a backup schedule.
- *
- * The async variant is {@see FirestoreAdminClient::updateBackupScheduleAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/update_backup_schedule.php
- *
- * @param UpdateBackupScheduleRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 BackupSchedule
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateBackupSchedule(UpdateBackupScheduleRequest $request, array $callOptions = []): BackupSchedule
- {
- return $this->startApiCall('UpdateBackupSchedule', $request, $callOptions)->wait();
- }
-
- /**
- * Updates a database.
- *
- * The async variant is {@see FirestoreAdminClient::updateDatabaseAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/update_database.php
- *
- * @param UpdateDatabaseRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateDatabase(UpdateDatabaseRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('UpdateDatabase', $request, $callOptions)->wait();
- }
-
- /**
- * Updates a field configuration. Currently, field updates apply only to
- * single field index configuration. However, calls to
- * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]
- * should provide a field mask to avoid changing any configuration that the
- * caller isn't aware of. The field mask should be specified as: `{ paths:
- * "index_config" }`.
- *
- * This call returns a
- * [google.longrunning.Operation][google.longrunning.Operation] which may be
- * used to track the status of the field update. The metadata for the
- * operation will be the type
- * [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
- *
- * To configure the default field settings for the database, use
- * the special `Field` with resource name:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
- *
- * The async variant is {@see FirestoreAdminClient::updateFieldAsync()} .
- *
- * @example samples/V1/FirestoreAdminClient/update_field.php
- *
- * @param UpdateFieldRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateField(UpdateFieldRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('UpdateField', $request, $callOptions)->wait();
- }
-}
diff --git a/owl-bot-staging/Firestore/v1/Admin/src/V1/FirestoreAdminClient.php b/owl-bot-staging/Firestore/v1/Admin/src/V1/FirestoreAdminClient.php
deleted file mode 100644
index c16524637b1e..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/src/V1/FirestoreAdminClient.php
+++ /dev/null
@@ -1,34 +0,0 @@
-databaseName('[PROJECT]', '[DATABASE]');
- * $operationResponse = $firestoreAdminClient->bulkDeleteDocuments($formattedName);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $firestoreAdminClient->bulkDeleteDocuments($formattedName);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $firestoreAdminClient->resumeOperation($operationName, 'bulkDeleteDocuments');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * Many parameters require resource names to be formatted in a particular way. To
- * assist with these names, this class includes a format method for each type of
- * name, and additionally a parseName method to extract the individual identifiers
- * contained within formatted names that are returned by the API.
- *
- * @deprecated Please use the new service client {@see \Google\Cloud\Firestore\Admin\V1\Client\FirestoreAdminClient}.
- */
-class FirestoreAdminGapicClient
-{
- use GapicClientTrait;
-
- /** The name of the service. */
- const SERVICE_NAME = 'google.firestore.admin.v1.FirestoreAdmin';
-
- /**
- * The default address of the service.
- *
- * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
- */
- const SERVICE_ADDRESS = 'firestore.googleapis.com';
-
- /** The address template of the service. */
- private const SERVICE_ADDRESS_TEMPLATE = 'firestore.UNIVERSE_DOMAIN';
-
- /** The default port of the service. */
- const DEFAULT_SERVICE_PORT = 443;
-
- /** The name of the code generator, to be included in the agent header. */
- const CODEGEN_NAME = 'gapic';
-
- /** The default scopes required by the service. */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- 'https://www.googleapis.com/auth/datastore',
- ];
-
- private static $backupNameTemplate;
-
- private static $backupScheduleNameTemplate;
-
- private static $collectionGroupNameTemplate;
-
- private static $databaseNameTemplate;
-
- private static $fieldNameTemplate;
-
- private static $indexNameTemplate;
-
- private static $locationNameTemplate;
-
- private static $operationNameTemplate;
-
- private static $projectNameTemplate;
-
- private static $pathTemplateMap;
-
- private $operationsClient;
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/firestore_admin_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/firestore_admin_descriptor_config.php',
- 'gcpApiConfigPath' => __DIR__ . '/../resources/firestore_admin_grpc_config.json',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/firestore_admin_rest_client_config.php',
- ],
- ],
- ];
- }
-
- private static function getBackupNameTemplate()
- {
- if (self::$backupNameTemplate == null) {
- self::$backupNameTemplate = new PathTemplate('projects/{project}/locations/{location}/backups/{backup}');
- }
-
- return self::$backupNameTemplate;
- }
-
- private static function getBackupScheduleNameTemplate()
- {
- if (self::$backupScheduleNameTemplate == null) {
- self::$backupScheduleNameTemplate = new PathTemplate('projects/{project}/databases/{database}/backupSchedules/{backup_schedule}');
- }
-
- return self::$backupScheduleNameTemplate;
- }
-
- private static function getCollectionGroupNameTemplate()
- {
- if (self::$collectionGroupNameTemplate == null) {
- self::$collectionGroupNameTemplate = new PathTemplate('projects/{project}/databases/{database}/collectionGroups/{collection}');
- }
-
- return self::$collectionGroupNameTemplate;
- }
-
- private static function getDatabaseNameTemplate()
- {
- if (self::$databaseNameTemplate == null) {
- self::$databaseNameTemplate = new PathTemplate('projects/{project}/databases/{database}');
- }
-
- return self::$databaseNameTemplate;
- }
-
- private static function getFieldNameTemplate()
- {
- if (self::$fieldNameTemplate == null) {
- self::$fieldNameTemplate = new PathTemplate('projects/{project}/databases/{database}/collectionGroups/{collection}/fields/{field}');
- }
-
- return self::$fieldNameTemplate;
- }
-
- private static function getIndexNameTemplate()
- {
- if (self::$indexNameTemplate == null) {
- self::$indexNameTemplate = new PathTemplate('projects/{project}/databases/{database}/collectionGroups/{collection}/indexes/{index}');
- }
-
- return self::$indexNameTemplate;
- }
-
- private static function getLocationNameTemplate()
- {
- if (self::$locationNameTemplate == null) {
- self::$locationNameTemplate = new PathTemplate('projects/{project}/locations/{location}');
- }
-
- return self::$locationNameTemplate;
- }
-
- private static function getOperationNameTemplate()
- {
- if (self::$operationNameTemplate == null) {
- self::$operationNameTemplate = new PathTemplate('projects/{project}/databases/{database}/operations/{operation}');
- }
-
- return self::$operationNameTemplate;
- }
-
- private static function getProjectNameTemplate()
- {
- if (self::$projectNameTemplate == null) {
- self::$projectNameTemplate = new PathTemplate('projects/{project}');
- }
-
- return self::$projectNameTemplate;
- }
-
- private static function getPathTemplateMap()
- {
- if (self::$pathTemplateMap == null) {
- self::$pathTemplateMap = [
- 'backup' => self::getBackupNameTemplate(),
- 'backupSchedule' => self::getBackupScheduleNameTemplate(),
- 'collectionGroup' => self::getCollectionGroupNameTemplate(),
- 'database' => self::getDatabaseNameTemplate(),
- 'field' => self::getFieldNameTemplate(),
- 'index' => self::getIndexNameTemplate(),
- 'location' => self::getLocationNameTemplate(),
- 'operation' => self::getOperationNameTemplate(),
- 'project' => self::getProjectNameTemplate(),
- ];
- }
-
- return self::$pathTemplateMap;
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a backup
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $backup
- *
- * @return string The formatted backup resource.
- */
- public static function backupName($project, $location, $backup)
- {
- return self::getBackupNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- 'backup' => $backup,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a
- * backup_schedule resource.
- *
- * @param string $project
- * @param string $database
- * @param string $backupSchedule
- *
- * @return string The formatted backup_schedule resource.
- */
- public static function backupScheduleName($project, $database, $backupSchedule)
- {
- return self::getBackupScheduleNameTemplate()->render([
- 'project' => $project,
- 'database' => $database,
- 'backup_schedule' => $backupSchedule,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a
- * collection_group resource.
- *
- * @param string $project
- * @param string $database
- * @param string $collection
- *
- * @return string The formatted collection_group resource.
- */
- public static function collectionGroupName($project, $database, $collection)
- {
- return self::getCollectionGroupNameTemplate()->render([
- 'project' => $project,
- 'database' => $database,
- 'collection' => $collection,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a database
- * resource.
- *
- * @param string $project
- * @param string $database
- *
- * @return string The formatted database resource.
- */
- public static function databaseName($project, $database)
- {
- return self::getDatabaseNameTemplate()->render([
- 'project' => $project,
- 'database' => $database,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a field
- * resource.
- *
- * @param string $project
- * @param string $database
- * @param string $collection
- * @param string $field
- *
- * @return string The formatted field resource.
- */
- public static function fieldName($project, $database, $collection, $field)
- {
- return self::getFieldNameTemplate()->render([
- 'project' => $project,
- 'database' => $database,
- 'collection' => $collection,
- 'field' => $field,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a index
- * resource.
- *
- * @param string $project
- * @param string $database
- * @param string $collection
- * @param string $index
- *
- * @return string The formatted index resource.
- */
- public static function indexName($project, $database, $collection, $index)
- {
- return self::getIndexNameTemplate()->render([
- 'project' => $project,
- 'database' => $database,
- 'collection' => $collection,
- 'index' => $index,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a location
- * resource.
- *
- * @param string $project
- * @param string $location
- *
- * @return string The formatted location resource.
- */
- public static function locationName($project, $location)
- {
- return self::getLocationNameTemplate()->render([
- 'project' => $project,
- 'location' => $location,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a operation
- * resource.
- *
- * @param string $project
- * @param string $database
- * @param string $operation
- *
- * @return string The formatted operation resource.
- */
- public static function operationName($project, $database, $operation)
- {
- return self::getOperationNameTemplate()->render([
- 'project' => $project,
- 'database' => $database,
- 'operation' => $operation,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a project
- * resource.
- *
- * @param string $project
- *
- * @return string The formatted project resource.
- */
- public static function projectName($project)
- {
- return self::getProjectNameTemplate()->render([
- 'project' => $project,
- ]);
- }
-
- /**
- * Parses a formatted name string and returns an associative array of the components in the name.
- * The following name formats are supported:
- * Template: Pattern
- * - backup: projects/{project}/locations/{location}/backups/{backup}
- * - backupSchedule: projects/{project}/databases/{database}/backupSchedules/{backup_schedule}
- * - collectionGroup: projects/{project}/databases/{database}/collectionGroups/{collection}
- * - database: projects/{project}/databases/{database}
- * - field: projects/{project}/databases/{database}/collectionGroups/{collection}/fields/{field}
- * - index: projects/{project}/databases/{database}/collectionGroups/{collection}/indexes/{index}
- * - location: projects/{project}/locations/{location}
- * - operation: projects/{project}/databases/{database}/operations/{operation}
- * - project: projects/{project}
- *
- * The optional $template argument can be supplied to specify a particular pattern,
- * and must match one of the templates listed above. If no $template argument is
- * provided, or if the $template argument does not match one of the templates
- * listed, then parseName will check each of the supported templates, and return
- * the first match.
- *
- * @param string $formattedName The formatted name string
- * @param string $template Optional name of template to match
- *
- * @return array An associative array from name component IDs to component values.
- *
- * @throws ValidationException If $formattedName could not be matched.
- */
- public static function parseName($formattedName, $template = null)
- {
- $templateMap = self::getPathTemplateMap();
- if ($template) {
- if (!isset($templateMap[$template])) {
- throw new ValidationException("Template name $template does not exist");
- }
-
- return $templateMap[$template]->match($formattedName);
- }
-
- foreach ($templateMap as $templateName => $pathTemplate) {
- try {
- return $pathTemplate->match($formattedName);
- } catch (ValidationException $ex) {
- // Swallow the exception to continue trying other path templates
- }
- }
-
- throw new ValidationException("Input did not match any known format. Input: $formattedName");
- }
-
- /**
- * Return an OperationsClient object with the same endpoint as $this.
- *
- * @return OperationsClient
- */
- public function getOperationsClient()
- {
- return $this->operationsClient;
- }
-
- /**
- * Resume an existing long running operation that was previously started by a long
- * running API method. If $methodName is not provided, or does not match a long
- * running API method, then the operation can still be resumed, but the
- * OperationResponse object will not deserialize the final response.
- *
- * @param string $operationName The name of the long running operation
- * @param string $methodName The name of the method used to start the operation
- *
- * @return OperationResponse
- */
- public function resumeOperation($operationName, $methodName = null)
- {
- $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : [];
- $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options);
- $operation->reload();
- return $operation;
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'firestore.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. May be either the string
- * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
- * *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'grpc' => [...],
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and
- * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * }
- *
- * @throws ValidationException
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- $this->operationsClient = $this->createOperationsClient($clientOptions);
- }
-
- /**
- * Bulk deletes a subset of documents from Google Cloud Firestore.
- * Documents created or updated after the underlying system starts to process
- * the request will not be deleted. The bulk delete occurs in the background
- * and its progress can be monitored and managed via the Operation resource
- * that is created.
- *
- * For more details on bulk delete behavior, refer to:
- * https://cloud.google.com/firestore/docs/manage-data/bulk-delete
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedName = $firestoreAdminClient->databaseName('[PROJECT]', '[DATABASE]');
- * $operationResponse = $firestoreAdminClient->bulkDeleteDocuments($formattedName);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $firestoreAdminClient->bulkDeleteDocuments($formattedName);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $firestoreAdminClient->resumeOperation($operationName, 'bulkDeleteDocuments');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $name Required. Database to operate. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string[] $collectionIds
- * Optional. IDs of the collection groups to delete. Unspecified means all
- * collection groups.
- *
- * Each collection group in this list must be unique.
- * @type string[] $namespaceIds
- * Optional. Namespaces to delete.
- *
- * An empty list means all namespaces. This is the recommended
- * usage for databases that don't use namespaces.
- *
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to delete from them.
- *
- * Each namespace in this list must be unique.
- * @type RetrySettings|array $retrySettings
- * 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\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function bulkDeleteDocuments($name, array $optionalArgs = [])
- {
- $request = new BulkDeleteDocumentsRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- if (isset($optionalArgs['collectionIds'])) {
- $request->setCollectionIds($optionalArgs['collectionIds']);
- }
-
- if (isset($optionalArgs['namespaceIds'])) {
- $request->setNamespaceIds($optionalArgs['namespaceIds']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('BulkDeleteDocuments', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Creates a backup schedule on a database.
- * At most two backup schedules can be configured on a database, one daily
- * backup schedule and one weekly backup schedule.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedParent = $firestoreAdminClient->databaseName('[PROJECT]', '[DATABASE]');
- * $backupSchedule = new BackupSchedule();
- * $response = $firestoreAdminClient->createBackupSchedule($formattedParent, $backupSchedule);
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent database.
- *
- * Format `projects/{project}/databases/{database}`
- * @param BackupSchedule $backupSchedule Required. The backup schedule to create.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\Admin\V1\BackupSchedule
- *
- * @throws ApiException if the remote call fails
- */
- public function createBackupSchedule($parent, $backupSchedule, array $optionalArgs = [])
- {
- $request = new CreateBackupScheduleRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setBackupSchedule($backupSchedule);
- $requestParamHeaders['parent'] = $parent;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('CreateBackupSchedule', BackupSchedule::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Create a database.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedParent = $firestoreAdminClient->projectName('[PROJECT]');
- * $database = new Database();
- * $databaseId = 'database_id';
- * $operationResponse = $firestoreAdminClient->createDatabase($formattedParent, $database, $databaseId);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $firestoreAdminClient->createDatabase($formattedParent, $database, $databaseId);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $firestoreAdminClient->resumeOperation($operationName, 'createDatabase');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $parent Required. A parent name of the form
- * `projects/{project_id}`
- * @param Database $database Required. The Database to create.
- * @param string $databaseId Required. The ID to use for the database, which will become the final
- * component of the database's resource name.
- *
- * This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
- * with first character a letter and the last a letter or a number. Must not
- * be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
- *
- * "(default)" database ID is also valid.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function createDatabase($parent, $database, $databaseId, array $optionalArgs = [])
- {
- $request = new CreateDatabaseRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setDatabase($database);
- $request->setDatabaseId($databaseId);
- $requestParamHeaders['parent'] = $parent;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('CreateDatabase', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Creates a composite index. This returns a
- * [google.longrunning.Operation][google.longrunning.Operation] which may be
- * used to track the status of the creation. The metadata for the operation
- * will be the type
- * [IndexOperationMetadata][google.firestore.admin.v1.IndexOperationMetadata].
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedParent = $firestoreAdminClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- * $index = new Index();
- * $operationResponse = $firestoreAdminClient->createIndex($formattedParent, $index);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $firestoreAdminClient->createIndex($formattedParent, $index);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $firestoreAdminClient->resumeOperation($operationName, 'createIndex');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $parent Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- * @param Index $index Required. The composite index to create.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function createIndex($parent, $index, array $optionalArgs = [])
- {
- $request = new CreateIndexRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setIndex($index);
- $requestParamHeaders['parent'] = $parent;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('CreateIndex', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Deletes a backup.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedName = $firestoreAdminClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- * $firestoreAdminClient->deleteBackup($formattedName);
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the backup to delete.
- *
- * format is `projects/{project}/locations/{location}/backups/{backup}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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
- */
- public function deleteBackup($name, array $optionalArgs = [])
- {
- $request = new DeleteBackupRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('DeleteBackup', GPBEmpty::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Deletes a backup schedule.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedName = $firestoreAdminClient->backupScheduleName('[PROJECT]', '[DATABASE]', '[BACKUP_SCHEDULE]');
- * $firestoreAdminClient->deleteBackupSchedule($formattedName);
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $name Required. The name of the backup schedule.
- *
- * Format
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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
- */
- public function deleteBackupSchedule($name, array $optionalArgs = [])
- {
- $request = new DeleteBackupScheduleRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('DeleteBackupSchedule', GPBEmpty::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Deletes a database.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedName = $firestoreAdminClient->databaseName('[PROJECT]', '[DATABASE]');
- * $operationResponse = $firestoreAdminClient->deleteDatabase($formattedName);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $firestoreAdminClient->deleteDatabase($formattedName);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $firestoreAdminClient->resumeOperation($operationName, 'deleteDatabase');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $name Required. A name of the form
- * `projects/{project_id}/databases/{database_id}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $etag
- * The current etag of the Database.
- * If an etag is provided and does not match the current etag of the database,
- * deletion will be blocked and a FAILED_PRECONDITION error will be returned.
- * @type RetrySettings|array $retrySettings
- * 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\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function deleteDatabase($name, array $optionalArgs = [])
- {
- $request = new DeleteDatabaseRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- if (isset($optionalArgs['etag'])) {
- $request->setEtag($optionalArgs['etag']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('DeleteDatabase', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Deletes a composite index.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedName = $firestoreAdminClient->indexName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[INDEX]');
- * $firestoreAdminClient->deleteIndex($formattedName);
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $name Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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
- */
- public function deleteIndex($name, array $optionalArgs = [])
- {
- $request = new DeleteIndexRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('DeleteIndex', GPBEmpty::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Exports a copy of all or a subset of documents from Google Cloud Firestore
- * to another storage system, such as Google Cloud Storage. Recent updates to
- * documents may not be reflected in the export. The export occurs in the
- * background and its progress can be monitored and managed via the
- * Operation resource that is created. The output of an export may only be
- * used once the associated operation is done. If an export operation is
- * cancelled before completion it may leave partial data behind in Google
- * Cloud Storage.
- *
- * For more details on export behavior and output format, refer to:
- * https://cloud.google.com/firestore/docs/manage-data/export-import
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedName = $firestoreAdminClient->databaseName('[PROJECT]', '[DATABASE]');
- * $operationResponse = $firestoreAdminClient->exportDocuments($formattedName);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $firestoreAdminClient->exportDocuments($formattedName);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $firestoreAdminClient->resumeOperation($operationName, 'exportDocuments');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $name Required. Database to export. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string[] $collectionIds
- * Which collection IDs to export. Unspecified means all collections. Each
- * collection ID in this list must be unique.
- * @type string $outputUriPrefix
- * The output URI. Currently only supports Google Cloud Storage URIs of the
- * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the name
- * of the Google Cloud Storage bucket and `NAMESPACE_PATH` is an optional
- * Google Cloud Storage namespace path. When
- * choosing a name, be sure to consider Google Cloud Storage naming
- * guidelines: https://cloud.google.com/storage/docs/naming.
- * If the URI is a bucket (without a namespace path), a prefix will be
- * generated based on the start time.
- * @type string[] $namespaceIds
- * An empty list represents all namespaces. This is the preferred
- * usage for databases that don't use namespaces.
- *
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to include them. Each namespace in this list must be unique.
- * @type Timestamp $snapshotTime
- * The timestamp that corresponds to the version of the database to be
- * exported. The timestamp must be in the past, rounded to the minute and not
- * older than
- * [earliestVersionTime][google.firestore.admin.v1.Database.earliest_version_time].
- * If specified, then the exported documents will represent a consistent view
- * of the database at the provided time. Otherwise, there are no guarantees
- * about the consistency of the exported documents.
- * @type RetrySettings|array $retrySettings
- * 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\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function exportDocuments($name, array $optionalArgs = [])
- {
- $request = new ExportDocumentsRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- if (isset($optionalArgs['collectionIds'])) {
- $request->setCollectionIds($optionalArgs['collectionIds']);
- }
-
- if (isset($optionalArgs['outputUriPrefix'])) {
- $request->setOutputUriPrefix($optionalArgs['outputUriPrefix']);
- }
-
- if (isset($optionalArgs['namespaceIds'])) {
- $request->setNamespaceIds($optionalArgs['namespaceIds']);
- }
-
- if (isset($optionalArgs['snapshotTime'])) {
- $request->setSnapshotTime($optionalArgs['snapshotTime']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('ExportDocuments', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Gets information about a backup.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedName = $firestoreAdminClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- * $response = $firestoreAdminClient->getBackup($formattedName);
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $name Required. Name of the backup to fetch.
- *
- * Format is `projects/{project}/locations/{location}/backups/{backup}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\Admin\V1\Backup
- *
- * @throws ApiException if the remote call fails
- */
- public function getBackup($name, array $optionalArgs = [])
- {
- $request = new GetBackupRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetBackup', Backup::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Gets information about a backup schedule.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedName = $firestoreAdminClient->backupScheduleName('[PROJECT]', '[DATABASE]', '[BACKUP_SCHEDULE]');
- * $response = $firestoreAdminClient->getBackupSchedule($formattedName);
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $name Required. The name of the backup schedule.
- *
- * Format
- * `projects/{project}/databases/{database}/backupSchedules/{backup_schedule}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\Admin\V1\BackupSchedule
- *
- * @throws ApiException if the remote call fails
- */
- public function getBackupSchedule($name, array $optionalArgs = [])
- {
- $request = new GetBackupScheduleRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetBackupSchedule', BackupSchedule::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Gets information about a database.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedName = $firestoreAdminClient->databaseName('[PROJECT]', '[DATABASE]');
- * $response = $firestoreAdminClient->getDatabase($formattedName);
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $name Required. A name of the form
- * `projects/{project_id}/databases/{database_id}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\Admin\V1\Database
- *
- * @throws ApiException if the remote call fails
- */
- public function getDatabase($name, array $optionalArgs = [])
- {
- $request = new GetDatabaseRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetDatabase', Database::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Gets the metadata and configuration for a Field.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedName = $firestoreAdminClient->fieldName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[FIELD]');
- * $response = $firestoreAdminClient->getField($formattedName);
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $name Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_id}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\Admin\V1\Field
- *
- * @throws ApiException if the remote call fails
- */
- public function getField($name, array $optionalArgs = [])
- {
- $request = new GetFieldRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetField', Field::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Gets a composite index.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedName = $firestoreAdminClient->indexName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[INDEX]');
- * $response = $firestoreAdminClient->getIndex($formattedName);
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $name Required. A name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/indexes/{index_id}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\Admin\V1\Index
- *
- * @throws ApiException if the remote call fails
- */
- public function getIndex($name, array $optionalArgs = [])
- {
- $request = new GetIndexRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetIndex', Index::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Imports documents into Google Cloud Firestore. Existing documents with the
- * same name are overwritten. The import occurs in the background and its
- * progress can be monitored and managed via the Operation resource that is
- * created. If an ImportDocuments operation is cancelled, it is possible
- * that a subset of the data has already been imported to Cloud Firestore.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedName = $firestoreAdminClient->databaseName('[PROJECT]', '[DATABASE]');
- * $operationResponse = $firestoreAdminClient->importDocuments($formattedName);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * // operation succeeded and returns no value
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $firestoreAdminClient->importDocuments($formattedName);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $firestoreAdminClient->resumeOperation($operationName, 'importDocuments');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * // operation succeeded and returns no value
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $name Required. Database to import into. Should be of the form:
- * `projects/{project_id}/databases/{database_id}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string[] $collectionIds
- * Which collection IDs to import. Unspecified means all collections included
- * in the import. Each collection ID in this list must be unique.
- * @type string $inputUriPrefix
- * Location of the exported files.
- * This must match the output_uri_prefix of an ExportDocumentsResponse from
- * an export that has completed successfully.
- * See:
- * [google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix][google.firestore.admin.v1.ExportDocumentsResponse.output_uri_prefix].
- * @type string[] $namespaceIds
- * An empty list represents all namespaces. This is the preferred
- * usage for databases that don't use namespaces.
- *
- * An empty string element represents the default namespace. This should be
- * used if the database has data in non-default namespaces, but doesn't want
- * to include them. Each namespace in this list must be unique.
- * @type RetrySettings|array $retrySettings
- * 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\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function importDocuments($name, array $optionalArgs = [])
- {
- $request = new ImportDocumentsRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- if (isset($optionalArgs['collectionIds'])) {
- $request->setCollectionIds($optionalArgs['collectionIds']);
- }
-
- if (isset($optionalArgs['inputUriPrefix'])) {
- $request->setInputUriPrefix($optionalArgs['inputUriPrefix']);
- }
-
- if (isset($optionalArgs['namespaceIds'])) {
- $request->setNamespaceIds($optionalArgs['namespaceIds']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('ImportDocuments', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * List backup schedules.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedParent = $firestoreAdminClient->databaseName('[PROJECT]', '[DATABASE]');
- * $response = $firestoreAdminClient->listBackupSchedules($formattedParent);
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent database.
- *
- * Format is `projects/{project}/databases/{database}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\Admin\V1\ListBackupSchedulesResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function listBackupSchedules($parent, array $optionalArgs = [])
- {
- $request = new ListBackupSchedulesRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('ListBackupSchedules', ListBackupSchedulesResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Lists all the backups.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedParent = $firestoreAdminClient->locationName('[PROJECT]', '[LOCATION]');
- * $response = $firestoreAdminClient->listBackups($formattedParent);
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The location to list backups from.
- *
- * Format is `projects/{project}/locations/{location}`.
- * Use `{location} = '-'` to list backups from all locations for the given
- * project. This allows listing backups from a single location or from all
- * locations.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\Admin\V1\ListBackupsResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function listBackups($parent, array $optionalArgs = [])
- {
- $request = new ListBackupsRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('ListBackups', ListBackupsResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * List all the databases in the project.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedParent = $firestoreAdminClient->projectName('[PROJECT]');
- * $response = $firestoreAdminClient->listDatabases($formattedParent);
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $parent Required. A parent name of the form
- * `projects/{project_id}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type bool $showDeleted
- * If true, also returns deleted resources.
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\Admin\V1\ListDatabasesResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function listDatabases($parent, array $optionalArgs = [])
- {
- $request = new ListDatabasesRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['showDeleted'])) {
- $request->setShowDeleted($optionalArgs['showDeleted']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('ListDatabases', ListDatabasesResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Lists the field configuration and metadata for this database.
- *
- * Currently,
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
- * only supports listing fields that have been explicitly overridden. To issue
- * this query, call
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
- * with the filter set to `indexConfig.usesAncestorConfig:false` or
- * `ttlConfig:*`.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedParent = $firestoreAdminClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- * // Iterate over pages of elements
- * $pagedResponse = $firestoreAdminClient->listFields($formattedParent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $firestoreAdminClient->listFields($formattedParent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $parent Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $filter
- * The filter to apply to list results. Currently,
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
- * only supports listing fields that have been explicitly overridden. To issue
- * this query, call
- * [FirestoreAdmin.ListFields][google.firestore.admin.v1.FirestoreAdmin.ListFields]
- * with a filter that includes `indexConfig.usesAncestorConfig:false` or
- * `ttlConfig:*`.
- * @type int $pageSize
- * The maximum number of resources contained in the underlying API
- * response. The API may return fewer values in a page, even if
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type RetrySettings|array $retrySettings
- * 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
- *
- * @throws ApiException if the remote call fails
- */
- public function listFields($parent, array $optionalArgs = [])
- {
- $request = new ListFieldsRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['filter'])) {
- $request->setFilter($optionalArgs['filter']);
- }
-
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListFields', $optionalArgs, ListFieldsResponse::class, $request);
- }
-
- /**
- * Lists composite indexes.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedParent = $firestoreAdminClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- * // Iterate over pages of elements
- * $pagedResponse = $firestoreAdminClient->listIndexes($formattedParent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $firestoreAdminClient->listIndexes($formattedParent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $parent Required. A parent name of the form
- * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $filter
- * The filter to apply to list results.
- * @type int $pageSize
- * The maximum number of resources contained in the underlying API
- * response. The API may return fewer values in a page, even if
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type RetrySettings|array $retrySettings
- * 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
- *
- * @throws ApiException if the remote call fails
- */
- public function listIndexes($parent, array $optionalArgs = [])
- {
- $request = new ListIndexesRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['filter'])) {
- $request->setFilter($optionalArgs['filter']);
- }
-
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListIndexes', $optionalArgs, ListIndexesResponse::class, $request);
- }
-
- /**
- * Creates a new database by restoring from an existing backup.
- *
- * The new database must be in the same cloud region or multi-region location
- * as the existing backup. This behaves similar to
- * [FirestoreAdmin.CreateDatabase][google.firestore.admin.v1.FirestoreAdmin.CreateDatabase]
- * except instead of creating a new empty database, a new database is created
- * with the database type, index configuration, and documents from an existing
- * backup.
- *
- * The [long-running operation][google.longrunning.Operation] can be used to
- * track the progress of the restore, with the Operation's
- * [metadata][google.longrunning.Operation.metadata] field type being the
- * [RestoreDatabaseMetadata][google.firestore.admin.v1.RestoreDatabaseMetadata].
- * The [response][google.longrunning.Operation.response] type is the
- * [Database][google.firestore.admin.v1.Database] if the restore was
- * successful. The new database is not readable or writeable until the LRO has
- * completed.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $formattedParent = $firestoreAdminClient->projectName('[PROJECT]');
- * $databaseId = 'database_id';
- * $formattedBackup = $firestoreAdminClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- * $operationResponse = $firestoreAdminClient->restoreDatabase($formattedParent, $databaseId, $formattedBackup);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $firestoreAdminClient->restoreDatabase($formattedParent, $databaseId, $formattedBackup);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $firestoreAdminClient->resumeOperation($operationName, 'restoreDatabase');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The project to restore the database in. Format is
- * `projects/{project_id}`.
- * @param string $databaseId Required. The ID to use for the database, which will become the final
- * component of the database's resource name. This database ID must not be
- * associated with an existing database.
- *
- * This value should be 4-63 characters. Valid characters are /[a-z][0-9]-/
- * with first character a letter and the last a letter or a number. Must not
- * be UUID-like /[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}/.
- *
- * "(default)" database ID is also valid.
- * @param string $backup Required. Backup to restore from. Must be from the same project as the
- * parent.
- *
- * The restored database will be created in the same location as the source
- * backup.
- *
- * Format is: `projects/{project_id}/locations/{location}/backups/{backup}`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type EncryptionConfig $encryptionConfig
- * Optional. Encryption configuration for the restored database.
- *
- * If this field is not specified, the restored database will use
- * the same encryption configuration as the backup, namely
- * [use_source_encryption][google.firestore.admin.v1.Database.EncryptionConfig.use_source_encryption].
- * @type RetrySettings|array $retrySettings
- * 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\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function restoreDatabase($parent, $databaseId, $backup, array $optionalArgs = [])
- {
- $request = new RestoreDatabaseRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setDatabaseId($databaseId);
- $request->setBackup($backup);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['encryptionConfig'])) {
- $request->setEncryptionConfig($optionalArgs['encryptionConfig']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('RestoreDatabase', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Updates a backup schedule.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $backupSchedule = new BackupSchedule();
- * $response = $firestoreAdminClient->updateBackupSchedule($backupSchedule);
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param BackupSchedule $backupSchedule Required. The backup schedule to update.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type FieldMask $updateMask
- * The list of fields to be updated.
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\Admin\V1\BackupSchedule
- *
- * @throws ApiException if the remote call fails
- */
- public function updateBackupSchedule($backupSchedule, array $optionalArgs = [])
- {
- $request = new UpdateBackupScheduleRequest();
- $requestParamHeaders = [];
- $request->setBackupSchedule($backupSchedule);
- $requestParamHeaders['backup_schedule.name'] = $backupSchedule->getName();
- if (isset($optionalArgs['updateMask'])) {
- $request->setUpdateMask($optionalArgs['updateMask']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('UpdateBackupSchedule', BackupSchedule::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Updates a database.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $database = new Database();
- * $operationResponse = $firestoreAdminClient->updateDatabase($database);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $firestoreAdminClient->updateDatabase($database);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $firestoreAdminClient->resumeOperation($operationName, 'updateDatabase');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param Database $database Required. The database to update.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type FieldMask $updateMask
- * The list of fields to be updated.
- * @type RetrySettings|array $retrySettings
- * 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\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function updateDatabase($database, array $optionalArgs = [])
- {
- $request = new UpdateDatabaseRequest();
- $requestParamHeaders = [];
- $request->setDatabase($database);
- $requestParamHeaders['database.name'] = $database->getName();
- if (isset($optionalArgs['updateMask'])) {
- $request->setUpdateMask($optionalArgs['updateMask']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('UpdateDatabase', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-
- /**
- * Updates a field configuration. Currently, field updates apply only to
- * single field index configuration. However, calls to
- * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField]
- * should provide a field mask to avoid changing any configuration that the
- * caller isn't aware of. The field mask should be specified as: `{ paths:
- * "index_config" }`.
- *
- * This call returns a
- * [google.longrunning.Operation][google.longrunning.Operation] which may be
- * used to track the status of the field update. The metadata for the
- * operation will be the type
- * [FieldOperationMetadata][google.firestore.admin.v1.FieldOperationMetadata].
- *
- * To configure the default field settings for the database, use
- * the special `Field` with resource name:
- * `projects/{project_id}/databases/{database_id}/collectionGroups/__default__/fields/*`.
- *
- * Sample code:
- * ```
- * $firestoreAdminClient = new FirestoreAdminClient();
- * try {
- * $field = new Field();
- * $operationResponse = $firestoreAdminClient->updateField($field);
- * $operationResponse->pollUntilComplete();
- * if ($operationResponse->operationSucceeded()) {
- * $result = $operationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $operationResponse->getError();
- * // handleError($error)
- * }
- * // Alternatively:
- * // start the operation, keep the operation name, and resume later
- * $operationResponse = $firestoreAdminClient->updateField($field);
- * $operationName = $operationResponse->getName();
- * // ... do other work
- * $newOperationResponse = $firestoreAdminClient->resumeOperation($operationName, 'updateField');
- * while (!$newOperationResponse->isDone()) {
- * // ... do other work
- * $newOperationResponse->reload();
- * }
- * if ($newOperationResponse->operationSucceeded()) {
- * $result = $newOperationResponse->getResult();
- * // doSomethingWith($result)
- * } else {
- * $error = $newOperationResponse->getError();
- * // handleError($error)
- * }
- * } finally {
- * $firestoreAdminClient->close();
- * }
- * ```
- *
- * @param Field $field Required. The field to be updated.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type FieldMask $updateMask
- * A mask, relative to the field. If specified, only configuration specified
- * by this field_mask will be updated in the field.
- * @type RetrySettings|array $retrySettings
- * 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\OperationResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function updateField($field, array $optionalArgs = [])
- {
- $request = new UpdateFieldRequest();
- $requestParamHeaders = [];
- $request->setField($field);
- $requestParamHeaders['field.name'] = $field->getName();
- if (isset($optionalArgs['updateMask'])) {
- $request->setUpdateMask($optionalArgs['updateMask']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startOperationsCall('UpdateField', $optionalArgs, $request, $this->getOperationsClient())->wait();
- }
-}
diff --git a/owl-bot-staging/Firestore/v1/Admin/src/V1/gapic_metadata.json b/owl-bot-staging/Firestore/v1/Admin/src/V1/gapic_metadata.json
deleted file mode 100644
index 9b70c2e17bb1..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/src/V1/gapic_metadata.json
+++ /dev/null
@@ -1,138 +0,0 @@
-{
- "schema": "1.0",
- "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods",
- "language": "php",
- "protoPackage": "google.firestore.admin.v1",
- "libraryPackage": "Google\\Cloud\\Firestore\\Admin\\V1",
- "services": {
- "FirestoreAdmin": {
- "clients": {
- "grpc": {
- "libraryClient": "FirestoreAdminGapicClient",
- "rpcs": {
- "BulkDeleteDocuments": {
- "methods": [
- "bulkDeleteDocuments"
- ]
- },
- "CreateBackupSchedule": {
- "methods": [
- "createBackupSchedule"
- ]
- },
- "CreateDatabase": {
- "methods": [
- "createDatabase"
- ]
- },
- "CreateIndex": {
- "methods": [
- "createIndex"
- ]
- },
- "DeleteBackup": {
- "methods": [
- "deleteBackup"
- ]
- },
- "DeleteBackupSchedule": {
- "methods": [
- "deleteBackupSchedule"
- ]
- },
- "DeleteDatabase": {
- "methods": [
- "deleteDatabase"
- ]
- },
- "DeleteIndex": {
- "methods": [
- "deleteIndex"
- ]
- },
- "ExportDocuments": {
- "methods": [
- "exportDocuments"
- ]
- },
- "GetBackup": {
- "methods": [
- "getBackup"
- ]
- },
- "GetBackupSchedule": {
- "methods": [
- "getBackupSchedule"
- ]
- },
- "GetDatabase": {
- "methods": [
- "getDatabase"
- ]
- },
- "GetField": {
- "methods": [
- "getField"
- ]
- },
- "GetIndex": {
- "methods": [
- "getIndex"
- ]
- },
- "ImportDocuments": {
- "methods": [
- "importDocuments"
- ]
- },
- "ListBackupSchedules": {
- "methods": [
- "listBackupSchedules"
- ]
- },
- "ListBackups": {
- "methods": [
- "listBackups"
- ]
- },
- "ListDatabases": {
- "methods": [
- "listDatabases"
- ]
- },
- "ListFields": {
- "methods": [
- "listFields"
- ]
- },
- "ListIndexes": {
- "methods": [
- "listIndexes"
- ]
- },
- "RestoreDatabase": {
- "methods": [
- "restoreDatabase"
- ]
- },
- "UpdateBackupSchedule": {
- "methods": [
- "updateBackupSchedule"
- ]
- },
- "UpdateDatabase": {
- "methods": [
- "updateDatabase"
- ]
- },
- "UpdateField": {
- "methods": [
- "updateField"
- ]
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/owl-bot-staging/Firestore/v1/Admin/src/V1/resources/firestore_admin_client_config.json b/owl-bot-staging/Firestore/v1/Admin/src/V1/resources/firestore_admin_client_config.json
deleted file mode 100644
index d9d11f0e1967..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/src/V1/resources/firestore_admin_client_config.json
+++ /dev/null
@@ -1,166 +0,0 @@
-{
- "interfaces": {
- "google.firestore.admin.v1.FirestoreAdmin": {
- "retry_codes": {
- "no_retry_codes": [],
- "retry_policy_1_codes": [
- "UNAVAILABLE",
- "INTERNAL",
- "DEADLINE_EXCEEDED"
- ],
- "no_retry_1_codes": []
- },
- "retry_params": {
- "no_retry_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 0,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 0,
- "total_timeout_millis": 0
- },
- "retry_policy_1_params": {
- "initial_retry_delay_millis": 100,
- "retry_delay_multiplier": 1.3,
- "max_retry_delay_millis": 60000,
- "initial_rpc_timeout_millis": 60000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000,
- "total_timeout_millis": 60000
- },
- "no_retry_1_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 60000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000,
- "total_timeout_millis": 60000
- }
- },
- "methods": {
- "BulkDeleteDocuments": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "CreateBackupSchedule": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "CreateDatabase": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "CreateIndex": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "DeleteBackup": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "DeleteBackupSchedule": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "DeleteDatabase": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "DeleteIndex": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ExportDocuments": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "GetBackup": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "GetBackupSchedule": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "GetDatabase": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "GetField": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetIndex": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ImportDocuments": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "ListBackupSchedules": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "ListBackups": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "ListDatabases": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "ListFields": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListIndexes": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "RestoreDatabase": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "UpdateBackupSchedule": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "UpdateDatabase": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "UpdateField": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- }
- }
- }
- }
-}
diff --git a/owl-bot-staging/Firestore/v1/Admin/src/V1/resources/firestore_admin_descriptor_config.php b/owl-bot-staging/Firestore/v1/Admin/src/V1/resources/firestore_admin_descriptor_config.php
deleted file mode 100644
index 378dec237fa0..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/src/V1/resources/firestore_admin_descriptor_config.php
+++ /dev/null
@@ -1,409 +0,0 @@
- [
- 'google.firestore.admin.v1.FirestoreAdmin' => [
- 'BulkDeleteDocuments' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Firestore\Admin\V1\BulkDeleteDocumentsResponse',
- 'metadataReturnType' => '\Google\Cloud\Firestore\Admin\V1\BulkDeleteDocumentsMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'CreateDatabase' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Firestore\Admin\V1\Database',
- 'metadataReturnType' => '\Google\Cloud\Firestore\Admin\V1\CreateDatabaseMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'CreateIndex' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Firestore\Admin\V1\Index',
- 'metadataReturnType' => '\Google\Cloud\Firestore\Admin\V1\IndexOperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'DeleteDatabase' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Firestore\Admin\V1\Database',
- 'metadataReturnType' => '\Google\Cloud\Firestore\Admin\V1\DeleteDatabaseMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ExportDocuments' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Firestore\Admin\V1\ExportDocumentsResponse',
- 'metadataReturnType' => '\Google\Cloud\Firestore\Admin\V1\ExportDocumentsMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ImportDocuments' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Protobuf\GPBEmpty',
- 'metadataReturnType' => '\Google\Cloud\Firestore\Admin\V1\ImportDocumentsMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'RestoreDatabase' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Firestore\Admin\V1\Database',
- 'metadataReturnType' => '\Google\Cloud\Firestore\Admin\V1\RestoreDatabaseMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'UpdateDatabase' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Firestore\Admin\V1\Database',
- 'metadataReturnType' => '\Google\Cloud\Firestore\Admin\V1\UpdateDatabaseMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'database.name',
- 'fieldAccessors' => [
- 'getDatabase',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateField' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Firestore\Admin\V1\Field',
- 'metadataReturnType' => '\Google\Cloud\Firestore\Admin\V1\FieldOperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'field.name',
- 'fieldAccessors' => [
- 'getField',
- 'getName',
- ],
- ],
- ],
- ],
- 'CreateBackupSchedule' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\Admin\V1\BackupSchedule',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'DeleteBackup' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Protobuf\GPBEmpty',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteBackupSchedule' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Protobuf\GPBEmpty',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteIndex' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Protobuf\GPBEmpty',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetBackup' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\Admin\V1\Backup',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetBackupSchedule' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\Admin\V1\BackupSchedule',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetDatabase' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\Admin\V1\Database',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetField' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\Admin\V1\Field',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetIndex' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\Admin\V1\Index',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListBackupSchedules' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\Admin\V1\ListBackupSchedulesResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListBackups' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\Admin\V1\ListBackupsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListDatabases' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\Admin\V1\ListDatabasesResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListFields' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getFields',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Firestore\Admin\V1\ListFieldsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListIndexes' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getIndexes',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Firestore\Admin\V1\ListIndexesResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'UpdateBackupSchedule' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\Admin\V1\BackupSchedule',
- 'headerParams' => [
- [
- 'keyName' => 'backup_schedule.name',
- 'fieldAccessors' => [
- 'getBackupSchedule',
- 'getName',
- ],
- ],
- ],
- ],
- 'templateMap' => [
- 'backup' => 'projects/{project}/locations/{location}/backups/{backup}',
- 'backupSchedule' => 'projects/{project}/databases/{database}/backupSchedules/{backup_schedule}',
- 'collectionGroup' => 'projects/{project}/databases/{database}/collectionGroups/{collection}',
- 'database' => 'projects/{project}/databases/{database}',
- 'field' => 'projects/{project}/databases/{database}/collectionGroups/{collection}/fields/{field}',
- 'index' => 'projects/{project}/databases/{database}/collectionGroups/{collection}/indexes/{index}',
- 'location' => 'projects/{project}/locations/{location}',
- 'operation' => 'projects/{project}/databases/{database}/operations/{operation}',
- 'project' => 'projects/{project}',
- ],
- ],
- ],
-];
diff --git a/owl-bot-staging/Firestore/v1/Admin/src/V1/resources/firestore_admin_rest_client_config.php b/owl-bot-staging/Firestore/v1/Admin/src/V1/resources/firestore_admin_rest_client_config.php
deleted file mode 100644
index f5062d72f11e..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/src/V1/resources/firestore_admin_rest_client_config.php
+++ /dev/null
@@ -1,356 +0,0 @@
- [
- 'google.firestore.admin.v1.FirestoreAdmin' => [
- 'BulkDeleteDocuments' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*}:bulkDeleteDocuments',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'CreateBackupSchedule' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*}/backupSchedules',
- 'body' => 'backup_schedule',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'CreateDatabase' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*}/databases',
- 'body' => 'database',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'database_id',
- ],
- ],
- 'CreateIndex' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes',
- 'body' => 'index',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'DeleteBackup' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/backups/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteBackupSchedule' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*/backupSchedules/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteDatabase' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteIndex' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*/collectionGroups/*/indexes/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ExportDocuments' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*}:exportDocuments',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetBackup' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/backups/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetBackupSchedule' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*/backupSchedules/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetDatabase' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetField' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*/collectionGroups/*/fields/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetIndex' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*/collectionGroups/*/indexes/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ImportDocuments' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*}:importDocuments',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListBackupSchedules' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*}/backupSchedules',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListBackups' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/backups',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListDatabases' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*}/databases',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListFields' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*/collectionGroups/*}/fields',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListIndexes' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*/collectionGroups/*}/indexes',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'RestoreDatabase' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*}/databases:restore',
- 'body' => '*',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'UpdateBackupSchedule' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{backup_schedule.name=projects/*/databases/*/backupSchedules/*}',
- 'body' => 'backup_schedule',
- 'placeholders' => [
- 'backup_schedule.name' => [
- 'getters' => [
- 'getBackupSchedule',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateDatabase' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{database.name=projects/*/databases/*}',
- 'body' => 'database',
- 'placeholders' => [
- 'database.name' => [
- 'getters' => [
- 'getDatabase',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateField' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{field.name=projects/*/databases/*/collectionGroups/*/fields/*}',
- 'body' => 'field',
- 'placeholders' => [
- 'field.name' => [
- 'getters' => [
- 'getField',
- 'getName',
- ],
- ],
- ],
- ],
- ],
- 'google.longrunning.Operations' => [
- 'CancelOperation' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*/operations/*}:cancel',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteOperation' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*/operations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetOperation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*/operations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListOperations' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*}/operations',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- ],
- 'numericEnums' => true,
-];
diff --git a/owl-bot-staging/Firestore/v1/Admin/tests/Unit/V1/Client/FirestoreAdminClientTest.php b/owl-bot-staging/Firestore/v1/Admin/tests/Unit/V1/Client/FirestoreAdminClientTest.php
deleted file mode 100644
index 512fce66af8a..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/tests/Unit/V1/Client/FirestoreAdminClientTest.php
+++ /dev/null
@@ -1,2323 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return FirestoreAdminClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new FirestoreAdminClient($options);
- }
-
- /** @test */
- public function bulkDeleteDocumentsTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/bulkDeleteDocumentsTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new BulkDeleteDocumentsResponse();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/bulkDeleteDocumentsTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $request = (new BulkDeleteDocumentsRequest())
- ->setName($formattedName);
- $response = $gapicClient->bulkDeleteDocuments($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/BulkDeleteDocuments', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/bulkDeleteDocumentsTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function bulkDeleteDocumentsExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/bulkDeleteDocumentsTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $request = (new BulkDeleteDocumentsRequest())
- ->setName($formattedName);
- $response = $gapicClient->bulkDeleteDocuments($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/bulkDeleteDocumentsTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createBackupScheduleTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $expectedResponse = new BackupSchedule();
- $expectedResponse->setName($name);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $backupSchedule = new BackupSchedule();
- $request = (new CreateBackupScheduleRequest())
- ->setParent($formattedParent)
- ->setBackupSchedule($backupSchedule);
- $response = $gapicClient->createBackupSchedule($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/CreateBackupSchedule', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualRequestObject->getBackupSchedule();
- $this->assertProtobufEquals($backupSchedule, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createBackupScheduleExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $backupSchedule = new BackupSchedule();
- $request = (new CreateBackupScheduleRequest())
- ->setParent($formattedParent)
- ->setBackupSchedule($backupSchedule);
- try {
- $gapicClient->createBackupSchedule($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createDatabaseTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $locationId = 'locationId552319461';
- $keyPrefix = 'keyPrefix438630514';
- $previousId = 'previousId-1005863069';
- $etag = 'etag3123477';
- $expectedResponse = new Database();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setLocationId($locationId);
- $expectedResponse->setKeyPrefix($keyPrefix);
- $expectedResponse->setPreviousId($previousId);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createDatabaseTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $database = new Database();
- $databaseId = 'databaseId816491103';
- $request = (new CreateDatabaseRequest())
- ->setParent($formattedParent)
- ->setDatabase($database)
- ->setDatabaseId($databaseId);
- $response = $gapicClient->createDatabase($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/CreateDatabase', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getDatabase();
- $this->assertProtobufEquals($database, $actualValue);
- $actualValue = $actualApiRequestObject->getDatabaseId();
- $this->assertProtobufEquals($databaseId, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createDatabaseTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createDatabaseExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $database = new Database();
- $databaseId = 'databaseId816491103';
- $request = (new CreateDatabaseRequest())
- ->setParent($formattedParent)
- ->setDatabase($database)
- ->setDatabaseId($databaseId);
- $response = $gapicClient->createDatabase($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createDatabaseTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createIndexTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createIndexTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $expectedResponse = new Index();
- $expectedResponse->setName($name);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createIndexTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- $index = new Index();
- $request = (new CreateIndexRequest())
- ->setParent($formattedParent)
- ->setIndex($index);
- $response = $gapicClient->createIndex($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/CreateIndex', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getIndex();
- $this->assertProtobufEquals($index, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createIndexTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createIndexExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createIndexTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- $index = new Index();
- $request = (new CreateIndexRequest())
- ->setParent($formattedParent)
- ->setIndex($index);
- $response = $gapicClient->createIndex($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createIndexTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteBackupTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- $request = (new DeleteBackupRequest())
- ->setName($formattedName);
- $gapicClient->deleteBackup($request);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/DeleteBackup', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteBackupExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- $request = (new DeleteBackupRequest())
- ->setName($formattedName);
- try {
- $gapicClient->deleteBackup($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteBackupScheduleTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->backupScheduleName('[PROJECT]', '[DATABASE]', '[BACKUP_SCHEDULE]');
- $request = (new DeleteBackupScheduleRequest())
- ->setName($formattedName);
- $gapicClient->deleteBackupSchedule($request);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/DeleteBackupSchedule', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteBackupScheduleExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->backupScheduleName('[PROJECT]', '[DATABASE]', '[BACKUP_SCHEDULE]');
- $request = (new DeleteBackupScheduleRequest())
- ->setName($formattedName);
- try {
- $gapicClient->deleteBackupSchedule($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteDatabaseTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $locationId = 'locationId552319461';
- $keyPrefix = 'keyPrefix438630514';
- $previousId = 'previousId-1005863069';
- $etag2 = 'etag2-1293302904';
- $expectedResponse = new Database();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setLocationId($locationId);
- $expectedResponse->setKeyPrefix($keyPrefix);
- $expectedResponse->setPreviousId($previousId);
- $expectedResponse->setEtag($etag2);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteDatabaseTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $request = (new DeleteDatabaseRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteDatabase($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/DeleteDatabase', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteDatabaseTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteDatabaseExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $request = (new DeleteDatabaseRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteDatabase($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteDatabaseTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteIndexTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->indexName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[INDEX]');
- $request = (new DeleteIndexRequest())
- ->setName($formattedName);
- $gapicClient->deleteIndex($request);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/DeleteIndex', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteIndexExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->indexName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[INDEX]');
- $request = (new DeleteIndexRequest())
- ->setName($formattedName);
- try {
- $gapicClient->deleteIndex($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function exportDocumentsTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/exportDocumentsTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $outputUriPrefix2 = 'outputUriPrefix2-377757258';
- $expectedResponse = new ExportDocumentsResponse();
- $expectedResponse->setOutputUriPrefix($outputUriPrefix2);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/exportDocumentsTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $request = (new ExportDocumentsRequest())
- ->setName($formattedName);
- $response = $gapicClient->exportDocuments($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/ExportDocuments', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/exportDocumentsTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function exportDocumentsExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/exportDocumentsTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $request = (new ExportDocumentsRequest())
- ->setName($formattedName);
- $response = $gapicClient->exportDocuments($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/exportDocumentsTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function getBackupTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $database = 'database1789464955';
- $databaseUid = 'databaseUid-458567796';
- $expectedResponse = new Backup();
- $expectedResponse->setName($name2);
- $expectedResponse->setDatabase($database);
- $expectedResponse->setDatabaseUid($databaseUid);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- $request = (new GetBackupRequest())
- ->setName($formattedName);
- $response = $gapicClient->getBackup($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/GetBackup', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getBackupExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- $request = (new GetBackupRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getBackup($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getBackupScheduleTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $expectedResponse = new BackupSchedule();
- $expectedResponse->setName($name2);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->backupScheduleName('[PROJECT]', '[DATABASE]', '[BACKUP_SCHEDULE]');
- $request = (new GetBackupScheduleRequest())
- ->setName($formattedName);
- $response = $gapicClient->getBackupSchedule($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/GetBackupSchedule', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getBackupScheduleExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->backupScheduleName('[PROJECT]', '[DATABASE]', '[BACKUP_SCHEDULE]');
- $request = (new GetBackupScheduleRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getBackupSchedule($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getDatabaseTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $locationId = 'locationId552319461';
- $keyPrefix = 'keyPrefix438630514';
- $previousId = 'previousId-1005863069';
- $etag = 'etag3123477';
- $expectedResponse = new Database();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setLocationId($locationId);
- $expectedResponse->setKeyPrefix($keyPrefix);
- $expectedResponse->setPreviousId($previousId);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $request = (new GetDatabaseRequest())
- ->setName($formattedName);
- $response = $gapicClient->getDatabase($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/GetDatabase', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getDatabaseExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $request = (new GetDatabaseRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getDatabase($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getFieldTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $expectedResponse = new Field();
- $expectedResponse->setName($name2);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->fieldName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[FIELD]');
- $request = (new GetFieldRequest())
- ->setName($formattedName);
- $response = $gapicClient->getField($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/GetField', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getFieldExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->fieldName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[FIELD]');
- $request = (new GetFieldRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getField($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getIndexTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $expectedResponse = new Index();
- $expectedResponse->setName($name2);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->indexName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[INDEX]');
- $request = (new GetIndexRequest())
- ->setName($formattedName);
- $response = $gapicClient->getIndex($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/GetIndex', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getIndexExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->indexName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[INDEX]');
- $request = (new GetIndexRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getIndex($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function importDocumentsTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/importDocumentsTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/importDocumentsTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $request = (new ImportDocumentsRequest())
- ->setName($formattedName);
- $response = $gapicClient->importDocuments($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/ImportDocuments', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/importDocumentsTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function importDocumentsExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/importDocumentsTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $request = (new ImportDocumentsRequest())
- ->setName($formattedName);
- $response = $gapicClient->importDocuments($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/importDocumentsTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function listBackupSchedulesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new ListBackupSchedulesResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $request = (new ListBackupSchedulesRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listBackupSchedules($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/ListBackupSchedules', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listBackupSchedulesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $request = (new ListBackupSchedulesRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listBackupSchedules($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listBackupsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new ListBackupsResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListBackupsRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listBackups($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/ListBackups', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listBackupsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListBackupsRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listBackups($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listDatabasesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new ListDatabasesResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $request = (new ListDatabasesRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listDatabases($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/ListDatabases', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listDatabasesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $request = (new ListDatabasesRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listDatabases($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listFieldsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $fieldsElement = new Field();
- $fields = [
- $fieldsElement,
- ];
- $expectedResponse = new ListFieldsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setFields($fields);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- $request = (new ListFieldsRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listFields($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getFields()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/ListFields', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listFieldsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- $request = (new ListFieldsRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listFields($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listIndexesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $indexesElement = new Index();
- $indexes = [
- $indexesElement,
- ];
- $expectedResponse = new ListIndexesResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setIndexes($indexes);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- $request = (new ListIndexesRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listIndexes($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getIndexes()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/ListIndexes', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listIndexesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- $request = (new ListIndexesRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listIndexes($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function restoreDatabaseTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/restoreDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $locationId = 'locationId552319461';
- $keyPrefix = 'keyPrefix438630514';
- $previousId = 'previousId-1005863069';
- $etag = 'etag3123477';
- $expectedResponse = new Database();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setLocationId($locationId);
- $expectedResponse->setKeyPrefix($keyPrefix);
- $expectedResponse->setPreviousId($previousId);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/restoreDatabaseTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $databaseId = 'databaseId816491103';
- $formattedBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- $request = (new RestoreDatabaseRequest())
- ->setParent($formattedParent)
- ->setDatabaseId($databaseId)
- ->setBackup($formattedBackup);
- $response = $gapicClient->restoreDatabase($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/RestoreDatabase', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getDatabaseId();
- $this->assertProtobufEquals($databaseId, $actualValue);
- $actualValue = $actualApiRequestObject->getBackup();
- $this->assertProtobufEquals($formattedBackup, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/restoreDatabaseTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function restoreDatabaseExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/restoreDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $databaseId = 'databaseId816491103';
- $formattedBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- $request = (new RestoreDatabaseRequest())
- ->setParent($formattedParent)
- ->setDatabaseId($databaseId)
- ->setBackup($formattedBackup);
- $response = $gapicClient->restoreDatabase($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/restoreDatabaseTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateBackupScheduleTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $expectedResponse = new BackupSchedule();
- $expectedResponse->setName($name);
- $transport->addResponse($expectedResponse);
- // Mock request
- $backupSchedule = new BackupSchedule();
- $request = (new UpdateBackupScheduleRequest())
- ->setBackupSchedule($backupSchedule);
- $response = $gapicClient->updateBackupSchedule($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/UpdateBackupSchedule', $actualFuncCall);
- $actualValue = $actualRequestObject->getBackupSchedule();
- $this->assertProtobufEquals($backupSchedule, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function updateBackupScheduleExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $backupSchedule = new BackupSchedule();
- $request = (new UpdateBackupScheduleRequest())
- ->setBackupSchedule($backupSchedule);
- try {
- $gapicClient->updateBackupSchedule($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function updateDatabaseTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $locationId = 'locationId552319461';
- $keyPrefix = 'keyPrefix438630514';
- $previousId = 'previousId-1005863069';
- $etag = 'etag3123477';
- $expectedResponse = new Database();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setLocationId($locationId);
- $expectedResponse->setKeyPrefix($keyPrefix);
- $expectedResponse->setPreviousId($previousId);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateDatabaseTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $database = new Database();
- $request = (new UpdateDatabaseRequest())
- ->setDatabase($database);
- $response = $gapicClient->updateDatabase($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/UpdateDatabase', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getDatabase();
- $this->assertProtobufEquals($database, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateDatabaseTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateDatabaseExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $database = new Database();
- $request = (new UpdateDatabaseRequest())
- ->setDatabase($database);
- $response = $gapicClient->updateDatabase($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateDatabaseTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateFieldTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateFieldTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $expectedResponse = new Field();
- $expectedResponse->setName($name);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateFieldTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $field = new Field();
- $fieldName = 'fieldName1265009317';
- $field->setName($fieldName);
- $request = (new UpdateFieldRequest())
- ->setField($field);
- $response = $gapicClient->updateField($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/UpdateField', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getField();
- $this->assertProtobufEquals($field, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateFieldTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateFieldExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateFieldTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $field = new Field();
- $fieldName = 'fieldName1265009317';
- $field->setName($fieldName);
- $request = (new UpdateFieldRequest())
- ->setField($field);
- $response = $gapicClient->updateField($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateFieldTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function bulkDeleteDocumentsAsyncTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/bulkDeleteDocumentsTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new BulkDeleteDocumentsResponse();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/bulkDeleteDocumentsTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $request = (new BulkDeleteDocumentsRequest())
- ->setName($formattedName);
- $response = $gapicClient->bulkDeleteDocumentsAsync($request)->wait();
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/BulkDeleteDocuments', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/bulkDeleteDocumentsTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-}
diff --git a/owl-bot-staging/Firestore/v1/Admin/tests/Unit/V1/FirestoreAdminClientTest.php b/owl-bot-staging/Firestore/v1/Admin/tests/Unit/V1/FirestoreAdminClientTest.php
deleted file mode 100644
index 1f98bcbfe2eb..000000000000
--- a/owl-bot-staging/Firestore/v1/Admin/tests/Unit/V1/FirestoreAdminClientTest.php
+++ /dev/null
@@ -1,2127 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return FirestoreAdminClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new FirestoreAdminClient($options);
- }
-
- /** @test */
- public function bulkDeleteDocumentsTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/bulkDeleteDocumentsTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new BulkDeleteDocumentsResponse();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/bulkDeleteDocumentsTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $response = $gapicClient->bulkDeleteDocuments($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/BulkDeleteDocuments', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/bulkDeleteDocumentsTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function bulkDeleteDocumentsExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/bulkDeleteDocumentsTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $response = $gapicClient->bulkDeleteDocuments($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/bulkDeleteDocumentsTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createBackupScheduleTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $expectedResponse = new BackupSchedule();
- $expectedResponse->setName($name);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $backupSchedule = new BackupSchedule();
- $response = $gapicClient->createBackupSchedule($formattedParent, $backupSchedule);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/CreateBackupSchedule', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualRequestObject->getBackupSchedule();
- $this->assertProtobufEquals($backupSchedule, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createBackupScheduleExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $backupSchedule = new BackupSchedule();
- try {
- $gapicClient->createBackupSchedule($formattedParent, $backupSchedule);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createDatabaseTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $locationId = 'locationId552319461';
- $keyPrefix = 'keyPrefix438630514';
- $previousId = 'previousId-1005863069';
- $etag = 'etag3123477';
- $expectedResponse = new Database();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setLocationId($locationId);
- $expectedResponse->setKeyPrefix($keyPrefix);
- $expectedResponse->setPreviousId($previousId);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createDatabaseTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $database = new Database();
- $databaseId = 'databaseId816491103';
- $response = $gapicClient->createDatabase($formattedParent, $database, $databaseId);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/CreateDatabase', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getDatabase();
- $this->assertProtobufEquals($database, $actualValue);
- $actualValue = $actualApiRequestObject->getDatabaseId();
- $this->assertProtobufEquals($databaseId, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createDatabaseTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createDatabaseExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $database = new Database();
- $databaseId = 'databaseId816491103';
- $response = $gapicClient->createDatabase($formattedParent, $database, $databaseId);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createDatabaseTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createIndexTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createIndexTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $expectedResponse = new Index();
- $expectedResponse->setName($name);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createIndexTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- $index = new Index();
- $response = $gapicClient->createIndex($formattedParent, $index);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/CreateIndex', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getIndex();
- $this->assertProtobufEquals($index, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createIndexTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createIndexExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createIndexTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- $index = new Index();
- $response = $gapicClient->createIndex($formattedParent, $index);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createIndexTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteBackupTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- $gapicClient->deleteBackup($formattedName);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/DeleteBackup', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteBackupExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- try {
- $gapicClient->deleteBackup($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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteBackupScheduleTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->backupScheduleName('[PROJECT]', '[DATABASE]', '[BACKUP_SCHEDULE]');
- $gapicClient->deleteBackupSchedule($formattedName);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/DeleteBackupSchedule', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteBackupScheduleExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->backupScheduleName('[PROJECT]', '[DATABASE]', '[BACKUP_SCHEDULE]');
- try {
- $gapicClient->deleteBackupSchedule($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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteDatabaseTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $locationId = 'locationId552319461';
- $keyPrefix = 'keyPrefix438630514';
- $previousId = 'previousId-1005863069';
- $etag2 = 'etag2-1293302904';
- $expectedResponse = new Database();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setLocationId($locationId);
- $expectedResponse->setKeyPrefix($keyPrefix);
- $expectedResponse->setPreviousId($previousId);
- $expectedResponse->setEtag($etag2);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteDatabaseTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $response = $gapicClient->deleteDatabase($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/DeleteDatabase', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteDatabaseTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteDatabaseExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $response = $gapicClient->deleteDatabase($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteDatabaseTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteIndexTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->indexName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[INDEX]');
- $gapicClient->deleteIndex($formattedName);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/DeleteIndex', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteIndexExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->indexName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[INDEX]');
- try {
- $gapicClient->deleteIndex($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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function exportDocumentsTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/exportDocumentsTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $outputUriPrefix2 = 'outputUriPrefix2-377757258';
- $expectedResponse = new ExportDocumentsResponse();
- $expectedResponse->setOutputUriPrefix($outputUriPrefix2);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/exportDocumentsTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $response = $gapicClient->exportDocuments($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/ExportDocuments', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/exportDocumentsTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function exportDocumentsExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/exportDocumentsTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $response = $gapicClient->exportDocuments($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/exportDocumentsTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function getBackupTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $database = 'database1789464955';
- $databaseUid = 'databaseUid-458567796';
- $expectedResponse = new Backup();
- $expectedResponse->setName($name2);
- $expectedResponse->setDatabase($database);
- $expectedResponse->setDatabaseUid($databaseUid);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- $response = $gapicClient->getBackup($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/GetBackup', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getBackupExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- try {
- $gapicClient->getBackup($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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getBackupScheduleTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $expectedResponse = new BackupSchedule();
- $expectedResponse->setName($name2);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->backupScheduleName('[PROJECT]', '[DATABASE]', '[BACKUP_SCHEDULE]');
- $response = $gapicClient->getBackupSchedule($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/GetBackupSchedule', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getBackupScheduleExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->backupScheduleName('[PROJECT]', '[DATABASE]', '[BACKUP_SCHEDULE]');
- try {
- $gapicClient->getBackupSchedule($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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getDatabaseTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $locationId = 'locationId552319461';
- $keyPrefix = 'keyPrefix438630514';
- $previousId = 'previousId-1005863069';
- $etag = 'etag3123477';
- $expectedResponse = new Database();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setLocationId($locationId);
- $expectedResponse->setKeyPrefix($keyPrefix);
- $expectedResponse->setPreviousId($previousId);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $response = $gapicClient->getDatabase($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/GetDatabase', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getDatabaseExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- try {
- $gapicClient->getDatabase($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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getFieldTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $expectedResponse = new Field();
- $expectedResponse->setName($name2);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->fieldName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[FIELD]');
- $response = $gapicClient->getField($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/GetField', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getFieldExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->fieldName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[FIELD]');
- try {
- $gapicClient->getField($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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getIndexTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $expectedResponse = new Index();
- $expectedResponse->setName($name2);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->indexName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[INDEX]');
- $response = $gapicClient->getIndex($formattedName);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/GetIndex', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getIndexExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->indexName('[PROJECT]', '[DATABASE]', '[COLLECTION]', '[INDEX]');
- try {
- $gapicClient->getIndex($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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function importDocumentsTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/importDocumentsTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/importDocumentsTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $response = $gapicClient->importDocuments($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/ImportDocuments', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/importDocumentsTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function importDocumentsExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/importDocumentsTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $response = $gapicClient->importDocuments($formattedName);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/importDocumentsTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function listBackupSchedulesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new ListBackupSchedulesResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- $response = $gapicClient->listBackupSchedules($formattedParent);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/ListBackupSchedules', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listBackupSchedulesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->databaseName('[PROJECT]', '[DATABASE]');
- try {
- $gapicClient->listBackupSchedules($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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listBackupsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new ListBackupsResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $response = $gapicClient->listBackups($formattedParent);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/ListBackups', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listBackupsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- try {
- $gapicClient->listBackups($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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listDatabasesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new ListDatabasesResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $response = $gapicClient->listDatabases($formattedParent);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/ListDatabases', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listDatabasesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- try {
- $gapicClient->listDatabases($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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listFieldsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $fieldsElement = new Field();
- $fields = [
- $fieldsElement,
- ];
- $expectedResponse = new ListFieldsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setFields($fields);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- $response = $gapicClient->listFields($formattedParent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getFields()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/ListFields', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listFieldsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- try {
- $gapicClient->listFields($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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listIndexesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $indexesElement = new Index();
- $indexes = [
- $indexesElement,
- ];
- $expectedResponse = new ListIndexesResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setIndexes($indexes);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- $response = $gapicClient->listIndexes($formattedParent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getIndexes()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/ListIndexes', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listIndexesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->collectionGroupName('[PROJECT]', '[DATABASE]', '[COLLECTION]');
- try {
- $gapicClient->listIndexes($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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function restoreDatabaseTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/restoreDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $locationId = 'locationId552319461';
- $keyPrefix = 'keyPrefix438630514';
- $previousId = 'previousId-1005863069';
- $etag = 'etag3123477';
- $expectedResponse = new Database();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setLocationId($locationId);
- $expectedResponse->setKeyPrefix($keyPrefix);
- $expectedResponse->setPreviousId($previousId);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/restoreDatabaseTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $databaseId = 'databaseId816491103';
- $formattedBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- $response = $gapicClient->restoreDatabase($formattedParent, $databaseId, $formattedBackup);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/RestoreDatabase', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getDatabaseId();
- $this->assertProtobufEquals($databaseId, $actualValue);
- $actualValue = $actualApiRequestObject->getBackup();
- $this->assertProtobufEquals($formattedBackup, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/restoreDatabaseTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function restoreDatabaseExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/restoreDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $databaseId = 'databaseId816491103';
- $formattedBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP]');
- $response = $gapicClient->restoreDatabase($formattedParent, $databaseId, $formattedBackup);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/restoreDatabaseTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateBackupScheduleTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $expectedResponse = new BackupSchedule();
- $expectedResponse->setName($name);
- $transport->addResponse($expectedResponse);
- // Mock request
- $backupSchedule = new BackupSchedule();
- $response = $gapicClient->updateBackupSchedule($backupSchedule);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/UpdateBackupSchedule', $actualFuncCall);
- $actualValue = $actualRequestObject->getBackupSchedule();
- $this->assertProtobufEquals($backupSchedule, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function updateBackupScheduleExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $backupSchedule = new BackupSchedule();
- try {
- $gapicClient->updateBackupSchedule($backupSchedule);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function updateDatabaseTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $locationId = 'locationId552319461';
- $keyPrefix = 'keyPrefix438630514';
- $previousId = 'previousId-1005863069';
- $etag = 'etag3123477';
- $expectedResponse = new Database();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setLocationId($locationId);
- $expectedResponse->setKeyPrefix($keyPrefix);
- $expectedResponse->setPreviousId($previousId);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateDatabaseTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $database = new Database();
- $response = $gapicClient->updateDatabase($database);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/UpdateDatabase', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getDatabase();
- $this->assertProtobufEquals($database, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateDatabaseTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateDatabaseExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateDatabaseTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $database = new Database();
- $response = $gapicClient->updateDatabase($database);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateDatabaseTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateFieldTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateFieldTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $expectedResponse = new Field();
- $expectedResponse->setName($name);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateFieldTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $field = new Field();
- $fieldName = 'fieldName1265009317';
- $field->setName($fieldName);
- $response = $gapicClient->updateField($field);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.admin.v1.FirestoreAdmin/UpdateField', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getField();
- $this->assertProtobufEquals($field, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateFieldTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateFieldExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateFieldTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $field = new Field();
- $fieldName = 'fieldName1265009317';
- $field->setName($fieldName);
- $response = $gapicClient->updateField($field);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateFieldTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-}
diff --git a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/AggregationResult.php b/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/AggregationResult.php
deleted file mode 100644
index 5f249ebfc8d4..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/AggregationResult.php
+++ /dev/null
@@ -1,33 +0,0 @@
-internalAddGeneratedFile(
- '
-Ý
-,google/firestore/v1/aggregation_result.protogoogle.firestore.v1"¾
-AggregationResultU
-aggregate_fields (2;.google.firestore.v1.AggregationResult.AggregateFieldsEntryR
-AggregateFieldsEntry
-key ( )
-value (2.google.firestore.v1.Value:8BÎ
-com.google.firestore.v1BAggregationResultProtoPZ;cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb¢GCFSªGoogle.Cloud.Firestore.V1ÊGoogle\\Cloud\\Firestore\\V1êGoogle::Cloud::Firestore::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/BloomFilter.php b/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/BloomFilter.php
deleted file mode 100644
index 84249064625d..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/BloomFilter.php
+++ /dev/null
@@ -1,34 +0,0 @@
-internalAddGeneratedFile(
- '
-“
-&google/firestore/v1/bloom_filter.protogoogle.firestore.v1".
-BitSequence
-bitmap (
-padding ("Q
-BloomFilter.
-bits (2 .google.firestore.v1.BitSequence
-
-hash_count (BÈ
-com.google.firestore.v1BBloomFilterProtoPZ;cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb¢GCFSªGoogle.Cloud.Firestore.V1ÊGoogle\\Cloud\\Firestore\\V1êGoogle::Cloud::Firestore::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Common.php b/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Common.php
deleted file mode 100644
index 57fc24775305..000000000000
Binary files a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Common.php and /dev/null differ
diff --git a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Document.php b/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Document.php
deleted file mode 100644
index fdb899ded9b7..000000000000
Binary files a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Document.php and /dev/null differ
diff --git a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Firestore.php b/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Firestore.php
deleted file mode 100644
index 88ea9ca5afc8..000000000000
Binary files a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Firestore.php and /dev/null differ
diff --git a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Query.php b/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Query.php
deleted file mode 100644
index 5e45bd4eea7e..000000000000
Binary files a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Query.php and /dev/null differ
diff --git a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/QueryProfile.php b/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/QueryProfile.php
deleted file mode 100644
index 515fe852eabe..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/QueryProfile.php
+++ /dev/null
@@ -1,42 +0,0 @@
-internalAddGeneratedFile(
- '
-ê
-\'google/firestore/v1/query_profile.protogoogle.firestore.v1google/protobuf/duration.protogoogle/protobuf/struct.proto"&
-ExplainOptions
-analyze (BàA"†
-ExplainMetrics6
-plan_summary (2 .google.firestore.v1.PlanSummary<
-execution_stats (2#.google.firestore.v1.ExecutionStats"<
-PlanSummary-
-indexes_used (2.google.protobuf.Struct"¨
-ExecutionStats
-results_returned (5
-execution_duration (2.google.protobuf.Duration
-read_operations (,
-debug_stats (2.google.protobuf.StructBÉ
-com.google.firestore.v1BQueryProfileProtoPZ;cloud.google.com/go/firestore/apiv1/firestorepb;firestorepb¢GCFSªGoogle.Cloud.Firestore.V1ÊGoogle\\Cloud\\Firestore\\V1êGoogle::Cloud::Firestore::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Write.php b/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Write.php
deleted file mode 100644
index abcc4fb4abf9..000000000000
Binary files a/owl-bot-staging/Firestore/v1/proto/src/GPBMetadata/Google/Firestore/V1/Write.php and /dev/null differ
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/AggregationResult.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/AggregationResult.php
deleted file mode 100644
index d98419955554..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/AggregationResult.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.firestore.v1.AggregationResult
- */
-class AggregationResult extends \Google\Protobuf\Internal\Message
-{
- /**
- * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
- * The key is the
- * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
- * assigned to the aggregation function on input and the size of this map
- * equals the number of aggregation functions in the query.
- *
- * Generated from protobuf field map aggregate_fields = 2;
- */
- private $aggregate_fields;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\MapField $aggregate_fields
- * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
- * The key is the
- * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
- * assigned to the aggregation function on input and the size of this map
- * equals the number of aggregation functions in the query.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\AggregationResult::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
- * The key is the
- * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
- * assigned to the aggregation function on input and the size of this map
- * equals the number of aggregation functions in the query.
- *
- * Generated from protobuf field map aggregate_fields = 2;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getAggregateFields()
- {
- return $this->aggregate_fields;
- }
-
- /**
- * The result of the aggregation functions, ex: `COUNT(*) AS total_docs`.
- * The key is the
- * [alias][google.firestore.v1.StructuredAggregationQuery.Aggregation.alias]
- * assigned to the aggregation function on input and the size of this map
- * equals the number of aggregation functions in the query.
- *
- * Generated from protobuf field map aggregate_fields = 2;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setAggregateFields($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\Value::class);
- $this->aggregate_fields = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ArrayValue.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ArrayValue.php
deleted file mode 100644
index a5e67239f7a8..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ArrayValue.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.firestore.v1.ArrayValue
- */
-class ArrayValue extends \Google\Protobuf\Internal\Message
-{
- /**
- * Values in the array.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Value values = 1;
- */
- private $values;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Firestore\V1\Value>|\Google\Protobuf\Internal\RepeatedField $values
- * Values in the array.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Document::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Values in the array.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Value values = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getValues()
- {
- return $this->values;
- }
-
- /**
- * Values in the array.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Value values = 1;
- * @param array<\Google\Cloud\Firestore\V1\Value>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setValues($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\Value::class);
- $this->values = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BatchGetDocumentsRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BatchGetDocumentsRequest.php
deleted file mode 100644
index d6e70f8173e6..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BatchGetDocumentsRequest.php
+++ /dev/null
@@ -1,296 +0,0 @@
-google.firestore.v1.BatchGetDocumentsRequest
- */
-class BatchGetDocumentsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $database = '';
- /**
- * The names of the documents to retrieve. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * The request will fail if any of the document is not a child resource of the
- * given `database`. Duplicate names will be elided.
- *
- * Generated from protobuf field repeated string documents = 2;
- */
- private $documents;
- /**
- * The fields to return. If not set, returns all fields.
- * If a document has a field that is not present in this mask, that field will
- * not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 3;
- */
- protected $mask = null;
- protected $consistency_selector;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $database
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * @type array|\Google\Protobuf\Internal\RepeatedField $documents
- * The names of the documents to retrieve. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * The request will fail if any of the document is not a child resource of the
- * given `database`. Duplicate names will be elided.
- * @type \Google\Cloud\Firestore\V1\DocumentMask $mask
- * The fields to return. If not set, returns all fields.
- * If a document has a field that is not present in this mask, that field will
- * not be returned in the response.
- * @type string $transaction
- * Reads documents in a transaction.
- * @type \Google\Cloud\Firestore\V1\TransactionOptions $new_transaction
- * Starts a new transaction and reads the documents.
- * Defaults to a read-only transaction.
- * The new transaction ID will be returned as the first response in the
- * stream.
- * @type \Google\Protobuf\Timestamp $read_time
- * Reads documents as they were at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getDatabase()
- {
- return $this->database;
- }
-
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setDatabase($var)
- {
- GPBUtil::checkString($var, True);
- $this->database = $var;
-
- return $this;
- }
-
- /**
- * The names of the documents to retrieve. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * The request will fail if any of the document is not a child resource of the
- * given `database`. Duplicate names will be elided.
- *
- * Generated from protobuf field repeated string documents = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getDocuments()
- {
- return $this->documents;
- }
-
- /**
- * The names of the documents to retrieve. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * The request will fail if any of the document is not a child resource of the
- * given `database`. Duplicate names will be elided.
- *
- * Generated from protobuf field repeated string documents = 2;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setDocuments($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->documents = $arr;
-
- return $this;
- }
-
- /**
- * The fields to return. If not set, returns all fields.
- * If a document has a field that is not present in this mask, that field will
- * not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 3;
- * @return \Google\Cloud\Firestore\V1\DocumentMask|null
- */
- public function getMask()
- {
- return $this->mask;
- }
-
- public function hasMask()
- {
- return isset($this->mask);
- }
-
- public function clearMask()
- {
- unset($this->mask);
- }
-
- /**
- * The fields to return. If not set, returns all fields.
- * If a document has a field that is not present in this mask, that field will
- * not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 3;
- * @param \Google\Cloud\Firestore\V1\DocumentMask $var
- * @return $this
- */
- public function setMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\DocumentMask::class);
- $this->mask = $var;
-
- return $this;
- }
-
- /**
- * Reads documents in a transaction.
- *
- * Generated from protobuf field bytes transaction = 4;
- * @return string
- */
- public function getTransaction()
- {
- return $this->readOneof(4);
- }
-
- public function hasTransaction()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Reads documents in a transaction.
- *
- * Generated from protobuf field bytes transaction = 4;
- * @param string $var
- * @return $this
- */
- public function setTransaction($var)
- {
- GPBUtil::checkString($var, False);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * Starts a new transaction and reads the documents.
- * Defaults to a read-only transaction.
- * The new transaction ID will be returned as the first response in the
- * stream.
- *
- * Generated from protobuf field .google.firestore.v1.TransactionOptions new_transaction = 5;
- * @return \Google\Cloud\Firestore\V1\TransactionOptions|null
- */
- public function getNewTransaction()
- {
- return $this->readOneof(5);
- }
-
- public function hasNewTransaction()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Starts a new transaction and reads the documents.
- * Defaults to a read-only transaction.
- * The new transaction ID will be returned as the first response in the
- * stream.
- *
- * Generated from protobuf field .google.firestore.v1.TransactionOptions new_transaction = 5;
- * @param \Google\Cloud\Firestore\V1\TransactionOptions $var
- * @return $this
- */
- public function setNewTransaction($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\TransactionOptions::class);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * Reads documents as they were at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 7;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->readOneof(7);
- }
-
- public function hasReadTime()
- {
- return $this->hasOneof(7);
- }
-
- /**
- * Reads documents as they were at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 7;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->writeOneof(7, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getConsistencySelector()
- {
- return $this->whichOneof("consistency_selector");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BatchGetDocumentsResponse.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BatchGetDocumentsResponse.php
deleted file mode 100644
index 97801733b24f..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BatchGetDocumentsResponse.php
+++ /dev/null
@@ -1,214 +0,0 @@
-google.firestore.v1.BatchGetDocumentsResponse
- */
-class BatchGetDocumentsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The transaction that was started as part of this request.
- * Will only be set in the first response, and only if
- * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction]
- * was set in the request.
- *
- * Generated from protobuf field bytes transaction = 3;
- */
- protected $transaction = '';
- /**
- * The time at which the document was read.
- * This may be monotically increasing, in this case the previous documents in
- * the result stream are guaranteed not to have changed between their
- * read_time and this one.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 4;
- */
- protected $read_time = null;
- protected $result;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\Document $found
- * A document that was requested.
- * @type string $missing
- * A document name that was requested but does not exist. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * @type string $transaction
- * The transaction that was started as part of this request.
- * Will only be set in the first response, and only if
- * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction]
- * was set in the request.
- * @type \Google\Protobuf\Timestamp $read_time
- * The time at which the document was read.
- * This may be monotically increasing, in this case the previous documents in
- * the result stream are guaranteed not to have changed between their
- * read_time and this one.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A document that was requested.
- *
- * Generated from protobuf field .google.firestore.v1.Document found = 1;
- * @return \Google\Cloud\Firestore\V1\Document|null
- */
- public function getFound()
- {
- return $this->readOneof(1);
- }
-
- public function hasFound()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * A document that was requested.
- *
- * Generated from protobuf field .google.firestore.v1.Document found = 1;
- * @param \Google\Cloud\Firestore\V1\Document $var
- * @return $this
- */
- public function setFound($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Document::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * A document name that was requested but does not exist. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string missing = 2;
- * @return string
- */
- public function getMissing()
- {
- return $this->readOneof(2);
- }
-
- public function hasMissing()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * A document name that was requested but does not exist. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string missing = 2;
- * @param string $var
- * @return $this
- */
- public function setMissing($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * The transaction that was started as part of this request.
- * Will only be set in the first response, and only if
- * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction]
- * was set in the request.
- *
- * Generated from protobuf field bytes transaction = 3;
- * @return string
- */
- public function getTransaction()
- {
- return $this->transaction;
- }
-
- /**
- * The transaction that was started as part of this request.
- * Will only be set in the first response, and only if
- * [BatchGetDocumentsRequest.new_transaction][google.firestore.v1.BatchGetDocumentsRequest.new_transaction]
- * was set in the request.
- *
- * Generated from protobuf field bytes transaction = 3;
- * @param string $var
- * @return $this
- */
- public function setTransaction($var)
- {
- GPBUtil::checkString($var, False);
- $this->transaction = $var;
-
- return $this;
- }
-
- /**
- * The time at which the document was read.
- * This may be monotically increasing, in this case the previous documents in
- * the result stream are guaranteed not to have changed between their
- * read_time and this one.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 4;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->read_time;
- }
-
- public function hasReadTime()
- {
- return isset($this->read_time);
- }
-
- public function clearReadTime()
- {
- unset($this->read_time);
- }
-
- /**
- * The time at which the document was read.
- * This may be monotically increasing, in this case the previous documents in
- * the result stream are guaranteed not to have changed between their
- * read_time and this one.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 4;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->read_time = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getResult()
- {
- return $this->whichOneof("result");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BatchWriteRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BatchWriteRequest.php
deleted file mode 100644
index bc22dba85194..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BatchWriteRequest.php
+++ /dev/null
@@ -1,152 +0,0 @@
-google.firestore.v1.BatchWriteRequest
- */
-class BatchWriteRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $database = '';
- /**
- * The writes to apply.
- * Method does not apply writes atomically and does not guarantee ordering.
- * Each write succeeds or fails independently. You cannot write to the same
- * document more than once per request.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Write writes = 2;
- */
- private $writes;
- /**
- * Labels associated with this batch write.
- *
- * Generated from protobuf field map labels = 3;
- */
- private $labels;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $database
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * @type array<\Google\Cloud\Firestore\V1\Write>|\Google\Protobuf\Internal\RepeatedField $writes
- * The writes to apply.
- * Method does not apply writes atomically and does not guarantee ordering.
- * Each write succeeds or fails independently. You cannot write to the same
- * document more than once per request.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Labels associated with this batch write.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getDatabase()
- {
- return $this->database;
- }
-
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setDatabase($var)
- {
- GPBUtil::checkString($var, True);
- $this->database = $var;
-
- return $this;
- }
-
- /**
- * The writes to apply.
- * Method does not apply writes atomically and does not guarantee ordering.
- * Each write succeeds or fails independently. You cannot write to the same
- * document more than once per request.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Write writes = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getWrites()
- {
- return $this->writes;
- }
-
- /**
- * The writes to apply.
- * Method does not apply writes atomically and does not guarantee ordering.
- * Each write succeeds or fails independently. You cannot write to the same
- * document more than once per request.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Write writes = 2;
- * @param array<\Google\Cloud\Firestore\V1\Write>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setWrites($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\Write::class);
- $this->writes = $arr;
-
- return $this;
- }
-
- /**
- * Labels associated with this batch write.
- *
- * Generated from protobuf field map labels = 3;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Labels associated with this batch write.
- *
- * Generated from protobuf field map labels = 3;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BatchWriteResponse.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BatchWriteResponse.php
deleted file mode 100644
index da43ca0a535b..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BatchWriteResponse.php
+++ /dev/null
@@ -1,118 +0,0 @@
-google.firestore.v1.BatchWriteResponse
- */
-class BatchWriteResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The result of applying the writes.
- * This i-th write result corresponds to the i-th write in the
- * request.
- *
- * Generated from protobuf field repeated .google.firestore.v1.WriteResult write_results = 1;
- */
- private $write_results;
- /**
- * The status of applying the writes.
- * This i-th write status corresponds to the i-th write in the
- * request.
- *
- * Generated from protobuf field repeated .google.rpc.Status status = 2;
- */
- private $status;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Firestore\V1\WriteResult>|\Google\Protobuf\Internal\RepeatedField $write_results
- * The result of applying the writes.
- * This i-th write result corresponds to the i-th write in the
- * request.
- * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $status
- * The status of applying the writes.
- * This i-th write status corresponds to the i-th write in the
- * request.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The result of applying the writes.
- * This i-th write result corresponds to the i-th write in the
- * request.
- *
- * Generated from protobuf field repeated .google.firestore.v1.WriteResult write_results = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getWriteResults()
- {
- return $this->write_results;
- }
-
- /**
- * The result of applying the writes.
- * This i-th write result corresponds to the i-th write in the
- * request.
- *
- * Generated from protobuf field repeated .google.firestore.v1.WriteResult write_results = 1;
- * @param array<\Google\Cloud\Firestore\V1\WriteResult>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setWriteResults($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\WriteResult::class);
- $this->write_results = $arr;
-
- return $this;
- }
-
- /**
- * The status of applying the writes.
- * This i-th write status corresponds to the i-th write in the
- * request.
- *
- * Generated from protobuf field repeated .google.rpc.Status status = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getStatus()
- {
- return $this->status;
- }
-
- /**
- * The status of applying the writes.
- * This i-th write status corresponds to the i-th write in the
- * request.
- *
- * Generated from protobuf field repeated .google.rpc.Status status = 2;
- * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setStatus($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class);
- $this->status = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BeginTransactionRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BeginTransactionRequest.php
deleted file mode 100644
index 08de515ed1e5..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BeginTransactionRequest.php
+++ /dev/null
@@ -1,134 +0,0 @@
-google.firestore.v1.BeginTransactionRequest
- */
-class BeginTransactionRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $database = '';
- /**
- * The options for the transaction.
- * Defaults to a read-write transaction.
- *
- * Generated from protobuf field .google.firestore.v1.TransactionOptions options = 2;
- */
- protected $options = null;
-
- /**
- * @param string $database Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * @return \Google\Cloud\Firestore\V1\BeginTransactionRequest
- *
- * @experimental
- */
- public static function build(string $database): self
- {
- return (new self())
- ->setDatabase($database);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $database
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * @type \Google\Cloud\Firestore\V1\TransactionOptions $options
- * The options for the transaction.
- * Defaults to a read-write transaction.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getDatabase()
- {
- return $this->database;
- }
-
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setDatabase($var)
- {
- GPBUtil::checkString($var, True);
- $this->database = $var;
-
- return $this;
- }
-
- /**
- * The options for the transaction.
- * Defaults to a read-write transaction.
- *
- * Generated from protobuf field .google.firestore.v1.TransactionOptions options = 2;
- * @return \Google\Cloud\Firestore\V1\TransactionOptions|null
- */
- public function getOptions()
- {
- return $this->options;
- }
-
- public function hasOptions()
- {
- return isset($this->options);
- }
-
- public function clearOptions()
- {
- unset($this->options);
- }
-
- /**
- * The options for the transaction.
- * Defaults to a read-write transaction.
- *
- * Generated from protobuf field .google.firestore.v1.TransactionOptions options = 2;
- * @param \Google\Cloud\Firestore\V1\TransactionOptions $var
- * @return $this
- */
- public function setOptions($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\TransactionOptions::class);
- $this->options = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BeginTransactionResponse.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BeginTransactionResponse.php
deleted file mode 100644
index 2dcf768331c3..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BeginTransactionResponse.php
+++ /dev/null
@@ -1,68 +0,0 @@
-google.firestore.v1.BeginTransactionResponse
- */
-class BeginTransactionResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The transaction that was started.
- *
- * Generated from protobuf field bytes transaction = 1;
- */
- protected $transaction = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $transaction
- * The transaction that was started.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The transaction that was started.
- *
- * Generated from protobuf field bytes transaction = 1;
- * @return string
- */
- public function getTransaction()
- {
- return $this->transaction;
- }
-
- /**
- * The transaction that was started.
- *
- * Generated from protobuf field bytes transaction = 1;
- * @param string $var
- * @return $this
- */
- public function setTransaction($var)
- {
- GPBUtil::checkString($var, False);
- $this->transaction = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BitSequence.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BitSequence.php
deleted file mode 100644
index 7ce2da3b9590..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BitSequence.php
+++ /dev/null
@@ -1,124 +0,0 @@
-google.firestore.v1.BitSequence
- */
-class BitSequence extends \Google\Protobuf\Internal\Message
-{
- /**
- * The bytes that encode the bit sequence.
- * May have a length of zero.
- *
- * Generated from protobuf field bytes bitmap = 1;
- */
- protected $bitmap = '';
- /**
- * The number of bits of the last byte in `bitmap` to ignore as "padding".
- * If the length of `bitmap` is zero, then this value must be `0`.
- * Otherwise, this value must be between 0 and 7, inclusive.
- *
- * Generated from protobuf field int32 padding = 2;
- */
- protected $padding = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $bitmap
- * The bytes that encode the bit sequence.
- * May have a length of zero.
- * @type int $padding
- * The number of bits of the last byte in `bitmap` to ignore as "padding".
- * If the length of `bitmap` is zero, then this value must be `0`.
- * Otherwise, this value must be between 0 and 7, inclusive.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\BloomFilter::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The bytes that encode the bit sequence.
- * May have a length of zero.
- *
- * Generated from protobuf field bytes bitmap = 1;
- * @return string
- */
- public function getBitmap()
- {
- return $this->bitmap;
- }
-
- /**
- * The bytes that encode the bit sequence.
- * May have a length of zero.
- *
- * Generated from protobuf field bytes bitmap = 1;
- * @param string $var
- * @return $this
- */
- public function setBitmap($var)
- {
- GPBUtil::checkString($var, False);
- $this->bitmap = $var;
-
- return $this;
- }
-
- /**
- * The number of bits of the last byte in `bitmap` to ignore as "padding".
- * If the length of `bitmap` is zero, then this value must be `0`.
- * Otherwise, this value must be between 0 and 7, inclusive.
- *
- * Generated from protobuf field int32 padding = 2;
- * @return int
- */
- public function getPadding()
- {
- return $this->padding;
- }
-
- /**
- * The number of bits of the last byte in `bitmap` to ignore as "padding".
- * If the length of `bitmap` is zero, then this value must be `0`.
- * Otherwise, this value must be between 0 and 7, inclusive.
- *
- * Generated from protobuf field int32 padding = 2;
- * @param int $var
- * @return $this
- */
- public function setPadding($var)
- {
- GPBUtil::checkInt32($var);
- $this->padding = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BloomFilter.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BloomFilter.php
deleted file mode 100644
index 3a4b0b5d26af..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/BloomFilter.php
+++ /dev/null
@@ -1,119 +0,0 @@
-google.firestore.v1.BloomFilter
- */
-class BloomFilter extends \Google\Protobuf\Internal\Message
-{
- /**
- * The bloom filter data.
- *
- * Generated from protobuf field .google.firestore.v1.BitSequence bits = 1;
- */
- protected $bits = null;
- /**
- * The number of hashes used by the algorithm.
- *
- * Generated from protobuf field int32 hash_count = 2;
- */
- protected $hash_count = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\BitSequence $bits
- * The bloom filter data.
- * @type int $hash_count
- * The number of hashes used by the algorithm.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\BloomFilter::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The bloom filter data.
- *
- * Generated from protobuf field .google.firestore.v1.BitSequence bits = 1;
- * @return \Google\Cloud\Firestore\V1\BitSequence|null
- */
- public function getBits()
- {
- return $this->bits;
- }
-
- public function hasBits()
- {
- return isset($this->bits);
- }
-
- public function clearBits()
- {
- unset($this->bits);
- }
-
- /**
- * The bloom filter data.
- *
- * Generated from protobuf field .google.firestore.v1.BitSequence bits = 1;
- * @param \Google\Cloud\Firestore\V1\BitSequence $var
- * @return $this
- */
- public function setBits($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\BitSequence::class);
- $this->bits = $var;
-
- return $this;
- }
-
- /**
- * The number of hashes used by the algorithm.
- *
- * Generated from protobuf field int32 hash_count = 2;
- * @return int
- */
- public function getHashCount()
- {
- return $this->hash_count;
- }
-
- /**
- * The number of hashes used by the algorithm.
- *
- * Generated from protobuf field int32 hash_count = 2;
- * @param int $var
- * @return $this
- */
- public function setHashCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->hash_count = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/CommitRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/CommitRequest.php
deleted file mode 100644
index 01455af2f717..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/CommitRequest.php
+++ /dev/null
@@ -1,161 +0,0 @@
-google.firestore.v1.CommitRequest
- */
-class CommitRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $database = '';
- /**
- * The writes to apply.
- * Always executed atomically and in order.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Write writes = 2;
- */
- private $writes;
- /**
- * If set, applies all writes in this transaction, and commits it.
- *
- * Generated from protobuf field bytes transaction = 3;
- */
- protected $transaction = '';
-
- /**
- * @param string $database Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * @param \Google\Cloud\Firestore\V1\Write[] $writes The writes to apply.
- *
- * Always executed atomically and in order.
- *
- * @return \Google\Cloud\Firestore\V1\CommitRequest
- *
- * @experimental
- */
- public static function build(string $database, array $writes): self
- {
- return (new self())
- ->setDatabase($database)
- ->setWrites($writes);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $database
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * @type array<\Google\Cloud\Firestore\V1\Write>|\Google\Protobuf\Internal\RepeatedField $writes
- * The writes to apply.
- * Always executed atomically and in order.
- * @type string $transaction
- * If set, applies all writes in this transaction, and commits it.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getDatabase()
- {
- return $this->database;
- }
-
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setDatabase($var)
- {
- GPBUtil::checkString($var, True);
- $this->database = $var;
-
- return $this;
- }
-
- /**
- * The writes to apply.
- * Always executed atomically and in order.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Write writes = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getWrites()
- {
- return $this->writes;
- }
-
- /**
- * The writes to apply.
- * Always executed atomically and in order.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Write writes = 2;
- * @param array<\Google\Cloud\Firestore\V1\Write>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setWrites($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\Write::class);
- $this->writes = $arr;
-
- return $this;
- }
-
- /**
- * If set, applies all writes in this transaction, and commits it.
- *
- * Generated from protobuf field bytes transaction = 3;
- * @return string
- */
- public function getTransaction()
- {
- return $this->transaction;
- }
-
- /**
- * If set, applies all writes in this transaction, and commits it.
- *
- * Generated from protobuf field bytes transaction = 3;
- * @param string $var
- * @return $this
- */
- public function setTransaction($var)
- {
- GPBUtil::checkString($var, False);
- $this->transaction = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/CommitResponse.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/CommitResponse.php
deleted file mode 100644
index aa52dc11399d..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/CommitResponse.php
+++ /dev/null
@@ -1,123 +0,0 @@
-google.firestore.v1.CommitResponse
- */
-class CommitResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The result of applying the writes.
- * This i-th write result corresponds to the i-th write in the
- * request.
- *
- * Generated from protobuf field repeated .google.firestore.v1.WriteResult write_results = 1;
- */
- private $write_results;
- /**
- * The time at which the commit occurred. Any read with an equal or greater
- * `read_time` is guaranteed to see the effects of the commit.
- *
- * Generated from protobuf field .google.protobuf.Timestamp commit_time = 2;
- */
- protected $commit_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Firestore\V1\WriteResult>|\Google\Protobuf\Internal\RepeatedField $write_results
- * The result of applying the writes.
- * This i-th write result corresponds to the i-th write in the
- * request.
- * @type \Google\Protobuf\Timestamp $commit_time
- * The time at which the commit occurred. Any read with an equal or greater
- * `read_time` is guaranteed to see the effects of the commit.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The result of applying the writes.
- * This i-th write result corresponds to the i-th write in the
- * request.
- *
- * Generated from protobuf field repeated .google.firestore.v1.WriteResult write_results = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getWriteResults()
- {
- return $this->write_results;
- }
-
- /**
- * The result of applying the writes.
- * This i-th write result corresponds to the i-th write in the
- * request.
- *
- * Generated from protobuf field repeated .google.firestore.v1.WriteResult write_results = 1;
- * @param array<\Google\Cloud\Firestore\V1\WriteResult>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setWriteResults($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\WriteResult::class);
- $this->write_results = $arr;
-
- return $this;
- }
-
- /**
- * The time at which the commit occurred. Any read with an equal or greater
- * `read_time` is guaranteed to see the effects of the commit.
- *
- * Generated from protobuf field .google.protobuf.Timestamp commit_time = 2;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCommitTime()
- {
- return $this->commit_time;
- }
-
- public function hasCommitTime()
- {
- return isset($this->commit_time);
- }
-
- public function clearCommitTime()
- {
- unset($this->commit_time);
- }
-
- /**
- * The time at which the commit occurred. Any read with an equal or greater
- * `read_time` is guaranteed to see the effects of the commit.
- *
- * Generated from protobuf field .google.protobuf.Timestamp commit_time = 2;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCommitTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->commit_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/CreateDocumentRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/CreateDocumentRequest.php
deleted file mode 100644
index 8e2171cf630c..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/CreateDocumentRequest.php
+++ /dev/null
@@ -1,248 +0,0 @@
-google.firestore.v1.CreateDocumentRequest
- */
-class CreateDocumentRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent resource. For example:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $parent = '';
- /**
- * Required. The collection ID, relative to `parent`, to list. For example:
- * `chatrooms`.
- *
- * Generated from protobuf field string collection_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $collection_id = '';
- /**
- * The client-assigned document ID to use for this document.
- * Optional. If not specified, an ID will be assigned by the service.
- *
- * Generated from protobuf field string document_id = 3;
- */
- protected $document_id = '';
- /**
- * Required. The document to create. `name` must not be set.
- *
- * Generated from protobuf field .google.firestore.v1.Document document = 4 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $document = null;
- /**
- * The fields to return. If not set, returns all fields.
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 5;
- */
- protected $mask = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent resource. For example:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
- * @type string $collection_id
- * Required. The collection ID, relative to `parent`, to list. For example:
- * `chatrooms`.
- * @type string $document_id
- * The client-assigned document ID to use for this document.
- * Optional. If not specified, an ID will be assigned by the service.
- * @type \Google\Cloud\Firestore\V1\Document $document
- * Required. The document to create. `name` must not be set.
- * @type \Google\Cloud\Firestore\V1\DocumentMask $mask
- * The fields to return. If not set, returns all fields.
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent resource. For example:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent resource. For example:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. The collection ID, relative to `parent`, to list. For example:
- * `chatrooms`.
- *
- * Generated from protobuf field string collection_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getCollectionId()
- {
- return $this->collection_id;
- }
-
- /**
- * Required. The collection ID, relative to `parent`, to list. For example:
- * `chatrooms`.
- *
- * Generated from protobuf field string collection_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setCollectionId($var)
- {
- GPBUtil::checkString($var, True);
- $this->collection_id = $var;
-
- return $this;
- }
-
- /**
- * The client-assigned document ID to use for this document.
- * Optional. If not specified, an ID will be assigned by the service.
- *
- * Generated from protobuf field string document_id = 3;
- * @return string
- */
- public function getDocumentId()
- {
- return $this->document_id;
- }
-
- /**
- * The client-assigned document ID to use for this document.
- * Optional. If not specified, an ID will be assigned by the service.
- *
- * Generated from protobuf field string document_id = 3;
- * @param string $var
- * @return $this
- */
- public function setDocumentId($var)
- {
- GPBUtil::checkString($var, True);
- $this->document_id = $var;
-
- return $this;
- }
-
- /**
- * Required. The document to create. `name` must not be set.
- *
- * Generated from protobuf field .google.firestore.v1.Document document = 4 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Firestore\V1\Document|null
- */
- public function getDocument()
- {
- return $this->document;
- }
-
- public function hasDocument()
- {
- return isset($this->document);
- }
-
- public function clearDocument()
- {
- unset($this->document);
- }
-
- /**
- * Required. The document to create. `name` must not be set.
- *
- * Generated from protobuf field .google.firestore.v1.Document document = 4 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Firestore\V1\Document $var
- * @return $this
- */
- public function setDocument($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Document::class);
- $this->document = $var;
-
- return $this;
- }
-
- /**
- * The fields to return. If not set, returns all fields.
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 5;
- * @return \Google\Cloud\Firestore\V1\DocumentMask|null
- */
- public function getMask()
- {
- return $this->mask;
- }
-
- public function hasMask()
- {
- return isset($this->mask);
- }
-
- public function clearMask()
- {
- unset($this->mask);
- }
-
- /**
- * The fields to return. If not set, returns all fields.
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 5;
- * @param \Google\Cloud\Firestore\V1\DocumentMask $var
- * @return $this
- */
- public function setMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\DocumentMask::class);
- $this->mask = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Cursor.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Cursor.php
deleted file mode 100644
index 9fdaf73c3abe..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Cursor.php
+++ /dev/null
@@ -1,113 +0,0 @@
-google.firestore.v1.Cursor
- */
-class Cursor extends \Google\Protobuf\Internal\Message
-{
- /**
- * The values that represent a position, in the order they appear in
- * the order by clause of a query.
- * Can contain fewer values than specified in the order by clause.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Value values = 1;
- */
- private $values;
- /**
- * If the position is just before or just after the given values, relative
- * to the sort order defined by the query.
- *
- * Generated from protobuf field bool before = 2;
- */
- protected $before = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Firestore\V1\Value>|\Google\Protobuf\Internal\RepeatedField $values
- * The values that represent a position, in the order they appear in
- * the order by clause of a query.
- * Can contain fewer values than specified in the order by clause.
- * @type bool $before
- * If the position is just before or just after the given values, relative
- * to the sort order defined by the query.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The values that represent a position, in the order they appear in
- * the order by clause of a query.
- * Can contain fewer values than specified in the order by clause.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Value values = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getValues()
- {
- return $this->values;
- }
-
- /**
- * The values that represent a position, in the order they appear in
- * the order by clause of a query.
- * Can contain fewer values than specified in the order by clause.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Value values = 1;
- * @param array<\Google\Cloud\Firestore\V1\Value>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setValues($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\Value::class);
- $this->values = $arr;
-
- return $this;
- }
-
- /**
- * If the position is just before or just after the given values, relative
- * to the sort order defined by the query.
- *
- * Generated from protobuf field bool before = 2;
- * @return bool
- */
- public function getBefore()
- {
- return $this->before;
- }
-
- /**
- * If the position is just before or just after the given values, relative
- * to the sort order defined by the query.
- *
- * Generated from protobuf field bool before = 2;
- * @param bool $var
- * @return $this
- */
- public function setBefore($var)
- {
- GPBUtil::checkBool($var);
- $this->before = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DeleteDocumentRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DeleteDocumentRequest.php
deleted file mode 100644
index 86172865d22c..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DeleteDocumentRequest.php
+++ /dev/null
@@ -1,134 +0,0 @@
-google.firestore.v1.DeleteDocumentRequest
- */
-class DeleteDocumentRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The resource name of the Document to delete. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $name = '';
- /**
- * An optional precondition on the document.
- * The request will fail if this is set and not met by the target document.
- *
- * Generated from protobuf field .google.firestore.v1.Precondition current_document = 2;
- */
- protected $current_document = null;
-
- /**
- * @param string $name Required. The resource name of the Document to delete. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * @return \Google\Cloud\Firestore\V1\DeleteDocumentRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The resource name of the Document to delete. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * @type \Google\Cloud\Firestore\V1\Precondition $current_document
- * An optional precondition on the document.
- * The request will fail if this is set and not met by the target document.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The resource name of the Document to delete. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The resource name of the Document to delete. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * An optional precondition on the document.
- * The request will fail if this is set and not met by the target document.
- *
- * Generated from protobuf field .google.firestore.v1.Precondition current_document = 2;
- * @return \Google\Cloud\Firestore\V1\Precondition|null
- */
- public function getCurrentDocument()
- {
- return $this->current_document;
- }
-
- public function hasCurrentDocument()
- {
- return isset($this->current_document);
- }
-
- public function clearCurrentDocument()
- {
- unset($this->current_document);
- }
-
- /**
- * An optional precondition on the document.
- * The request will fail if this is set and not met by the target document.
- *
- * Generated from protobuf field .google.firestore.v1.Precondition current_document = 2;
- * @param \Google\Cloud\Firestore\V1\Precondition $var
- * @return $this
- */
- public function setCurrentDocument($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Precondition::class);
- $this->current_document = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Document.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Document.php
deleted file mode 100644
index 594b70eed952..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Document.php
+++ /dev/null
@@ -1,290 +0,0 @@
-google.firestore.v1.Document
- */
-class Document extends \Google\Protobuf\Internal\Message
-{
- /**
- * The resource name of the document, for example
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
- /**
- * The document's fields.
- * The map keys represent field names.
- * Field names matching the regular expression `__.*__` are reserved. Reserved
- * field names are forbidden except in certain documented contexts. The field
- * names, represented as UTF-8, must not exceed 1,500 bytes and cannot be
- * empty.
- * Field paths may be used in other contexts to refer to structured fields
- * defined here. For `map_value`, the field path is represented by a
- * dot-delimited (`.`) string of segments. Each segment is either a simple
- * field name (defined below) or a quoted field name. For example, the
- * structured field `"foo" : { map_value: { "x&y" : { string_value: "hello"
- * }}}` would be represented by the field path `` foo.`x&y` ``.
- * A simple field name contains only characters `a` to `z`, `A` to `Z`,
- * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
- * `foo_bar_17`.
- * A quoted field name starts and ends with `` ` `` and
- * may contain any character. Some characters, including `` ` ``, must be
- * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
- * `` `bak\`tik` `` represents `` bak`tik ``.
- *
- * Generated from protobuf field map fields = 2;
- */
- private $fields;
- /**
- * Output only. The time at which the document was created.
- * This value increases monotonically when a document is deleted then
- * recreated. It can also be compared to values from other documents and
- * the `read_time` of a query.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3;
- */
- protected $create_time = null;
- /**
- * Output only. The time at which the document was last changed.
- * This value is initially set to the `create_time` then increases
- * monotonically with each change to the document. It can also be
- * compared to values from other documents and the `read_time` of a query.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4;
- */
- protected $update_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * The resource name of the document, for example
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * @type array|\Google\Protobuf\Internal\MapField $fields
- * The document's fields.
- * The map keys represent field names.
- * Field names matching the regular expression `__.*__` are reserved. Reserved
- * field names are forbidden except in certain documented contexts. The field
- * names, represented as UTF-8, must not exceed 1,500 bytes and cannot be
- * empty.
- * Field paths may be used in other contexts to refer to structured fields
- * defined here. For `map_value`, the field path is represented by a
- * dot-delimited (`.`) string of segments. Each segment is either a simple
- * field name (defined below) or a quoted field name. For example, the
- * structured field `"foo" : { map_value: { "x&y" : { string_value: "hello"
- * }}}` would be represented by the field path `` foo.`x&y` ``.
- * A simple field name contains only characters `a` to `z`, `A` to `Z`,
- * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
- * `foo_bar_17`.
- * A quoted field name starts and ends with `` ` `` and
- * may contain any character. Some characters, including `` ` ``, must be
- * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
- * `` `bak\`tik` `` represents `` bak`tik ``.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The time at which the document was created.
- * This value increases monotonically when a document is deleted then
- * recreated. It can also be compared to values from other documents and
- * the `read_time` of a query.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. The time at which the document was last changed.
- * This value is initially set to the `create_time` then increases
- * monotonically with each change to the document. It can also be
- * compared to values from other documents and the `read_time` of a query.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Document::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The resource name of the document, for example
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * The resource name of the document, for example
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * The document's fields.
- * The map keys represent field names.
- * Field names matching the regular expression `__.*__` are reserved. Reserved
- * field names are forbidden except in certain documented contexts. The field
- * names, represented as UTF-8, must not exceed 1,500 bytes and cannot be
- * empty.
- * Field paths may be used in other contexts to refer to structured fields
- * defined here. For `map_value`, the field path is represented by a
- * dot-delimited (`.`) string of segments. Each segment is either a simple
- * field name (defined below) or a quoted field name. For example, the
- * structured field `"foo" : { map_value: { "x&y" : { string_value: "hello"
- * }}}` would be represented by the field path `` foo.`x&y` ``.
- * A simple field name contains only characters `a` to `z`, `A` to `Z`,
- * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
- * `foo_bar_17`.
- * A quoted field name starts and ends with `` ` `` and
- * may contain any character. Some characters, including `` ` ``, must be
- * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
- * `` `bak\`tik` `` represents `` bak`tik ``.
- *
- * Generated from protobuf field map fields = 2;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getFields()
- {
- return $this->fields;
- }
-
- /**
- * The document's fields.
- * The map keys represent field names.
- * Field names matching the regular expression `__.*__` are reserved. Reserved
- * field names are forbidden except in certain documented contexts. The field
- * names, represented as UTF-8, must not exceed 1,500 bytes and cannot be
- * empty.
- * Field paths may be used in other contexts to refer to structured fields
- * defined here. For `map_value`, the field path is represented by a
- * dot-delimited (`.`) string of segments. Each segment is either a simple
- * field name (defined below) or a quoted field name. For example, the
- * structured field `"foo" : { map_value: { "x&y" : { string_value: "hello"
- * }}}` would be represented by the field path `` foo.`x&y` ``.
- * A simple field name contains only characters `a` to `z`, `A` to `Z`,
- * `0` to `9`, or `_`, and must not start with `0` to `9`. For example,
- * `foo_bar_17`.
- * A quoted field name starts and ends with `` ` `` and
- * may contain any character. Some characters, including `` ` ``, must be
- * escaped using a `\`. For example, `` `x&y` `` represents `x&y` and
- * `` `bak\`tik` `` represents `` bak`tik ``.
- *
- * Generated from protobuf field map fields = 2;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setFields($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\Value::class);
- $this->fields = $arr;
-
- return $this;
- }
-
- /**
- * Output only. The time at which the document was created.
- * This value increases monotonically when a document is deleted then
- * recreated. It can also be compared to values from other documents and
- * the `read_time` of a query.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The time at which the document was created.
- * This value increases monotonically when a document is deleted then
- * recreated. It can also be compared to values from other documents and
- * the `read_time` of a query.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The time at which the document was last changed.
- * This value is initially set to the `create_time` then increases
- * monotonically with each change to the document. It can also be
- * compared to values from other documents and the `read_time` of a query.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. The time at which the document was last changed.
- * This value is initially set to the `create_time` then increases
- * monotonically with each change to the document. It can also be
- * compared to values from other documents and the `read_time` of a query.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentChange.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentChange.php
deleted file mode 100644
index f4e1a5181731..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentChange.php
+++ /dev/null
@@ -1,154 +0,0 @@
-google.firestore.v1.DocumentChange
- */
-class DocumentChange extends \Google\Protobuf\Internal\Message
-{
- /**
- * The new state of the [Document][google.firestore.v1.Document].
- * If `mask` is set, contains only fields that were updated or added.
- *
- * Generated from protobuf field .google.firestore.v1.Document document = 1;
- */
- protected $document = null;
- /**
- * A set of target IDs of targets that match this document.
- *
- * Generated from protobuf field repeated int32 target_ids = 5;
- */
- private $target_ids;
- /**
- * A set of target IDs for targets that no longer match this document.
- *
- * Generated from protobuf field repeated int32 removed_target_ids = 6;
- */
- private $removed_target_ids;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\Document $document
- * The new state of the [Document][google.firestore.v1.Document].
- * If `mask` is set, contains only fields that were updated or added.
- * @type array|\Google\Protobuf\Internal\RepeatedField $target_ids
- * A set of target IDs of targets that match this document.
- * @type array|\Google\Protobuf\Internal\RepeatedField $removed_target_ids
- * A set of target IDs for targets that no longer match this document.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Write::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The new state of the [Document][google.firestore.v1.Document].
- * If `mask` is set, contains only fields that were updated or added.
- *
- * Generated from protobuf field .google.firestore.v1.Document document = 1;
- * @return \Google\Cloud\Firestore\V1\Document|null
- */
- public function getDocument()
- {
- return $this->document;
- }
-
- public function hasDocument()
- {
- return isset($this->document);
- }
-
- public function clearDocument()
- {
- unset($this->document);
- }
-
- /**
- * The new state of the [Document][google.firestore.v1.Document].
- * If `mask` is set, contains only fields that were updated or added.
- *
- * Generated from protobuf field .google.firestore.v1.Document document = 1;
- * @param \Google\Cloud\Firestore\V1\Document $var
- * @return $this
- */
- public function setDocument($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Document::class);
- $this->document = $var;
-
- return $this;
- }
-
- /**
- * A set of target IDs of targets that match this document.
- *
- * Generated from protobuf field repeated int32 target_ids = 5;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTargetIds()
- {
- return $this->target_ids;
- }
-
- /**
- * A set of target IDs of targets that match this document.
- *
- * Generated from protobuf field repeated int32 target_ids = 5;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTargetIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
- $this->target_ids = $arr;
-
- return $this;
- }
-
- /**
- * A set of target IDs for targets that no longer match this document.
- *
- * Generated from protobuf field repeated int32 removed_target_ids = 6;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRemovedTargetIds()
- {
- return $this->removed_target_ids;
- }
-
- /**
- * A set of target IDs for targets that no longer match this document.
- *
- * Generated from protobuf field repeated int32 removed_target_ids = 6;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRemovedTargetIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
- $this->removed_target_ids = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentDelete.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentDelete.php
deleted file mode 100644
index 94b0fb72fcd8..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentDelete.php
+++ /dev/null
@@ -1,158 +0,0 @@
-google.firestore.v1.DocumentDelete
- */
-class DocumentDelete extends \Google\Protobuf\Internal\Message
-{
- /**
- * The resource name of the [Document][google.firestore.v1.Document] that was
- * deleted.
- *
- * Generated from protobuf field string document = 1;
- */
- protected $document = '';
- /**
- * A set of target IDs for targets that previously matched this entity.
- *
- * Generated from protobuf field repeated int32 removed_target_ids = 6;
- */
- private $removed_target_ids;
- /**
- * The read timestamp at which the delete was observed.
- * Greater or equal to the `commit_time` of the delete.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 4;
- */
- protected $read_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $document
- * The resource name of the [Document][google.firestore.v1.Document] that was
- * deleted.
- * @type array|\Google\Protobuf\Internal\RepeatedField $removed_target_ids
- * A set of target IDs for targets that previously matched this entity.
- * @type \Google\Protobuf\Timestamp $read_time
- * The read timestamp at which the delete was observed.
- * Greater or equal to the `commit_time` of the delete.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Write::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The resource name of the [Document][google.firestore.v1.Document] that was
- * deleted.
- *
- * Generated from protobuf field string document = 1;
- * @return string
- */
- public function getDocument()
- {
- return $this->document;
- }
-
- /**
- * The resource name of the [Document][google.firestore.v1.Document] that was
- * deleted.
- *
- * Generated from protobuf field string document = 1;
- * @param string $var
- * @return $this
- */
- public function setDocument($var)
- {
- GPBUtil::checkString($var, True);
- $this->document = $var;
-
- return $this;
- }
-
- /**
- * A set of target IDs for targets that previously matched this entity.
- *
- * Generated from protobuf field repeated int32 removed_target_ids = 6;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRemovedTargetIds()
- {
- return $this->removed_target_ids;
- }
-
- /**
- * A set of target IDs for targets that previously matched this entity.
- *
- * Generated from protobuf field repeated int32 removed_target_ids = 6;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRemovedTargetIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
- $this->removed_target_ids = $arr;
-
- return $this;
- }
-
- /**
- * The read timestamp at which the delete was observed.
- * Greater or equal to the `commit_time` of the delete.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 4;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->read_time;
- }
-
- public function hasReadTime()
- {
- return isset($this->read_time);
- }
-
- public function clearReadTime()
- {
- unset($this->read_time);
- }
-
- /**
- * The read timestamp at which the delete was observed.
- * Greater or equal to the `commit_time` of the delete.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 4;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->read_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentMask.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentMask.php
deleted file mode 100644
index 10644f490192..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentMask.php
+++ /dev/null
@@ -1,80 +0,0 @@
-google.firestore.v1.DocumentMask
- */
-class DocumentMask extends \Google\Protobuf\Internal\Message
-{
- /**
- * The list of field paths in the mask. See
- * [Document.fields][google.firestore.v1.Document.fields] for a field path
- * syntax reference.
- *
- * Generated from protobuf field repeated string field_paths = 1;
- */
- private $field_paths;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $field_paths
- * The list of field paths in the mask. See
- * [Document.fields][google.firestore.v1.Document.fields] for a field path
- * syntax reference.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Common::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The list of field paths in the mask. See
- * [Document.fields][google.firestore.v1.Document.fields] for a field path
- * syntax reference.
- *
- * Generated from protobuf field repeated string field_paths = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFieldPaths()
- {
- return $this->field_paths;
- }
-
- /**
- * The list of field paths in the mask. See
- * [Document.fields][google.firestore.v1.Document.fields] for a field path
- * syntax reference.
- *
- * Generated from protobuf field repeated string field_paths = 1;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFieldPaths($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->field_paths = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentRemove.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentRemove.php
deleted file mode 100644
index 7a435ef42700..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentRemove.php
+++ /dev/null
@@ -1,160 +0,0 @@
-google.firestore.v1.DocumentRemove
- */
-class DocumentRemove extends \Google\Protobuf\Internal\Message
-{
- /**
- * The resource name of the [Document][google.firestore.v1.Document] that has
- * gone out of view.
- *
- * Generated from protobuf field string document = 1;
- */
- protected $document = '';
- /**
- * A set of target IDs for targets that previously matched this document.
- *
- * Generated from protobuf field repeated int32 removed_target_ids = 2;
- */
- private $removed_target_ids;
- /**
- * The read timestamp at which the remove was observed.
- * Greater or equal to the `commit_time` of the change/delete/remove.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 4;
- */
- protected $read_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $document
- * The resource name of the [Document][google.firestore.v1.Document] that has
- * gone out of view.
- * @type array|\Google\Protobuf\Internal\RepeatedField $removed_target_ids
- * A set of target IDs for targets that previously matched this document.
- * @type \Google\Protobuf\Timestamp $read_time
- * The read timestamp at which the remove was observed.
- * Greater or equal to the `commit_time` of the change/delete/remove.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Write::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The resource name of the [Document][google.firestore.v1.Document] that has
- * gone out of view.
- *
- * Generated from protobuf field string document = 1;
- * @return string
- */
- public function getDocument()
- {
- return $this->document;
- }
-
- /**
- * The resource name of the [Document][google.firestore.v1.Document] that has
- * gone out of view.
- *
- * Generated from protobuf field string document = 1;
- * @param string $var
- * @return $this
- */
- public function setDocument($var)
- {
- GPBUtil::checkString($var, True);
- $this->document = $var;
-
- return $this;
- }
-
- /**
- * A set of target IDs for targets that previously matched this document.
- *
- * Generated from protobuf field repeated int32 removed_target_ids = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRemovedTargetIds()
- {
- return $this->removed_target_ids;
- }
-
- /**
- * A set of target IDs for targets that previously matched this document.
- *
- * Generated from protobuf field repeated int32 removed_target_ids = 2;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRemovedTargetIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
- $this->removed_target_ids = $arr;
-
- return $this;
- }
-
- /**
- * The read timestamp at which the remove was observed.
- * Greater or equal to the `commit_time` of the change/delete/remove.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 4;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->read_time;
- }
-
- public function hasReadTime()
- {
- return isset($this->read_time);
- }
-
- public function clearReadTime()
- {
- unset($this->read_time);
- }
-
- /**
- * The read timestamp at which the remove was observed.
- * Greater or equal to the `commit_time` of the change/delete/remove.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 4;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->read_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentTransform.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentTransform.php
deleted file mode 100644
index 05828bedba2f..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentTransform.php
+++ /dev/null
@@ -1,109 +0,0 @@
-google.firestore.v1.DocumentTransform
- */
-class DocumentTransform extends \Google\Protobuf\Internal\Message
-{
- /**
- * The name of the document to transform.
- *
- * Generated from protobuf field string document = 1;
- */
- protected $document = '';
- /**
- * The list of transformations to apply to the fields of the document, in
- * order.
- * This must not be empty.
- *
- * Generated from protobuf field repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;
- */
- private $field_transforms;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $document
- * The name of the document to transform.
- * @type array<\Google\Cloud\Firestore\V1\DocumentTransform\FieldTransform>|\Google\Protobuf\Internal\RepeatedField $field_transforms
- * The list of transformations to apply to the fields of the document, in
- * order.
- * This must not be empty.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Write::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The name of the document to transform.
- *
- * Generated from protobuf field string document = 1;
- * @return string
- */
- public function getDocument()
- {
- return $this->document;
- }
-
- /**
- * The name of the document to transform.
- *
- * Generated from protobuf field string document = 1;
- * @param string $var
- * @return $this
- */
- public function setDocument($var)
- {
- GPBUtil::checkString($var, True);
- $this->document = $var;
-
- return $this;
- }
-
- /**
- * The list of transformations to apply to the fields of the document, in
- * order.
- * This must not be empty.
- *
- * Generated from protobuf field repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFieldTransforms()
- {
- return $this->field_transforms;
- }
-
- /**
- * The list of transformations to apply to the fields of the document, in
- * order.
- * This must not be empty.
- *
- * Generated from protobuf field repeated .google.firestore.v1.DocumentTransform.FieldTransform field_transforms = 2;
- * @param array<\Google\Cloud\Firestore\V1\DocumentTransform\FieldTransform>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFieldTransforms($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\DocumentTransform\FieldTransform::class);
- $this->field_transforms = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentTransform/FieldTransform.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentTransform/FieldTransform.php
deleted file mode 100644
index 1372f46bd038..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentTransform/FieldTransform.php
+++ /dev/null
@@ -1,417 +0,0 @@
-google.firestore.v1.DocumentTransform.FieldTransform
- */
-class FieldTransform extends \Google\Protobuf\Internal\Message
-{
- /**
- * The path of the field. See
- * [Document.fields][google.firestore.v1.Document.fields] for the field path
- * syntax reference.
- *
- * Generated from protobuf field string field_path = 1;
- */
- protected $field_path = '';
- protected $transform_type;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $field_path
- * The path of the field. See
- * [Document.fields][google.firestore.v1.Document.fields] for the field path
- * syntax reference.
- * @type int $set_to_server_value
- * Sets the field to the given server value.
- * @type \Google\Cloud\Firestore\V1\Value $increment
- * Adds the given value to the field's current value.
- * This must be an integer or a double value.
- * If the field is not an integer or double, or if the field does not yet
- * exist, the transformation will set the field to the given value.
- * If either of the given value or the current field value are doubles,
- * both values will be interpreted as doubles. Double arithmetic and
- * representation of double values follow IEEE 754 semantics.
- * If there is positive/negative integer overflow, the field is resolved
- * to the largest magnitude positive/negative integer.
- * @type \Google\Cloud\Firestore\V1\Value $maximum
- * Sets the field to the maximum of its current value and the given value.
- * This must be an integer or a double value.
- * If the field is not an integer or double, or if the field does not yet
- * exist, the transformation will set the field to the given value.
- * If a maximum operation is applied where the field and the input value
- * are of mixed types (that is - one is an integer and one is a double)
- * the field takes on the type of the larger operand. If the operands are
- * equivalent (e.g. 3 and 3.0), the field does not change.
- * 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and
- * zero input value is always the stored value.
- * The maximum of any numeric value x and NaN is NaN.
- * @type \Google\Cloud\Firestore\V1\Value $minimum
- * Sets the field to the minimum of its current value and the given value.
- * This must be an integer or a double value.
- * If the field is not an integer or double, or if the field does not yet
- * exist, the transformation will set the field to the input value.
- * If a minimum operation is applied where the field and the input value
- * are of mixed types (that is - one is an integer and one is a double)
- * the field takes on the type of the smaller operand. If the operands are
- * equivalent (e.g. 3 and 3.0), the field does not change.
- * 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and
- * zero input value is always the stored value.
- * The minimum of any numeric value x and NaN is NaN.
- * @type \Google\Cloud\Firestore\V1\ArrayValue $append_missing_elements
- * Append the given elements in order if they are not already present in
- * the current field value.
- * If the field is not an array, or if the field does not yet exist, it is
- * first set to the empty array.
- * Equivalent numbers of different types (e.g. 3L and 3.0) are
- * considered equal when checking if a value is missing.
- * NaN is equal to NaN, and Null is equal to Null.
- * If the input contains multiple equivalent values, only the first will
- * be considered.
- * The corresponding transform_result will be the null value.
- * @type \Google\Cloud\Firestore\V1\ArrayValue $remove_all_from_array
- * Remove all of the given elements from the array in the field.
- * If the field is not an array, or if the field does not yet exist, it is
- * set to the empty array.
- * Equivalent numbers of the different types (e.g. 3L and 3.0) are
- * considered equal when deciding whether an element should be removed.
- * NaN is equal to NaN, and Null is equal to Null.
- * This will remove all equivalent values if there are duplicates.
- * The corresponding transform_result will be the null value.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Write::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The path of the field. See
- * [Document.fields][google.firestore.v1.Document.fields] for the field path
- * syntax reference.
- *
- * Generated from protobuf field string field_path = 1;
- * @return string
- */
- public function getFieldPath()
- {
- return $this->field_path;
- }
-
- /**
- * The path of the field. See
- * [Document.fields][google.firestore.v1.Document.fields] for the field path
- * syntax reference.
- *
- * Generated from protobuf field string field_path = 1;
- * @param string $var
- * @return $this
- */
- public function setFieldPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->field_path = $var;
-
- return $this;
- }
-
- /**
- * Sets the field to the given server value.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;
- * @return int
- */
- public function getSetToServerValue()
- {
- return $this->readOneof(2);
- }
-
- public function hasSetToServerValue()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Sets the field to the given server value.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentTransform.FieldTransform.ServerValue set_to_server_value = 2;
- * @param int $var
- * @return $this
- */
- public function setSetToServerValue($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\V1\DocumentTransform\FieldTransform\ServerValue::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * Adds the given value to the field's current value.
- * This must be an integer or a double value.
- * If the field is not an integer or double, or if the field does not yet
- * exist, the transformation will set the field to the given value.
- * If either of the given value or the current field value are doubles,
- * both values will be interpreted as doubles. Double arithmetic and
- * representation of double values follow IEEE 754 semantics.
- * If there is positive/negative integer overflow, the field is resolved
- * to the largest magnitude positive/negative integer.
- *
- * Generated from protobuf field .google.firestore.v1.Value increment = 3;
- * @return \Google\Cloud\Firestore\V1\Value|null
- */
- public function getIncrement()
- {
- return $this->readOneof(3);
- }
-
- public function hasIncrement()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * Adds the given value to the field's current value.
- * This must be an integer or a double value.
- * If the field is not an integer or double, or if the field does not yet
- * exist, the transformation will set the field to the given value.
- * If either of the given value or the current field value are doubles,
- * both values will be interpreted as doubles. Double arithmetic and
- * representation of double values follow IEEE 754 semantics.
- * If there is positive/negative integer overflow, the field is resolved
- * to the largest magnitude positive/negative integer.
- *
- * Generated from protobuf field .google.firestore.v1.Value increment = 3;
- * @param \Google\Cloud\Firestore\V1\Value $var
- * @return $this
- */
- public function setIncrement($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Value::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * Sets the field to the maximum of its current value and the given value.
- * This must be an integer or a double value.
- * If the field is not an integer or double, or if the field does not yet
- * exist, the transformation will set the field to the given value.
- * If a maximum operation is applied where the field and the input value
- * are of mixed types (that is - one is an integer and one is a double)
- * the field takes on the type of the larger operand. If the operands are
- * equivalent (e.g. 3 and 3.0), the field does not change.
- * 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and
- * zero input value is always the stored value.
- * The maximum of any numeric value x and NaN is NaN.
- *
- * Generated from protobuf field .google.firestore.v1.Value maximum = 4;
- * @return \Google\Cloud\Firestore\V1\Value|null
- */
- public function getMaximum()
- {
- return $this->readOneof(4);
- }
-
- public function hasMaximum()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Sets the field to the maximum of its current value and the given value.
- * This must be an integer or a double value.
- * If the field is not an integer or double, or if the field does not yet
- * exist, the transformation will set the field to the given value.
- * If a maximum operation is applied where the field and the input value
- * are of mixed types (that is - one is an integer and one is a double)
- * the field takes on the type of the larger operand. If the operands are
- * equivalent (e.g. 3 and 3.0), the field does not change.
- * 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and
- * zero input value is always the stored value.
- * The maximum of any numeric value x and NaN is NaN.
- *
- * Generated from protobuf field .google.firestore.v1.Value maximum = 4;
- * @param \Google\Cloud\Firestore\V1\Value $var
- * @return $this
- */
- public function setMaximum($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Value::class);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * Sets the field to the minimum of its current value and the given value.
- * This must be an integer or a double value.
- * If the field is not an integer or double, or if the field does not yet
- * exist, the transformation will set the field to the input value.
- * If a minimum operation is applied where the field and the input value
- * are of mixed types (that is - one is an integer and one is a double)
- * the field takes on the type of the smaller operand. If the operands are
- * equivalent (e.g. 3 and 3.0), the field does not change.
- * 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and
- * zero input value is always the stored value.
- * The minimum of any numeric value x and NaN is NaN.
- *
- * Generated from protobuf field .google.firestore.v1.Value minimum = 5;
- * @return \Google\Cloud\Firestore\V1\Value|null
- */
- public function getMinimum()
- {
- return $this->readOneof(5);
- }
-
- public function hasMinimum()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Sets the field to the minimum of its current value and the given value.
- * This must be an integer or a double value.
- * If the field is not an integer or double, or if the field does not yet
- * exist, the transformation will set the field to the input value.
- * If a minimum operation is applied where the field and the input value
- * are of mixed types (that is - one is an integer and one is a double)
- * the field takes on the type of the smaller operand. If the operands are
- * equivalent (e.g. 3 and 3.0), the field does not change.
- * 0, 0.0, and -0.0 are all zero. The minimum of a zero stored value and
- * zero input value is always the stored value.
- * The minimum of any numeric value x and NaN is NaN.
- *
- * Generated from protobuf field .google.firestore.v1.Value minimum = 5;
- * @param \Google\Cloud\Firestore\V1\Value $var
- * @return $this
- */
- public function setMinimum($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Value::class);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * Append the given elements in order if they are not already present in
- * the current field value.
- * If the field is not an array, or if the field does not yet exist, it is
- * first set to the empty array.
- * Equivalent numbers of different types (e.g. 3L and 3.0) are
- * considered equal when checking if a value is missing.
- * NaN is equal to NaN, and Null is equal to Null.
- * If the input contains multiple equivalent values, only the first will
- * be considered.
- * The corresponding transform_result will be the null value.
- *
- * Generated from protobuf field .google.firestore.v1.ArrayValue append_missing_elements = 6;
- * @return \Google\Cloud\Firestore\V1\ArrayValue|null
- */
- public function getAppendMissingElements()
- {
- return $this->readOneof(6);
- }
-
- public function hasAppendMissingElements()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * Append the given elements in order if they are not already present in
- * the current field value.
- * If the field is not an array, or if the field does not yet exist, it is
- * first set to the empty array.
- * Equivalent numbers of different types (e.g. 3L and 3.0) are
- * considered equal when checking if a value is missing.
- * NaN is equal to NaN, and Null is equal to Null.
- * If the input contains multiple equivalent values, only the first will
- * be considered.
- * The corresponding transform_result will be the null value.
- *
- * Generated from protobuf field .google.firestore.v1.ArrayValue append_missing_elements = 6;
- * @param \Google\Cloud\Firestore\V1\ArrayValue $var
- * @return $this
- */
- public function setAppendMissingElements($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\ArrayValue::class);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * Remove all of the given elements from the array in the field.
- * If the field is not an array, or if the field does not yet exist, it is
- * set to the empty array.
- * Equivalent numbers of the different types (e.g. 3L and 3.0) are
- * considered equal when deciding whether an element should be removed.
- * NaN is equal to NaN, and Null is equal to Null.
- * This will remove all equivalent values if there are duplicates.
- * The corresponding transform_result will be the null value.
- *
- * Generated from protobuf field .google.firestore.v1.ArrayValue remove_all_from_array = 7;
- * @return \Google\Cloud\Firestore\V1\ArrayValue|null
- */
- public function getRemoveAllFromArray()
- {
- return $this->readOneof(7);
- }
-
- public function hasRemoveAllFromArray()
- {
- return $this->hasOneof(7);
- }
-
- /**
- * Remove all of the given elements from the array in the field.
- * If the field is not an array, or if the field does not yet exist, it is
- * set to the empty array.
- * Equivalent numbers of the different types (e.g. 3L and 3.0) are
- * considered equal when deciding whether an element should be removed.
- * NaN is equal to NaN, and Null is equal to Null.
- * This will remove all equivalent values if there are duplicates.
- * The corresponding transform_result will be the null value.
- *
- * Generated from protobuf field .google.firestore.v1.ArrayValue remove_all_from_array = 7;
- * @param \Google\Cloud\Firestore\V1\ArrayValue $var
- * @return $this
- */
- public function setRemoveAllFromArray($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\ArrayValue::class);
- $this->writeOneof(7, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getTransformType()
- {
- return $this->whichOneof("transform_type");
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(FieldTransform::class, \Google\Cloud\Firestore\V1\DocumentTransform_FieldTransform::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentTransform/FieldTransform/ServerValue.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentTransform/FieldTransform/ServerValue.php
deleted file mode 100644
index 47d3356c025d..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/DocumentTransform/FieldTransform/ServerValue.php
+++ /dev/null
@@ -1,59 +0,0 @@
-google.firestore.v1.DocumentTransform.FieldTransform.ServerValue
- */
-class ServerValue
-{
- /**
- * Unspecified. This value must not be used.
- *
- * Generated from protobuf enum SERVER_VALUE_UNSPECIFIED = 0;
- */
- const SERVER_VALUE_UNSPECIFIED = 0;
- /**
- * The time at which the server processed the request, with millisecond
- * precision. If used on multiple fields (same or different documents) in
- * a transaction, all the fields will get the same server timestamp.
- *
- * Generated from protobuf enum REQUEST_TIME = 1;
- */
- const REQUEST_TIME = 1;
-
- private static $valueToName = [
- self::SERVER_VALUE_UNSPECIFIED => 'SERVER_VALUE_UNSPECIFIED',
- self::REQUEST_TIME => 'REQUEST_TIME',
- ];
-
- 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(ServerValue::class, \Google\Cloud\Firestore\V1\DocumentTransform_FieldTransform_ServerValue::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ExecutionStats.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ExecutionStats.php
deleted file mode 100644
index bed2e60fbdcf..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ExecutionStats.php
+++ /dev/null
@@ -1,237 +0,0 @@
-google.firestore.v1.ExecutionStats
- */
-class ExecutionStats extends \Google\Protobuf\Internal\Message
-{
- /**
- * Total number of results returned, including documents, projections,
- * aggregation results, keys.
- *
- * Generated from protobuf field int64 results_returned = 1;
- */
- protected $results_returned = 0;
- /**
- * Total time to execute the query in the backend.
- *
- * Generated from protobuf field .google.protobuf.Duration execution_duration = 3;
- */
- protected $execution_duration = null;
- /**
- * Total billable read operations.
- *
- * Generated from protobuf field int64 read_operations = 4;
- */
- protected $read_operations = 0;
- /**
- * Debugging statistics from the execution of the query. Note that the
- * debugging stats are subject to change as Firestore evolves. It could
- * include:
- * {
- * "indexes_entries_scanned": "1000",
- * "documents_scanned": "20",
- * "billing_details" : {
- * "documents_billable": "20",
- * "index_entries_billable": "1000",
- * "min_query_cost": "0"
- * }
- * }
- *
- * Generated from protobuf field .google.protobuf.Struct debug_stats = 5;
- */
- protected $debug_stats = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $results_returned
- * Total number of results returned, including documents, projections,
- * aggregation results, keys.
- * @type \Google\Protobuf\Duration $execution_duration
- * Total time to execute the query in the backend.
- * @type int|string $read_operations
- * Total billable read operations.
- * @type \Google\Protobuf\Struct $debug_stats
- * Debugging statistics from the execution of the query. Note that the
- * debugging stats are subject to change as Firestore evolves. It could
- * include:
- * {
- * "indexes_entries_scanned": "1000",
- * "documents_scanned": "20",
- * "billing_details" : {
- * "documents_billable": "20",
- * "index_entries_billable": "1000",
- * "min_query_cost": "0"
- * }
- * }
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\QueryProfile::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Total number of results returned, including documents, projections,
- * aggregation results, keys.
- *
- * Generated from protobuf field int64 results_returned = 1;
- * @return int|string
- */
- public function getResultsReturned()
- {
- return $this->results_returned;
- }
-
- /**
- * Total number of results returned, including documents, projections,
- * aggregation results, keys.
- *
- * Generated from protobuf field int64 results_returned = 1;
- * @param int|string $var
- * @return $this
- */
- public function setResultsReturned($var)
- {
- GPBUtil::checkInt64($var);
- $this->results_returned = $var;
-
- return $this;
- }
-
- /**
- * Total time to execute the query in the backend.
- *
- * Generated from protobuf field .google.protobuf.Duration execution_duration = 3;
- * @return \Google\Protobuf\Duration|null
- */
- public function getExecutionDuration()
- {
- return $this->execution_duration;
- }
-
- public function hasExecutionDuration()
- {
- return isset($this->execution_duration);
- }
-
- public function clearExecutionDuration()
- {
- unset($this->execution_duration);
- }
-
- /**
- * Total time to execute the query in the backend.
- *
- * Generated from protobuf field .google.protobuf.Duration execution_duration = 3;
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setExecutionDuration($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->execution_duration = $var;
-
- return $this;
- }
-
- /**
- * Total billable read operations.
- *
- * Generated from protobuf field int64 read_operations = 4;
- * @return int|string
- */
- public function getReadOperations()
- {
- return $this->read_operations;
- }
-
- /**
- * Total billable read operations.
- *
- * Generated from protobuf field int64 read_operations = 4;
- * @param int|string $var
- * @return $this
- */
- public function setReadOperations($var)
- {
- GPBUtil::checkInt64($var);
- $this->read_operations = $var;
-
- return $this;
- }
-
- /**
- * Debugging statistics from the execution of the query. Note that the
- * debugging stats are subject to change as Firestore evolves. It could
- * include:
- * {
- * "indexes_entries_scanned": "1000",
- * "documents_scanned": "20",
- * "billing_details" : {
- * "documents_billable": "20",
- * "index_entries_billable": "1000",
- * "min_query_cost": "0"
- * }
- * }
- *
- * Generated from protobuf field .google.protobuf.Struct debug_stats = 5;
- * @return \Google\Protobuf\Struct|null
- */
- public function getDebugStats()
- {
- return $this->debug_stats;
- }
-
- public function hasDebugStats()
- {
- return isset($this->debug_stats);
- }
-
- public function clearDebugStats()
- {
- unset($this->debug_stats);
- }
-
- /**
- * Debugging statistics from the execution of the query. Note that the
- * debugging stats are subject to change as Firestore evolves. It could
- * include:
- * {
- * "indexes_entries_scanned": "1000",
- * "documents_scanned": "20",
- * "billing_details" : {
- * "documents_billable": "20",
- * "index_entries_billable": "1000",
- * "min_query_cost": "0"
- * }
- * }
- *
- * Generated from protobuf field .google.protobuf.Struct debug_stats = 5;
- * @param \Google\Protobuf\Struct $var
- * @return $this
- */
- public function setDebugStats($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class);
- $this->debug_stats = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ExistenceFilter.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ExistenceFilter.php
deleted file mode 100644
index d6817e30b2fa..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ExistenceFilter.php
+++ /dev/null
@@ -1,209 +0,0 @@
-google.firestore.v1.ExistenceFilter
- */
-class ExistenceFilter extends \Google\Protobuf\Internal\Message
-{
- /**
- * The target ID to which this filter applies.
- *
- * Generated from protobuf field int32 target_id = 1;
- */
- protected $target_id = 0;
- /**
- * The total count of documents that match
- * [target_id][google.firestore.v1.ExistenceFilter.target_id].
- * If different from the count of documents in the client that match, the
- * client must manually determine which documents no longer match the target.
- * The client can use the `unchanged_names` bloom filter to assist with
- * this determination by testing ALL the document names against the filter;
- * if the document name is NOT in the filter, it means the document no
- * longer matches the target.
- *
- * Generated from protobuf field int32 count = 2;
- */
- protected $count = 0;
- /**
- * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
- * the resource names of ALL the documents that match
- * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * This bloom filter may be omitted at the server's discretion, such as if it
- * is deemed that the client will not make use of it or if it is too
- * computationally expensive to calculate or transmit. Clients must gracefully
- * handle this field being absent by falling back to the logic used before
- * this field existed; that is, re-add the target without a resume token to
- * figure out which documents in the client's cache are out of sync.
- *
- * Generated from protobuf field .google.firestore.v1.BloomFilter unchanged_names = 3;
- */
- protected $unchanged_names = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $target_id
- * The target ID to which this filter applies.
- * @type int $count
- * The total count of documents that match
- * [target_id][google.firestore.v1.ExistenceFilter.target_id].
- * If different from the count of documents in the client that match, the
- * client must manually determine which documents no longer match the target.
- * The client can use the `unchanged_names` bloom filter to assist with
- * this determination by testing ALL the document names against the filter;
- * if the document name is NOT in the filter, it means the document no
- * longer matches the target.
- * @type \Google\Cloud\Firestore\V1\BloomFilter $unchanged_names
- * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
- * the resource names of ALL the documents that match
- * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * This bloom filter may be omitted at the server's discretion, such as if it
- * is deemed that the client will not make use of it or if it is too
- * computationally expensive to calculate or transmit. Clients must gracefully
- * handle this field being absent by falling back to the logic used before
- * this field existed; that is, re-add the target without a resume token to
- * figure out which documents in the client's cache are out of sync.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Write::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The target ID to which this filter applies.
- *
- * Generated from protobuf field int32 target_id = 1;
- * @return int
- */
- public function getTargetId()
- {
- return $this->target_id;
- }
-
- /**
- * The target ID to which this filter applies.
- *
- * Generated from protobuf field int32 target_id = 1;
- * @param int $var
- * @return $this
- */
- public function setTargetId($var)
- {
- GPBUtil::checkInt32($var);
- $this->target_id = $var;
-
- return $this;
- }
-
- /**
- * The total count of documents that match
- * [target_id][google.firestore.v1.ExistenceFilter.target_id].
- * If different from the count of documents in the client that match, the
- * client must manually determine which documents no longer match the target.
- * The client can use the `unchanged_names` bloom filter to assist with
- * this determination by testing ALL the document names against the filter;
- * if the document name is NOT in the filter, it means the document no
- * longer matches the target.
- *
- * Generated from protobuf field int32 count = 2;
- * @return int
- */
- public function getCount()
- {
- return $this->count;
- }
-
- /**
- * The total count of documents that match
- * [target_id][google.firestore.v1.ExistenceFilter.target_id].
- * If different from the count of documents in the client that match, the
- * client must manually determine which documents no longer match the target.
- * The client can use the `unchanged_names` bloom filter to assist with
- * this determination by testing ALL the document names against the filter;
- * if the document name is NOT in the filter, it means the document no
- * longer matches the target.
- *
- * Generated from protobuf field int32 count = 2;
- * @param int $var
- * @return $this
- */
- public function setCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->count = $var;
-
- return $this;
- }
-
- /**
- * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
- * the resource names of ALL the documents that match
- * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * This bloom filter may be omitted at the server's discretion, such as if it
- * is deemed that the client will not make use of it or if it is too
- * computationally expensive to calculate or transmit. Clients must gracefully
- * handle this field being absent by falling back to the logic used before
- * this field existed; that is, re-add the target without a resume token to
- * figure out which documents in the client's cache are out of sync.
- *
- * Generated from protobuf field .google.firestore.v1.BloomFilter unchanged_names = 3;
- * @return \Google\Cloud\Firestore\V1\BloomFilter|null
- */
- public function getUnchangedNames()
- {
- return $this->unchanged_names;
- }
-
- public function hasUnchangedNames()
- {
- return isset($this->unchanged_names);
- }
-
- public function clearUnchangedNames()
- {
- unset($this->unchanged_names);
- }
-
- /**
- * A bloom filter that, despite its name, contains the UTF-8 byte encodings of
- * the resource names of ALL the documents that match
- * [target_id][google.firestore.v1.ExistenceFilter.target_id], in the form
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * This bloom filter may be omitted at the server's discretion, such as if it
- * is deemed that the client will not make use of it or if it is too
- * computationally expensive to calculate or transmit. Clients must gracefully
- * handle this field being absent by falling back to the logic used before
- * this field existed; that is, re-add the target without a resume token to
- * figure out which documents in the client's cache are out of sync.
- *
- * Generated from protobuf field .google.firestore.v1.BloomFilter unchanged_names = 3;
- * @param \Google\Cloud\Firestore\V1\BloomFilter $var
- * @return $this
- */
- public function setUnchangedNames($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\BloomFilter::class);
- $this->unchanged_names = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ExplainMetrics.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ExplainMetrics.php
deleted file mode 100644
index 393a0963761d..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ExplainMetrics.php
+++ /dev/null
@@ -1,129 +0,0 @@
-google.firestore.v1.ExplainMetrics
- */
-class ExplainMetrics extends \Google\Protobuf\Internal\Message
-{
- /**
- * Planning phase information for the query.
- *
- * Generated from protobuf field .google.firestore.v1.PlanSummary plan_summary = 1;
- */
- protected $plan_summary = null;
- /**
- * Aggregated stats from the execution of the query. Only present when
- * [ExplainOptions.analyze][google.firestore.v1.ExplainOptions.analyze] is set
- * to true.
- *
- * Generated from protobuf field .google.firestore.v1.ExecutionStats execution_stats = 2;
- */
- protected $execution_stats = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\PlanSummary $plan_summary
- * Planning phase information for the query.
- * @type \Google\Cloud\Firestore\V1\ExecutionStats $execution_stats
- * Aggregated stats from the execution of the query. Only present when
- * [ExplainOptions.analyze][google.firestore.v1.ExplainOptions.analyze] is set
- * to true.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\QueryProfile::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Planning phase information for the query.
- *
- * Generated from protobuf field .google.firestore.v1.PlanSummary plan_summary = 1;
- * @return \Google\Cloud\Firestore\V1\PlanSummary|null
- */
- public function getPlanSummary()
- {
- return $this->plan_summary;
- }
-
- public function hasPlanSummary()
- {
- return isset($this->plan_summary);
- }
-
- public function clearPlanSummary()
- {
- unset($this->plan_summary);
- }
-
- /**
- * Planning phase information for the query.
- *
- * Generated from protobuf field .google.firestore.v1.PlanSummary plan_summary = 1;
- * @param \Google\Cloud\Firestore\V1\PlanSummary $var
- * @return $this
- */
- public function setPlanSummary($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\PlanSummary::class);
- $this->plan_summary = $var;
-
- return $this;
- }
-
- /**
- * Aggregated stats from the execution of the query. Only present when
- * [ExplainOptions.analyze][google.firestore.v1.ExplainOptions.analyze] is set
- * to true.
- *
- * Generated from protobuf field .google.firestore.v1.ExecutionStats execution_stats = 2;
- * @return \Google\Cloud\Firestore\V1\ExecutionStats|null
- */
- public function getExecutionStats()
- {
- return $this->execution_stats;
- }
-
- public function hasExecutionStats()
- {
- return isset($this->execution_stats);
- }
-
- public function clearExecutionStats()
- {
- unset($this->execution_stats);
- }
-
- /**
- * Aggregated stats from the execution of the query. Only present when
- * [ExplainOptions.analyze][google.firestore.v1.ExplainOptions.analyze] is set
- * to true.
- *
- * Generated from protobuf field .google.firestore.v1.ExecutionStats execution_stats = 2;
- * @param \Google\Cloud\Firestore\V1\ExecutionStats $var
- * @return $this
- */
- public function setExecutionStats($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\ExecutionStats::class);
- $this->execution_stats = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ExplainOptions.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ExplainOptions.php
deleted file mode 100644
index cb6e2384de90..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ExplainOptions.php
+++ /dev/null
@@ -1,83 +0,0 @@
-google.firestore.v1.ExplainOptions
- */
-class ExplainOptions extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Whether to execute this query.
- * When false (the default), the query will be planned, returning only
- * metrics from the planning stages.
- * When true, the query will be planned and executed, returning the full
- * query results along with both planning and execution stage metrics.
- *
- * Generated from protobuf field bool analyze = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $analyze = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $analyze
- * Optional. Whether to execute this query.
- * When false (the default), the query will be planned, returning only
- * metrics from the planning stages.
- * When true, the query will be planned and executed, returning the full
- * query results along with both planning and execution stage metrics.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\QueryProfile::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Whether to execute this query.
- * When false (the default), the query will be planned, returning only
- * metrics from the planning stages.
- * When true, the query will be planned and executed, returning the full
- * query results along with both planning and execution stage metrics.
- *
- * Generated from protobuf field bool analyze = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getAnalyze()
- {
- return $this->analyze;
- }
-
- /**
- * Optional. Whether to execute this query.
- * When false (the default), the query will be planned, returning only
- * metrics from the planning stages.
- * When true, the query will be planned and executed, returning the full
- * query results along with both planning and execution stage metrics.
- *
- * Generated from protobuf field bool analyze = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setAnalyze($var)
- {
- GPBUtil::checkBool($var);
- $this->analyze = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/GetDocumentRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/GetDocumentRequest.php
deleted file mode 100644
index 7342dfd8c590..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/GetDocumentRequest.php
+++ /dev/null
@@ -1,208 +0,0 @@
-google.firestore.v1.GetDocumentRequest
- */
-class GetDocumentRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The resource name of the Document to get. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $name = '';
- /**
- * The fields to return. If not set, returns all fields.
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 2;
- */
- protected $mask = null;
- protected $consistency_selector;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The resource name of the Document to get. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * @type \Google\Cloud\Firestore\V1\DocumentMask $mask
- * The fields to return. If not set, returns all fields.
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- * @type string $transaction
- * Reads the document in a transaction.
- * @type \Google\Protobuf\Timestamp $read_time
- * Reads the version of the document at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The resource name of the Document to get. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The resource name of the Document to get. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * The fields to return. If not set, returns all fields.
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 2;
- * @return \Google\Cloud\Firestore\V1\DocumentMask|null
- */
- public function getMask()
- {
- return $this->mask;
- }
-
- public function hasMask()
- {
- return isset($this->mask);
- }
-
- public function clearMask()
- {
- unset($this->mask);
- }
-
- /**
- * The fields to return. If not set, returns all fields.
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 2;
- * @param \Google\Cloud\Firestore\V1\DocumentMask $var
- * @return $this
- */
- public function setMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\DocumentMask::class);
- $this->mask = $var;
-
- return $this;
- }
-
- /**
- * Reads the document in a transaction.
- *
- * Generated from protobuf field bytes transaction = 3;
- * @return string
- */
- public function getTransaction()
- {
- return $this->readOneof(3);
- }
-
- public function hasTransaction()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * Reads the document in a transaction.
- *
- * Generated from protobuf field bytes transaction = 3;
- * @param string $var
- * @return $this
- */
- public function setTransaction($var)
- {
- GPBUtil::checkString($var, False);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * Reads the version of the document at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 5;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->readOneof(5);
- }
-
- public function hasReadTime()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Reads the version of the document at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 5;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getConsistencySelector()
- {
- return $this->whichOneof("consistency_selector");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListCollectionIdsRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListCollectionIdsRequest.php
deleted file mode 100644
index 7603b7a00593..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListCollectionIdsRequest.php
+++ /dev/null
@@ -1,219 +0,0 @@
-google.firestore.v1.ListCollectionIdsRequest
- */
-class ListCollectionIdsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent document. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $parent = '';
- /**
- * The maximum number of results to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- */
- protected $page_size = 0;
- /**
- * A page token. Must be a value from
- * [ListCollectionIdsResponse][google.firestore.v1.ListCollectionIdsResponse].
- *
- * Generated from protobuf field string page_token = 3;
- */
- protected $page_token = '';
- protected $consistency_selector;
-
- /**
- * @param string $parent Required. The parent document. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * @return \Google\Cloud\Firestore\V1\ListCollectionIdsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent document. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- * @type int $page_size
- * The maximum number of results to return.
- * @type string $page_token
- * A page token. Must be a value from
- * [ListCollectionIdsResponse][google.firestore.v1.ListCollectionIdsResponse].
- * @type \Google\Protobuf\Timestamp $read_time
- * Reads documents as they were at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent document. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent document. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * The maximum number of results to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * The maximum number of results to return.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * A page token. Must be a value from
- * [ListCollectionIdsResponse][google.firestore.v1.ListCollectionIdsResponse].
- *
- * Generated from protobuf field string page_token = 3;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * A page token. Must be a value from
- * [ListCollectionIdsResponse][google.firestore.v1.ListCollectionIdsResponse].
- *
- * Generated from protobuf field string page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Reads documents as they were at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 4;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->readOneof(4);
- }
-
- public function hasReadTime()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Reads documents as they were at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 4;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getConsistencySelector()
- {
- return $this->whichOneof("consistency_selector");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListCollectionIdsResponse.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListCollectionIdsResponse.php
deleted file mode 100644
index b31178cf5166..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListCollectionIdsResponse.php
+++ /dev/null
@@ -1,102 +0,0 @@
-google.firestore.v1.ListCollectionIdsResponse
- */
-class ListCollectionIdsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The collection ids.
- *
- * Generated from protobuf field repeated string collection_ids = 1;
- */
- private $collection_ids;
- /**
- * A page token that may be used to continue the list.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $collection_ids
- * The collection ids.
- * @type string $next_page_token
- * A page token that may be used to continue the list.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The collection ids.
- *
- * Generated from protobuf field repeated string collection_ids = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCollectionIds()
- {
- return $this->collection_ids;
- }
-
- /**
- * The collection ids.
- *
- * Generated from protobuf field repeated string collection_ids = 1;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCollectionIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->collection_ids = $arr;
-
- return $this;
- }
-
- /**
- * A page token that may be used to continue the list.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A page token that may be used to continue the list.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListDocumentsRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListDocumentsRequest.php
deleted file mode 100644
index 51ea08cec401..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListDocumentsRequest.php
+++ /dev/null
@@ -1,462 +0,0 @@
-google.firestore.v1.ListDocumentsRequest
- */
-class ListDocumentsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $parent = '';
- /**
- * Optional. The collection ID, relative to `parent`, to list.
- * For example: `chatrooms` or `messages`.
- * This is optional, and when not provided, Firestore will list documents
- * from all collections under the provided `parent`.
- *
- * Generated from protobuf field string collection_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $collection_id = '';
- /**
- * Optional. The maximum number of documents to return in a single response.
- * Firestore may return fewer than this value.
- *
- * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_size = 0;
- /**
- * Optional. A page token, received from a previous `ListDocuments` response.
- * Provide this to retrieve the subsequent page. When paginating, all other
- * parameters (with the exception of `page_size`) must match the values set
- * in the request that generated the page token.
- *
- * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_token = '';
- /**
- * Optional. The optional ordering of the documents to return.
- * For example: `priority desc, __name__ desc`.
- * This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
- * used in Firestore queries but in a string representation. When absent,
- * documents are ordered based on `__name__ ASC`.
- *
- * Generated from protobuf field string order_by = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $order_by = '';
- /**
- * Optional. The fields to return. If not set, returns all fields.
- * If a document has a field that is not present in this mask, that field
- * will not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 7 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $mask = null;
- /**
- * If the list should show missing documents.
- * A document is missing if it does not exist, but there are sub-documents
- * nested underneath it. When true, such missing documents will be returned
- * with a key but will not have fields,
- * [`create_time`][google.firestore.v1.Document.create_time], or
- * [`update_time`][google.firestore.v1.Document.update_time] set.
- * Requests with `show_missing` may not specify `where` or `order_by`.
- *
- * Generated from protobuf field bool show_missing = 12;
- */
- protected $show_missing = false;
- protected $consistency_selector;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- * @type string $collection_id
- * Optional. The collection ID, relative to `parent`, to list.
- * For example: `chatrooms` or `messages`.
- * This is optional, and when not provided, Firestore will list documents
- * from all collections under the provided `parent`.
- * @type int $page_size
- * Optional. The maximum number of documents to return in a single response.
- * Firestore may return fewer than this value.
- * @type string $page_token
- * Optional. A page token, received from a previous `ListDocuments` response.
- * Provide this to retrieve the subsequent page. When paginating, all other
- * parameters (with the exception of `page_size`) must match the values set
- * in the request that generated the page token.
- * @type string $order_by
- * Optional. The optional ordering of the documents to return.
- * For example: `priority desc, __name__ desc`.
- * This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
- * used in Firestore queries but in a string representation. When absent,
- * documents are ordered based on `__name__ ASC`.
- * @type \Google\Cloud\Firestore\V1\DocumentMask $mask
- * Optional. The fields to return. If not set, returns all fields.
- * If a document has a field that is not present in this mask, that field
- * will not be returned in the response.
- * @type string $transaction
- * Perform the read as part of an already active transaction.
- * @type \Google\Protobuf\Timestamp $read_time
- * Perform the read at the provided time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- * @type bool $show_missing
- * If the list should show missing documents.
- * A document is missing if it does not exist, but there are sub-documents
- * nested underneath it. When true, such missing documents will be returned
- * with a key but will not have fields,
- * [`create_time`][google.firestore.v1.Document.create_time], or
- * [`update_time`][google.firestore.v1.Document.update_time] set.
- * Requests with `show_missing` may not specify `where` or `order_by`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The collection ID, relative to `parent`, to list.
- * For example: `chatrooms` or `messages`.
- * This is optional, and when not provided, Firestore will list documents
- * from all collections under the provided `parent`.
- *
- * Generated from protobuf field string collection_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getCollectionId()
- {
- return $this->collection_id;
- }
-
- /**
- * Optional. The collection ID, relative to `parent`, to list.
- * For example: `chatrooms` or `messages`.
- * This is optional, and when not provided, Firestore will list documents
- * from all collections under the provided `parent`.
- *
- * Generated from protobuf field string collection_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setCollectionId($var)
- {
- GPBUtil::checkString($var, True);
- $this->collection_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. The maximum number of documents to return in a single response.
- * Firestore may return fewer than this value.
- *
- * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Optional. The maximum number of documents to return in a single response.
- * Firestore may return fewer than this value.
- *
- * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Optional. A page token, received from a previous `ListDocuments` response.
- * Provide this to retrieve the subsequent page. When paginating, all other
- * parameters (with the exception of `page_size`) must match the values set
- * in the request that generated the page token.
- *
- * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * Optional. A page token, received from a previous `ListDocuments` response.
- * Provide this to retrieve the subsequent page. When paginating, all other
- * parameters (with the exception of `page_size`) must match the values set
- * in the request that generated the page token.
- *
- * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Optional. The optional ordering of the documents to return.
- * For example: `priority desc, __name__ desc`.
- * This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
- * used in Firestore queries but in a string representation. When absent,
- * documents are ordered based on `__name__ ASC`.
- *
- * Generated from protobuf field string order_by = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Optional. The optional ordering of the documents to return.
- * For example: `priority desc, __name__ desc`.
- * This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
- * used in Firestore queries but in a string representation. When absent,
- * documents are ordered based on `__name__ ASC`.
- *
- * Generated from protobuf field string order_by = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
- /**
- * Optional. The fields to return. If not set, returns all fields.
- * If a document has a field that is not present in this mask, that field
- * will not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Firestore\V1\DocumentMask|null
- */
- public function getMask()
- {
- return $this->mask;
- }
-
- public function hasMask()
- {
- return isset($this->mask);
- }
-
- public function clearMask()
- {
- unset($this->mask);
- }
-
- /**
- * Optional. The fields to return. If not set, returns all fields.
- * If a document has a field that is not present in this mask, that field
- * will not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Firestore\V1\DocumentMask $var
- * @return $this
- */
- public function setMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\DocumentMask::class);
- $this->mask = $var;
-
- return $this;
- }
-
- /**
- * Perform the read as part of an already active transaction.
- *
- * Generated from protobuf field bytes transaction = 8;
- * @return string
- */
- public function getTransaction()
- {
- return $this->readOneof(8);
- }
-
- public function hasTransaction()
- {
- return $this->hasOneof(8);
- }
-
- /**
- * Perform the read as part of an already active transaction.
- *
- * Generated from protobuf field bytes transaction = 8;
- * @param string $var
- * @return $this
- */
- public function setTransaction($var)
- {
- GPBUtil::checkString($var, False);
- $this->writeOneof(8, $var);
-
- return $this;
- }
-
- /**
- * Perform the read at the provided time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 10;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->readOneof(10);
- }
-
- public function hasReadTime()
- {
- return $this->hasOneof(10);
- }
-
- /**
- * Perform the read at the provided time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 10;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->writeOneof(10, $var);
-
- return $this;
- }
-
- /**
- * If the list should show missing documents.
- * A document is missing if it does not exist, but there are sub-documents
- * nested underneath it. When true, such missing documents will be returned
- * with a key but will not have fields,
- * [`create_time`][google.firestore.v1.Document.create_time], or
- * [`update_time`][google.firestore.v1.Document.update_time] set.
- * Requests with `show_missing` may not specify `where` or `order_by`.
- *
- * Generated from protobuf field bool show_missing = 12;
- * @return bool
- */
- public function getShowMissing()
- {
- return $this->show_missing;
- }
-
- /**
- * If the list should show missing documents.
- * A document is missing if it does not exist, but there are sub-documents
- * nested underneath it. When true, such missing documents will be returned
- * with a key but will not have fields,
- * [`create_time`][google.firestore.v1.Document.create_time], or
- * [`update_time`][google.firestore.v1.Document.update_time] set.
- * Requests with `show_missing` may not specify `where` or `order_by`.
- *
- * Generated from protobuf field bool show_missing = 12;
- * @param bool $var
- * @return $this
- */
- public function setShowMissing($var)
- {
- GPBUtil::checkBool($var);
- $this->show_missing = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getConsistencySelector()
- {
- return $this->whichOneof("consistency_selector");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListDocumentsResponse.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListDocumentsResponse.php
deleted file mode 100644
index 3608a134151d..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListDocumentsResponse.php
+++ /dev/null
@@ -1,106 +0,0 @@
-google.firestore.v1.ListDocumentsResponse
- */
-class ListDocumentsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The Documents found.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Document documents = 1;
- */
- private $documents;
- /**
- * A token to retrieve the next page of documents.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Firestore\V1\Document>|\Google\Protobuf\Internal\RepeatedField $documents
- * The Documents found.
- * @type string $next_page_token
- * A token to retrieve the next page of documents.
- * If this field is omitted, there are no subsequent pages.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The Documents found.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Document documents = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getDocuments()
- {
- return $this->documents;
- }
-
- /**
- * The Documents found.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Document documents = 1;
- * @param array<\Google\Cloud\Firestore\V1\Document>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setDocuments($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\Document::class);
- $this->documents = $arr;
-
- return $this;
- }
-
- /**
- * A token to retrieve the next page of documents.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token to retrieve the next page of documents.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListenRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListenRequest.php
deleted file mode 100644
index 8fb415f4ed4b..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListenRequest.php
+++ /dev/null
@@ -1,180 +0,0 @@
-google.firestore.v1.ListenRequest
- */
-class ListenRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $database = '';
- /**
- * Labels associated with this target change.
- *
- * Generated from protobuf field map labels = 4;
- */
- private $labels;
- protected $target_change;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $database
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * @type \Google\Cloud\Firestore\V1\Target $add_target
- * A target to add to this stream.
- * @type int $remove_target
- * The ID of a target to remove from this stream.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Labels associated with this target change.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getDatabase()
- {
- return $this->database;
- }
-
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setDatabase($var)
- {
- GPBUtil::checkString($var, True);
- $this->database = $var;
-
- return $this;
- }
-
- /**
- * A target to add to this stream.
- *
- * Generated from protobuf field .google.firestore.v1.Target add_target = 2;
- * @return \Google\Cloud\Firestore\V1\Target|null
- */
- public function getAddTarget()
- {
- return $this->readOneof(2);
- }
-
- public function hasAddTarget()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * A target to add to this stream.
- *
- * Generated from protobuf field .google.firestore.v1.Target add_target = 2;
- * @param \Google\Cloud\Firestore\V1\Target $var
- * @return $this
- */
- public function setAddTarget($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Target::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * The ID of a target to remove from this stream.
- *
- * Generated from protobuf field int32 remove_target = 3;
- * @return int
- */
- public function getRemoveTarget()
- {
- return $this->readOneof(3);
- }
-
- public function hasRemoveTarget()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * The ID of a target to remove from this stream.
- *
- * Generated from protobuf field int32 remove_target = 3;
- * @param int $var
- * @return $this
- */
- public function setRemoveTarget($var)
- {
- GPBUtil::checkInt32($var);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * Labels associated with this target change.
- *
- * Generated from protobuf field map labels = 4;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Labels associated with this target change.
- *
- * Generated from protobuf field map labels = 4;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getTargetChange()
- {
- return $this->whichOneof("target_change");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListenResponse.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListenResponse.php
deleted file mode 100644
index 64234422f378..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/ListenResponse.php
+++ /dev/null
@@ -1,219 +0,0 @@
-google.firestore.v1.ListenResponse
- */
-class ListenResponse extends \Google\Protobuf\Internal\Message
-{
- protected $response_type;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\TargetChange $target_change
- * Targets have changed.
- * @type \Google\Cloud\Firestore\V1\DocumentChange $document_change
- * A [Document][google.firestore.v1.Document] has changed.
- * @type \Google\Cloud\Firestore\V1\DocumentDelete $document_delete
- * A [Document][google.firestore.v1.Document] has been deleted.
- * @type \Google\Cloud\Firestore\V1\DocumentRemove $document_remove
- * A [Document][google.firestore.v1.Document] has been removed from a target
- * (because it is no longer relevant to that target).
- * @type \Google\Cloud\Firestore\V1\ExistenceFilter $filter
- * A filter to apply to the set of documents previously returned for the
- * given target.
- * Returned when documents may have been removed from the given target, but
- * the exact documents are unknown.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Targets have changed.
- *
- * Generated from protobuf field .google.firestore.v1.TargetChange target_change = 2;
- * @return \Google\Cloud\Firestore\V1\TargetChange|null
- */
- public function getTargetChange()
- {
- return $this->readOneof(2);
- }
-
- public function hasTargetChange()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Targets have changed.
- *
- * Generated from protobuf field .google.firestore.v1.TargetChange target_change = 2;
- * @param \Google\Cloud\Firestore\V1\TargetChange $var
- * @return $this
- */
- public function setTargetChange($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\TargetChange::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * A [Document][google.firestore.v1.Document] has changed.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentChange document_change = 3;
- * @return \Google\Cloud\Firestore\V1\DocumentChange|null
- */
- public function getDocumentChange()
- {
- return $this->readOneof(3);
- }
-
- public function hasDocumentChange()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * A [Document][google.firestore.v1.Document] has changed.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentChange document_change = 3;
- * @param \Google\Cloud\Firestore\V1\DocumentChange $var
- * @return $this
- */
- public function setDocumentChange($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\DocumentChange::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * A [Document][google.firestore.v1.Document] has been deleted.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentDelete document_delete = 4;
- * @return \Google\Cloud\Firestore\V1\DocumentDelete|null
- */
- public function getDocumentDelete()
- {
- return $this->readOneof(4);
- }
-
- public function hasDocumentDelete()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * A [Document][google.firestore.v1.Document] has been deleted.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentDelete document_delete = 4;
- * @param \Google\Cloud\Firestore\V1\DocumentDelete $var
- * @return $this
- */
- public function setDocumentDelete($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\DocumentDelete::class);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * A [Document][google.firestore.v1.Document] has been removed from a target
- * (because it is no longer relevant to that target).
- *
- * Generated from protobuf field .google.firestore.v1.DocumentRemove document_remove = 6;
- * @return \Google\Cloud\Firestore\V1\DocumentRemove|null
- */
- public function getDocumentRemove()
- {
- return $this->readOneof(6);
- }
-
- public function hasDocumentRemove()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * A [Document][google.firestore.v1.Document] has been removed from a target
- * (because it is no longer relevant to that target).
- *
- * Generated from protobuf field .google.firestore.v1.DocumentRemove document_remove = 6;
- * @param \Google\Cloud\Firestore\V1\DocumentRemove $var
- * @return $this
- */
- public function setDocumentRemove($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\DocumentRemove::class);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * A filter to apply to the set of documents previously returned for the
- * given target.
- * Returned when documents may have been removed from the given target, but
- * the exact documents are unknown.
- *
- * Generated from protobuf field .google.firestore.v1.ExistenceFilter filter = 5;
- * @return \Google\Cloud\Firestore\V1\ExistenceFilter|null
- */
- public function getFilter()
- {
- return $this->readOneof(5);
- }
-
- public function hasFilter()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * A filter to apply to the set of documents previously returned for the
- * given target.
- * Returned when documents may have been removed from the given target, but
- * the exact documents are unknown.
- *
- * Generated from protobuf field .google.firestore.v1.ExistenceFilter filter = 5;
- * @param \Google\Cloud\Firestore\V1\ExistenceFilter $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\ExistenceFilter::class);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getResponseType()
- {
- return $this->whichOneof("response_type");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/MapValue.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/MapValue.php
deleted file mode 100644
index fa811000207c..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/MapValue.php
+++ /dev/null
@@ -1,83 +0,0 @@
-google.firestore.v1.MapValue
- */
-class MapValue extends \Google\Protobuf\Internal\Message
-{
- /**
- * The map's fields.
- * The map keys represent field names. Field names matching the regular
- * expression `__.*__` are reserved. Reserved field names are forbidden except
- * in certain documented contexts. The map keys, represented as UTF-8, must
- * not exceed 1,500 bytes and cannot be empty.
- *
- * Generated from protobuf field map fields = 1;
- */
- private $fields;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\MapField $fields
- * The map's fields.
- * The map keys represent field names. Field names matching the regular
- * expression `__.*__` are reserved. Reserved field names are forbidden except
- * in certain documented contexts. The map keys, represented as UTF-8, must
- * not exceed 1,500 bytes and cannot be empty.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Document::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The map's fields.
- * The map keys represent field names. Field names matching the regular
- * expression `__.*__` are reserved. Reserved field names are forbidden except
- * in certain documented contexts. The map keys, represented as UTF-8, must
- * not exceed 1,500 bytes and cannot be empty.
- *
- * Generated from protobuf field map fields = 1;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getFields()
- {
- return $this->fields;
- }
-
- /**
- * The map's fields.
- * The map keys represent field names. Field names matching the regular
- * expression `__.*__` are reserved. Reserved field names are forbidden except
- * in certain documented contexts. The map keys, represented as UTF-8, must
- * not exceed 1,500 bytes and cannot be empty.
- *
- * Generated from protobuf field map fields = 1;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setFields($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\Value::class);
- $this->fields = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/PartitionQueryRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/PartitionQueryRequest.php
deleted file mode 100644
index 9b09a390000e..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/PartitionQueryRequest.php
+++ /dev/null
@@ -1,364 +0,0 @@
-google.firestore.v1.PartitionQueryRequest
- */
-class PartitionQueryRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents`.
- * Document resource names are not supported; only database resource names
- * can be specified.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $parent = '';
- /**
- * The desired maximum number of partition points.
- * The partitions may be returned across multiple pages of results.
- * The number must be positive. The actual number of partitions
- * returned may be fewer.
- * For example, this may be set to one fewer than the number of parallel
- * queries to be run, or in running a data pipeline job, one fewer than the
- * number of workers or compute instances available.
- *
- * Generated from protobuf field int64 partition_count = 3;
- */
- protected $partition_count = 0;
- /**
- * The `next_page_token` value returned from a previous call to
- * PartitionQuery that may be used to get an additional set of results.
- * There are no ordering guarantees between sets of results. Thus, using
- * multiple sets of results will require merging the different result sets.
- * For example, two subsequent calls using a page_token may return:
- * * cursor B, cursor M, cursor Q
- * * cursor A, cursor U, cursor W
- * To obtain a complete result set ordered with respect to the results of the
- * query supplied to PartitionQuery, the results sets should be merged:
- * cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
- *
- * Generated from protobuf field string page_token = 4;
- */
- protected $page_token = '';
- /**
- * The maximum number of partitions to return in this call, subject to
- * `partition_count`.
- * For example, if `partition_count` = 10 and `page_size` = 8, the first call
- * to PartitionQuery will return up to 8 partitions and a `next_page_token`
- * if more results exist. A second call to PartitionQuery will return up to
- * 2 partitions, to complete the total of 10 specified in `partition_count`.
- *
- * Generated from protobuf field int32 page_size = 5;
- */
- protected $page_size = 0;
- protected $query_type;
- protected $consistency_selector;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents`.
- * Document resource names are not supported; only database resource names
- * can be specified.
- * @type \Google\Cloud\Firestore\V1\StructuredQuery $structured_query
- * A structured query.
- * Query must specify collection with all descendants and be ordered by name
- * ascending. Other filters, order bys, limits, offsets, and start/end
- * cursors are not supported.
- * @type int|string $partition_count
- * The desired maximum number of partition points.
- * The partitions may be returned across multiple pages of results.
- * The number must be positive. The actual number of partitions
- * returned may be fewer.
- * For example, this may be set to one fewer than the number of parallel
- * queries to be run, or in running a data pipeline job, one fewer than the
- * number of workers or compute instances available.
- * @type string $page_token
- * The `next_page_token` value returned from a previous call to
- * PartitionQuery that may be used to get an additional set of results.
- * There are no ordering guarantees between sets of results. Thus, using
- * multiple sets of results will require merging the different result sets.
- * For example, two subsequent calls using a page_token may return:
- * * cursor B, cursor M, cursor Q
- * * cursor A, cursor U, cursor W
- * To obtain a complete result set ordered with respect to the results of the
- * query supplied to PartitionQuery, the results sets should be merged:
- * cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
- * @type int $page_size
- * The maximum number of partitions to return in this call, subject to
- * `partition_count`.
- * For example, if `partition_count` = 10 and `page_size` = 8, the first call
- * to PartitionQuery will return up to 8 partitions and a `next_page_token`
- * if more results exist. A second call to PartitionQuery will return up to
- * 2 partitions, to complete the total of 10 specified in `partition_count`.
- * @type \Google\Protobuf\Timestamp $read_time
- * Reads documents as they were at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents`.
- * Document resource names are not supported; only database resource names
- * can be specified.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents`.
- * Document resource names are not supported; only database resource names
- * can be specified.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * A structured query.
- * Query must specify collection with all descendants and be ordered by name
- * ascending. Other filters, order bys, limits, offsets, and start/end
- * cursors are not supported.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery structured_query = 2;
- * @return \Google\Cloud\Firestore\V1\StructuredQuery|null
- */
- public function getStructuredQuery()
- {
- return $this->readOneof(2);
- }
-
- public function hasStructuredQuery()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * A structured query.
- * Query must specify collection with all descendants and be ordered by name
- * ascending. Other filters, order bys, limits, offsets, and start/end
- * cursors are not supported.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery structured_query = 2;
- * @param \Google\Cloud\Firestore\V1\StructuredQuery $var
- * @return $this
- */
- public function setStructuredQuery($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * The desired maximum number of partition points.
- * The partitions may be returned across multiple pages of results.
- * The number must be positive. The actual number of partitions
- * returned may be fewer.
- * For example, this may be set to one fewer than the number of parallel
- * queries to be run, or in running a data pipeline job, one fewer than the
- * number of workers or compute instances available.
- *
- * Generated from protobuf field int64 partition_count = 3;
- * @return int|string
- */
- public function getPartitionCount()
- {
- return $this->partition_count;
- }
-
- /**
- * The desired maximum number of partition points.
- * The partitions may be returned across multiple pages of results.
- * The number must be positive. The actual number of partitions
- * returned may be fewer.
- * For example, this may be set to one fewer than the number of parallel
- * queries to be run, or in running a data pipeline job, one fewer than the
- * number of workers or compute instances available.
- *
- * Generated from protobuf field int64 partition_count = 3;
- * @param int|string $var
- * @return $this
- */
- public function setPartitionCount($var)
- {
- GPBUtil::checkInt64($var);
- $this->partition_count = $var;
-
- return $this;
- }
-
- /**
- * The `next_page_token` value returned from a previous call to
- * PartitionQuery that may be used to get an additional set of results.
- * There are no ordering guarantees between sets of results. Thus, using
- * multiple sets of results will require merging the different result sets.
- * For example, two subsequent calls using a page_token may return:
- * * cursor B, cursor M, cursor Q
- * * cursor A, cursor U, cursor W
- * To obtain a complete result set ordered with respect to the results of the
- * query supplied to PartitionQuery, the results sets should be merged:
- * cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
- *
- * Generated from protobuf field string page_token = 4;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * The `next_page_token` value returned from a previous call to
- * PartitionQuery that may be used to get an additional set of results.
- * There are no ordering guarantees between sets of results. Thus, using
- * multiple sets of results will require merging the different result sets.
- * For example, two subsequent calls using a page_token may return:
- * * cursor B, cursor M, cursor Q
- * * cursor A, cursor U, cursor W
- * To obtain a complete result set ordered with respect to the results of the
- * query supplied to PartitionQuery, the results sets should be merged:
- * cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
- *
- * Generated from protobuf field string page_token = 4;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * The maximum number of partitions to return in this call, subject to
- * `partition_count`.
- * For example, if `partition_count` = 10 and `page_size` = 8, the first call
- * to PartitionQuery will return up to 8 partitions and a `next_page_token`
- * if more results exist. A second call to PartitionQuery will return up to
- * 2 partitions, to complete the total of 10 specified in `partition_count`.
- *
- * Generated from protobuf field int32 page_size = 5;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * The maximum number of partitions to return in this call, subject to
- * `partition_count`.
- * For example, if `partition_count` = 10 and `page_size` = 8, the first call
- * to PartitionQuery will return up to 8 partitions and a `next_page_token`
- * if more results exist. A second call to PartitionQuery will return up to
- * 2 partitions, to complete the total of 10 specified in `partition_count`.
- *
- * Generated from protobuf field int32 page_size = 5;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Reads documents as they were at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 6;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->readOneof(6);
- }
-
- public function hasReadTime()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * Reads documents as they were at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 6;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getQueryType()
- {
- return $this->whichOneof("query_type");
- }
-
- /**
- * @return string
- */
- public function getConsistencySelector()
- {
- return $this->whichOneof("consistency_selector");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/PartitionQueryResponse.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/PartitionQueryResponse.php
deleted file mode 100644
index d6281a637903..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/PartitionQueryResponse.php
+++ /dev/null
@@ -1,162 +0,0 @@
-google.firestore.v1.PartitionQueryResponse
- */
-class PartitionQueryResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Partition results.
- * Each partition is a split point that can be used by RunQuery as a starting
- * or end point for the query results. The RunQuery requests must be made with
- * the same query supplied to this PartitionQuery request. The partition
- * cursors will be ordered according to same ordering as the results of the
- * query supplied to PartitionQuery.
- * For example, if a PartitionQuery request returns partition cursors A and B,
- * running the following three queries will return the entire result set of
- * the original query:
- * * query, end_at A
- * * query, start_at A, end_at B
- * * query, start_at B
- * An empty result may indicate that the query has too few results to be
- * partitioned, or that the query is not yet supported for partitioning.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Cursor partitions = 1;
- */
- private $partitions;
- /**
- * A page token that may be used to request an additional set of results, up
- * to the number specified by `partition_count` in the PartitionQuery request.
- * If blank, there are no more results.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Firestore\V1\Cursor>|\Google\Protobuf\Internal\RepeatedField $partitions
- * Partition results.
- * Each partition is a split point that can be used by RunQuery as a starting
- * or end point for the query results. The RunQuery requests must be made with
- * the same query supplied to this PartitionQuery request. The partition
- * cursors will be ordered according to same ordering as the results of the
- * query supplied to PartitionQuery.
- * For example, if a PartitionQuery request returns partition cursors A and B,
- * running the following three queries will return the entire result set of
- * the original query:
- * * query, end_at A
- * * query, start_at A, end_at B
- * * query, start_at B
- * An empty result may indicate that the query has too few results to be
- * partitioned, or that the query is not yet supported for partitioning.
- * @type string $next_page_token
- * A page token that may be used to request an additional set of results, up
- * to the number specified by `partition_count` in the PartitionQuery request.
- * If blank, there are no more results.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Partition results.
- * Each partition is a split point that can be used by RunQuery as a starting
- * or end point for the query results. The RunQuery requests must be made with
- * the same query supplied to this PartitionQuery request. The partition
- * cursors will be ordered according to same ordering as the results of the
- * query supplied to PartitionQuery.
- * For example, if a PartitionQuery request returns partition cursors A and B,
- * running the following three queries will return the entire result set of
- * the original query:
- * * query, end_at A
- * * query, start_at A, end_at B
- * * query, start_at B
- * An empty result may indicate that the query has too few results to be
- * partitioned, or that the query is not yet supported for partitioning.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Cursor partitions = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getPartitions()
- {
- return $this->partitions;
- }
-
- /**
- * Partition results.
- * Each partition is a split point that can be used by RunQuery as a starting
- * or end point for the query results. The RunQuery requests must be made with
- * the same query supplied to this PartitionQuery request. The partition
- * cursors will be ordered according to same ordering as the results of the
- * query supplied to PartitionQuery.
- * For example, if a PartitionQuery request returns partition cursors A and B,
- * running the following three queries will return the entire result set of
- * the original query:
- * * query, end_at A
- * * query, start_at A, end_at B
- * * query, start_at B
- * An empty result may indicate that the query has too few results to be
- * partitioned, or that the query is not yet supported for partitioning.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Cursor partitions = 1;
- * @param array<\Google\Cloud\Firestore\V1\Cursor>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setPartitions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\Cursor::class);
- $this->partitions = $arr;
-
- return $this;
- }
-
- /**
- * A page token that may be used to request an additional set of results, up
- * to the number specified by `partition_count` in the PartitionQuery request.
- * If blank, there are no more results.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A page token that may be used to request an additional set of results, up
- * to the number specified by `partition_count` in the PartitionQuery request.
- * If blank, there are no more results.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/PlanSummary.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/PlanSummary.php
deleted file mode 100644
index 5e86c432c547..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/PlanSummary.php
+++ /dev/null
@@ -1,83 +0,0 @@
-google.firestore.v1.PlanSummary
- */
-class PlanSummary extends \Google\Protobuf\Internal\Message
-{
- /**
- * The indexes selected for the query. For example:
- * [
- * {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"},
- * {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"}
- * ]
- *
- * Generated from protobuf field repeated .google.protobuf.Struct indexes_used = 1;
- */
- private $indexes_used;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Protobuf\Struct>|\Google\Protobuf\Internal\RepeatedField $indexes_used
- * The indexes selected for the query. For example:
- * [
- * {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"},
- * {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"}
- * ]
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\QueryProfile::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The indexes selected for the query. For example:
- * [
- * {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"},
- * {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"}
- * ]
- *
- * Generated from protobuf field repeated .google.protobuf.Struct indexes_used = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getIndexesUsed()
- {
- return $this->indexes_used;
- }
-
- /**
- * The indexes selected for the query. For example:
- * [
- * {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"},
- * {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"}
- * ]
- *
- * Generated from protobuf field repeated .google.protobuf.Struct indexes_used = 1;
- * @param array<\Google\Protobuf\Struct>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setIndexesUsed($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Struct::class);
- $this->indexes_used = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Precondition.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Precondition.php
deleted file mode 100644
index 7f7b92595750..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Precondition.php
+++ /dev/null
@@ -1,114 +0,0 @@
-google.firestore.v1.Precondition
- */
-class Precondition extends \Google\Protobuf\Internal\Message
-{
- protected $condition_type;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $exists
- * When set to `true`, the target document must exist.
- * When set to `false`, the target document must not exist.
- * @type \Google\Protobuf\Timestamp $update_time
- * When set, the target document must exist and have been last updated at
- * that time. Timestamp must be microsecond aligned.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Common::initOnce();
- parent::__construct($data);
- }
-
- /**
- * When set to `true`, the target document must exist.
- * When set to `false`, the target document must not exist.
- *
- * Generated from protobuf field bool exists = 1;
- * @return bool
- */
- public function getExists()
- {
- return $this->readOneof(1);
- }
-
- public function hasExists()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * When set to `true`, the target document must exist.
- * When set to `false`, the target document must not exist.
- *
- * Generated from protobuf field bool exists = 1;
- * @param bool $var
- * @return $this
- */
- public function setExists($var)
- {
- GPBUtil::checkBool($var);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * When set, the target document must exist and have been last updated at
- * that time. Timestamp must be microsecond aligned.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 2;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->readOneof(2);
- }
-
- public function hasUpdateTime()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * When set, the target document must exist and have been last updated at
- * that time. Timestamp must be microsecond aligned.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 2;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getConditionType()
- {
- return $this->whichOneof("condition_type");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RollbackRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RollbackRequest.php
deleted file mode 100644
index 8a1dca5d7d53..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RollbackRequest.php
+++ /dev/null
@@ -1,121 +0,0 @@
-google.firestore.v1.RollbackRequest
- */
-class RollbackRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $database = '';
- /**
- * Required. The transaction to roll back.
- *
- * Generated from protobuf field bytes transaction = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $transaction = '';
-
- /**
- * @param string $database Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * @param string $transaction Required. The transaction to roll back.
- *
- * @return \Google\Cloud\Firestore\V1\RollbackRequest
- *
- * @experimental
- */
- public static function build(string $database, string $transaction): self
- {
- return (new self())
- ->setDatabase($database)
- ->setTransaction($transaction);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $database
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * @type string $transaction
- * Required. The transaction to roll back.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getDatabase()
- {
- return $this->database;
- }
-
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setDatabase($var)
- {
- GPBUtil::checkString($var, True);
- $this->database = $var;
-
- return $this;
- }
-
- /**
- * Required. The transaction to roll back.
- *
- * Generated from protobuf field bytes transaction = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getTransaction()
- {
- return $this->transaction;
- }
-
- /**
- * Required. The transaction to roll back.
- *
- * Generated from protobuf field bytes transaction = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setTransaction($var)
- {
- GPBUtil::checkString($var, False);
- $this->transaction = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RunAggregationQueryRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RunAggregationQueryRequest.php
deleted file mode 100644
index 680ac9b7b108..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RunAggregationQueryRequest.php
+++ /dev/null
@@ -1,304 +0,0 @@
-google.firestore.v1.RunAggregationQueryRequest
- */
-class RunAggregationQueryRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $parent = '';
- /**
- * Optional. Explain options for the query. If set, additional query
- * statistics will be returned. If not, only query results will be returned.
- *
- * Generated from protobuf field .google.firestore.v1.ExplainOptions explain_options = 8 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $explain_options = null;
- protected $query_type;
- protected $consistency_selector;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- * @type \Google\Cloud\Firestore\V1\StructuredAggregationQuery $structured_aggregation_query
- * An aggregation query.
- * @type string $transaction
- * Run the aggregation within an already active transaction.
- * The value here is the opaque transaction ID to execute the query in.
- * @type \Google\Cloud\Firestore\V1\TransactionOptions $new_transaction
- * Starts a new transaction as part of the query, defaulting to read-only.
- * The new transaction ID will be returned as the first response in the
- * stream.
- * @type \Google\Protobuf\Timestamp $read_time
- * Executes the query at the given timestamp.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- * @type \Google\Cloud\Firestore\V1\ExplainOptions $explain_options
- * Optional. Explain options for the query. If set, additional query
- * statistics will be returned. If not, only query results will be returned.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * An aggregation query.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
- * @return \Google\Cloud\Firestore\V1\StructuredAggregationQuery|null
- */
- public function getStructuredAggregationQuery()
- {
- return $this->readOneof(2);
- }
-
- public function hasStructuredAggregationQuery()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * An aggregation query.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredAggregationQuery structured_aggregation_query = 2;
- * @param \Google\Cloud\Firestore\V1\StructuredAggregationQuery $var
- * @return $this
- */
- public function setStructuredAggregationQuery($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredAggregationQuery::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * Run the aggregation within an already active transaction.
- * The value here is the opaque transaction ID to execute the query in.
- *
- * Generated from protobuf field bytes transaction = 4;
- * @return string
- */
- public function getTransaction()
- {
- return $this->readOneof(4);
- }
-
- public function hasTransaction()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Run the aggregation within an already active transaction.
- * The value here is the opaque transaction ID to execute the query in.
- *
- * Generated from protobuf field bytes transaction = 4;
- * @param string $var
- * @return $this
- */
- public function setTransaction($var)
- {
- GPBUtil::checkString($var, False);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * Starts a new transaction as part of the query, defaulting to read-only.
- * The new transaction ID will be returned as the first response in the
- * stream.
- *
- * Generated from protobuf field .google.firestore.v1.TransactionOptions new_transaction = 5;
- * @return \Google\Cloud\Firestore\V1\TransactionOptions|null
- */
- public function getNewTransaction()
- {
- return $this->readOneof(5);
- }
-
- public function hasNewTransaction()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Starts a new transaction as part of the query, defaulting to read-only.
- * The new transaction ID will be returned as the first response in the
- * stream.
- *
- * Generated from protobuf field .google.firestore.v1.TransactionOptions new_transaction = 5;
- * @param \Google\Cloud\Firestore\V1\TransactionOptions $var
- * @return $this
- */
- public function setNewTransaction($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\TransactionOptions::class);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * Executes the query at the given timestamp.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 6;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->readOneof(6);
- }
-
- public function hasReadTime()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * Executes the query at the given timestamp.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 6;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * Optional. Explain options for the query. If set, additional query
- * statistics will be returned. If not, only query results will be returned.
- *
- * Generated from protobuf field .google.firestore.v1.ExplainOptions explain_options = 8 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Firestore\V1\ExplainOptions|null
- */
- public function getExplainOptions()
- {
- return $this->explain_options;
- }
-
- public function hasExplainOptions()
- {
- return isset($this->explain_options);
- }
-
- public function clearExplainOptions()
- {
- unset($this->explain_options);
- }
-
- /**
- * Optional. Explain options for the query. If set, additional query
- * statistics will be returned. If not, only query results will be returned.
- *
- * Generated from protobuf field .google.firestore.v1.ExplainOptions explain_options = 8 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Firestore\V1\ExplainOptions $var
- * @return $this
- */
- public function setExplainOptions($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\ExplainOptions::class);
- $this->explain_options = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getQueryType()
- {
- return $this->whichOneof("query_type");
- }
-
- /**
- * @return string
- */
- public function getConsistencySelector()
- {
- return $this->whichOneof("consistency_selector");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RunAggregationQueryResponse.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RunAggregationQueryResponse.php
deleted file mode 100644
index de42b0043172..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RunAggregationQueryResponse.php
+++ /dev/null
@@ -1,244 +0,0 @@
-google.firestore.v1.RunAggregationQueryResponse
- */
-class RunAggregationQueryResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * A single aggregation result.
- * Not present when reporting partial progress.
- *
- * Generated from protobuf field .google.firestore.v1.AggregationResult result = 1;
- */
- protected $result = null;
- /**
- * The transaction that was started as part of this request.
- * Only present on the first response when the request requested to start
- * a new transaction.
- *
- * Generated from protobuf field bytes transaction = 2;
- */
- protected $transaction = '';
- /**
- * The time at which the aggregate result was computed. This is always
- * monotonically increasing; in this case, the previous AggregationResult in
- * the result stream are guaranteed not to have changed between their
- * `read_time` and this one.
- * If the query returns no results, a response with `read_time` and no
- * `result` will be sent, and this represents the time at which the query
- * was run.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 3;
- */
- protected $read_time = null;
- /**
- * Query explain metrics. This is only present when the
- * [RunAggregationQueryRequest.explain_options][google.firestore.v1.RunAggregationQueryRequest.explain_options]
- * is provided, and it is sent only once with the last response in the stream.
- *
- * Generated from protobuf field .google.firestore.v1.ExplainMetrics explain_metrics = 10;
- */
- protected $explain_metrics = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\AggregationResult $result
- * A single aggregation result.
- * Not present when reporting partial progress.
- * @type string $transaction
- * The transaction that was started as part of this request.
- * Only present on the first response when the request requested to start
- * a new transaction.
- * @type \Google\Protobuf\Timestamp $read_time
- * The time at which the aggregate result was computed. This is always
- * monotonically increasing; in this case, the previous AggregationResult in
- * the result stream are guaranteed not to have changed between their
- * `read_time` and this one.
- * If the query returns no results, a response with `read_time` and no
- * `result` will be sent, and this represents the time at which the query
- * was run.
- * @type \Google\Cloud\Firestore\V1\ExplainMetrics $explain_metrics
- * Query explain metrics. This is only present when the
- * [RunAggregationQueryRequest.explain_options][google.firestore.v1.RunAggregationQueryRequest.explain_options]
- * is provided, and it is sent only once with the last response in the stream.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A single aggregation result.
- * Not present when reporting partial progress.
- *
- * Generated from protobuf field .google.firestore.v1.AggregationResult result = 1;
- * @return \Google\Cloud\Firestore\V1\AggregationResult|null
- */
- public function getResult()
- {
- return $this->result;
- }
-
- public function hasResult()
- {
- return isset($this->result);
- }
-
- public function clearResult()
- {
- unset($this->result);
- }
-
- /**
- * A single aggregation result.
- * Not present when reporting partial progress.
- *
- * Generated from protobuf field .google.firestore.v1.AggregationResult result = 1;
- * @param \Google\Cloud\Firestore\V1\AggregationResult $var
- * @return $this
- */
- public function setResult($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\AggregationResult::class);
- $this->result = $var;
-
- return $this;
- }
-
- /**
- * The transaction that was started as part of this request.
- * Only present on the first response when the request requested to start
- * a new transaction.
- *
- * Generated from protobuf field bytes transaction = 2;
- * @return string
- */
- public function getTransaction()
- {
- return $this->transaction;
- }
-
- /**
- * The transaction that was started as part of this request.
- * Only present on the first response when the request requested to start
- * a new transaction.
- *
- * Generated from protobuf field bytes transaction = 2;
- * @param string $var
- * @return $this
- */
- public function setTransaction($var)
- {
- GPBUtil::checkString($var, False);
- $this->transaction = $var;
-
- return $this;
- }
-
- /**
- * The time at which the aggregate result was computed. This is always
- * monotonically increasing; in this case, the previous AggregationResult in
- * the result stream are guaranteed not to have changed between their
- * `read_time` and this one.
- * If the query returns no results, a response with `read_time` and no
- * `result` will be sent, and this represents the time at which the query
- * was run.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 3;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->read_time;
- }
-
- public function hasReadTime()
- {
- return isset($this->read_time);
- }
-
- public function clearReadTime()
- {
- unset($this->read_time);
- }
-
- /**
- * The time at which the aggregate result was computed. This is always
- * monotonically increasing; in this case, the previous AggregationResult in
- * the result stream are guaranteed not to have changed between their
- * `read_time` and this one.
- * If the query returns no results, a response with `read_time` and no
- * `result` will be sent, and this represents the time at which the query
- * was run.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 3;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->read_time = $var;
-
- return $this;
- }
-
- /**
- * Query explain metrics. This is only present when the
- * [RunAggregationQueryRequest.explain_options][google.firestore.v1.RunAggregationQueryRequest.explain_options]
- * is provided, and it is sent only once with the last response in the stream.
- *
- * Generated from protobuf field .google.firestore.v1.ExplainMetrics explain_metrics = 10;
- * @return \Google\Cloud\Firestore\V1\ExplainMetrics|null
- */
- public function getExplainMetrics()
- {
- return $this->explain_metrics;
- }
-
- public function hasExplainMetrics()
- {
- return isset($this->explain_metrics);
- }
-
- public function clearExplainMetrics()
- {
- unset($this->explain_metrics);
- }
-
- /**
- * Query explain metrics. This is only present when the
- * [RunAggregationQueryRequest.explain_options][google.firestore.v1.RunAggregationQueryRequest.explain_options]
- * is provided, and it is sent only once with the last response in the stream.
- *
- * Generated from protobuf field .google.firestore.v1.ExplainMetrics explain_metrics = 10;
- * @param \Google\Cloud\Firestore\V1\ExplainMetrics $var
- * @return $this
- */
- public function setExplainMetrics($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\ExplainMetrics::class);
- $this->explain_metrics = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RunQueryRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RunQueryRequest.php
deleted file mode 100644
index 37c2314ca5fa..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RunQueryRequest.php
+++ /dev/null
@@ -1,306 +0,0 @@
-google.firestore.v1.RunQueryRequest
- */
-class RunQueryRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $parent = '';
- /**
- * Optional. Explain options for the query. If set, additional query
- * statistics will be returned. If not, only query results will be returned.
- *
- * Generated from protobuf field .google.firestore.v1.ExplainOptions explain_options = 10 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $explain_options = null;
- protected $query_type;
- protected $consistency_selector;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- * @type \Google\Cloud\Firestore\V1\StructuredQuery $structured_query
- * A structured query.
- * @type string $transaction
- * Run the query within an already active transaction.
- * The value here is the opaque transaction ID to execute the query in.
- * @type \Google\Cloud\Firestore\V1\TransactionOptions $new_transaction
- * Starts a new transaction and reads the documents.
- * Defaults to a read-only transaction.
- * The new transaction ID will be returned as the first response in the
- * stream.
- * @type \Google\Protobuf\Timestamp $read_time
- * Reads documents as they were at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- * @type \Google\Cloud\Firestore\V1\ExplainOptions $explain_options
- * Optional. Explain options for the query. If set, additional query
- * statistics will be returned. If not, only query results will be returned.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * A structured query.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery structured_query = 2;
- * @return \Google\Cloud\Firestore\V1\StructuredQuery|null
- */
- public function getStructuredQuery()
- {
- return $this->readOneof(2);
- }
-
- public function hasStructuredQuery()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * A structured query.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery structured_query = 2;
- * @param \Google\Cloud\Firestore\V1\StructuredQuery $var
- * @return $this
- */
- public function setStructuredQuery($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * Run the query within an already active transaction.
- * The value here is the opaque transaction ID to execute the query in.
- *
- * Generated from protobuf field bytes transaction = 5;
- * @return string
- */
- public function getTransaction()
- {
- return $this->readOneof(5);
- }
-
- public function hasTransaction()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Run the query within an already active transaction.
- * The value here is the opaque transaction ID to execute the query in.
- *
- * Generated from protobuf field bytes transaction = 5;
- * @param string $var
- * @return $this
- */
- public function setTransaction($var)
- {
- GPBUtil::checkString($var, False);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * Starts a new transaction and reads the documents.
- * Defaults to a read-only transaction.
- * The new transaction ID will be returned as the first response in the
- * stream.
- *
- * Generated from protobuf field .google.firestore.v1.TransactionOptions new_transaction = 6;
- * @return \Google\Cloud\Firestore\V1\TransactionOptions|null
- */
- public function getNewTransaction()
- {
- return $this->readOneof(6);
- }
-
- public function hasNewTransaction()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * Starts a new transaction and reads the documents.
- * Defaults to a read-only transaction.
- * The new transaction ID will be returned as the first response in the
- * stream.
- *
- * Generated from protobuf field .google.firestore.v1.TransactionOptions new_transaction = 6;
- * @param \Google\Cloud\Firestore\V1\TransactionOptions $var
- * @return $this
- */
- public function setNewTransaction($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\TransactionOptions::class);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * Reads documents as they were at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 7;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->readOneof(7);
- }
-
- public function hasReadTime()
- {
- return $this->hasOneof(7);
- }
-
- /**
- * Reads documents as they were at the given time.
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 7;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->writeOneof(7, $var);
-
- return $this;
- }
-
- /**
- * Optional. Explain options for the query. If set, additional query
- * statistics will be returned. If not, only query results will be returned.
- *
- * Generated from protobuf field .google.firestore.v1.ExplainOptions explain_options = 10 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Firestore\V1\ExplainOptions|null
- */
- public function getExplainOptions()
- {
- return $this->explain_options;
- }
-
- public function hasExplainOptions()
- {
- return isset($this->explain_options);
- }
-
- public function clearExplainOptions()
- {
- unset($this->explain_options);
- }
-
- /**
- * Optional. Explain options for the query. If set, additional query
- * statistics will be returned. If not, only query results will be returned.
- *
- * Generated from protobuf field .google.firestore.v1.ExplainOptions explain_options = 10 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Firestore\V1\ExplainOptions $var
- * @return $this
- */
- public function setExplainOptions($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\ExplainOptions::class);
- $this->explain_options = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getQueryType()
- {
- return $this->whichOneof("query_type");
- }
-
- /**
- * @return string
- */
- public function getConsistencySelector()
- {
- return $this->whichOneof("consistency_selector");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RunQueryResponse.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RunQueryResponse.php
deleted file mode 100644
index 1d32089587e3..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/RunQueryResponse.php
+++ /dev/null
@@ -1,327 +0,0 @@
-google.firestore.v1.RunQueryResponse
- */
-class RunQueryResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The transaction that was started as part of this request.
- * Can only be set in the first response, and only if
- * [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction]
- * was set in the request. If set, no other fields will be set in this
- * response.
- *
- * Generated from protobuf field bytes transaction = 2;
- */
- protected $transaction = '';
- /**
- * A query result, not set when reporting partial progress.
- *
- * Generated from protobuf field .google.firestore.v1.Document document = 1;
- */
- protected $document = null;
- /**
- * The time at which the document was read. This may be monotonically
- * increasing; in this case, the previous documents in the result stream are
- * guaranteed not to have changed between their `read_time` and this one.
- * If the query returns no results, a response with `read_time` and no
- * `document` will be sent, and this represents the time at which the query
- * was run.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 3;
- */
- protected $read_time = null;
- /**
- * The number of results that have been skipped due to an offset between
- * the last response and the current response.
- *
- * Generated from protobuf field int32 skipped_results = 4;
- */
- protected $skipped_results = 0;
- /**
- * Query explain metrics. This is only present when the
- * [RunQueryRequest.explain_options][google.firestore.v1.RunQueryRequest.explain_options]
- * is provided, and it is sent only once with the last response in the stream.
- *
- * Generated from protobuf field .google.firestore.v1.ExplainMetrics explain_metrics = 11;
- */
- protected $explain_metrics = null;
- protected $continuation_selector;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $transaction
- * The transaction that was started as part of this request.
- * Can only be set in the first response, and only if
- * [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction]
- * was set in the request. If set, no other fields will be set in this
- * response.
- * @type \Google\Cloud\Firestore\V1\Document $document
- * A query result, not set when reporting partial progress.
- * @type \Google\Protobuf\Timestamp $read_time
- * The time at which the document was read. This may be monotonically
- * increasing; in this case, the previous documents in the result stream are
- * guaranteed not to have changed between their `read_time` and this one.
- * If the query returns no results, a response with `read_time` and no
- * `document` will be sent, and this represents the time at which the query
- * was run.
- * @type int $skipped_results
- * The number of results that have been skipped due to an offset between
- * the last response and the current response.
- * @type bool $done
- * If present, Firestore has completely finished the request and no more
- * documents will be returned.
- * @type \Google\Cloud\Firestore\V1\ExplainMetrics $explain_metrics
- * Query explain metrics. This is only present when the
- * [RunQueryRequest.explain_options][google.firestore.v1.RunQueryRequest.explain_options]
- * is provided, and it is sent only once with the last response in the stream.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The transaction that was started as part of this request.
- * Can only be set in the first response, and only if
- * [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction]
- * was set in the request. If set, no other fields will be set in this
- * response.
- *
- * Generated from protobuf field bytes transaction = 2;
- * @return string
- */
- public function getTransaction()
- {
- return $this->transaction;
- }
-
- /**
- * The transaction that was started as part of this request.
- * Can only be set in the first response, and only if
- * [RunQueryRequest.new_transaction][google.firestore.v1.RunQueryRequest.new_transaction]
- * was set in the request. If set, no other fields will be set in this
- * response.
- *
- * Generated from protobuf field bytes transaction = 2;
- * @param string $var
- * @return $this
- */
- public function setTransaction($var)
- {
- GPBUtil::checkString($var, False);
- $this->transaction = $var;
-
- return $this;
- }
-
- /**
- * A query result, not set when reporting partial progress.
- *
- * Generated from protobuf field .google.firestore.v1.Document document = 1;
- * @return \Google\Cloud\Firestore\V1\Document|null
- */
- public function getDocument()
- {
- return $this->document;
- }
-
- public function hasDocument()
- {
- return isset($this->document);
- }
-
- public function clearDocument()
- {
- unset($this->document);
- }
-
- /**
- * A query result, not set when reporting partial progress.
- *
- * Generated from protobuf field .google.firestore.v1.Document document = 1;
- * @param \Google\Cloud\Firestore\V1\Document $var
- * @return $this
- */
- public function setDocument($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Document::class);
- $this->document = $var;
-
- return $this;
- }
-
- /**
- * The time at which the document was read. This may be monotonically
- * increasing; in this case, the previous documents in the result stream are
- * guaranteed not to have changed between their `read_time` and this one.
- * If the query returns no results, a response with `read_time` and no
- * `document` will be sent, and this represents the time at which the query
- * was run.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 3;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->read_time;
- }
-
- public function hasReadTime()
- {
- return isset($this->read_time);
- }
-
- public function clearReadTime()
- {
- unset($this->read_time);
- }
-
- /**
- * The time at which the document was read. This may be monotonically
- * increasing; in this case, the previous documents in the result stream are
- * guaranteed not to have changed between their `read_time` and this one.
- * If the query returns no results, a response with `read_time` and no
- * `document` will be sent, and this represents the time at which the query
- * was run.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 3;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->read_time = $var;
-
- return $this;
- }
-
- /**
- * The number of results that have been skipped due to an offset between
- * the last response and the current response.
- *
- * Generated from protobuf field int32 skipped_results = 4;
- * @return int
- */
- public function getSkippedResults()
- {
- return $this->skipped_results;
- }
-
- /**
- * The number of results that have been skipped due to an offset between
- * the last response and the current response.
- *
- * Generated from protobuf field int32 skipped_results = 4;
- * @param int $var
- * @return $this
- */
- public function setSkippedResults($var)
- {
- GPBUtil::checkInt32($var);
- $this->skipped_results = $var;
-
- return $this;
- }
-
- /**
- * If present, Firestore has completely finished the request and no more
- * documents will be returned.
- *
- * Generated from protobuf field bool done = 6;
- * @return bool
- */
- public function getDone()
- {
- return $this->readOneof(6);
- }
-
- public function hasDone()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * If present, Firestore has completely finished the request and no more
- * documents will be returned.
- *
- * Generated from protobuf field bool done = 6;
- * @param bool $var
- * @return $this
- */
- public function setDone($var)
- {
- GPBUtil::checkBool($var);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * Query explain metrics. This is only present when the
- * [RunQueryRequest.explain_options][google.firestore.v1.RunQueryRequest.explain_options]
- * is provided, and it is sent only once with the last response in the stream.
- *
- * Generated from protobuf field .google.firestore.v1.ExplainMetrics explain_metrics = 11;
- * @return \Google\Cloud\Firestore\V1\ExplainMetrics|null
- */
- public function getExplainMetrics()
- {
- return $this->explain_metrics;
- }
-
- public function hasExplainMetrics()
- {
- return isset($this->explain_metrics);
- }
-
- public function clearExplainMetrics()
- {
- unset($this->explain_metrics);
- }
-
- /**
- * Query explain metrics. This is only present when the
- * [RunQueryRequest.explain_options][google.firestore.v1.RunQueryRequest.explain_options]
- * is provided, and it is sent only once with the last response in the stream.
- *
- * Generated from protobuf field .google.firestore.v1.ExplainMetrics explain_metrics = 11;
- * @param \Google\Cloud\Firestore\V1\ExplainMetrics $var
- * @return $this
- */
- public function setExplainMetrics($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\ExplainMetrics::class);
- $this->explain_metrics = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getContinuationSelector()
- {
- return $this->whichOneof("continuation_selector");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery.php
deleted file mode 100644
index 513a7aeb0f84..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery.php
+++ /dev/null
@@ -1,122 +0,0 @@
-google.firestore.v1.StructuredAggregationQuery
- */
-class StructuredAggregationQuery extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Series of aggregations to apply over the results of the
- * `structured_query`.
- * Requires:
- * * A minimum of one and maximum of five aggregations per query.
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $aggregations;
- protected $query_type;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\StructuredQuery $structured_query
- * Nested structured query.
- * @type array<\Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation>|\Google\Protobuf\Internal\RepeatedField $aggregations
- * Optional. Series of aggregations to apply over the results of the
- * `structured_query`.
- * Requires:
- * * A minimum of one and maximum of five aggregations per query.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Nested structured query.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery structured_query = 1;
- * @return \Google\Cloud\Firestore\V1\StructuredQuery|null
- */
- public function getStructuredQuery()
- {
- return $this->readOneof(1);
- }
-
- public function hasStructuredQuery()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * Nested structured query.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery structured_query = 1;
- * @param \Google\Cloud\Firestore\V1\StructuredQuery $var
- * @return $this
- */
- public function setStructuredQuery($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * Optional. Series of aggregations to apply over the results of the
- * `structured_query`.
- * Requires:
- * * A minimum of one and maximum of five aggregations per query.
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getAggregations()
- {
- return $this->aggregations;
- }
-
- /**
- * Optional. Series of aggregations to apply over the results of the
- * `structured_query`.
- * Requires:
- * * A minimum of one and maximum of five aggregations per query.
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredAggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setAggregations($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation::class);
- $this->aggregations = $arr;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getQueryType()
- {
- return $this->whichOneof("query_type");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery/Aggregation.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery/Aggregation.php
deleted file mode 100644
index 2e21334696cb..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery/Aggregation.php
+++ /dev/null
@@ -1,290 +0,0 @@
-google.firestore.v1.StructuredAggregationQuery.Aggregation
- */
-class Aggregation extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Optional name of the field to store the result of the
- * aggregation into.
- * If not provided, Firestore will pick a default name following the format
- * `field_`. For example:
- * ```
- * AGGREGATE
- * COUNT_UP_TO(1) AS count_up_to_1,
- * COUNT_UP_TO(2),
- * COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT(*)
- * OVER (
- * ...
- * );
- * ```
- * becomes:
- * ```
- * AGGREGATE
- * COUNT_UP_TO(1) AS count_up_to_1,
- * COUNT_UP_TO(2) AS field_1,
- * COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT(*) AS field_2
- * OVER (
- * ...
- * );
- * ```
- * Requires:
- * * Must be unique across all aggregation aliases.
- * * Conform to [document field name][google.firestore.v1.Document.fields]
- * limitations.
- *
- * Generated from protobuf field string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $alias = '';
- protected $operator;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation\Count $count
- * Count aggregator.
- * @type \Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation\Sum $sum
- * Sum aggregator.
- * @type \Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation\Avg $avg
- * Average aggregator.
- * @type string $alias
- * Optional. Optional name of the field to store the result of the
- * aggregation into.
- * If not provided, Firestore will pick a default name following the format
- * `field_`. For example:
- * ```
- * AGGREGATE
- * COUNT_UP_TO(1) AS count_up_to_1,
- * COUNT_UP_TO(2),
- * COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT(*)
- * OVER (
- * ...
- * );
- * ```
- * becomes:
- * ```
- * AGGREGATE
- * COUNT_UP_TO(1) AS count_up_to_1,
- * COUNT_UP_TO(2) AS field_1,
- * COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT(*) AS field_2
- * OVER (
- * ...
- * );
- * ```
- * Requires:
- * * Must be unique across all aggregation aliases.
- * * Conform to [document field name][google.firestore.v1.Document.fields]
- * limitations.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Count aggregator.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1;
- * @return \Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation\Count|null
- */
- public function getCount()
- {
- return $this->readOneof(1);
- }
-
- public function hasCount()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * Count aggregator.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredAggregationQuery.Aggregation.Count count = 1;
- * @param \Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation\Count $var
- * @return $this
- */
- public function setCount($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation\Count::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * Sum aggregator.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2;
- * @return \Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation\Sum|null
- */
- public function getSum()
- {
- return $this->readOneof(2);
- }
-
- public function hasSum()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Sum aggregator.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum sum = 2;
- * @param \Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation\Sum $var
- * @return $this
- */
- public function setSum($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation\Sum::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * Average aggregator.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3;
- * @return \Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation\Avg|null
- */
- public function getAvg()
- {
- return $this->readOneof(3);
- }
-
- public function hasAvg()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * Average aggregator.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg avg = 3;
- * @param \Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation\Avg $var
- * @return $this
- */
- public function setAvg($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredAggregationQuery\Aggregation\Avg::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * Optional. Optional name of the field to store the result of the
- * aggregation into.
- * If not provided, Firestore will pick a default name following the format
- * `field_`. For example:
- * ```
- * AGGREGATE
- * COUNT_UP_TO(1) AS count_up_to_1,
- * COUNT_UP_TO(2),
- * COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT(*)
- * OVER (
- * ...
- * );
- * ```
- * becomes:
- * ```
- * AGGREGATE
- * COUNT_UP_TO(1) AS count_up_to_1,
- * COUNT_UP_TO(2) AS field_1,
- * COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT(*) AS field_2
- * OVER (
- * ...
- * );
- * ```
- * Requires:
- * * Must be unique across all aggregation aliases.
- * * Conform to [document field name][google.firestore.v1.Document.fields]
- * limitations.
- *
- * Generated from protobuf field string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getAlias()
- {
- return $this->alias;
- }
-
- /**
- * Optional. Optional name of the field to store the result of the
- * aggregation into.
- * If not provided, Firestore will pick a default name following the format
- * `field_`. For example:
- * ```
- * AGGREGATE
- * COUNT_UP_TO(1) AS count_up_to_1,
- * COUNT_UP_TO(2),
- * COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT(*)
- * OVER (
- * ...
- * );
- * ```
- * becomes:
- * ```
- * AGGREGATE
- * COUNT_UP_TO(1) AS count_up_to_1,
- * COUNT_UP_TO(2) AS field_1,
- * COUNT_UP_TO(3) AS count_up_to_3,
- * COUNT(*) AS field_2
- * OVER (
- * ...
- * );
- * ```
- * Requires:
- * * Must be unique across all aggregation aliases.
- * * Conform to [document field name][google.firestore.v1.Document.fields]
- * limitations.
- *
- * Generated from protobuf field string alias = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setAlias($var)
- {
- GPBUtil::checkString($var, True);
- $this->alias = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getOperator()
- {
- return $this->whichOneof("operator");
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(Aggregation::class, \Google\Cloud\Firestore\V1\StructuredAggregationQuery_Aggregation::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery/Aggregation/Avg.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery/Aggregation/Avg.php
deleted file mode 100644
index 4af9d9ee411c..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery/Aggregation/Avg.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.firestore.v1.StructuredAggregationQuery.Aggregation.Avg
- */
-class Avg extends \Google\Protobuf\Internal\Message
-{
- /**
- * The field to aggregate on.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- */
- protected $field = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference $field
- * The field to aggregate on.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The field to aggregate on.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- * @return \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference|null
- */
- public function getField()
- {
- return $this->field;
- }
-
- public function hasField()
- {
- return isset($this->field);
- }
-
- public function clearField()
- {
- unset($this->field);
- }
-
- /**
- * The field to aggregate on.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- * @param \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference $var
- * @return $this
- */
- public function setField($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference::class);
- $this->field = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(Avg::class, \Google\Cloud\Firestore\V1\StructuredAggregationQuery_Aggregation_Avg::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery/Aggregation/Count.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery/Aggregation/Count.php
deleted file mode 100644
index 0bfb56baf641..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery/Aggregation/Count.php
+++ /dev/null
@@ -1,169 +0,0 @@
-google.firestore.v1.StructuredAggregationQuery.Aggregation.Count
- */
-class Count extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Optional constraint on the maximum number of documents to
- * count.
- * This provides a way to set an upper bound on the number of documents
- * to scan, limiting latency, and cost.
- * Unspecified is interpreted as no bound.
- * High-Level Example:
- * ```
- * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
- * ```
- * Requires:
- * * Must be greater than zero when present.
- *
- * Generated from protobuf field .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $up_to = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Int64Value $up_to
- * Optional. Optional constraint on the maximum number of documents to
- * count.
- * This provides a way to set an upper bound on the number of documents
- * to scan, limiting latency, and cost.
- * Unspecified is interpreted as no bound.
- * High-Level Example:
- * ```
- * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
- * ```
- * Requires:
- * * Must be greater than zero when present.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Optional constraint on the maximum number of documents to
- * count.
- * This provides a way to set an upper bound on the number of documents
- * to scan, limiting latency, and cost.
- * Unspecified is interpreted as no bound.
- * High-Level Example:
- * ```
- * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
- * ```
- * Requires:
- * * Must be greater than zero when present.
- *
- * Generated from protobuf field .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Int64Value|null
- */
- public function getUpTo()
- {
- return $this->up_to;
- }
-
- public function hasUpTo()
- {
- return isset($this->up_to);
- }
-
- public function clearUpTo()
- {
- unset($this->up_to);
- }
-
- /**
- * Returns the unboxed value from getUpTo()
-
- * Optional. Optional constraint on the maximum number of documents to
- * count.
- * This provides a way to set an upper bound on the number of documents
- * to scan, limiting latency, and cost.
- * Unspecified is interpreted as no bound.
- * High-Level Example:
- * ```
- * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
- * ```
- * Requires:
- * * Must be greater than zero when present.
- *
- * Generated from protobuf field .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return int|string|null
- */
- public function getUpToUnwrapped()
- {
- return $this->readWrapperValue("up_to");
- }
-
- /**
- * Optional. Optional constraint on the maximum number of documents to
- * count.
- * This provides a way to set an upper bound on the number of documents
- * to scan, limiting latency, and cost.
- * Unspecified is interpreted as no bound.
- * High-Level Example:
- * ```
- * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
- * ```
- * Requires:
- * * Must be greater than zero when present.
- *
- * Generated from protobuf field .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Protobuf\Int64Value $var
- * @return $this
- */
- public function setUpTo($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Int64Value::class);
- $this->up_to = $var;
-
- return $this;
- }
-
- /**
- * Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object.
-
- * Optional. Optional constraint on the maximum number of documents to
- * count.
- * This provides a way to set an upper bound on the number of documents
- * to scan, limiting latency, and cost.
- * Unspecified is interpreted as no bound.
- * High-Level Example:
- * ```
- * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k );
- * ```
- * Requires:
- * * Must be greater than zero when present.
- *
- * Generated from protobuf field .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param int|string|null $var
- * @return $this
- */
- public function setUpToUnwrapped($var)
- {
- $this->writeWrapperValue("up_to", $var);
- return $this;}
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(Count::class, \Google\Cloud\Firestore\V1\StructuredAggregationQuery_Aggregation_Count::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery/Aggregation/Sum.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery/Aggregation/Sum.php
deleted file mode 100644
index 215315c68ef8..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredAggregationQuery/Aggregation/Sum.php
+++ /dev/null
@@ -1,95 +0,0 @@
-google.firestore.v1.StructuredAggregationQuery.Aggregation.Sum
- */
-class Sum extends \Google\Protobuf\Internal\Message
-{
- /**
- * The field to aggregate on.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- */
- protected $field = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference $field
- * The field to aggregate on.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The field to aggregate on.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- * @return \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference|null
- */
- public function getField()
- {
- return $this->field;
- }
-
- public function hasField()
- {
- return isset($this->field);
- }
-
- public function clearField()
- {
- unset($this->field);
- }
-
- /**
- * The field to aggregate on.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- * @param \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference $var
- * @return $this
- */
- public function setField($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference::class);
- $this->field = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(Sum::class, \Google\Cloud\Firestore\V1\StructuredAggregationQuery_Aggregation_Sum::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery.php
deleted file mode 100644
index fc6fd5d1504a..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery.php
+++ /dev/null
@@ -1,651 +0,0 @@
-google.firestore.v1.StructuredQuery
- */
-class StructuredQuery extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional sub-set of the fields to return.
- * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
- * documents returned from a query. When not set, assumes that the caller
- * wants all fields returned.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.Projection select = 1;
- */
- protected $select = null;
- /**
- * The collections to query.
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
- */
- private $from;
- /**
- * The filter to apply.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.Filter where = 3;
- */
- protected $where = null;
- /**
- * The order to apply to the query results.
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
- * * The `order_by` is required to reference all fields used with an
- * inequality filter.
- * * All fields that are required to be in the `order_by` but are not already
- * present are appended in lexicographical ordering of the field name.
- * * If an order on `__name__` is not specified, it is appended by default.
- * Fields are appended with the same sort direction as the last order
- * specified, or 'ASCENDING' if no order was specified. For example:
- * * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
- * * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
- * * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
- * * `WHERE __name__ > ... AND a > 1` becomes
- * `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
- */
- private $order_by;
- /**
- * A potential prefix of a position in the result set to start the query at.
- * The ordering of the result set is based on the `ORDER BY` clause of the
- * original query.
- * ```
- * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
- * ```
- * This query's results are ordered by `(b ASC, __name__ ASC)`.
- * Cursors can reference either the full ordering or a prefix of the location,
- * though it cannot reference more fields than what are in the provided
- * `ORDER BY`.
- * Continuing off the example above, attaching the following start cursors
- * will have varying impact:
- * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
- * b > 2 AND __name__ > /k/123`.
- * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
- * Unlike `OFFSET` which requires scanning over the first N results to skip,
- * a start cursor allows the query to begin at a logical position. This
- * position is not required to match an actual result, it will scan forward
- * from this position to find the next document.
- * Requires:
- * * The number of values cannot be greater than the number of fields
- * specified in the `ORDER BY` clause.
- *
- * Generated from protobuf field .google.firestore.v1.Cursor start_at = 7;
- */
- protected $start_at = null;
- /**
- * A potential prefix of a position in the result set to end the query at.
- * This is similar to `START_AT` but with it controlling the end position
- * rather than the start position.
- * Requires:
- * * The number of values cannot be greater than the number of fields
- * specified in the `ORDER BY` clause.
- *
- * Generated from protobuf field .google.firestore.v1.Cursor end_at = 8;
- */
- protected $end_at = null;
- /**
- * The number of documents to skip before returning the first result.
- * This applies after the constraints specified by the `WHERE`, `START AT`, &
- * `END AT` but before the `LIMIT` clause.
- * Requires:
- * * The value must be greater than or equal to zero if specified.
- *
- * Generated from protobuf field int32 offset = 6;
- */
- protected $offset = 0;
- /**
- * The maximum number of results to return.
- * Applies after all other constraints.
- * Requires:
- * * The value must be greater than or equal to zero if specified.
- *
- * Generated from protobuf field .google.protobuf.Int32Value limit = 5;
- */
- protected $limit = null;
- /**
- * Optional. A potential nearest neighbors search.
- * Applies after all other filters and ordering.
- * Finds the closest vector embeddings to the given query vector.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FindNearest find_nearest = 9 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $find_nearest = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\StructuredQuery\Projection $select
- * Optional sub-set of the fields to return.
- * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
- * documents returned from a query. When not set, assumes that the caller
- * wants all fields returned.
- * @type array<\Google\Cloud\Firestore\V1\StructuredQuery\CollectionSelector>|\Google\Protobuf\Internal\RepeatedField $from
- * The collections to query.
- * @type \Google\Cloud\Firestore\V1\StructuredQuery\Filter $where
- * The filter to apply.
- * @type array<\Google\Cloud\Firestore\V1\StructuredQuery\Order>|\Google\Protobuf\Internal\RepeatedField $order_by
- * The order to apply to the query results.
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
- * * The `order_by` is required to reference all fields used with an
- * inequality filter.
- * * All fields that are required to be in the `order_by` but are not already
- * present are appended in lexicographical ordering of the field name.
- * * If an order on `__name__` is not specified, it is appended by default.
- * Fields are appended with the same sort direction as the last order
- * specified, or 'ASCENDING' if no order was specified. For example:
- * * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
- * * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
- * * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
- * * `WHERE __name__ > ... AND a > 1` becomes
- * `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
- * @type \Google\Cloud\Firestore\V1\Cursor $start_at
- * A potential prefix of a position in the result set to start the query at.
- * The ordering of the result set is based on the `ORDER BY` clause of the
- * original query.
- * ```
- * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
- * ```
- * This query's results are ordered by `(b ASC, __name__ ASC)`.
- * Cursors can reference either the full ordering or a prefix of the location,
- * though it cannot reference more fields than what are in the provided
- * `ORDER BY`.
- * Continuing off the example above, attaching the following start cursors
- * will have varying impact:
- * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
- * b > 2 AND __name__ > /k/123`.
- * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
- * Unlike `OFFSET` which requires scanning over the first N results to skip,
- * a start cursor allows the query to begin at a logical position. This
- * position is not required to match an actual result, it will scan forward
- * from this position to find the next document.
- * Requires:
- * * The number of values cannot be greater than the number of fields
- * specified in the `ORDER BY` clause.
- * @type \Google\Cloud\Firestore\V1\Cursor $end_at
- * A potential prefix of a position in the result set to end the query at.
- * This is similar to `START_AT` but with it controlling the end position
- * rather than the start position.
- * Requires:
- * * The number of values cannot be greater than the number of fields
- * specified in the `ORDER BY` clause.
- * @type int $offset
- * The number of documents to skip before returning the first result.
- * This applies after the constraints specified by the `WHERE`, `START AT`, &
- * `END AT` but before the `LIMIT` clause.
- * Requires:
- * * The value must be greater than or equal to zero if specified.
- * @type \Google\Protobuf\Int32Value $limit
- * The maximum number of results to return.
- * Applies after all other constraints.
- * Requires:
- * * The value must be greater than or equal to zero if specified.
- * @type \Google\Cloud\Firestore\V1\StructuredQuery\FindNearest $find_nearest
- * Optional. A potential nearest neighbors search.
- * Applies after all other filters and ordering.
- * Finds the closest vector embeddings to the given query vector.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional sub-set of the fields to return.
- * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
- * documents returned from a query. When not set, assumes that the caller
- * wants all fields returned.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.Projection select = 1;
- * @return \Google\Cloud\Firestore\V1\StructuredQuery\Projection|null
- */
- public function getSelect()
- {
- return $this->select;
- }
-
- public function hasSelect()
- {
- return isset($this->select);
- }
-
- public function clearSelect()
- {
- unset($this->select);
- }
-
- /**
- * Optional sub-set of the fields to return.
- * This acts as a [DocumentMask][google.firestore.v1.DocumentMask] over the
- * documents returned from a query. When not set, assumes that the caller
- * wants all fields returned.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.Projection select = 1;
- * @param \Google\Cloud\Firestore\V1\StructuredQuery\Projection $var
- * @return $this
- */
- public function setSelect($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery\Projection::class);
- $this->select = $var;
-
- return $this;
- }
-
- /**
- * The collections to query.
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFrom()
- {
- return $this->from;
- }
-
- /**
- * The collections to query.
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredQuery.CollectionSelector from = 2;
- * @param array<\Google\Cloud\Firestore\V1\StructuredQuery\CollectionSelector>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFrom($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\StructuredQuery\CollectionSelector::class);
- $this->from = $arr;
-
- return $this;
- }
-
- /**
- * The filter to apply.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.Filter where = 3;
- * @return \Google\Cloud\Firestore\V1\StructuredQuery\Filter|null
- */
- public function getWhere()
- {
- return $this->where;
- }
-
- public function hasWhere()
- {
- return isset($this->where);
- }
-
- public function clearWhere()
- {
- unset($this->where);
- }
-
- /**
- * The filter to apply.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.Filter where = 3;
- * @param \Google\Cloud\Firestore\V1\StructuredQuery\Filter $var
- * @return $this
- */
- public function setWhere($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery\Filter::class);
- $this->where = $var;
-
- return $this;
- }
-
- /**
- * The order to apply to the query results.
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
- * * The `order_by` is required to reference all fields used with an
- * inequality filter.
- * * All fields that are required to be in the `order_by` but are not already
- * present are appended in lexicographical ordering of the field name.
- * * If an order on `__name__` is not specified, it is appended by default.
- * Fields are appended with the same sort direction as the last order
- * specified, or 'ASCENDING' if no order was specified. For example:
- * * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
- * * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
- * * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
- * * `WHERE __name__ > ... AND a > 1` becomes
- * `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * The order to apply to the query results.
- * Firestore allows callers to provide a full ordering, a partial ordering, or
- * no ordering at all. In all cases, Firestore guarantees a stable ordering
- * through the following rules:
- * * The `order_by` is required to reference all fields used with an
- * inequality filter.
- * * All fields that are required to be in the `order_by` but are not already
- * present are appended in lexicographical ordering of the field name.
- * * If an order on `__name__` is not specified, it is appended by default.
- * Fields are appended with the same sort direction as the last order
- * specified, or 'ASCENDING' if no order was specified. For example:
- * * `ORDER BY a` becomes `ORDER BY a ASC, __name__ ASC`
- * * `ORDER BY a DESC` becomes `ORDER BY a DESC, __name__ DESC`
- * * `WHERE a > 1` becomes `WHERE a > 1 ORDER BY a ASC, __name__ ASC`
- * * `WHERE __name__ > ... AND a > 1` becomes
- * `WHERE __name__ > ... AND a > 1 ORDER BY a ASC, __name__ ASC`
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredQuery.Order order_by = 4;
- * @param array<\Google\Cloud\Firestore\V1\StructuredQuery\Order>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\StructuredQuery\Order::class);
- $this->order_by = $arr;
-
- return $this;
- }
-
- /**
- * A potential prefix of a position in the result set to start the query at.
- * The ordering of the result set is based on the `ORDER BY` clause of the
- * original query.
- * ```
- * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
- * ```
- * This query's results are ordered by `(b ASC, __name__ ASC)`.
- * Cursors can reference either the full ordering or a prefix of the location,
- * though it cannot reference more fields than what are in the provided
- * `ORDER BY`.
- * Continuing off the example above, attaching the following start cursors
- * will have varying impact:
- * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
- * b > 2 AND __name__ > /k/123`.
- * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
- * Unlike `OFFSET` which requires scanning over the first N results to skip,
- * a start cursor allows the query to begin at a logical position. This
- * position is not required to match an actual result, it will scan forward
- * from this position to find the next document.
- * Requires:
- * * The number of values cannot be greater than the number of fields
- * specified in the `ORDER BY` clause.
- *
- * Generated from protobuf field .google.firestore.v1.Cursor start_at = 7;
- * @return \Google\Cloud\Firestore\V1\Cursor|null
- */
- public function getStartAt()
- {
- return $this->start_at;
- }
-
- public function hasStartAt()
- {
- return isset($this->start_at);
- }
-
- public function clearStartAt()
- {
- unset($this->start_at);
- }
-
- /**
- * A potential prefix of a position in the result set to start the query at.
- * The ordering of the result set is based on the `ORDER BY` clause of the
- * original query.
- * ```
- * SELECT * FROM k WHERE a = 1 AND b > 2 ORDER BY b ASC, __name__ ASC;
- * ```
- * This query's results are ordered by `(b ASC, __name__ ASC)`.
- * Cursors can reference either the full ordering or a prefix of the location,
- * though it cannot reference more fields than what are in the provided
- * `ORDER BY`.
- * Continuing off the example above, attaching the following start cursors
- * will have varying impact:
- * - `START BEFORE (2, /k/123)`: start the query right before `a = 1 AND
- * b > 2 AND __name__ > /k/123`.
- * - `START AFTER (10)`: start the query right after `a = 1 AND b > 10`.
- * Unlike `OFFSET` which requires scanning over the first N results to skip,
- * a start cursor allows the query to begin at a logical position. This
- * position is not required to match an actual result, it will scan forward
- * from this position to find the next document.
- * Requires:
- * * The number of values cannot be greater than the number of fields
- * specified in the `ORDER BY` clause.
- *
- * Generated from protobuf field .google.firestore.v1.Cursor start_at = 7;
- * @param \Google\Cloud\Firestore\V1\Cursor $var
- * @return $this
- */
- public function setStartAt($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Cursor::class);
- $this->start_at = $var;
-
- return $this;
- }
-
- /**
- * A potential prefix of a position in the result set to end the query at.
- * This is similar to `START_AT` but with it controlling the end position
- * rather than the start position.
- * Requires:
- * * The number of values cannot be greater than the number of fields
- * specified in the `ORDER BY` clause.
- *
- * Generated from protobuf field .google.firestore.v1.Cursor end_at = 8;
- * @return \Google\Cloud\Firestore\V1\Cursor|null
- */
- public function getEndAt()
- {
- return $this->end_at;
- }
-
- public function hasEndAt()
- {
- return isset($this->end_at);
- }
-
- public function clearEndAt()
- {
- unset($this->end_at);
- }
-
- /**
- * A potential prefix of a position in the result set to end the query at.
- * This is similar to `START_AT` but with it controlling the end position
- * rather than the start position.
- * Requires:
- * * The number of values cannot be greater than the number of fields
- * specified in the `ORDER BY` clause.
- *
- * Generated from protobuf field .google.firestore.v1.Cursor end_at = 8;
- * @param \Google\Cloud\Firestore\V1\Cursor $var
- * @return $this
- */
- public function setEndAt($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Cursor::class);
- $this->end_at = $var;
-
- return $this;
- }
-
- /**
- * The number of documents to skip before returning the first result.
- * This applies after the constraints specified by the `WHERE`, `START AT`, &
- * `END AT` but before the `LIMIT` clause.
- * Requires:
- * * The value must be greater than or equal to zero if specified.
- *
- * Generated from protobuf field int32 offset = 6;
- * @return int
- */
- public function getOffset()
- {
- return $this->offset;
- }
-
- /**
- * The number of documents to skip before returning the first result.
- * This applies after the constraints specified by the `WHERE`, `START AT`, &
- * `END AT` but before the `LIMIT` clause.
- * Requires:
- * * The value must be greater than or equal to zero if specified.
- *
- * Generated from protobuf field int32 offset = 6;
- * @param int $var
- * @return $this
- */
- public function setOffset($var)
- {
- GPBUtil::checkInt32($var);
- $this->offset = $var;
-
- return $this;
- }
-
- /**
- * The maximum number of results to return.
- * Applies after all other constraints.
- * Requires:
- * * The value must be greater than or equal to zero if specified.
- *
- * Generated from protobuf field .google.protobuf.Int32Value limit = 5;
- * @return \Google\Protobuf\Int32Value|null
- */
- public function getLimit()
- {
- return $this->limit;
- }
-
- public function hasLimit()
- {
- return isset($this->limit);
- }
-
- public function clearLimit()
- {
- unset($this->limit);
- }
-
- /**
- * Returns the unboxed value from getLimit()
-
- * The maximum number of results to return.
- * Applies after all other constraints.
- * Requires:
- * * The value must be greater than or equal to zero if specified.
- *
- * Generated from protobuf field .google.protobuf.Int32Value limit = 5;
- * @return int|null
- */
- public function getLimitUnwrapped()
- {
- return $this->readWrapperValue("limit");
- }
-
- /**
- * The maximum number of results to return.
- * Applies after all other constraints.
- * Requires:
- * * The value must be greater than or equal to zero if specified.
- *
- * Generated from protobuf field .google.protobuf.Int32Value limit = 5;
- * @param \Google\Protobuf\Int32Value $var
- * @return $this
- */
- public function setLimit($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class);
- $this->limit = $var;
-
- return $this;
- }
-
- /**
- * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.
-
- * The maximum number of results to return.
- * Applies after all other constraints.
- * Requires:
- * * The value must be greater than or equal to zero if specified.
- *
- * Generated from protobuf field .google.protobuf.Int32Value limit = 5;
- * @param int|null $var
- * @return $this
- */
- public function setLimitUnwrapped($var)
- {
- $this->writeWrapperValue("limit", $var);
- return $this;}
-
- /**
- * Optional. A potential nearest neighbors search.
- * Applies after all other filters and ordering.
- * Finds the closest vector embeddings to the given query vector.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FindNearest find_nearest = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Firestore\V1\StructuredQuery\FindNearest|null
- */
- public function getFindNearest()
- {
- return $this->find_nearest;
- }
-
- public function hasFindNearest()
- {
- return isset($this->find_nearest);
- }
-
- public function clearFindNearest()
- {
- unset($this->find_nearest);
- }
-
- /**
- * Optional. A potential nearest neighbors search.
- * Applies after all other filters and ordering.
- * Finds the closest vector embeddings to the given query vector.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FindNearest find_nearest = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Firestore\V1\StructuredQuery\FindNearest $var
- * @return $this
- */
- public function setFindNearest($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery\FindNearest::class);
- $this->find_nearest = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/CollectionSelector.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/CollectionSelector.php
deleted file mode 100644
index b06253d9d6ad..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/CollectionSelector.php
+++ /dev/null
@@ -1,116 +0,0 @@
-google.firestore.v1.StructuredQuery.CollectionSelector
- */
-class CollectionSelector extends \Google\Protobuf\Internal\Message
-{
- /**
- * The collection ID.
- * When set, selects only collections with this ID.
- *
- * Generated from protobuf field string collection_id = 2;
- */
- protected $collection_id = '';
- /**
- * When false, selects only collections that are immediate children of
- * the `parent` specified in the containing `RunQueryRequest`.
- * When true, selects all descendant collections.
- *
- * Generated from protobuf field bool all_descendants = 3;
- */
- protected $all_descendants = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $collection_id
- * The collection ID.
- * When set, selects only collections with this ID.
- * @type bool $all_descendants
- * When false, selects only collections that are immediate children of
- * the `parent` specified in the containing `RunQueryRequest`.
- * When true, selects all descendant collections.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The collection ID.
- * When set, selects only collections with this ID.
- *
- * Generated from protobuf field string collection_id = 2;
- * @return string
- */
- public function getCollectionId()
- {
- return $this->collection_id;
- }
-
- /**
- * The collection ID.
- * When set, selects only collections with this ID.
- *
- * Generated from protobuf field string collection_id = 2;
- * @param string $var
- * @return $this
- */
- public function setCollectionId($var)
- {
- GPBUtil::checkString($var, True);
- $this->collection_id = $var;
-
- return $this;
- }
-
- /**
- * When false, selects only collections that are immediate children of
- * the `parent` specified in the containing `RunQueryRequest`.
- * When true, selects all descendant collections.
- *
- * Generated from protobuf field bool all_descendants = 3;
- * @return bool
- */
- public function getAllDescendants()
- {
- return $this->all_descendants;
- }
-
- /**
- * When false, selects only collections that are immediate children of
- * the `parent` specified in the containing `RunQueryRequest`.
- * When true, selects all descendant collections.
- *
- * Generated from protobuf field bool all_descendants = 3;
- * @param bool $var
- * @return $this
- */
- public function setAllDescendants($var)
- {
- GPBUtil::checkBool($var);
- $this->all_descendants = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(CollectionSelector::class, \Google\Cloud\Firestore\V1\StructuredQuery_CollectionSelector::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/CompositeFilter.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/CompositeFilter.php
deleted file mode 100644
index f63c324d982d..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/CompositeFilter.php
+++ /dev/null
@@ -1,112 +0,0 @@
-google.firestore.v1.StructuredQuery.CompositeFilter
- */
-class CompositeFilter extends \Google\Protobuf\Internal\Message
-{
- /**
- * The operator for combining multiple filters.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
- */
- protected $op = 0;
- /**
- * The list of filters to combine.
- * Requires:
- * * At least one filter is present.
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
- */
- private $filters;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $op
- * The operator for combining multiple filters.
- * @type array<\Google\Cloud\Firestore\V1\StructuredQuery\Filter>|\Google\Protobuf\Internal\RepeatedField $filters
- * The list of filters to combine.
- * Requires:
- * * At least one filter is present.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The operator for combining multiple filters.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
- * @return int
- */
- public function getOp()
- {
- return $this->op;
- }
-
- /**
- * The operator for combining multiple filters.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.CompositeFilter.Operator op = 1;
- * @param int $var
- * @return $this
- */
- public function setOp($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\V1\StructuredQuery\CompositeFilter\Operator::class);
- $this->op = $var;
-
- return $this;
- }
-
- /**
- * The list of filters to combine.
- * Requires:
- * * At least one filter is present.
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFilters()
- {
- return $this->filters;
- }
-
- /**
- * The list of filters to combine.
- * Requires:
- * * At least one filter is present.
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredQuery.Filter filters = 2;
- * @param array<\Google\Cloud\Firestore\V1\StructuredQuery\Filter>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFilters($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\StructuredQuery\Filter::class);
- $this->filters = $arr;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(CompositeFilter::class, \Google\Cloud\Firestore\V1\StructuredQuery_CompositeFilter::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/CompositeFilter/Operator.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/CompositeFilter/Operator.php
deleted file mode 100644
index b603b83dc965..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/CompositeFilter/Operator.php
+++ /dev/null
@@ -1,68 +0,0 @@
-google.firestore.v1.StructuredQuery.CompositeFilter.Operator
- */
-class Operator
-{
- /**
- * Unspecified. This value must not be used.
- *
- * Generated from protobuf enum OPERATOR_UNSPECIFIED = 0;
- */
- const OPERATOR_UNSPECIFIED = 0;
- /**
- * Documents are required to satisfy all of the combined filters.
- *
- * Generated from protobuf enum AND = 1;
- */
- const PBAND = 1;
- /**
- * Documents are required to satisfy at least one of the combined filters.
- *
- * Generated from protobuf enum OR = 2;
- */
- const PBOR = 2;
-
- private static $valueToName = [
- self::OPERATOR_UNSPECIFIED => 'OPERATOR_UNSPECIFIED',
- self::PBAND => 'AND',
- self::PBOR => 'OR',
- ];
-
- 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(Operator::class, \Google\Cloud\Firestore\V1\StructuredQuery_CompositeFilter_Operator::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/Direction.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/Direction.php
deleted file mode 100644
index 70989c758cf2..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/Direction.php
+++ /dev/null
@@ -1,64 +0,0 @@
-google.firestore.v1.StructuredQuery.Direction
- */
-class Direction
-{
- /**
- * Unspecified.
- *
- * Generated from protobuf enum DIRECTION_UNSPECIFIED = 0;
- */
- const DIRECTION_UNSPECIFIED = 0;
- /**
- * Ascending.
- *
- * Generated from protobuf enum ASCENDING = 1;
- */
- const ASCENDING = 1;
- /**
- * Descending.
- *
- * Generated from protobuf enum DESCENDING = 2;
- */
- const DESCENDING = 2;
-
- private static $valueToName = [
- self::DIRECTION_UNSPECIFIED => 'DIRECTION_UNSPECIFIED',
- self::ASCENDING => 'ASCENDING',
- self::DESCENDING => 'DESCENDING',
- ];
-
- 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(Direction::class, \Google\Cloud\Firestore\V1\StructuredQuery_Direction::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FieldFilter.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FieldFilter.php
deleted file mode 100644
index d027d09f1050..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FieldFilter.php
+++ /dev/null
@@ -1,158 +0,0 @@
-google.firestore.v1.StructuredQuery.FieldFilter
- */
-class FieldFilter extends \Google\Protobuf\Internal\Message
-{
- /**
- * The field to filter by.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- */
- protected $field = null;
- /**
- * The operator to filter by.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
- */
- protected $op = 0;
- /**
- * The value to compare to.
- *
- * Generated from protobuf field .google.firestore.v1.Value value = 3;
- */
- protected $value = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference $field
- * The field to filter by.
- * @type int $op
- * The operator to filter by.
- * @type \Google\Cloud\Firestore\V1\Value $value
- * The value to compare to.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The field to filter by.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- * @return \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference|null
- */
- public function getField()
- {
- return $this->field;
- }
-
- public function hasField()
- {
- return isset($this->field);
- }
-
- public function clearField()
- {
- unset($this->field);
- }
-
- /**
- * The field to filter by.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- * @param \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference $var
- * @return $this
- */
- public function setField($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference::class);
- $this->field = $var;
-
- return $this;
- }
-
- /**
- * The operator to filter by.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
- * @return int
- */
- public function getOp()
- {
- return $this->op;
- }
-
- /**
- * The operator to filter by.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldFilter.Operator op = 2;
- * @param int $var
- * @return $this
- */
- public function setOp($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\V1\StructuredQuery\FieldFilter\Operator::class);
- $this->op = $var;
-
- return $this;
- }
-
- /**
- * The value to compare to.
- *
- * Generated from protobuf field .google.firestore.v1.Value value = 3;
- * @return \Google\Cloud\Firestore\V1\Value|null
- */
- public function getValue()
- {
- return $this->value;
- }
-
- public function hasValue()
- {
- return isset($this->value);
- }
-
- public function clearValue()
- {
- unset($this->value);
- }
-
- /**
- * The value to compare to.
- *
- * Generated from protobuf field .google.firestore.v1.Value value = 3;
- * @param \Google\Cloud\Firestore\V1\Value $var
- * @return $this
- */
- public function setValue($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Value::class);
- $this->value = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(FieldFilter::class, \Google\Cloud\Firestore\V1\StructuredQuery_FieldFilter::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FieldFilter/Operator.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FieldFilter/Operator.php
deleted file mode 100644
index 9721e2039d04..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FieldFilter/Operator.php
+++ /dev/null
@@ -1,146 +0,0 @@
-google.firestore.v1.StructuredQuery.FieldFilter.Operator
- */
-class Operator
-{
- /**
- * Unspecified. This value must not be used.
- *
- * Generated from protobuf enum OPERATOR_UNSPECIFIED = 0;
- */
- const OPERATOR_UNSPECIFIED = 0;
- /**
- * The given `field` is less than the given `value`.
- * Requires:
- * * That `field` come first in `order_by`.
- *
- * Generated from protobuf enum LESS_THAN = 1;
- */
- const LESS_THAN = 1;
- /**
- * The given `field` is less than or equal to the given `value`.
- * Requires:
- * * That `field` come first in `order_by`.
- *
- * Generated from protobuf enum LESS_THAN_OR_EQUAL = 2;
- */
- const LESS_THAN_OR_EQUAL = 2;
- /**
- * The given `field` is greater than the given `value`.
- * Requires:
- * * That `field` come first in `order_by`.
- *
- * Generated from protobuf enum GREATER_THAN = 3;
- */
- const GREATER_THAN = 3;
- /**
- * The given `field` is greater than or equal to the given `value`.
- * Requires:
- * * That `field` come first in `order_by`.
- *
- * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 4;
- */
- const GREATER_THAN_OR_EQUAL = 4;
- /**
- * The given `field` is equal to the given `value`.
- *
- * Generated from protobuf enum EQUAL = 5;
- */
- const EQUAL = 5;
- /**
- * The given `field` is not equal to the given `value`.
- * Requires:
- * * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
- * * That `field` comes first in the `order_by`.
- *
- * Generated from protobuf enum NOT_EQUAL = 6;
- */
- const NOT_EQUAL = 6;
- /**
- * The given `field` is an array that contains the given `value`.
- *
- * Generated from protobuf enum ARRAY_CONTAINS = 7;
- */
- const ARRAY_CONTAINS = 7;
- /**
- * The given `field` is equal to at least one value in the given array.
- * Requires:
- * * That `value` is a non-empty `ArrayValue`, subject to disjunction
- * limits.
- * * No `NOT_IN` filters in the same query.
- *
- * Generated from protobuf enum IN = 8;
- */
- const IN = 8;
- /**
- * The given `field` is an array that contains any of the values in the
- * given array.
- * Requires:
- * * That `value` is a non-empty `ArrayValue`, subject to disjunction
- * limits.
- * * No other `ARRAY_CONTAINS_ANY` filters within the same disjunction.
- * * No `NOT_IN` filters in the same query.
- *
- * Generated from protobuf enum ARRAY_CONTAINS_ANY = 9;
- */
- const ARRAY_CONTAINS_ANY = 9;
- /**
- * The value of the `field` is not in the given array.
- * Requires:
- * * That `value` is a non-empty `ArrayValue` with at most 10 values.
- * * No other `OR`, `IN`, `ARRAY_CONTAINS_ANY`, `NOT_IN`, `NOT_EQUAL`,
- * `IS_NOT_NULL`, or `IS_NOT_NAN`.
- * * That `field` comes first in the `order_by`.
- *
- * Generated from protobuf enum NOT_IN = 10;
- */
- const NOT_IN = 10;
-
- private static $valueToName = [
- self::OPERATOR_UNSPECIFIED => 'OPERATOR_UNSPECIFIED',
- self::LESS_THAN => 'LESS_THAN',
- self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL',
- self::GREATER_THAN => 'GREATER_THAN',
- self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL',
- self::EQUAL => 'EQUAL',
- self::NOT_EQUAL => 'NOT_EQUAL',
- self::ARRAY_CONTAINS => 'ARRAY_CONTAINS',
- self::IN => 'IN',
- self::ARRAY_CONTAINS_ANY => 'ARRAY_CONTAINS_ANY',
- self::NOT_IN => 'NOT_IN',
- ];
-
- 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(Operator::class, \Google\Cloud\Firestore\V1\StructuredQuery_FieldFilter_Operator::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FieldReference.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FieldReference.php
deleted file mode 100644
index be709a472fb1..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FieldReference.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.firestore.v1.StructuredQuery.FieldReference
- */
-class FieldReference extends \Google\Protobuf\Internal\Message
-{
- /**
- * A reference to a field in a document.
- * Requires:
- * * MUST be a dot-delimited (`.`) string of segments, where each segment
- * conforms to [document field name][google.firestore.v1.Document.fields]
- * limitations.
- *
- * Generated from protobuf field string field_path = 2;
- */
- protected $field_path = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $field_path
- * A reference to a field in a document.
- * Requires:
- * * MUST be a dot-delimited (`.`) string of segments, where each segment
- * conforms to [document field name][google.firestore.v1.Document.fields]
- * limitations.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A reference to a field in a document.
- * Requires:
- * * MUST be a dot-delimited (`.`) string of segments, where each segment
- * conforms to [document field name][google.firestore.v1.Document.fields]
- * limitations.
- *
- * Generated from protobuf field string field_path = 2;
- * @return string
- */
- public function getFieldPath()
- {
- return $this->field_path;
- }
-
- /**
- * A reference to a field in a document.
- * Requires:
- * * MUST be a dot-delimited (`.`) string of segments, where each segment
- * conforms to [document field name][google.firestore.v1.Document.fields]
- * limitations.
- *
- * Generated from protobuf field string field_path = 2;
- * @param string $var
- * @return $this
- */
- public function setFieldPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->field_path = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(FieldReference::class, \Google\Cloud\Firestore\V1\StructuredQuery_FieldReference::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/Filter.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/Filter.php
deleted file mode 100644
index dc43c16b7859..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/Filter.php
+++ /dev/null
@@ -1,144 +0,0 @@
-google.firestore.v1.StructuredQuery.Filter
- */
-class Filter extends \Google\Protobuf\Internal\Message
-{
- protected $filter_type;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\StructuredQuery\CompositeFilter $composite_filter
- * A composite filter.
- * @type \Google\Cloud\Firestore\V1\StructuredQuery\FieldFilter $field_filter
- * A filter on a document field.
- * @type \Google\Cloud\Firestore\V1\StructuredQuery\UnaryFilter $unary_filter
- * A filter that takes exactly one argument.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A composite filter.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.CompositeFilter composite_filter = 1;
- * @return \Google\Cloud\Firestore\V1\StructuredQuery\CompositeFilter|null
- */
- public function getCompositeFilter()
- {
- return $this->readOneof(1);
- }
-
- public function hasCompositeFilter()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * A composite filter.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.CompositeFilter composite_filter = 1;
- * @param \Google\Cloud\Firestore\V1\StructuredQuery\CompositeFilter $var
- * @return $this
- */
- public function setCompositeFilter($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery\CompositeFilter::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * A filter on a document field.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldFilter field_filter = 2;
- * @return \Google\Cloud\Firestore\V1\StructuredQuery\FieldFilter|null
- */
- public function getFieldFilter()
- {
- return $this->readOneof(2);
- }
-
- public function hasFieldFilter()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * A filter on a document field.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldFilter field_filter = 2;
- * @param \Google\Cloud\Firestore\V1\StructuredQuery\FieldFilter $var
- * @return $this
- */
- public function setFieldFilter($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery\FieldFilter::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * A filter that takes exactly one argument.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.UnaryFilter unary_filter = 3;
- * @return \Google\Cloud\Firestore\V1\StructuredQuery\UnaryFilter|null
- */
- public function getUnaryFilter()
- {
- return $this->readOneof(3);
- }
-
- public function hasUnaryFilter()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * A filter that takes exactly one argument.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.UnaryFilter unary_filter = 3;
- * @param \Google\Cloud\Firestore\V1\StructuredQuery\UnaryFilter $var
- * @return $this
- */
- public function setUnaryFilter($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery\UnaryFilter::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getFilterType()
- {
- return $this->whichOneof("filter_type");
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(Filter::class, \Google\Cloud\Firestore\V1\StructuredQuery_Filter::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FindNearest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FindNearest.php
deleted file mode 100644
index 3e32c9a7be8d..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FindNearest.php
+++ /dev/null
@@ -1,399 +0,0 @@
-google.firestore.v1.StructuredQuery.FindNearest
- */
-class FindNearest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. An indexed vector field to search upon. Only documents which
- * contain vectors whose dimensionality match the query_vector can be
- * returned.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference vector_field = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $vector_field = null;
- /**
- * Required. The query vector that we are searching on. Must be a vector of
- * no more than 2048 dimensions.
- *
- * Generated from protobuf field .google.firestore.v1.Value query_vector = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $query_vector = null;
- /**
- * Required. The distance measure to use, required.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure distance_measure = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $distance_measure = 0;
- /**
- * Required. The number of nearest neighbors to return. Must be a positive
- * integer of no more than 1000.
- *
- * Generated from protobuf field .google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $limit = null;
- /**
- * Optional. Optional name of the field to output the result of the vector
- * distance calculation. Must conform to [document field
- * name][google.firestore.v1.Document.fields] limitations.
- *
- * Generated from protobuf field string distance_result_field = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $distance_result_field = '';
- /**
- * Optional. Option to specify a threshold for which no less similar
- * documents will be returned. The behavior of the specified
- * `distance_measure` will affect the meaning of the distance threshold.
- * Since DOT_PRODUCT distances increase when the vectors are more similar,
- * the comparison is inverted.
- * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold
- * For DOT_PRODUCT: WHERE distance >= distance_threshold
- *
- * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $distance_threshold = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference $vector_field
- * Required. An indexed vector field to search upon. Only documents which
- * contain vectors whose dimensionality match the query_vector can be
- * returned.
- * @type \Google\Cloud\Firestore\V1\Value $query_vector
- * Required. The query vector that we are searching on. Must be a vector of
- * no more than 2048 dimensions.
- * @type int $distance_measure
- * Required. The distance measure to use, required.
- * @type \Google\Protobuf\Int32Value $limit
- * Required. The number of nearest neighbors to return. Must be a positive
- * integer of no more than 1000.
- * @type string $distance_result_field
- * Optional. Optional name of the field to output the result of the vector
- * distance calculation. Must conform to [document field
- * name][google.firestore.v1.Document.fields] limitations.
- * @type \Google\Protobuf\DoubleValue $distance_threshold
- * Optional. Option to specify a threshold for which no less similar
- * documents will be returned. The behavior of the specified
- * `distance_measure` will affect the meaning of the distance threshold.
- * Since DOT_PRODUCT distances increase when the vectors are more similar,
- * the comparison is inverted.
- * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold
- * For DOT_PRODUCT: WHERE distance >= distance_threshold
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. An indexed vector field to search upon. Only documents which
- * contain vectors whose dimensionality match the query_vector can be
- * returned.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference vector_field = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference|null
- */
- public function getVectorField()
- {
- return $this->vector_field;
- }
-
- public function hasVectorField()
- {
- return isset($this->vector_field);
- }
-
- public function clearVectorField()
- {
- unset($this->vector_field);
- }
-
- /**
- * Required. An indexed vector field to search upon. Only documents which
- * contain vectors whose dimensionality match the query_vector can be
- * returned.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference vector_field = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference $var
- * @return $this
- */
- public function setVectorField($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference::class);
- $this->vector_field = $var;
-
- return $this;
- }
-
- /**
- * Required. The query vector that we are searching on. Must be a vector of
- * no more than 2048 dimensions.
- *
- * Generated from protobuf field .google.firestore.v1.Value query_vector = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Firestore\V1\Value|null
- */
- public function getQueryVector()
- {
- return $this->query_vector;
- }
-
- public function hasQueryVector()
- {
- return isset($this->query_vector);
- }
-
- public function clearQueryVector()
- {
- unset($this->query_vector);
- }
-
- /**
- * Required. The query vector that we are searching on. Must be a vector of
- * no more than 2048 dimensions.
- *
- * Generated from protobuf field .google.firestore.v1.Value query_vector = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Firestore\V1\Value $var
- * @return $this
- */
- public function setQueryVector($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Value::class);
- $this->query_vector = $var;
-
- return $this;
- }
-
- /**
- * Required. The distance measure to use, required.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure distance_measure = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getDistanceMeasure()
- {
- return $this->distance_measure;
- }
-
- /**
- * Required. The distance measure to use, required.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure distance_measure = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setDistanceMeasure($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\V1\StructuredQuery\FindNearest\DistanceMeasure::class);
- $this->distance_measure = $var;
-
- return $this;
- }
-
- /**
- * Required. The number of nearest neighbors to return. Must be a positive
- * integer of no more than 1000.
- *
- * Generated from protobuf field .google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\Int32Value|null
- */
- public function getLimit()
- {
- return $this->limit;
- }
-
- public function hasLimit()
- {
- return isset($this->limit);
- }
-
- public function clearLimit()
- {
- unset($this->limit);
- }
-
- /**
- * Returns the unboxed value from getLimit()
-
- * Required. The number of nearest neighbors to return. Must be a positive
- * integer of no more than 1000.
- *
- * Generated from protobuf field .google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED];
- * @return int|null
- */
- public function getLimitUnwrapped()
- {
- return $this->readWrapperValue("limit");
- }
-
- /**
- * Required. The number of nearest neighbors to return. Must be a positive
- * integer of no more than 1000.
- *
- * Generated from protobuf field .google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Protobuf\Int32Value $var
- * @return $this
- */
- public function setLimit($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class);
- $this->limit = $var;
-
- return $this;
- }
-
- /**
- * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.
-
- * Required. The number of nearest neighbors to return. Must be a positive
- * integer of no more than 1000.
- *
- * Generated from protobuf field .google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED];
- * @param int|null $var
- * @return $this
- */
- public function setLimitUnwrapped($var)
- {
- $this->writeWrapperValue("limit", $var);
- return $this;}
-
- /**
- * Optional. Optional name of the field to output the result of the vector
- * distance calculation. Must conform to [document field
- * name][google.firestore.v1.Document.fields] limitations.
- *
- * Generated from protobuf field string distance_result_field = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getDistanceResultField()
- {
- return $this->distance_result_field;
- }
-
- /**
- * Optional. Optional name of the field to output the result of the vector
- * distance calculation. Must conform to [document field
- * name][google.firestore.v1.Document.fields] limitations.
- *
- * Generated from protobuf field string distance_result_field = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setDistanceResultField($var)
- {
- GPBUtil::checkString($var, True);
- $this->distance_result_field = $var;
-
- return $this;
- }
-
- /**
- * Optional. Option to specify a threshold for which no less similar
- * documents will be returned. The behavior of the specified
- * `distance_measure` will affect the meaning of the distance threshold.
- * Since DOT_PRODUCT distances increase when the vectors are more similar,
- * the comparison is inverted.
- * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold
- * For DOT_PRODUCT: WHERE distance >= distance_threshold
- *
- * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\DoubleValue|null
- */
- public function getDistanceThreshold()
- {
- return $this->distance_threshold;
- }
-
- public function hasDistanceThreshold()
- {
- return isset($this->distance_threshold);
- }
-
- public function clearDistanceThreshold()
- {
- unset($this->distance_threshold);
- }
-
- /**
- * Returns the unboxed value from getDistanceThreshold()
-
- * Optional. Option to specify a threshold for which no less similar
- * documents will be returned. The behavior of the specified
- * `distance_measure` will affect the meaning of the distance threshold.
- * Since DOT_PRODUCT distances increase when the vectors are more similar,
- * the comparison is inverted.
- * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold
- * For DOT_PRODUCT: WHERE distance >= distance_threshold
- *
- * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return float|null
- */
- public function getDistanceThresholdUnwrapped()
- {
- return $this->readWrapperValue("distance_threshold");
- }
-
- /**
- * Optional. Option to specify a threshold for which no less similar
- * documents will be returned. The behavior of the specified
- * `distance_measure` will affect the meaning of the distance threshold.
- * Since DOT_PRODUCT distances increase when the vectors are more similar,
- * the comparison is inverted.
- * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold
- * For DOT_PRODUCT: WHERE distance >= distance_threshold
- *
- * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Protobuf\DoubleValue $var
- * @return $this
- */
- public function setDistanceThreshold($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class);
- $this->distance_threshold = $var;
-
- return $this;
- }
-
- /**
- * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object.
-
- * Optional. Option to specify a threshold for which no less similar
- * documents will be returned. The behavior of the specified
- * `distance_measure` will affect the meaning of the distance threshold.
- * Since DOT_PRODUCT distances increase when the vectors are more similar,
- * the comparison is inverted.
- * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold
- * For DOT_PRODUCT: WHERE distance >= distance_threshold
- *
- * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param float|null $var
- * @return $this
- */
- public function setDistanceThresholdUnwrapped($var)
- {
- $this->writeWrapperValue("distance_threshold", $var);
- return $this;}
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(FindNearest::class, \Google\Cloud\Firestore\V1\StructuredQuery_FindNearest::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FindNearest/DistanceMeasure.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FindNearest/DistanceMeasure.php
deleted file mode 100644
index f50ed905abcd..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/FindNearest/DistanceMeasure.php
+++ /dev/null
@@ -1,83 +0,0 @@
-google.firestore.v1.StructuredQuery.FindNearest.DistanceMeasure
- */
-class DistanceMeasure
-{
- /**
- * Should not be set.
- *
- * Generated from protobuf enum DISTANCE_MEASURE_UNSPECIFIED = 0;
- */
- const DISTANCE_MEASURE_UNSPECIFIED = 0;
- /**
- * Measures the EUCLIDEAN distance between the vectors. See
- * [Euclidean](https://en.wikipedia.org/wiki/Euclidean_distance) to learn
- * more. The resulting distance decreases the more similar two vectors
- * are.
- *
- * Generated from protobuf enum EUCLIDEAN = 1;
- */
- const EUCLIDEAN = 1;
- /**
- * COSINE distance compares vectors based on the angle between them, which
- * allows you to measure similarity that isn't based on the vectors
- * magnitude. We recommend using DOT_PRODUCT with unit normalized vectors
- * instead of COSINE distance, which is mathematically equivalent with
- * better performance. See [Cosine
- * Similarity](https://en.wikipedia.org/wiki/Cosine_similarity) to learn
- * more about COSINE similarity and COSINE distance. The resulting
- * COSINE distance decreases the more similar two vectors are.
- *
- * Generated from protobuf enum COSINE = 2;
- */
- const COSINE = 2;
- /**
- * Similar to cosine but is affected by the magnitude of the vectors. See
- * [Dot Product](https://en.wikipedia.org/wiki/Dot_product) to learn more.
- * The resulting distance increases the more similar two vectors are.
- *
- * Generated from protobuf enum DOT_PRODUCT = 3;
- */
- const DOT_PRODUCT = 3;
-
- private static $valueToName = [
- self::DISTANCE_MEASURE_UNSPECIFIED => 'DISTANCE_MEASURE_UNSPECIFIED',
- self::EUCLIDEAN => 'EUCLIDEAN',
- self::COSINE => 'COSINE',
- self::DOT_PRODUCT => 'DOT_PRODUCT',
- ];
-
- 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(DistanceMeasure::class, \Google\Cloud\Firestore\V1\StructuredQuery_FindNearest_DistanceMeasure::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/Order.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/Order.php
deleted file mode 100644
index a71ebeb1b1d0..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/Order.php
+++ /dev/null
@@ -1,114 +0,0 @@
-google.firestore.v1.StructuredQuery.Order
- */
-class Order extends \Google\Protobuf\Internal\Message
-{
- /**
- * The field to order by.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- */
- protected $field = null;
- /**
- * The direction to order by. Defaults to `ASCENDING`.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.Direction direction = 2;
- */
- protected $direction = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference $field
- * The field to order by.
- * @type int $direction
- * The direction to order by. Defaults to `ASCENDING`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The field to order by.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- * @return \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference|null
- */
- public function getField()
- {
- return $this->field;
- }
-
- public function hasField()
- {
- return isset($this->field);
- }
-
- public function clearField()
- {
- unset($this->field);
- }
-
- /**
- * The field to order by.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference field = 1;
- * @param \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference $var
- * @return $this
- */
- public function setField($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference::class);
- $this->field = $var;
-
- return $this;
- }
-
- /**
- * The direction to order by. Defaults to `ASCENDING`.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.Direction direction = 2;
- * @return int
- */
- public function getDirection()
- {
- return $this->direction;
- }
-
- /**
- * The direction to order by. Defaults to `ASCENDING`.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.Direction direction = 2;
- * @param int $var
- * @return $this
- */
- public function setDirection($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\V1\StructuredQuery\Direction::class);
- $this->direction = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(Order::class, \Google\Cloud\Firestore\V1\StructuredQuery_Order::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/Projection.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/Projection.php
deleted file mode 100644
index 36909ca38947..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/Projection.php
+++ /dev/null
@@ -1,78 +0,0 @@
-google.firestore.v1.StructuredQuery.Projection
- */
-class Projection extends \Google\Protobuf\Internal\Message
-{
- /**
- * The fields to return.
- * If empty, all fields are returned. To only return the name
- * of the document, use `['__name__']`.
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
- */
- private $fields;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Firestore\V1\StructuredQuery\FieldReference>|\Google\Protobuf\Internal\RepeatedField $fields
- * The fields to return.
- * If empty, all fields are returned. To only return the name
- * of the document, use `['__name__']`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The fields to return.
- * If empty, all fields are returned. To only return the name
- * of the document, use `['__name__']`.
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFields()
- {
- return $this->fields;
- }
-
- /**
- * The fields to return.
- * If empty, all fields are returned. To only return the name
- * of the document, use `['__name__']`.
- *
- * Generated from protobuf field repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
- * @param array<\Google\Cloud\Firestore\V1\StructuredQuery\FieldReference>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFields($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference::class);
- $this->fields = $arr;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(Projection::class, \Google\Cloud\Firestore\V1\StructuredQuery_Projection::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/UnaryFilter.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/UnaryFilter.php
deleted file mode 100644
index 4f90d0cfdd4b..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/UnaryFilter.php
+++ /dev/null
@@ -1,112 +0,0 @@
-google.firestore.v1.StructuredQuery.UnaryFilter
- */
-class UnaryFilter extends \Google\Protobuf\Internal\Message
-{
- /**
- * The unary operator to apply.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
- */
- protected $op = 0;
- protected $operand_type;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $op
- * The unary operator to apply.
- * @type \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference $field
- * The field to which to apply the operator.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Query::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The unary operator to apply.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
- * @return int
- */
- public function getOp()
- {
- return $this->op;
- }
-
- /**
- * The unary operator to apply.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.UnaryFilter.Operator op = 1;
- * @param int $var
- * @return $this
- */
- public function setOp($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\V1\StructuredQuery\UnaryFilter\Operator::class);
- $this->op = $var;
-
- return $this;
- }
-
- /**
- * The field to which to apply the operator.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference field = 2;
- * @return \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference|null
- */
- public function getField()
- {
- return $this->readOneof(2);
- }
-
- public function hasField()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * The field to which to apply the operator.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery.FieldReference field = 2;
- * @param \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference $var
- * @return $this
- */
- public function setField($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery\FieldReference::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getOperandType()
- {
- return $this->whichOneof("operand_type");
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(UnaryFilter::class, \Google\Cloud\Firestore\V1\StructuredQuery_UnaryFilter::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/UnaryFilter/Operator.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/UnaryFilter/Operator.php
deleted file mode 100644
index d8a8dffc6d00..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/StructuredQuery/UnaryFilter/Operator.php
+++ /dev/null
@@ -1,84 +0,0 @@
-google.firestore.v1.StructuredQuery.UnaryFilter.Operator
- */
-class Operator
-{
- /**
- * Unspecified. This value must not be used.
- *
- * Generated from protobuf enum OPERATOR_UNSPECIFIED = 0;
- */
- const OPERATOR_UNSPECIFIED = 0;
- /**
- * The given `field` is equal to `NaN`.
- *
- * Generated from protobuf enum IS_NAN = 2;
- */
- const IS_NAN = 2;
- /**
- * The given `field` is equal to `NULL`.
- *
- * Generated from protobuf enum IS_NULL = 3;
- */
- const IS_NULL = 3;
- /**
- * The given `field` is not equal to `NaN`.
- * Requires:
- * * No other `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
- * * That `field` comes first in the `order_by`.
- *
- * Generated from protobuf enum IS_NOT_NAN = 4;
- */
- const IS_NOT_NAN = 4;
- /**
- * The given `field` is not equal to `NULL`.
- * Requires:
- * * A single `NOT_EQUAL`, `NOT_IN`, `IS_NOT_NULL`, or `IS_NOT_NAN`.
- * * That `field` comes first in the `order_by`.
- *
- * Generated from protobuf enum IS_NOT_NULL = 5;
- */
- const IS_NOT_NULL = 5;
-
- private static $valueToName = [
- self::OPERATOR_UNSPECIFIED => 'OPERATOR_UNSPECIFIED',
- self::IS_NAN => 'IS_NAN',
- self::IS_NULL => 'IS_NULL',
- self::IS_NOT_NAN => 'IS_NOT_NAN',
- self::IS_NOT_NULL => 'IS_NOT_NULL',
- ];
-
- 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(Operator::class, \Google\Cloud\Firestore\V1\StructuredQuery_UnaryFilter_Operator::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Target.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Target.php
deleted file mode 100644
index ac09a0b046f5..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Target.php
+++ /dev/null
@@ -1,407 +0,0 @@
-google.firestore.v1.Target
- */
-class Target extends \Google\Protobuf\Internal\Message
-{
- /**
- * The target ID that identifies the target on the stream. Must be a positive
- * number and non-zero.
- * If `target_id` is 0 (or unspecified), the server will assign an ID for this
- * target and return that in a `TargetChange::ADD` event. Once a target with
- * `target_id=0` is added, all subsequent targets must also have
- * `target_id=0`. If an `AddTarget` request with `target_id != 0` is
- * sent to the server after a target with `target_id=0` is added, the server
- * will immediately send a response with a `TargetChange::Remove` event.
- * Note that if the client sends multiple `AddTarget` requests
- * without an ID, the order of IDs returned in `TargetChage.target_ids` are
- * undefined. Therefore, clients should provide a target ID instead of relying
- * on the server to assign one.
- * If `target_id` is non-zero, there must not be an existing active target on
- * this stream with the same ID.
- *
- * Generated from protobuf field int32 target_id = 5;
- */
- protected $target_id = 0;
- /**
- * If the target should be removed once it is current and consistent.
- *
- * Generated from protobuf field bool once = 6;
- */
- protected $once = false;
- /**
- * The number of documents that last matched the query at the resume token or
- * read time.
- * This value is only relevant when a `resume_type` is provided. This value
- * being present and greater than zero signals that the client wants
- * `ExistenceFilter.unchanged_names` to be included in the response.
- *
- * Generated from protobuf field .google.protobuf.Int32Value expected_count = 12;
- */
- protected $expected_count = null;
- protected $target_type;
- protected $resume_type;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\Target\QueryTarget $query
- * A target specified by a query.
- * @type \Google\Cloud\Firestore\V1\Target\DocumentsTarget $documents
- * A target specified by a set of document names.
- * @type string $resume_token
- * A resume token from a prior
- * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
- * Using a resume token with a different target is unsupported and may fail.
- * @type \Google\Protobuf\Timestamp $read_time
- * Start listening after a specific `read_time`.
- * The client must know the state of matching documents at this time.
- * @type int $target_id
- * The target ID that identifies the target on the stream. Must be a positive
- * number and non-zero.
- * If `target_id` is 0 (or unspecified), the server will assign an ID for this
- * target and return that in a `TargetChange::ADD` event. Once a target with
- * `target_id=0` is added, all subsequent targets must also have
- * `target_id=0`. If an `AddTarget` request with `target_id != 0` is
- * sent to the server after a target with `target_id=0` is added, the server
- * will immediately send a response with a `TargetChange::Remove` event.
- * Note that if the client sends multiple `AddTarget` requests
- * without an ID, the order of IDs returned in `TargetChage.target_ids` are
- * undefined. Therefore, clients should provide a target ID instead of relying
- * on the server to assign one.
- * If `target_id` is non-zero, there must not be an existing active target on
- * this stream with the same ID.
- * @type bool $once
- * If the target should be removed once it is current and consistent.
- * @type \Google\Protobuf\Int32Value $expected_count
- * The number of documents that last matched the query at the resume token or
- * read time.
- * This value is only relevant when a `resume_type` is provided. This value
- * being present and greater than zero signals that the client wants
- * `ExistenceFilter.unchanged_names` to be included in the response.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A target specified by a query.
- *
- * Generated from protobuf field .google.firestore.v1.Target.QueryTarget query = 2;
- * @return \Google\Cloud\Firestore\V1\Target\QueryTarget|null
- */
- public function getQuery()
- {
- return $this->readOneof(2);
- }
-
- public function hasQuery()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * A target specified by a query.
- *
- * Generated from protobuf field .google.firestore.v1.Target.QueryTarget query = 2;
- * @param \Google\Cloud\Firestore\V1\Target\QueryTarget $var
- * @return $this
- */
- public function setQuery($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Target\QueryTarget::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * A target specified by a set of document names.
- *
- * Generated from protobuf field .google.firestore.v1.Target.DocumentsTarget documents = 3;
- * @return \Google\Cloud\Firestore\V1\Target\DocumentsTarget|null
- */
- public function getDocuments()
- {
- return $this->readOneof(3);
- }
-
- public function hasDocuments()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * A target specified by a set of document names.
- *
- * Generated from protobuf field .google.firestore.v1.Target.DocumentsTarget documents = 3;
- * @param \Google\Cloud\Firestore\V1\Target\DocumentsTarget $var
- * @return $this
- */
- public function setDocuments($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Target\DocumentsTarget::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * A resume token from a prior
- * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
- * Using a resume token with a different target is unsupported and may fail.
- *
- * Generated from protobuf field bytes resume_token = 4;
- * @return string
- */
- public function getResumeToken()
- {
- return $this->readOneof(4);
- }
-
- public function hasResumeToken()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * A resume token from a prior
- * [TargetChange][google.firestore.v1.TargetChange] for an identical target.
- * Using a resume token with a different target is unsupported and may fail.
- *
- * Generated from protobuf field bytes resume_token = 4;
- * @param string $var
- * @return $this
- */
- public function setResumeToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * Start listening after a specific `read_time`.
- * The client must know the state of matching documents at this time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 11;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->readOneof(11);
- }
-
- public function hasReadTime()
- {
- return $this->hasOneof(11);
- }
-
- /**
- * Start listening after a specific `read_time`.
- * The client must know the state of matching documents at this time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 11;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->writeOneof(11, $var);
-
- return $this;
- }
-
- /**
- * The target ID that identifies the target on the stream. Must be a positive
- * number and non-zero.
- * If `target_id` is 0 (or unspecified), the server will assign an ID for this
- * target and return that in a `TargetChange::ADD` event. Once a target with
- * `target_id=0` is added, all subsequent targets must also have
- * `target_id=0`. If an `AddTarget` request with `target_id != 0` is
- * sent to the server after a target with `target_id=0` is added, the server
- * will immediately send a response with a `TargetChange::Remove` event.
- * Note that if the client sends multiple `AddTarget` requests
- * without an ID, the order of IDs returned in `TargetChage.target_ids` are
- * undefined. Therefore, clients should provide a target ID instead of relying
- * on the server to assign one.
- * If `target_id` is non-zero, there must not be an existing active target on
- * this stream with the same ID.
- *
- * Generated from protobuf field int32 target_id = 5;
- * @return int
- */
- public function getTargetId()
- {
- return $this->target_id;
- }
-
- /**
- * The target ID that identifies the target on the stream. Must be a positive
- * number and non-zero.
- * If `target_id` is 0 (or unspecified), the server will assign an ID for this
- * target and return that in a `TargetChange::ADD` event. Once a target with
- * `target_id=0` is added, all subsequent targets must also have
- * `target_id=0`. If an `AddTarget` request with `target_id != 0` is
- * sent to the server after a target with `target_id=0` is added, the server
- * will immediately send a response with a `TargetChange::Remove` event.
- * Note that if the client sends multiple `AddTarget` requests
- * without an ID, the order of IDs returned in `TargetChage.target_ids` are
- * undefined. Therefore, clients should provide a target ID instead of relying
- * on the server to assign one.
- * If `target_id` is non-zero, there must not be an existing active target on
- * this stream with the same ID.
- *
- * Generated from protobuf field int32 target_id = 5;
- * @param int $var
- * @return $this
- */
- public function setTargetId($var)
- {
- GPBUtil::checkInt32($var);
- $this->target_id = $var;
-
- return $this;
- }
-
- /**
- * If the target should be removed once it is current and consistent.
- *
- * Generated from protobuf field bool once = 6;
- * @return bool
- */
- public function getOnce()
- {
- return $this->once;
- }
-
- /**
- * If the target should be removed once it is current and consistent.
- *
- * Generated from protobuf field bool once = 6;
- * @param bool $var
- * @return $this
- */
- public function setOnce($var)
- {
- GPBUtil::checkBool($var);
- $this->once = $var;
-
- return $this;
- }
-
- /**
- * The number of documents that last matched the query at the resume token or
- * read time.
- * This value is only relevant when a `resume_type` is provided. This value
- * being present and greater than zero signals that the client wants
- * `ExistenceFilter.unchanged_names` to be included in the response.
- *
- * Generated from protobuf field .google.protobuf.Int32Value expected_count = 12;
- * @return \Google\Protobuf\Int32Value|null
- */
- public function getExpectedCount()
- {
- return $this->expected_count;
- }
-
- public function hasExpectedCount()
- {
- return isset($this->expected_count);
- }
-
- public function clearExpectedCount()
- {
- unset($this->expected_count);
- }
-
- /**
- * Returns the unboxed value from getExpectedCount()
-
- * The number of documents that last matched the query at the resume token or
- * read time.
- * This value is only relevant when a `resume_type` is provided. This value
- * being present and greater than zero signals that the client wants
- * `ExistenceFilter.unchanged_names` to be included in the response.
- *
- * Generated from protobuf field .google.protobuf.Int32Value expected_count = 12;
- * @return int|null
- */
- public function getExpectedCountUnwrapped()
- {
- return $this->readWrapperValue("expected_count");
- }
-
- /**
- * The number of documents that last matched the query at the resume token or
- * read time.
- * This value is only relevant when a `resume_type` is provided. This value
- * being present and greater than zero signals that the client wants
- * `ExistenceFilter.unchanged_names` to be included in the response.
- *
- * Generated from protobuf field .google.protobuf.Int32Value expected_count = 12;
- * @param \Google\Protobuf\Int32Value $var
- * @return $this
- */
- public function setExpectedCount($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class);
- $this->expected_count = $var;
-
- return $this;
- }
-
- /**
- * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.
-
- * The number of documents that last matched the query at the resume token or
- * read time.
- * This value is only relevant when a `resume_type` is provided. This value
- * being present and greater than zero signals that the client wants
- * `ExistenceFilter.unchanged_names` to be included in the response.
- *
- * Generated from protobuf field .google.protobuf.Int32Value expected_count = 12;
- * @param int|null $var
- * @return $this
- */
- public function setExpectedCountUnwrapped($var)
- {
- $this->writeWrapperValue("expected_count", $var);
- return $this;}
-
- /**
- * @return string
- */
- public function getTargetType()
- {
- return $this->whichOneof("target_type");
- }
-
- /**
- * @return string
- */
- public function getResumeType()
- {
- return $this->whichOneof("resume_type");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Target/DocumentsTarget.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Target/DocumentsTarget.php
deleted file mode 100644
index b96562c648cf..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Target/DocumentsTarget.php
+++ /dev/null
@@ -1,82 +0,0 @@
-google.firestore.v1.Target.DocumentsTarget
- */
-class DocumentsTarget extends \Google\Protobuf\Internal\Message
-{
- /**
- * The names of the documents to retrieve. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * The request will fail if any of the document is not a child resource of
- * the given `database`. Duplicate names will be elided.
- *
- * Generated from protobuf field repeated string documents = 2;
- */
- private $documents;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $documents
- * The names of the documents to retrieve. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * The request will fail if any of the document is not a child resource of
- * the given `database`. Duplicate names will be elided.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The names of the documents to retrieve. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * The request will fail if any of the document is not a child resource of
- * the given `database`. Duplicate names will be elided.
- *
- * Generated from protobuf field repeated string documents = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getDocuments()
- {
- return $this->documents;
- }
-
- /**
- * The names of the documents to retrieve. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * The request will fail if any of the document is not a child resource of
- * the given `database`. Duplicate names will be elided.
- *
- * Generated from protobuf field repeated string documents = 2;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setDocuments($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->documents = $arr;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(DocumentsTarget::class, \Google\Cloud\Firestore\V1\Target_DocumentsTarget::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Target/QueryTarget.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Target/QueryTarget.php
deleted file mode 100644
index 56c02faeb030..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Target/QueryTarget.php
+++ /dev/null
@@ -1,132 +0,0 @@
-google.firestore.v1.Target.QueryTarget
- */
-class QueryTarget extends \Google\Protobuf\Internal\Message
-{
- /**
- * The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1;
- */
- protected $parent = '';
- protected $query_type;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- * @type \Google\Cloud\Firestore\V1\StructuredQuery $structured_query
- * A structured query.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1;
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- *
- * Generated from protobuf field string parent = 1;
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * A structured query.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery structured_query = 2;
- * @return \Google\Cloud\Firestore\V1\StructuredQuery|null
- */
- public function getStructuredQuery()
- {
- return $this->readOneof(2);
- }
-
- public function hasStructuredQuery()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * A structured query.
- *
- * Generated from protobuf field .google.firestore.v1.StructuredQuery structured_query = 2;
- * @param \Google\Cloud\Firestore\V1\StructuredQuery $var
- * @return $this
- */
- public function setStructuredQuery($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\StructuredQuery::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getQueryType()
- {
- return $this->whichOneof("query_type");
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(QueryTarget::class, \Google\Cloud\Firestore\V1\Target_QueryTarget::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TargetChange.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TargetChange.php
deleted file mode 100644
index 7916d0c40af0..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TargetChange.php
+++ /dev/null
@@ -1,267 +0,0 @@
-google.firestore.v1.TargetChange
- */
-class TargetChange extends \Google\Protobuf\Internal\Message
-{
- /**
- * The type of change that occurred.
- *
- * Generated from protobuf field .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
- */
- protected $target_change_type = 0;
- /**
- * The target IDs of targets that have changed.
- * If empty, the change applies to all targets.
- * The order of the target IDs is not defined.
- *
- * Generated from protobuf field repeated int32 target_ids = 2;
- */
- private $target_ids;
- /**
- * The error that resulted in this change, if applicable.
- *
- * Generated from protobuf field .google.rpc.Status cause = 3;
- */
- protected $cause = null;
- /**
- * A token that can be used to resume the stream for the given `target_ids`,
- * or all targets if `target_ids` is empty.
- * Not set on every target change.
- *
- * Generated from protobuf field bytes resume_token = 4;
- */
- protected $resume_token = '';
- /**
- * The consistent `read_time` for the given `target_ids` (omitted when the
- * target_ids are not at a consistent snapshot).
- * The stream is guaranteed to send a `read_time` with `target_ids` empty
- * whenever the entire stream reaches a new consistent snapshot. ADD,
- * CURRENT, and RESET messages are guaranteed to (eventually) result in a
- * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
- * For a given stream, `read_time` is guaranteed to be monotonically
- * increasing.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 6;
- */
- protected $read_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $target_change_type
- * The type of change that occurred.
- * @type array|\Google\Protobuf\Internal\RepeatedField $target_ids
- * The target IDs of targets that have changed.
- * If empty, the change applies to all targets.
- * The order of the target IDs is not defined.
- * @type \Google\Rpc\Status $cause
- * The error that resulted in this change, if applicable.
- * @type string $resume_token
- * A token that can be used to resume the stream for the given `target_ids`,
- * or all targets if `target_ids` is empty.
- * Not set on every target change.
- * @type \Google\Protobuf\Timestamp $read_time
- * The consistent `read_time` for the given `target_ids` (omitted when the
- * target_ids are not at a consistent snapshot).
- * The stream is guaranteed to send a `read_time` with `target_ids` empty
- * whenever the entire stream reaches a new consistent snapshot. ADD,
- * CURRENT, and RESET messages are guaranteed to (eventually) result in a
- * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
- * For a given stream, `read_time` is guaranteed to be monotonically
- * increasing.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The type of change that occurred.
- *
- * Generated from protobuf field .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
- * @return int
- */
- public function getTargetChangeType()
- {
- return $this->target_change_type;
- }
-
- /**
- * The type of change that occurred.
- *
- * Generated from protobuf field .google.firestore.v1.TargetChange.TargetChangeType target_change_type = 1;
- * @param int $var
- * @return $this
- */
- public function setTargetChangeType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Firestore\V1\TargetChange\TargetChangeType::class);
- $this->target_change_type = $var;
-
- return $this;
- }
-
- /**
- * The target IDs of targets that have changed.
- * If empty, the change applies to all targets.
- * The order of the target IDs is not defined.
- *
- * Generated from protobuf field repeated int32 target_ids = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTargetIds()
- {
- return $this->target_ids;
- }
-
- /**
- * The target IDs of targets that have changed.
- * If empty, the change applies to all targets.
- * The order of the target IDs is not defined.
- *
- * Generated from protobuf field repeated int32 target_ids = 2;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTargetIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32);
- $this->target_ids = $arr;
-
- return $this;
- }
-
- /**
- * The error that resulted in this change, if applicable.
- *
- * Generated from protobuf field .google.rpc.Status cause = 3;
- * @return \Google\Rpc\Status|null
- */
- public function getCause()
- {
- return $this->cause;
- }
-
- public function hasCause()
- {
- return isset($this->cause);
- }
-
- public function clearCause()
- {
- unset($this->cause);
- }
-
- /**
- * The error that resulted in this change, if applicable.
- *
- * Generated from protobuf field .google.rpc.Status cause = 3;
- * @param \Google\Rpc\Status $var
- * @return $this
- */
- public function setCause($var)
- {
- GPBUtil::checkMessage($var, \Google\Rpc\Status::class);
- $this->cause = $var;
-
- return $this;
- }
-
- /**
- * A token that can be used to resume the stream for the given `target_ids`,
- * or all targets if `target_ids` is empty.
- * Not set on every target change.
- *
- * Generated from protobuf field bytes resume_token = 4;
- * @return string
- */
- public function getResumeToken()
- {
- return $this->resume_token;
- }
-
- /**
- * A token that can be used to resume the stream for the given `target_ids`,
- * or all targets if `target_ids` is empty.
- * Not set on every target change.
- *
- * Generated from protobuf field bytes resume_token = 4;
- * @param string $var
- * @return $this
- */
- public function setResumeToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->resume_token = $var;
-
- return $this;
- }
-
- /**
- * The consistent `read_time` for the given `target_ids` (omitted when the
- * target_ids are not at a consistent snapshot).
- * The stream is guaranteed to send a `read_time` with `target_ids` empty
- * whenever the entire stream reaches a new consistent snapshot. ADD,
- * CURRENT, and RESET messages are guaranteed to (eventually) result in a
- * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
- * For a given stream, `read_time` is guaranteed to be monotonically
- * increasing.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 6;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->read_time;
- }
-
- public function hasReadTime()
- {
- return isset($this->read_time);
- }
-
- public function clearReadTime()
- {
- unset($this->read_time);
- }
-
- /**
- * The consistent `read_time` for the given `target_ids` (omitted when the
- * target_ids are not at a consistent snapshot).
- * The stream is guaranteed to send a `read_time` with `target_ids` empty
- * whenever the entire stream reaches a new consistent snapshot. ADD,
- * CURRENT, and RESET messages are guaranteed to (eventually) result in a
- * new consistent snapshot (while NO_CHANGE and REMOVE messages are not).
- * For a given stream, `read_time` is guaranteed to be monotonically
- * increasing.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 6;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->read_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TargetChange/TargetChangeType.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TargetChange/TargetChangeType.php
deleted file mode 100644
index 23694a75db2e..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TargetChange/TargetChangeType.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.firestore.v1.TargetChange.TargetChangeType
- */
-class TargetChangeType
-{
- /**
- * No change has occurred. Used only to send an updated `resume_token`.
- *
- * Generated from protobuf enum NO_CHANGE = 0;
- */
- const NO_CHANGE = 0;
- /**
- * The targets have been added.
- *
- * Generated from protobuf enum ADD = 1;
- */
- const ADD = 1;
- /**
- * The targets have been removed.
- *
- * Generated from protobuf enum REMOVE = 2;
- */
- const REMOVE = 2;
- /**
- * The targets reflect all changes committed before the targets were added
- * to the stream.
- * This will be sent after or with a `read_time` that is greater than or
- * equal to the time at which the targets were added.
- * Listeners can wait for this change if read-after-write semantics
- * are desired.
- *
- * Generated from protobuf enum CURRENT = 3;
- */
- const CURRENT = 3;
- /**
- * The targets have been reset, and a new initial state for the targets
- * will be returned in subsequent changes.
- * After the initial state is complete, `CURRENT` will be returned even
- * if the target was previously indicated to be `CURRENT`.
- *
- * Generated from protobuf enum RESET = 4;
- */
- const RESET = 4;
-
- private static $valueToName = [
- self::NO_CHANGE => 'NO_CHANGE',
- self::ADD => 'ADD',
- self::REMOVE => 'REMOVE',
- self::CURRENT => 'CURRENT',
- self::RESET => 'RESET',
- ];
-
- 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(TargetChangeType::class, \Google\Cloud\Firestore\V1\TargetChange_TargetChangeType::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TransactionOptions.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TransactionOptions.php
deleted file mode 100644
index 07498e58f517..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TransactionOptions.php
+++ /dev/null
@@ -1,108 +0,0 @@
-google.firestore.v1.TransactionOptions
- */
-class TransactionOptions extends \Google\Protobuf\Internal\Message
-{
- protected $mode;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\TransactionOptions\PBReadOnly $read_only
- * The transaction can only be used for read operations.
- * @type \Google\Cloud\Firestore\V1\TransactionOptions\ReadWrite $read_write
- * The transaction can be used for both read and write operations.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Common::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The transaction can only be used for read operations.
- *
- * Generated from protobuf field .google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
- * @return \Google\Cloud\Firestore\V1\TransactionOptions\PBReadOnly|null
- */
- public function getReadOnly()
- {
- return $this->readOneof(2);
- }
-
- public function hasReadOnly()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * The transaction can only be used for read operations.
- *
- * Generated from protobuf field .google.firestore.v1.TransactionOptions.ReadOnly read_only = 2;
- * @param \Google\Cloud\Firestore\V1\TransactionOptions\PBReadOnly $var
- * @return $this
- */
- public function setReadOnly($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\TransactionOptions\PBReadOnly::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * The transaction can be used for both read and write operations.
- *
- * Generated from protobuf field .google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
- * @return \Google\Cloud\Firestore\V1\TransactionOptions\ReadWrite|null
- */
- public function getReadWrite()
- {
- return $this->readOneof(3);
- }
-
- public function hasReadWrite()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * The transaction can be used for both read and write operations.
- *
- * Generated from protobuf field .google.firestore.v1.TransactionOptions.ReadWrite read_write = 3;
- * @param \Google\Cloud\Firestore\V1\TransactionOptions\ReadWrite $var
- * @return $this
- */
- public function setReadWrite($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\TransactionOptions\ReadWrite::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getMode()
- {
- return $this->whichOneof("mode");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TransactionOptions/PBReadOnly.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TransactionOptions/PBReadOnly.php
deleted file mode 100644
index 7b55ad3ed4fb..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TransactionOptions/PBReadOnly.php
+++ /dev/null
@@ -1,90 +0,0 @@
-google.firestore.v1.TransactionOptions.ReadOnly
- */
-class PBReadOnly extends \Google\Protobuf\Internal\Message
-{
- protected $consistency_selector;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $read_time
- * Reads documents at the given time.
- * This must be a microsecond precision timestamp within the past one
- * hour, or if Point-in-Time Recovery is enabled, can additionally be a
- * whole minute timestamp within the past 7 days.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Common::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Reads documents at the given time.
- * This must be a microsecond precision timestamp within the past one
- * hour, or if Point-in-Time Recovery is enabled, can additionally be a
- * whole minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 2;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReadTime()
- {
- return $this->readOneof(2);
- }
-
- public function hasReadTime()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Reads documents at the given time.
- * This must be a microsecond precision timestamp within the past one
- * hour, or if Point-in-Time Recovery is enabled, can additionally be a
- * whole minute timestamp within the past 7 days.
- *
- * Generated from protobuf field .google.protobuf.Timestamp read_time = 2;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReadTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getConsistencySelector()
- {
- return $this->whichOneof("consistency_selector");
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(PBReadOnly::class, \Google\Cloud\Firestore\V1\TransactionOptions_ReadOnly::class);
-
-// Adding a class alias for backwards compatibility with the "readonly" keyword.
-class_alias(PBReadOnly::class, __NAMESPACE__ . '\ReadOnly');
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TransactionOptions/ReadOnly.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TransactionOptions/ReadOnly.php
deleted file mode 100644
index cb227a9fbefb..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/TransactionOptions/ReadOnly.php
+++ /dev/null
@@ -1,9 +0,0 @@
-google.firestore.v1.TransactionOptions.ReadWrite
- */
-class ReadWrite extends \Google\Protobuf\Internal\Message
-{
- /**
- * An optional transaction to retry.
- *
- * Generated from protobuf field bytes retry_transaction = 1;
- */
- protected $retry_transaction = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $retry_transaction
- * An optional transaction to retry.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Common::initOnce();
- parent::__construct($data);
- }
-
- /**
- * An optional transaction to retry.
- *
- * Generated from protobuf field bytes retry_transaction = 1;
- * @return string
- */
- public function getRetryTransaction()
- {
- return $this->retry_transaction;
- }
-
- /**
- * An optional transaction to retry.
- *
- * Generated from protobuf field bytes retry_transaction = 1;
- * @param string $var
- * @return $this
- */
- public function setRetryTransaction($var)
- {
- GPBUtil::checkString($var, False);
- $this->retry_transaction = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(ReadWrite::class, \Google\Cloud\Firestore\V1\TransactionOptions_ReadWrite::class);
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/UpdateDocumentRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/UpdateDocumentRequest.php
deleted file mode 100644
index ddc9406eaba7..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/UpdateDocumentRequest.php
+++ /dev/null
@@ -1,268 +0,0 @@
-google.firestore.v1.UpdateDocumentRequest
- */
-class UpdateDocumentRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The updated document.
- * Creates the document if it does not already exist.
- *
- * Generated from protobuf field .google.firestore.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $document = null;
- /**
- * The fields to update.
- * None of the field paths in the mask may contain a reserved name.
- * If the document exists on the server and has fields not referenced in the
- * mask, they are left unchanged.
- * Fields referenced in the mask, but not present in the input document, are
- * deleted from the document on the server.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask update_mask = 2;
- */
- protected $update_mask = null;
- /**
- * The fields to return. If not set, returns all fields.
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 3;
- */
- protected $mask = null;
- /**
- * An optional precondition on the document.
- * The request will fail if this is set and not met by the target document.
- *
- * Generated from protobuf field .google.firestore.v1.Precondition current_document = 4;
- */
- protected $current_document = null;
-
- /**
- * @param \Google\Cloud\Firestore\V1\Document $document Required. The updated document.
- * Creates the document if it does not already exist.
- * @param \Google\Cloud\Firestore\V1\DocumentMask $updateMask The fields to update.
- * None of the field paths in the mask may contain a reserved name.
- *
- * If the document exists on the server and has fields not referenced in the
- * mask, they are left unchanged.
- * Fields referenced in the mask, but not present in the input document, are
- * deleted from the document on the server.
- *
- * @return \Google\Cloud\Firestore\V1\UpdateDocumentRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\Firestore\V1\Document $document, \Google\Cloud\Firestore\V1\DocumentMask $updateMask): self
- {
- return (new self())
- ->setDocument($document)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\Document $document
- * Required. The updated document.
- * Creates the document if it does not already exist.
- * @type \Google\Cloud\Firestore\V1\DocumentMask $update_mask
- * The fields to update.
- * None of the field paths in the mask may contain a reserved name.
- * If the document exists on the server and has fields not referenced in the
- * mask, they are left unchanged.
- * Fields referenced in the mask, but not present in the input document, are
- * deleted from the document on the server.
- * @type \Google\Cloud\Firestore\V1\DocumentMask $mask
- * The fields to return. If not set, returns all fields.
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- * @type \Google\Cloud\Firestore\V1\Precondition $current_document
- * An optional precondition on the document.
- * The request will fail if this is set and not met by the target document.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The updated document.
- * Creates the document if it does not already exist.
- *
- * Generated from protobuf field .google.firestore.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Firestore\V1\Document|null
- */
- public function getDocument()
- {
- return $this->document;
- }
-
- public function hasDocument()
- {
- return isset($this->document);
- }
-
- public function clearDocument()
- {
- unset($this->document);
- }
-
- /**
- * Required. The updated document.
- * Creates the document if it does not already exist.
- *
- * Generated from protobuf field .google.firestore.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Firestore\V1\Document $var
- * @return $this
- */
- public function setDocument($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Document::class);
- $this->document = $var;
-
- return $this;
- }
-
- /**
- * The fields to update.
- * None of the field paths in the mask may contain a reserved name.
- * If the document exists on the server and has fields not referenced in the
- * mask, they are left unchanged.
- * Fields referenced in the mask, but not present in the input document, are
- * deleted from the document on the server.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask update_mask = 2;
- * @return \Google\Cloud\Firestore\V1\DocumentMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * The fields to update.
- * None of the field paths in the mask may contain a reserved name.
- * If the document exists on the server and has fields not referenced in the
- * mask, they are left unchanged.
- * Fields referenced in the mask, but not present in the input document, are
- * deleted from the document on the server.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask update_mask = 2;
- * @param \Google\Cloud\Firestore\V1\DocumentMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\DocumentMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
- /**
- * The fields to return. If not set, returns all fields.
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 3;
- * @return \Google\Cloud\Firestore\V1\DocumentMask|null
- */
- public function getMask()
- {
- return $this->mask;
- }
-
- public function hasMask()
- {
- return isset($this->mask);
- }
-
- public function clearMask()
- {
- unset($this->mask);
- }
-
- /**
- * The fields to return. If not set, returns all fields.
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask mask = 3;
- * @param \Google\Cloud\Firestore\V1\DocumentMask $var
- * @return $this
- */
- public function setMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\DocumentMask::class);
- $this->mask = $var;
-
- return $this;
- }
-
- /**
- * An optional precondition on the document.
- * The request will fail if this is set and not met by the target document.
- *
- * Generated from protobuf field .google.firestore.v1.Precondition current_document = 4;
- * @return \Google\Cloud\Firestore\V1\Precondition|null
- */
- public function getCurrentDocument()
- {
- return $this->current_document;
- }
-
- public function hasCurrentDocument()
- {
- return isset($this->current_document);
- }
-
- public function clearCurrentDocument()
- {
- unset($this->current_document);
- }
-
- /**
- * An optional precondition on the document.
- * The request will fail if this is set and not met by the target document.
- *
- * Generated from protobuf field .google.firestore.v1.Precondition current_document = 4;
- * @param \Google\Cloud\Firestore\V1\Precondition $var
- * @return $this
- */
- public function setCurrentDocument($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Precondition::class);
- $this->current_document = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Value.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Value.php
deleted file mode 100644
index fbfb290bbe78..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Value.php
+++ /dev/null
@@ -1,435 +0,0 @@
-google.firestore.v1.Value
- */
-class Value extends \Google\Protobuf\Internal\Message
-{
- protected $value_type;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $null_value
- * A null value.
- * @type bool $boolean_value
- * A boolean value.
- * @type int|string $integer_value
- * An integer value.
- * @type float $double_value
- * A double value.
- * @type \Google\Protobuf\Timestamp $timestamp_value
- * A timestamp value.
- * Precise only to microseconds. When stored, any additional precision is
- * rounded down.
- * @type string $string_value
- * A string value.
- * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
- * Only the first 1,500 bytes of the UTF-8 representation are considered by
- * queries.
- * @type string $bytes_value
- * A bytes value.
- * Must not exceed 1 MiB - 89 bytes.
- * Only the first 1,500 bytes are considered by queries.
- * @type string $reference_value
- * A reference to a document. For example:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * @type \Google\Type\LatLng $geo_point_value
- * A geo point value representing a point on the surface of Earth.
- * @type \Google\Cloud\Firestore\V1\ArrayValue $array_value
- * An array value.
- * Cannot directly contain another array value, though can contain a
- * map which contains another array.
- * @type \Google\Cloud\Firestore\V1\MapValue $map_value
- * A map value.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Document::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A null value.
- *
- * Generated from protobuf field .google.protobuf.NullValue null_value = 11;
- * @return int
- */
- public function getNullValue()
- {
- return $this->readOneof(11);
- }
-
- public function hasNullValue()
- {
- return $this->hasOneof(11);
- }
-
- /**
- * A null value.
- *
- * Generated from protobuf field .google.protobuf.NullValue null_value = 11;
- * @param int $var
- * @return $this
- */
- public function setNullValue($var)
- {
- GPBUtil::checkEnum($var, \Google\Protobuf\NullValue::class);
- $this->writeOneof(11, $var);
-
- return $this;
- }
-
- /**
- * A boolean value.
- *
- * Generated from protobuf field bool boolean_value = 1;
- * @return bool
- */
- public function getBooleanValue()
- {
- return $this->readOneof(1);
- }
-
- public function hasBooleanValue()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * A boolean value.
- *
- * Generated from protobuf field bool boolean_value = 1;
- * @param bool $var
- * @return $this
- */
- public function setBooleanValue($var)
- {
- GPBUtil::checkBool($var);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * An integer value.
- *
- * Generated from protobuf field int64 integer_value = 2;
- * @return int|string
- */
- public function getIntegerValue()
- {
- return $this->readOneof(2);
- }
-
- public function hasIntegerValue()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * An integer value.
- *
- * Generated from protobuf field int64 integer_value = 2;
- * @param int|string $var
- * @return $this
- */
- public function setIntegerValue($var)
- {
- GPBUtil::checkInt64($var);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * A double value.
- *
- * Generated from protobuf field double double_value = 3;
- * @return float
- */
- public function getDoubleValue()
- {
- return $this->readOneof(3);
- }
-
- public function hasDoubleValue()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * A double value.
- *
- * Generated from protobuf field double double_value = 3;
- * @param float $var
- * @return $this
- */
- public function setDoubleValue($var)
- {
- GPBUtil::checkDouble($var);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * A timestamp value.
- * Precise only to microseconds. When stored, any additional precision is
- * rounded down.
- *
- * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 10;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getTimestampValue()
- {
- return $this->readOneof(10);
- }
-
- public function hasTimestampValue()
- {
- return $this->hasOneof(10);
- }
-
- /**
- * A timestamp value.
- * Precise only to microseconds. When stored, any additional precision is
- * rounded down.
- *
- * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 10;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setTimestampValue($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->writeOneof(10, $var);
-
- return $this;
- }
-
- /**
- * A string value.
- * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
- * Only the first 1,500 bytes of the UTF-8 representation are considered by
- * queries.
- *
- * Generated from protobuf field string string_value = 17;
- * @return string
- */
- public function getStringValue()
- {
- return $this->readOneof(17);
- }
-
- public function hasStringValue()
- {
- return $this->hasOneof(17);
- }
-
- /**
- * A string value.
- * The string, represented as UTF-8, must not exceed 1 MiB - 89 bytes.
- * Only the first 1,500 bytes of the UTF-8 representation are considered by
- * queries.
- *
- * Generated from protobuf field string string_value = 17;
- * @param string $var
- * @return $this
- */
- public function setStringValue($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(17, $var);
-
- return $this;
- }
-
- /**
- * A bytes value.
- * Must not exceed 1 MiB - 89 bytes.
- * Only the first 1,500 bytes are considered by queries.
- *
- * Generated from protobuf field bytes bytes_value = 18;
- * @return string
- */
- public function getBytesValue()
- {
- return $this->readOneof(18);
- }
-
- public function hasBytesValue()
- {
- return $this->hasOneof(18);
- }
-
- /**
- * A bytes value.
- * Must not exceed 1 MiB - 89 bytes.
- * Only the first 1,500 bytes are considered by queries.
- *
- * Generated from protobuf field bytes bytes_value = 18;
- * @param string $var
- * @return $this
- */
- public function setBytesValue($var)
- {
- GPBUtil::checkString($var, False);
- $this->writeOneof(18, $var);
-
- return $this;
- }
-
- /**
- * A reference to a document. For example:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string reference_value = 5;
- * @return string
- */
- public function getReferenceValue()
- {
- return $this->readOneof(5);
- }
-
- public function hasReferenceValue()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * A reference to a document. For example:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string reference_value = 5;
- * @param string $var
- * @return $this
- */
- public function setReferenceValue($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * A geo point value representing a point on the surface of Earth.
- *
- * Generated from protobuf field .google.type.LatLng geo_point_value = 8;
- * @return \Google\Type\LatLng|null
- */
- public function getGeoPointValue()
- {
- return $this->readOneof(8);
- }
-
- public function hasGeoPointValue()
- {
- return $this->hasOneof(8);
- }
-
- /**
- * A geo point value representing a point on the surface of Earth.
- *
- * Generated from protobuf field .google.type.LatLng geo_point_value = 8;
- * @param \Google\Type\LatLng $var
- * @return $this
- */
- public function setGeoPointValue($var)
- {
- GPBUtil::checkMessage($var, \Google\Type\LatLng::class);
- $this->writeOneof(8, $var);
-
- return $this;
- }
-
- /**
- * An array value.
- * Cannot directly contain another array value, though can contain a
- * map which contains another array.
- *
- * Generated from protobuf field .google.firestore.v1.ArrayValue array_value = 9;
- * @return \Google\Cloud\Firestore\V1\ArrayValue|null
- */
- public function getArrayValue()
- {
- return $this->readOneof(9);
- }
-
- public function hasArrayValue()
- {
- return $this->hasOneof(9);
- }
-
- /**
- * An array value.
- * Cannot directly contain another array value, though can contain a
- * map which contains another array.
- *
- * Generated from protobuf field .google.firestore.v1.ArrayValue array_value = 9;
- * @param \Google\Cloud\Firestore\V1\ArrayValue $var
- * @return $this
- */
- public function setArrayValue($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\ArrayValue::class);
- $this->writeOneof(9, $var);
-
- return $this;
- }
-
- /**
- * A map value.
- *
- * Generated from protobuf field .google.firestore.v1.MapValue map_value = 6;
- * @return \Google\Cloud\Firestore\V1\MapValue|null
- */
- public function getMapValue()
- {
- return $this->readOneof(6);
- }
-
- public function hasMapValue()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * A map value.
- *
- * Generated from protobuf field .google.firestore.v1.MapValue map_value = 6;
- * @param \Google\Cloud\Firestore\V1\MapValue $var
- * @return $this
- */
- public function setMapValue($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\MapValue::class);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getValueType()
- {
- return $this->whichOneof("value_type");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Write.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Write.php
deleted file mode 100644
index 67920d9f8a1a..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/Write.php
+++ /dev/null
@@ -1,314 +0,0 @@
-google.firestore.v1.Write
- */
-class Write extends \Google\Protobuf\Internal\Message
-{
- /**
- * The fields to update in this write.
- * This field can be set only when the operation is `update`.
- * If the mask is not set for an `update` and the document exists, any
- * existing data will be overwritten.
- * If the mask is set and the document on the server has fields not covered by
- * the mask, they are left unchanged.
- * Fields referenced in the mask, but not present in the input document, are
- * deleted from the document on the server.
- * The field paths in this mask must not contain a reserved field name.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask update_mask = 3;
- */
- protected $update_mask = null;
- /**
- * The transforms to perform after update.
- * This field can be set only when the operation is `update`. If present, this
- * write is equivalent to performing `update` and `transform` to the same
- * document atomically and in order.
- *
- * Generated from protobuf field repeated .google.firestore.v1.DocumentTransform.FieldTransform update_transforms = 7;
- */
- private $update_transforms;
- /**
- * An optional precondition on the document.
- * The write will fail if this is set and not met by the target document.
- *
- * Generated from protobuf field .google.firestore.v1.Precondition current_document = 4;
- */
- protected $current_document = null;
- protected $operation;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Firestore\V1\Document $update
- * A document to write.
- * @type string $delete
- * A document name to delete. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * @type \Google\Cloud\Firestore\V1\DocumentTransform $transform
- * Applies a transformation to a document.
- * @type \Google\Cloud\Firestore\V1\DocumentMask $update_mask
- * The fields to update in this write.
- * This field can be set only when the operation is `update`.
- * If the mask is not set for an `update` and the document exists, any
- * existing data will be overwritten.
- * If the mask is set and the document on the server has fields not covered by
- * the mask, they are left unchanged.
- * Fields referenced in the mask, but not present in the input document, are
- * deleted from the document on the server.
- * The field paths in this mask must not contain a reserved field name.
- * @type array<\Google\Cloud\Firestore\V1\DocumentTransform\FieldTransform>|\Google\Protobuf\Internal\RepeatedField $update_transforms
- * The transforms to perform after update.
- * This field can be set only when the operation is `update`. If present, this
- * write is equivalent to performing `update` and `transform` to the same
- * document atomically and in order.
- * @type \Google\Cloud\Firestore\V1\Precondition $current_document
- * An optional precondition on the document.
- * The write will fail if this is set and not met by the target document.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Write::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A document to write.
- *
- * Generated from protobuf field .google.firestore.v1.Document update = 1;
- * @return \Google\Cloud\Firestore\V1\Document|null
- */
- public function getUpdate()
- {
- return $this->readOneof(1);
- }
-
- public function hasUpdate()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * A document to write.
- *
- * Generated from protobuf field .google.firestore.v1.Document update = 1;
- * @param \Google\Cloud\Firestore\V1\Document $var
- * @return $this
- */
- public function setUpdate($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Document::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * A document name to delete. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string delete = 2;
- * @return string
- */
- public function getDelete()
- {
- return $this->readOneof(2);
- }
-
- public function hasDelete()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * A document name to delete. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * Generated from protobuf field string delete = 2;
- * @param string $var
- * @return $this
- */
- public function setDelete($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * Applies a transformation to a document.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentTransform transform = 6;
- * @return \Google\Cloud\Firestore\V1\DocumentTransform|null
- */
- public function getTransform()
- {
- return $this->readOneof(6);
- }
-
- public function hasTransform()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * Applies a transformation to a document.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentTransform transform = 6;
- * @param \Google\Cloud\Firestore\V1\DocumentTransform $var
- * @return $this
- */
- public function setTransform($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\DocumentTransform::class);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * The fields to update in this write.
- * This field can be set only when the operation is `update`.
- * If the mask is not set for an `update` and the document exists, any
- * existing data will be overwritten.
- * If the mask is set and the document on the server has fields not covered by
- * the mask, they are left unchanged.
- * Fields referenced in the mask, but not present in the input document, are
- * deleted from the document on the server.
- * The field paths in this mask must not contain a reserved field name.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask update_mask = 3;
- * @return \Google\Cloud\Firestore\V1\DocumentMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * The fields to update in this write.
- * This field can be set only when the operation is `update`.
- * If the mask is not set for an `update` and the document exists, any
- * existing data will be overwritten.
- * If the mask is set and the document on the server has fields not covered by
- * the mask, they are left unchanged.
- * Fields referenced in the mask, but not present in the input document, are
- * deleted from the document on the server.
- * The field paths in this mask must not contain a reserved field name.
- *
- * Generated from protobuf field .google.firestore.v1.DocumentMask update_mask = 3;
- * @param \Google\Cloud\Firestore\V1\DocumentMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\DocumentMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
- /**
- * The transforms to perform after update.
- * This field can be set only when the operation is `update`. If present, this
- * write is equivalent to performing `update` and `transform` to the same
- * document atomically and in order.
- *
- * Generated from protobuf field repeated .google.firestore.v1.DocumentTransform.FieldTransform update_transforms = 7;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUpdateTransforms()
- {
- return $this->update_transforms;
- }
-
- /**
- * The transforms to perform after update.
- * This field can be set only when the operation is `update`. If present, this
- * write is equivalent to performing `update` and `transform` to the same
- * document atomically and in order.
- *
- * Generated from protobuf field repeated .google.firestore.v1.DocumentTransform.FieldTransform update_transforms = 7;
- * @param array<\Google\Cloud\Firestore\V1\DocumentTransform\FieldTransform>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUpdateTransforms($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\DocumentTransform\FieldTransform::class);
- $this->update_transforms = $arr;
-
- return $this;
- }
-
- /**
- * An optional precondition on the document.
- * The write will fail if this is set and not met by the target document.
- *
- * Generated from protobuf field .google.firestore.v1.Precondition current_document = 4;
- * @return \Google\Cloud\Firestore\V1\Precondition|null
- */
- public function getCurrentDocument()
- {
- return $this->current_document;
- }
-
- public function hasCurrentDocument()
- {
- return isset($this->current_document);
- }
-
- public function clearCurrentDocument()
- {
- unset($this->current_document);
- }
-
- /**
- * An optional precondition on the document.
- * The write will fail if this is set and not met by the target document.
- *
- * Generated from protobuf field .google.firestore.v1.Precondition current_document = 4;
- * @param \Google\Cloud\Firestore\V1\Precondition $var
- * @return $this
- */
- public function setCurrentDocument($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Firestore\V1\Precondition::class);
- $this->current_document = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getOperation()
- {
- return $this->whichOneof("operation");
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/WriteRequest.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/WriteRequest.php
deleted file mode 100644
index 2bab538a188c..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/WriteRequest.php
+++ /dev/null
@@ -1,277 +0,0 @@
-google.firestore.v1.WriteRequest
- */
-class WriteRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * This is only required in the first message.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $database = '';
- /**
- * The ID of the write stream to resume.
- * This may only be set in the first message. When left empty, a new write
- * stream will be created.
- *
- * Generated from protobuf field string stream_id = 2;
- */
- protected $stream_id = '';
- /**
- * The writes to apply.
- * Always executed atomically and in order.
- * This must be empty on the first request.
- * This may be empty on the last request.
- * This must not be empty on all other requests.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Write writes = 3;
- */
- private $writes;
- /**
- * A stream token that was previously sent by the server.
- * The client should set this field to the token from the most recent
- * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
- * acknowledges that the client has received responses up to this token. After
- * sending this token, earlier tokens may not be used anymore.
- * The server may close the stream if there are too many unacknowledged
- * responses.
- * Leave this field unset when creating a new stream. To resume a stream at
- * a specific point, set this field and the `stream_id` field.
- * Leave this field unset when creating a new stream.
- *
- * Generated from protobuf field bytes stream_token = 4;
- */
- protected $stream_token = '';
- /**
- * Labels associated with this write request.
- *
- * Generated from protobuf field map labels = 5;
- */
- private $labels;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $database
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * This is only required in the first message.
- * @type string $stream_id
- * The ID of the write stream to resume.
- * This may only be set in the first message. When left empty, a new write
- * stream will be created.
- * @type array<\Google\Cloud\Firestore\V1\Write>|\Google\Protobuf\Internal\RepeatedField $writes
- * The writes to apply.
- * Always executed atomically and in order.
- * This must be empty on the first request.
- * This may be empty on the last request.
- * This must not be empty on all other requests.
- * @type string $stream_token
- * A stream token that was previously sent by the server.
- * The client should set this field to the token from the most recent
- * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
- * acknowledges that the client has received responses up to this token. After
- * sending this token, earlier tokens may not be used anymore.
- * The server may close the stream if there are too many unacknowledged
- * responses.
- * Leave this field unset when creating a new stream. To resume a stream at
- * a specific point, set this field and the `stream_id` field.
- * Leave this field unset when creating a new stream.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Labels associated with this write request.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * This is only required in the first message.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getDatabase()
- {
- return $this->database;
- }
-
- /**
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * This is only required in the first message.
- *
- * Generated from protobuf field string database = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setDatabase($var)
- {
- GPBUtil::checkString($var, True);
- $this->database = $var;
-
- return $this;
- }
-
- /**
- * The ID of the write stream to resume.
- * This may only be set in the first message. When left empty, a new write
- * stream will be created.
- *
- * Generated from protobuf field string stream_id = 2;
- * @return string
- */
- public function getStreamId()
- {
- return $this->stream_id;
- }
-
- /**
- * The ID of the write stream to resume.
- * This may only be set in the first message. When left empty, a new write
- * stream will be created.
- *
- * Generated from protobuf field string stream_id = 2;
- * @param string $var
- * @return $this
- */
- public function setStreamId($var)
- {
- GPBUtil::checkString($var, True);
- $this->stream_id = $var;
-
- return $this;
- }
-
- /**
- * The writes to apply.
- * Always executed atomically and in order.
- * This must be empty on the first request.
- * This may be empty on the last request.
- * This must not be empty on all other requests.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Write writes = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getWrites()
- {
- return $this->writes;
- }
-
- /**
- * The writes to apply.
- * Always executed atomically and in order.
- * This must be empty on the first request.
- * This may be empty on the last request.
- * This must not be empty on all other requests.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Write writes = 3;
- * @param array<\Google\Cloud\Firestore\V1\Write>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setWrites($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\Write::class);
- $this->writes = $arr;
-
- return $this;
- }
-
- /**
- * A stream token that was previously sent by the server.
- * The client should set this field to the token from the most recent
- * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
- * acknowledges that the client has received responses up to this token. After
- * sending this token, earlier tokens may not be used anymore.
- * The server may close the stream if there are too many unacknowledged
- * responses.
- * Leave this field unset when creating a new stream. To resume a stream at
- * a specific point, set this field and the `stream_id` field.
- * Leave this field unset when creating a new stream.
- *
- * Generated from protobuf field bytes stream_token = 4;
- * @return string
- */
- public function getStreamToken()
- {
- return $this->stream_token;
- }
-
- /**
- * A stream token that was previously sent by the server.
- * The client should set this field to the token from the most recent
- * [WriteResponse][google.firestore.v1.WriteResponse] it has received. This
- * acknowledges that the client has received responses up to this token. After
- * sending this token, earlier tokens may not be used anymore.
- * The server may close the stream if there are too many unacknowledged
- * responses.
- * Leave this field unset when creating a new stream. To resume a stream at
- * a specific point, set this field and the `stream_id` field.
- * Leave this field unset when creating a new stream.
- *
- * Generated from protobuf field bytes stream_token = 4;
- * @param string $var
- * @return $this
- */
- public function setStreamToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->stream_token = $var;
-
- return $this;
- }
-
- /**
- * Labels associated with this write request.
- *
- * Generated from protobuf field map labels = 5;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Labels associated with this write request.
- *
- * Generated from protobuf field map labels = 5;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/WriteResponse.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/WriteResponse.php
deleted file mode 100644
index da2c8584a0fd..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/WriteResponse.php
+++ /dev/null
@@ -1,203 +0,0 @@
-google.firestore.v1.WriteResponse
- */
-class WriteResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The ID of the stream.
- * Only set on the first message, when a new stream was created.
- *
- * Generated from protobuf field string stream_id = 1;
- */
- protected $stream_id = '';
- /**
- * A token that represents the position of this response in the stream.
- * This can be used by a client to resume the stream at this point.
- * This field is always set.
- *
- * Generated from protobuf field bytes stream_token = 2;
- */
- protected $stream_token = '';
- /**
- * The result of applying the writes.
- * This i-th write result corresponds to the i-th write in the
- * request.
- *
- * Generated from protobuf field repeated .google.firestore.v1.WriteResult write_results = 3;
- */
- private $write_results;
- /**
- * The time at which the commit occurred. Any read with an equal or greater
- * `read_time` is guaranteed to see the effects of the write.
- *
- * Generated from protobuf field .google.protobuf.Timestamp commit_time = 4;
- */
- protected $commit_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $stream_id
- * The ID of the stream.
- * Only set on the first message, when a new stream was created.
- * @type string $stream_token
- * A token that represents the position of this response in the stream.
- * This can be used by a client to resume the stream at this point.
- * This field is always set.
- * @type array<\Google\Cloud\Firestore\V1\WriteResult>|\Google\Protobuf\Internal\RepeatedField $write_results
- * The result of applying the writes.
- * This i-th write result corresponds to the i-th write in the
- * request.
- * @type \Google\Protobuf\Timestamp $commit_time
- * The time at which the commit occurred. Any read with an equal or greater
- * `read_time` is guaranteed to see the effects of the write.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Firestore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The ID of the stream.
- * Only set on the first message, when a new stream was created.
- *
- * Generated from protobuf field string stream_id = 1;
- * @return string
- */
- public function getStreamId()
- {
- return $this->stream_id;
- }
-
- /**
- * The ID of the stream.
- * Only set on the first message, when a new stream was created.
- *
- * Generated from protobuf field string stream_id = 1;
- * @param string $var
- * @return $this
- */
- public function setStreamId($var)
- {
- GPBUtil::checkString($var, True);
- $this->stream_id = $var;
-
- return $this;
- }
-
- /**
- * A token that represents the position of this response in the stream.
- * This can be used by a client to resume the stream at this point.
- * This field is always set.
- *
- * Generated from protobuf field bytes stream_token = 2;
- * @return string
- */
- public function getStreamToken()
- {
- return $this->stream_token;
- }
-
- /**
- * A token that represents the position of this response in the stream.
- * This can be used by a client to resume the stream at this point.
- * This field is always set.
- *
- * Generated from protobuf field bytes stream_token = 2;
- * @param string $var
- * @return $this
- */
- public function setStreamToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->stream_token = $var;
-
- return $this;
- }
-
- /**
- * The result of applying the writes.
- * This i-th write result corresponds to the i-th write in the
- * request.
- *
- * Generated from protobuf field repeated .google.firestore.v1.WriteResult write_results = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getWriteResults()
- {
- return $this->write_results;
- }
-
- /**
- * The result of applying the writes.
- * This i-th write result corresponds to the i-th write in the
- * request.
- *
- * Generated from protobuf field repeated .google.firestore.v1.WriteResult write_results = 3;
- * @param array<\Google\Cloud\Firestore\V1\WriteResult>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setWriteResults($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\WriteResult::class);
- $this->write_results = $arr;
-
- return $this;
- }
-
- /**
- * The time at which the commit occurred. Any read with an equal or greater
- * `read_time` is guaranteed to see the effects of the write.
- *
- * Generated from protobuf field .google.protobuf.Timestamp commit_time = 4;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCommitTime()
- {
- return $this->commit_time;
- }
-
- public function hasCommitTime()
- {
- return isset($this->commit_time);
- }
-
- public function clearCommitTime()
- {
- unset($this->commit_time);
- }
-
- /**
- * The time at which the commit occurred. Any read with an equal or greater
- * `read_time` is guaranteed to see the effects of the write.
- *
- * Generated from protobuf field .google.protobuf.Timestamp commit_time = 4;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCommitTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->commit_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/WriteResult.php b/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/WriteResult.php
deleted file mode 100644
index f15058eb8a92..000000000000
--- a/owl-bot-staging/Firestore/v1/proto/src/Google/Cloud/Firestore/V1/WriteResult.php
+++ /dev/null
@@ -1,131 +0,0 @@
-google.firestore.v1.WriteResult
- */
-class WriteResult extends \Google\Protobuf\Internal\Message
-{
- /**
- * The last update time of the document after applying the write. Not set
- * after a `delete`.
- * If the write did not actually change the document, this will be the
- * previous update_time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 1;
- */
- protected $update_time = null;
- /**
- * The results of applying each
- * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
- * in the same order.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Value transform_results = 2;
- */
- private $transform_results;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $update_time
- * The last update time of the document after applying the write. Not set
- * after a `delete`.
- * If the write did not actually change the document, this will be the
- * previous update_time.
- * @type array<\Google\Cloud\Firestore\V1\Value>|\Google\Protobuf\Internal\RepeatedField $transform_results
- * The results of applying each
- * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
- * in the same order.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Firestore\V1\Write::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The last update time of the document after applying the write. Not set
- * after a `delete`.
- * If the write did not actually change the document, this will be the
- * previous update_time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 1;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * The last update time of the document after applying the write. Not set
- * after a `delete`.
- * If the write did not actually change the document, this will be the
- * previous update_time.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 1;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * The results of applying each
- * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
- * in the same order.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Value transform_results = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTransformResults()
- {
- return $this->transform_results;
- }
-
- /**
- * The results of applying each
- * [DocumentTransform.FieldTransform][google.firestore.v1.DocumentTransform.FieldTransform],
- * in the same order.
- *
- * Generated from protobuf field repeated .google.firestore.v1.Value transform_results = 2;
- * @param array<\Google\Cloud\Firestore\V1\Value>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTransformResults($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Firestore\V1\Value::class);
- $this->transform_results = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/batch_get_documents.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/batch_get_documents.php
deleted file mode 100644
index 781b03696dc1..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/batch_get_documents.php
+++ /dev/null
@@ -1,86 +0,0 @@
-setDatabase($database)
- ->setDocuments($documents);
-
- // Call the API and handle any network failures.
- try {
- /** @var ServerStream $stream */
- $stream = $firestoreClient->batchGetDocuments($request);
-
- /** @var BatchGetDocumentsResponse $element */
- foreach ($stream->readAll() as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $database = '[DATABASE]';
- $documentsElement = '[DOCUMENTS]';
-
- batch_get_documents_sample($database, $documentsElement);
-}
-// [END firestore_v1_generated_Firestore_BatchGetDocuments_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/batch_write.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/batch_write.php
deleted file mode 100644
index a43ae1584ac0..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/batch_write.php
+++ /dev/null
@@ -1,66 +0,0 @@
-batchWrite($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END firestore_v1_generated_Firestore_BatchWrite_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/begin_transaction.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/begin_transaction.php
deleted file mode 100644
index dc729abcdc4a..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/begin_transaction.php
+++ /dev/null
@@ -1,71 +0,0 @@
-setDatabase($database);
-
- // Call the API and handle any network failures.
- try {
- /** @var BeginTransactionResponse $response */
- $response = $firestoreClient->beginTransaction($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $database = '[DATABASE]';
-
- begin_transaction_sample($database);
-}
-// [END firestore_v1_generated_Firestore_BeginTransaction_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/commit.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/commit.php
deleted file mode 100644
index 08897b94984b..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/commit.php
+++ /dev/null
@@ -1,74 +0,0 @@
-setDatabase($database)
- ->setWrites($writes);
-
- // Call the API and handle any network failures.
- try {
- /** @var CommitResponse $response */
- $response = $firestoreClient->commit($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $database = '[DATABASE]';
-
- commit_sample($database);
-}
-// [END firestore_v1_generated_Firestore_Commit_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/create_document.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/create_document.php
deleted file mode 100644
index 2a04cde30cef..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/create_document.php
+++ /dev/null
@@ -1,83 +0,0 @@
-setParent($parent)
- ->setCollectionId($collectionId)
- ->setDocumentId($documentId)
- ->setDocument($document);
-
- // Call the API and handle any network failures.
- try {
- /** @var Document $response */
- $response = $firestoreClient->createDocument($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $parent = '[PARENT]';
- $collectionId = '[COLLECTION_ID]';
- $documentId = '[DOCUMENT_ID]';
-
- create_document_sample($parent, $collectionId, $documentId);
-}
-// [END firestore_v1_generated_Firestore_CreateDocument_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/delete_document.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/delete_document.php
deleted file mode 100644
index db75cab94ac5..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/delete_document.php
+++ /dev/null
@@ -1,69 +0,0 @@
-setName($name);
-
- // Call the API and handle any network failures.
- try {
- $firestoreClient->deleteDocument($request);
- printf('Call completed successfully.' . PHP_EOL);
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $name = '[NAME]';
-
- delete_document_sample($name);
-}
-// [END firestore_v1_generated_Firestore_DeleteDocument_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/get_document.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/get_document.php
deleted file mode 100644
index 787990595efd..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/get_document.php
+++ /dev/null
@@ -1,71 +0,0 @@
-setName($name);
-
- // Call the API and handle any network failures.
- try {
- /** @var Document $response */
- $response = $firestoreClient->getDocument($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $name = '[NAME]';
-
- get_document_sample($name);
-}
-// [END firestore_v1_generated_Firestore_GetDocument_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/list_collection_ids.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/list_collection_ids.php
deleted file mode 100644
index 92f6bd51fb17..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/list_collection_ids.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setParent($parent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $firestoreClient->listCollectionIds($request);
-
- /** @var string $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element);
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $parent = '[PARENT]';
-
- list_collection_ids_sample($parent);
-}
-// [END firestore_v1_generated_Firestore_ListCollectionIds_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/list_documents.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/list_documents.php
deleted file mode 100644
index e0dd4b7e4568..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/list_documents.php
+++ /dev/null
@@ -1,89 +0,0 @@
-setParent($parent)
- ->setCollectionId($collectionId);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $firestoreClient->listDocuments($request);
-
- /** @var Document $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $parent = '[PARENT]';
- $collectionId = '[COLLECTION_ID]';
-
- list_documents_sample($parent, $collectionId);
-}
-// [END firestore_v1_generated_Firestore_ListDocuments_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/listen.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/listen.php
deleted file mode 100644
index fb6754339467..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/listen.php
+++ /dev/null
@@ -1,78 +0,0 @@
-setDatabase($database);
-
- // Call the API and handle any network failures.
- try {
- /** @var BidiStream $stream */
- $stream = $firestoreClient->listen();
- $stream->writeAll([$request,]);
-
- /** @var ListenResponse $element */
- foreach ($stream->closeWriteAndReadAll() as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $database = '[DATABASE]';
-
- listen_sample($database);
-}
-// [END firestore_v1_generated_Firestore_Listen_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/partition_query.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/partition_query.php
deleted file mode 100644
index 6166c53e86e7..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/partition_query.php
+++ /dev/null
@@ -1,64 +0,0 @@
-partitionQuery($request);
-
- /** @var Cursor $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END firestore_v1_generated_Firestore_PartitionQuery_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/rollback.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/rollback.php
deleted file mode 100644
index 45a9b5c8f2b5..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/rollback.php
+++ /dev/null
@@ -1,72 +0,0 @@
-setDatabase($database)
- ->setTransaction($transaction);
-
- // Call the API and handle any network failures.
- try {
- $firestoreClient->rollback($request);
- printf('Call completed successfully.' . PHP_EOL);
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $database = '[DATABASE]';
- $transaction = '...';
-
- rollback_sample($database, $transaction);
-}
-// [END firestore_v1_generated_Firestore_Rollback_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/run_aggregation_query.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/run_aggregation_query.php
deleted file mode 100644
index 7d06d1816f7d..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/run_aggregation_query.php
+++ /dev/null
@@ -1,92 +0,0 @@
-setParent($parent);
-
- // Call the API and handle any network failures.
- try {
- /** @var ServerStream $stream */
- $stream = $firestoreClient->runAggregationQuery($request);
-
- /** @var RunAggregationQueryResponse $element */
- foreach ($stream->readAll() as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $parent = '[PARENT]';
-
- run_aggregation_query_sample($parent);
-}
-// [END firestore_v1_generated_Firestore_RunAggregationQuery_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/run_query.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/run_query.php
deleted file mode 100644
index c4ebe1603da7..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/run_query.php
+++ /dev/null
@@ -1,80 +0,0 @@
-setParent($parent);
-
- // Call the API and handle any network failures.
- try {
- /** @var ServerStream $stream */
- $stream = $firestoreClient->runQuery($request);
-
- /** @var RunQueryResponse $element */
- foreach ($stream->readAll() as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $parent = '[PARENT]';
-
- run_query_sample($parent);
-}
-// [END firestore_v1_generated_Firestore_RunQuery_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/update_document.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/update_document.php
deleted file mode 100644
index 0200a86b0464..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/update_document.php
+++ /dev/null
@@ -1,62 +0,0 @@
-setDocument($document)
- ->setUpdateMask($updateMask);
-
- // Call the API and handle any network failures.
- try {
- /** @var Document $response */
- $response = $firestoreClient->updateDocument($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END firestore_v1_generated_Firestore_UpdateDocument_sync]
diff --git a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/write.php b/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/write.php
deleted file mode 100644
index 19f9fba7d7dd..000000000000
--- a/owl-bot-staging/Firestore/v1/samples/V1/FirestoreClient/write.php
+++ /dev/null
@@ -1,79 +0,0 @@
-setDatabase($database);
-
- // Call the API and handle any network failures.
- try {
- /** @var BidiStream $stream */
- $stream = $firestoreClient->write();
- $stream->writeAll([$request,]);
-
- /** @var WriteResponse $element */
- foreach ($stream->closeWriteAndReadAll() as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $database = '[DATABASE]';
-
- write_sample($database);
-}
-// [END firestore_v1_generated_Firestore_Write_sync]
diff --git a/owl-bot-staging/Firestore/v1/src/V1/Client/FirestoreClient.php b/owl-bot-staging/Firestore/v1/src/V1/Client/FirestoreClient.php
deleted file mode 100644
index 0b5d0d8d68ef..000000000000
--- a/owl-bot-staging/Firestore/v1/src/V1/Client/FirestoreClient.php
+++ /dev/null
@@ -1,623 +0,0 @@
- batchWriteAsync(BatchWriteRequest $request, array $optionalArgs = [])
- * @method PromiseInterface beginTransactionAsync(BeginTransactionRequest $request, array $optionalArgs = [])
- * @method PromiseInterface commitAsync(CommitRequest $request, array $optionalArgs = [])
- * @method PromiseInterface createDocumentAsync(CreateDocumentRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteDocumentAsync(DeleteDocumentRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getDocumentAsync(GetDocumentRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listCollectionIdsAsync(ListCollectionIdsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listDocumentsAsync(ListDocumentsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface partitionQueryAsync(PartitionQueryRequest $request, array $optionalArgs = [])
- * @method PromiseInterface rollbackAsync(RollbackRequest $request, array $optionalArgs = [])
- * @method PromiseInterface updateDocumentAsync(UpdateDocumentRequest $request, array $optionalArgs = [])
- */
-final class FirestoreClient
-{
- use GapicClientTrait;
-
- /** The name of the service. */
- private const SERVICE_NAME = 'google.firestore.v1.Firestore';
-
- /**
- * The default address of the service.
- *
- * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
- */
- private const SERVICE_ADDRESS = 'firestore.googleapis.com';
-
- /** The address template of the service. */
- private const SERVICE_ADDRESS_TEMPLATE = 'firestore.UNIVERSE_DOMAIN';
-
- /** The default port of the service. */
- private const DEFAULT_SERVICE_PORT = 443;
-
- /** The name of the code generator, to be included in the agent header. */
- private const CODEGEN_NAME = 'gapic';
-
- /** The default scopes required by the service. */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- 'https://www.googleapis.com/auth/datastore',
- ];
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/firestore_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/firestore_descriptor_config.php',
- 'gcpApiConfigPath' => __DIR__ . '/../resources/firestore_grpc_config.json',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/firestore_rest_client_config.php',
- ],
- ],
- ];
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'firestore.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. May be either the string
- * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
- * *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'grpc' => [...],
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and
- * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * @type false|LoggerInterface $logger
- * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
- * 'GOOGLE_SDK_PHP_LOGGING' environment flag
- * }
- *
- * @throws ValidationException
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- }
-
- /** Handles execution of the async variants for each documented method. */
- public function __call($method, $args)
- {
- if (substr($method, -5) !== 'Async') {
- trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR);
- }
-
- array_unshift($args, substr($method, 0, -5));
- return call_user_func_array([$this, 'startAsyncCall'], $args);
- }
-
- /**
- * Gets multiple documents.
- *
- * Documents returned by this method are not guaranteed to be returned in the
- * same order that they were requested.
- *
- * @example samples/V1/FirestoreClient/batch_get_documents.php
- *
- * @param BatchGetDocumentsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type int $timeoutMillis
- * Timeout to use for this call.
- * }
- *
- * @return ServerStream
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function batchGetDocuments(BatchGetDocumentsRequest $request, array $callOptions = []): ServerStream
- {
- return $this->startApiCall('BatchGetDocuments', $request, $callOptions);
- }
-
- /**
- * Applies a batch of write operations.
- *
- * The BatchWrite method does not apply the write operations atomically
- * and can apply them out of order. Method does not allow more than one write
- * per document. Each write succeeds or fails independently. See the
- * [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the
- * success status of each write.
- *
- * If you require an atomically applied set of writes, use
- * [Commit][google.firestore.v1.Firestore.Commit] instead.
- *
- * The async variant is {@see FirestoreClient::batchWriteAsync()} .
- *
- * @example samples/V1/FirestoreClient/batch_write.php
- *
- * @param BatchWriteRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 BatchWriteResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function batchWrite(BatchWriteRequest $request, array $callOptions = []): BatchWriteResponse
- {
- return $this->startApiCall('BatchWrite', $request, $callOptions)->wait();
- }
-
- /**
- * Starts a new transaction.
- *
- * The async variant is {@see FirestoreClient::beginTransactionAsync()} .
- *
- * @example samples/V1/FirestoreClient/begin_transaction.php
- *
- * @param BeginTransactionRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 BeginTransactionResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function beginTransaction(BeginTransactionRequest $request, array $callOptions = []): BeginTransactionResponse
- {
- return $this->startApiCall('BeginTransaction', $request, $callOptions)->wait();
- }
-
- /**
- * Commits a transaction, while optionally updating documents.
- *
- * The async variant is {@see FirestoreClient::commitAsync()} .
- *
- * @example samples/V1/FirestoreClient/commit.php
- *
- * @param CommitRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 CommitResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function commit(CommitRequest $request, array $callOptions = []): CommitResponse
- {
- return $this->startApiCall('Commit', $request, $callOptions)->wait();
- }
-
- /**
- * Creates a new document.
- *
- * The async variant is {@see FirestoreClient::createDocumentAsync()} .
- *
- * @example samples/V1/FirestoreClient/create_document.php
- *
- * @param CreateDocumentRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Document
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createDocument(CreateDocumentRequest $request, array $callOptions = []): Document
- {
- return $this->startApiCall('CreateDocument', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes a document.
- *
- * The async variant is {@see FirestoreClient::deleteDocumentAsync()} .
- *
- * @example samples/V1/FirestoreClient/delete_document.php
- *
- * @param DeleteDocumentRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Thrown if the API call fails.
- */
- public function deleteDocument(DeleteDocumentRequest $request, array $callOptions = []): void
- {
- $this->startApiCall('DeleteDocument', $request, $callOptions)->wait();
- }
-
- /**
- * Gets a single document.
- *
- * The async variant is {@see FirestoreClient::getDocumentAsync()} .
- *
- * @example samples/V1/FirestoreClient/get_document.php
- *
- * @param GetDocumentRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Document
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getDocument(GetDocumentRequest $request, array $callOptions = []): Document
- {
- return $this->startApiCall('GetDocument', $request, $callOptions)->wait();
- }
-
- /**
- * Lists all the collection IDs underneath a document.
- *
- * The async variant is {@see FirestoreClient::listCollectionIdsAsync()} .
- *
- * @example samples/V1/FirestoreClient/list_collection_ids.php
- *
- * @param ListCollectionIdsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listCollectionIds(ListCollectionIdsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListCollectionIds', $request, $callOptions);
- }
-
- /**
- * Lists documents.
- *
- * The async variant is {@see FirestoreClient::listDocumentsAsync()} .
- *
- * @example samples/V1/FirestoreClient/list_documents.php
- *
- * @param ListDocumentsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listDocuments(ListDocumentsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListDocuments', $request, $callOptions);
- }
-
- /**
- * Listens to changes. This method is only available via gRPC or WebChannel
- * (not REST).
- *
- * @example samples/V1/FirestoreClient/listen.php
- *
- * @param array $callOptions {
- * Optional.
- *
- * @type int $timeoutMillis
- * Timeout to use for this call.
- * }
- *
- * @return BidiStream
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listen(array $callOptions = []): BidiStream
- {
- return $this->startApiCall('Listen', null, $callOptions);
- }
-
- /**
- * Partitions a query by returning partition cursors that can be used to run
- * the query in parallel. The returned partition cursors are split points that
- * can be used by RunQuery as starting/end points for the query results.
- *
- * The async variant is {@see FirestoreClient::partitionQueryAsync()} .
- *
- * @example samples/V1/FirestoreClient/partition_query.php
- *
- * @param PartitionQueryRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function partitionQuery(PartitionQueryRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('PartitionQuery', $request, $callOptions);
- }
-
- /**
- * Rolls back a transaction.
- *
- * The async variant is {@see FirestoreClient::rollbackAsync()} .
- *
- * @example samples/V1/FirestoreClient/rollback.php
- *
- * @param RollbackRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Thrown if the API call fails.
- */
- public function rollback(RollbackRequest $request, array $callOptions = []): void
- {
- $this->startApiCall('Rollback', $request, $callOptions)->wait();
- }
-
- /**
- * Runs an aggregation query.
- *
- * Rather than producing [Document][google.firestore.v1.Document] results like
- * [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery], this API
- * allows running an aggregation to produce a series of
- * [AggregationResult][google.firestore.v1.AggregationResult] server-side.
- *
- * High-Level Example:
- *
- * ```
- * -- Return the number of documents in table given a filter.
- * SELECT COUNT(*) FROM ( SELECT * FROM k where a = true );
- * ```
- *
- * @example samples/V1/FirestoreClient/run_aggregation_query.php
- *
- * @param RunAggregationQueryRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type int $timeoutMillis
- * Timeout to use for this call.
- * }
- *
- * @return ServerStream
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function runAggregationQuery(RunAggregationQueryRequest $request, array $callOptions = []): ServerStream
- {
- return $this->startApiCall('RunAggregationQuery', $request, $callOptions);
- }
-
- /**
- * Runs a query.
- *
- * @example samples/V1/FirestoreClient/run_query.php
- *
- * @param RunQueryRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type int $timeoutMillis
- * Timeout to use for this call.
- * }
- *
- * @return ServerStream
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function runQuery(RunQueryRequest $request, array $callOptions = []): ServerStream
- {
- return $this->startApiCall('RunQuery', $request, $callOptions);
- }
-
- /**
- * Updates or inserts a document.
- *
- * The async variant is {@see FirestoreClient::updateDocumentAsync()} .
- *
- * @example samples/V1/FirestoreClient/update_document.php
- *
- * @param UpdateDocumentRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Document
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateDocument(UpdateDocumentRequest $request, array $callOptions = []): Document
- {
- return $this->startApiCall('UpdateDocument', $request, $callOptions)->wait();
- }
-
- /**
- * Streams batches of document updates and deletes, in order. This method is
- * only available via gRPC or WebChannel (not REST).
- *
- * @example samples/V1/FirestoreClient/write.php
- *
- * @param array $callOptions {
- * Optional.
- *
- * @type int $timeoutMillis
- * Timeout to use for this call.
- * }
- *
- * @return BidiStream
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function write(array $callOptions = []): BidiStream
- {
- return $this->startApiCall('Write', null, $callOptions);
- }
-}
diff --git a/owl-bot-staging/Firestore/v1/src/V1/FirestoreClient.php b/owl-bot-staging/Firestore/v1/src/V1/FirestoreClient.php
deleted file mode 100644
index da1c71ebe61d..000000000000
--- a/owl-bot-staging/Firestore/v1/src/V1/FirestoreClient.php
+++ /dev/null
@@ -1,34 +0,0 @@
-batchGetDocuments($database, $documents);
- * foreach ($stream->readAll() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @deprecated Please use the new service client {@see \Google\Cloud\Firestore\V1\Client\FirestoreClient}.
- */
-class FirestoreGapicClient
-{
- use GapicClientTrait;
-
- /** The name of the service. */
- const SERVICE_NAME = 'google.firestore.v1.Firestore';
-
- /**
- * The default address of the service.
- *
- * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
- */
- const SERVICE_ADDRESS = 'firestore.googleapis.com';
-
- /** The address template of the service. */
- private const SERVICE_ADDRESS_TEMPLATE = 'firestore.UNIVERSE_DOMAIN';
-
- /** The default port of the service. */
- const DEFAULT_SERVICE_PORT = 443;
-
- /** The name of the code generator, to be included in the agent header. */
- const CODEGEN_NAME = 'gapic';
-
- /** The default scopes required by the service. */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- 'https://www.googleapis.com/auth/datastore',
- ];
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/firestore_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/firestore_descriptor_config.php',
- 'gcpApiConfigPath' => __DIR__ . '/../resources/firestore_grpc_config.json',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/firestore_rest_client_config.php',
- ],
- ],
- ];
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'firestore.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. May be either the string
- * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
- * *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'grpc' => [...],
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and
- * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * }
- *
- * @throws ValidationException
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- }
-
- /**
- * Gets multiple documents.
- *
- * Documents returned by this method are not guaranteed to be returned in the
- * same order that they were requested.
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $database = 'database';
- * $documents = [];
- * // Read all responses until the stream is complete
- * $stream = $firestoreClient->batchGetDocuments($database, $documents);
- * foreach ($stream->readAll() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param string $database Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * @param string[] $documents The names of the documents to retrieve. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * The request will fail if any of the document is not a child resource of the
- * given `database`. Duplicate names will be elided.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type DocumentMask $mask
- * The fields to return. If not set, returns all fields.
- *
- * If a document has a field that is not present in this mask, that field will
- * not be returned in the response.
- * @type string $transaction
- * Reads documents in a transaction.
- * @type TransactionOptions $newTransaction
- * Starts a new transaction and reads the documents.
- * Defaults to a read-only transaction.
- * The new transaction ID will be returned as the first response in the
- * stream.
- * @type Timestamp $readTime
- * Reads documents as they were at the given time.
- *
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- * @type int $timeoutMillis
- * Timeout to use for this call.
- * }
- *
- * @return \Google\ApiCore\ServerStream
- *
- * @throws ApiException if the remote call fails
- */
- public function batchGetDocuments($database, $documents, array $optionalArgs = [])
- {
- $request = new BatchGetDocumentsRequest();
- $requestParamHeaders = [];
- $request->setDatabase($database);
- $request->setDocuments($documents);
- $requestParamHeaders['database'] = $database;
- if (isset($optionalArgs['mask'])) {
- $request->setMask($optionalArgs['mask']);
- }
-
- if (isset($optionalArgs['transaction'])) {
- $request->setTransaction($optionalArgs['transaction']);
- }
-
- if (isset($optionalArgs['newTransaction'])) {
- $request->setNewTransaction($optionalArgs['newTransaction']);
- }
-
- if (isset($optionalArgs['readTime'])) {
- $request->setReadTime($optionalArgs['readTime']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('BatchGetDocuments', BatchGetDocumentsResponse::class, $optionalArgs, $request, Call::SERVER_STREAMING_CALL);
- }
-
- /**
- * Applies a batch of write operations.
- *
- * The BatchWrite method does not apply the write operations atomically
- * and can apply them out of order. Method does not allow more than one write
- * per document. Each write succeeds or fails independently. See the
- * [BatchWriteResponse][google.firestore.v1.BatchWriteResponse] for the
- * success status of each write.
- *
- * If you require an atomically applied set of writes, use
- * [Commit][google.firestore.v1.Firestore.Commit] instead.
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $response = $firestoreClient->batchWrite();
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $database
- * Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * @type Write[] $writes
- * The writes to apply.
- *
- * Method does not apply writes atomically and does not guarantee ordering.
- * Each write succeeds or fails independently. You cannot write to the same
- * document more than once per request.
- * @type array $labels
- * Labels associated with this batch write.
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\V1\BatchWriteResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function batchWrite(array $optionalArgs = [])
- {
- $request = new BatchWriteRequest();
- $requestParamHeaders = [];
- if (isset($optionalArgs['database'])) {
- $request->setDatabase($optionalArgs['database']);
- $requestParamHeaders['database'] = $optionalArgs['database'];
- }
-
- if (isset($optionalArgs['writes'])) {
- $request->setWrites($optionalArgs['writes']);
- }
-
- if (isset($optionalArgs['labels'])) {
- $request->setLabels($optionalArgs['labels']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('BatchWrite', BatchWriteResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Starts a new transaction.
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $database = 'database';
- * $response = $firestoreClient->beginTransaction($database);
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param string $database Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type TransactionOptions $options
- * The options for the transaction.
- * Defaults to a read-write transaction.
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\V1\BeginTransactionResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function beginTransaction($database, array $optionalArgs = [])
- {
- $request = new BeginTransactionRequest();
- $requestParamHeaders = [];
- $request->setDatabase($database);
- $requestParamHeaders['database'] = $database;
- if (isset($optionalArgs['options'])) {
- $request->setOptions($optionalArgs['options']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('BeginTransaction', BeginTransactionResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Commits a transaction, while optionally updating documents.
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $database = 'database';
- * $writes = [];
- * $response = $firestoreClient->commit($database, $writes);
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param string $database Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * @param Write[] $writes The writes to apply.
- *
- * Always executed atomically and in order.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $transaction
- * If set, applies all writes in this transaction, and commits it.
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\V1\CommitResponse
- *
- * @throws ApiException if the remote call fails
- */
- public function commit($database, $writes, array $optionalArgs = [])
- {
- $request = new CommitRequest();
- $requestParamHeaders = [];
- $request->setDatabase($database);
- $request->setWrites($writes);
- $requestParamHeaders['database'] = $database;
- if (isset($optionalArgs['transaction'])) {
- $request->setTransaction($optionalArgs['transaction']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('Commit', CommitResponse::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Creates a new document.
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $parent = 'parent';
- * $collectionId = 'collection_id';
- * $documentId = 'document_id';
- * $document = new Document();
- * $response = $firestoreClient->createDocument($parent, $collectionId, $documentId, $document);
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent resource. For example:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/chatrooms/{chatroom_id}`
- * @param string $collectionId Required. The collection ID, relative to `parent`, to list. For example:
- * `chatrooms`.
- * @param string $documentId The client-assigned document ID to use for this document.
- *
- * Optional. If not specified, an ID will be assigned by the service.
- * @param Document $document Required. The document to create. `name` must not be set.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type DocumentMask $mask
- * The fields to return. If not set, returns all fields.
- *
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\V1\Document
- *
- * @throws ApiException if the remote call fails
- */
- public function createDocument($parent, $collectionId, $documentId, $document, array $optionalArgs = [])
- {
- $request = new CreateDocumentRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setCollectionId($collectionId);
- $request->setDocumentId($documentId);
- $request->setDocument($document);
- $requestParamHeaders['parent'] = $parent;
- $requestParamHeaders['collection_id'] = $collectionId;
- if (isset($optionalArgs['mask'])) {
- $request->setMask($optionalArgs['mask']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('CreateDocument', Document::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Deletes a document.
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $name = 'name';
- * $firestoreClient->deleteDocument($name);
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param string $name Required. The resource name of the Document to delete. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type Precondition $currentDocument
- * An optional precondition on the document.
- * The request will fail if this is set and not met by the target document.
- * @type RetrySettings|array $retrySettings
- * 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
- */
- public function deleteDocument($name, array $optionalArgs = [])
- {
- $request = new DeleteDocumentRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- if (isset($optionalArgs['currentDocument'])) {
- $request->setCurrentDocument($optionalArgs['currentDocument']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('DeleteDocument', GPBEmpty::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Gets a single document.
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $name = 'name';
- * $response = $firestoreClient->getDocument($name);
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param string $name Required. The resource name of the Document to get. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type DocumentMask $mask
- * The fields to return. If not set, returns all fields.
- *
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- * @type string $transaction
- * Reads the document in a transaction.
- * @type Timestamp $readTime
- * Reads the version of the document at the given time.
- *
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\V1\Document
- *
- * @throws ApiException if the remote call fails
- */
- public function getDocument($name, array $optionalArgs = [])
- {
- $request = new GetDocumentRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- if (isset($optionalArgs['mask'])) {
- $request->setMask($optionalArgs['mask']);
- }
-
- if (isset($optionalArgs['transaction'])) {
- $request->setTransaction($optionalArgs['transaction']);
- }
-
- if (isset($optionalArgs['readTime'])) {
- $request->setReadTime($optionalArgs['readTime']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GetDocument', Document::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Lists all the collection IDs underneath a document.
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $parent = 'parent';
- * // Iterate over pages of elements
- * $pagedResponse = $firestoreClient->listCollectionIds($parent);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $firestoreClient->listCollectionIds($parent);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent document. In the format:
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type int $pageSize
- * The maximum number of resources contained in the underlying API
- * response. The API may return fewer values in a page, even if
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type Timestamp $readTime
- * Reads documents as they were at the given time.
- *
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- * @type RetrySettings|array $retrySettings
- * 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
- *
- * @throws ApiException if the remote call fails
- */
- public function listCollectionIds($parent, array $optionalArgs = [])
- {
- $request = new ListCollectionIdsRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- if (isset($optionalArgs['readTime'])) {
- $request->setReadTime($optionalArgs['readTime']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListCollectionIds', $optionalArgs, ListCollectionIdsResponse::class, $request);
- }
-
- /**
- * Lists documents.
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $parent = 'parent';
- * $collectionId = 'collection_id';
- * // Iterate over pages of elements
- * $pagedResponse = $firestoreClient->listDocuments($parent, $collectionId);
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $firestoreClient->listDocuments($parent, $collectionId);
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- *
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- * @param string $collectionId Optional. The collection ID, relative to `parent`, to list.
- *
- * For example: `chatrooms` or `messages`.
- *
- * This is optional, and when not provided, Firestore will list documents
- * from all collections under the provided `parent`.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type int $pageSize
- * The maximum number of resources contained in the underlying API
- * response. The API may return fewer values in a page, even if
- * there are additional values to be retrieved.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type string $orderBy
- * Optional. The optional ordering of the documents to return.
- *
- * For example: `priority desc, __name__ desc`.
- *
- * This mirrors the [`ORDER BY`][google.firestore.v1.StructuredQuery.order_by]
- * used in Firestore queries but in a string representation. When absent,
- * documents are ordered based on `__name__ ASC`.
- * @type DocumentMask $mask
- * Optional. The fields to return. If not set, returns all fields.
- *
- * If a document has a field that is not present in this mask, that field
- * will not be returned in the response.
- * @type string $transaction
- * Perform the read as part of an already active transaction.
- * @type Timestamp $readTime
- * Perform the read at the provided time.
- *
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- * @type bool $showMissing
- * If the list should show missing documents.
- *
- * A document is missing if it does not exist, but there are sub-documents
- * nested underneath it. When true, such missing documents will be returned
- * with a key but will not have fields,
- * [`create_time`][google.firestore.v1.Document.create_time], or
- * [`update_time`][google.firestore.v1.Document.update_time] set.
- *
- * Requests with `show_missing` may not specify `where` or `order_by`.
- * @type RetrySettings|array $retrySettings
- * 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
- *
- * @throws ApiException if the remote call fails
- */
- public function listDocuments($parent, $collectionId, array $optionalArgs = [])
- {
- $request = new ListDocumentsRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $request->setCollectionId($collectionId);
- $requestParamHeaders['parent'] = $parent;
- $requestParamHeaders['collection_id'] = $collectionId;
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- if (isset($optionalArgs['orderBy'])) {
- $request->setOrderBy($optionalArgs['orderBy']);
- }
-
- if (isset($optionalArgs['mask'])) {
- $request->setMask($optionalArgs['mask']);
- }
-
- if (isset($optionalArgs['transaction'])) {
- $request->setTransaction($optionalArgs['transaction']);
- }
-
- if (isset($optionalArgs['readTime'])) {
- $request->setReadTime($optionalArgs['readTime']);
- }
-
- if (isset($optionalArgs['showMissing'])) {
- $request->setShowMissing($optionalArgs['showMissing']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('ListDocuments', $optionalArgs, ListDocumentsResponse::class, $request);
- }
-
- /**
- * Listens to changes. This method is only available via gRPC or WebChannel
- * (not REST).
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $database = 'database';
- * $request = new ListenRequest();
- * $request->setDatabase($database);
- * // Write all requests to the server, then read all responses until the
- * // stream is complete
- * $requests = [
- * $request,
- * ];
- * $stream = $firestoreClient->listen();
- * $stream->writeAll($requests);
- * foreach ($stream->closeWriteAndReadAll() as $element) {
- * // doSomethingWith($element);
- * }
- * // Alternatively:
- * // Write requests individually, making read() calls if
- * // required. Call closeWrite() once writes are complete, and read the
- * // remaining responses from the server.
- * $requests = [
- * $request,
- * ];
- * $stream = $firestoreClient->listen();
- * foreach ($requests as $request) {
- * $stream->write($request);
- * // if required, read a single response from the stream
- * $element = $stream->read();
- * // doSomethingWith($element)
- * }
- * $stream->closeWrite();
- * $element = $stream->read();
- * while (!is_null($element)) {
- * // doSomethingWith($element)
- * $element = $stream->read();
- * }
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param array $optionalArgs {
- * Optional.
- *
- * @type int $timeoutMillis
- * Timeout to use for this call.
- * }
- *
- * @return \Google\ApiCore\BidiStream
- *
- * @throws ApiException if the remote call fails
- */
- public function listen(array $optionalArgs = [])
- {
- return $this->startCall('Listen', ListenResponse::class, $optionalArgs, null, Call::BIDI_STREAMING_CALL);
- }
-
- /**
- * Partitions a query by returning partition cursors that can be used to run
- * the query in parallel. The returned partition cursors are split points that
- * can be used by RunQuery as starting/end points for the query results.
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * // Iterate over pages of elements
- * $pagedResponse = $firestoreClient->partitionQuery();
- * foreach ($pagedResponse->iteratePages() as $page) {
- * foreach ($page as $element) {
- * // doSomethingWith($element);
- * }
- * }
- * // Alternatively:
- * // Iterate through all elements
- * $pagedResponse = $firestoreClient->partitionQuery();
- * foreach ($pagedResponse->iterateAllElements() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param array $optionalArgs {
- * Optional.
- *
- * @type string $parent
- * Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents`.
- * Document resource names are not supported; only database resource names
- * can be specified.
- * @type StructuredQuery $structuredQuery
- * A structured query.
- * Query must specify collection with all descendants and be ordered by name
- * ascending. Other filters, order bys, limits, offsets, and start/end
- * cursors are not supported.
- * @type int $partitionCount
- * The desired maximum number of partition points.
- * The partitions may be returned across multiple pages of results.
- * The number must be positive. The actual number of partitions
- * returned may be fewer.
- *
- * For example, this may be set to one fewer than the number of parallel
- * queries to be run, or in running a data pipeline job, one fewer than the
- * number of workers or compute instances available.
- * @type string $pageToken
- * A page token is used to specify a page of values to be returned.
- * If no page token is specified (the default), the first page
- * of values will be returned. Any page token used here must have
- * been generated by a previous call to the API.
- * @type int $pageSize
- * The maximum number of resources contained in the underlying API
- * response. The API may return fewer values in a page, even if
- * there are additional values to be retrieved.
- * @type Timestamp $readTime
- * Reads documents as they were at the given time.
- *
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- * @type RetrySettings|array $retrySettings
- * 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
- *
- * @throws ApiException if the remote call fails
- */
- public function partitionQuery(array $optionalArgs = [])
- {
- $request = new PartitionQueryRequest();
- $requestParamHeaders = [];
- if (isset($optionalArgs['parent'])) {
- $request->setParent($optionalArgs['parent']);
- $requestParamHeaders['parent'] = $optionalArgs['parent'];
- }
-
- if (isset($optionalArgs['structuredQuery'])) {
- $request->setStructuredQuery($optionalArgs['structuredQuery']);
- }
-
- if (isset($optionalArgs['partitionCount'])) {
- $request->setPartitionCount($optionalArgs['partitionCount']);
- }
-
- if (isset($optionalArgs['pageToken'])) {
- $request->setPageToken($optionalArgs['pageToken']);
- }
-
- if (isset($optionalArgs['pageSize'])) {
- $request->setPageSize($optionalArgs['pageSize']);
- }
-
- if (isset($optionalArgs['readTime'])) {
- $request->setReadTime($optionalArgs['readTime']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->getPagedListResponse('PartitionQuery', $optionalArgs, PartitionQueryResponse::class, $request);
- }
-
- /**
- * Rolls back a transaction.
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $database = 'database';
- * $transaction = '...';
- * $firestoreClient->rollback($database, $transaction);
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param string $database Required. The database name. In the format:
- * `projects/{project_id}/databases/{database_id}`.
- * @param string $transaction Required. The transaction to roll back.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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
- */
- public function rollback($database, $transaction, array $optionalArgs = [])
- {
- $request = new RollbackRequest();
- $requestParamHeaders = [];
- $request->setDatabase($database);
- $request->setTransaction($transaction);
- $requestParamHeaders['database'] = $database;
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('Rollback', GPBEmpty::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Runs an aggregation query.
- *
- * Rather than producing [Document][google.firestore.v1.Document] results like
- * [Firestore.RunQuery][google.firestore.v1.Firestore.RunQuery], this API
- * allows running an aggregation to produce a series of
- * [AggregationResult][google.firestore.v1.AggregationResult] server-side.
- *
- * High-Level Example:
- *
- * ```
- * -- Return the number of documents in table given a filter.
- * SELECT COUNT(*) FROM ( SELECT * FROM k where a = true );
- * ```
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $parent = 'parent';
- * // Read all responses until the stream is complete
- * $stream = $firestoreClient->runAggregationQuery($parent);
- * foreach ($stream->readAll() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type StructuredAggregationQuery $structuredAggregationQuery
- * An aggregation query.
- * @type string $transaction
- * Run the aggregation within an already active transaction.
- *
- * The value here is the opaque transaction ID to execute the query in.
- * @type TransactionOptions $newTransaction
- * Starts a new transaction as part of the query, defaulting to read-only.
- *
- * The new transaction ID will be returned as the first response in the
- * stream.
- * @type Timestamp $readTime
- * Executes the query at the given timestamp.
- *
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- * @type ExplainOptions $explainOptions
- * Optional. Explain options for the query. If set, additional query
- * statistics will be returned. If not, only query results will be returned.
- * @type int $timeoutMillis
- * Timeout to use for this call.
- * }
- *
- * @return \Google\ApiCore\ServerStream
- *
- * @throws ApiException if the remote call fails
- */
- public function runAggregationQuery($parent, array $optionalArgs = [])
- {
- $request = new RunAggregationQueryRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['structuredAggregationQuery'])) {
- $request->setStructuredAggregationQuery($optionalArgs['structuredAggregationQuery']);
- }
-
- if (isset($optionalArgs['transaction'])) {
- $request->setTransaction($optionalArgs['transaction']);
- }
-
- if (isset($optionalArgs['newTransaction'])) {
- $request->setNewTransaction($optionalArgs['newTransaction']);
- }
-
- if (isset($optionalArgs['readTime'])) {
- $request->setReadTime($optionalArgs['readTime']);
- }
-
- if (isset($optionalArgs['explainOptions'])) {
- $request->setExplainOptions($optionalArgs['explainOptions']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('RunAggregationQuery', RunAggregationQueryResponse::class, $optionalArgs, $request, Call::SERVER_STREAMING_CALL);
- }
-
- /**
- * Runs a query.
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $parent = 'parent';
- * // Read all responses until the stream is complete
- * $stream = $firestoreClient->runQuery($parent);
- * foreach ($stream->readAll() as $element) {
- * // doSomethingWith($element);
- * }
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param string $parent Required. The parent resource name. In the format:
- * `projects/{project_id}/databases/{database_id}/documents` or
- * `projects/{project_id}/databases/{database_id}/documents/{document_path}`.
- * For example:
- * `projects/my-project/databases/my-database/documents` or
- * `projects/my-project/databases/my-database/documents/chatrooms/my-chatroom`
- * @param array $optionalArgs {
- * Optional.
- *
- * @type StructuredQuery $structuredQuery
- * A structured query.
- * @type string $transaction
- * Run the query within an already active transaction.
- *
- * The value here is the opaque transaction ID to execute the query in.
- * @type TransactionOptions $newTransaction
- * Starts a new transaction and reads the documents.
- * Defaults to a read-only transaction.
- * The new transaction ID will be returned as the first response in the
- * stream.
- * @type Timestamp $readTime
- * Reads documents as they were at the given time.
- *
- * This must be a microsecond precision timestamp within the past one hour,
- * or if Point-in-Time Recovery is enabled, can additionally be a whole
- * minute timestamp within the past 7 days.
- * @type ExplainOptions $explainOptions
- * Optional. Explain options for the query. If set, additional query
- * statistics will be returned. If not, only query results will be returned.
- * @type int $timeoutMillis
- * Timeout to use for this call.
- * }
- *
- * @return \Google\ApiCore\ServerStream
- *
- * @throws ApiException if the remote call fails
- */
- public function runQuery($parent, array $optionalArgs = [])
- {
- $request = new RunQueryRequest();
- $requestParamHeaders = [];
- $request->setParent($parent);
- $requestParamHeaders['parent'] = $parent;
- if (isset($optionalArgs['structuredQuery'])) {
- $request->setStructuredQuery($optionalArgs['structuredQuery']);
- }
-
- if (isset($optionalArgs['transaction'])) {
- $request->setTransaction($optionalArgs['transaction']);
- }
-
- if (isset($optionalArgs['newTransaction'])) {
- $request->setNewTransaction($optionalArgs['newTransaction']);
- }
-
- if (isset($optionalArgs['readTime'])) {
- $request->setReadTime($optionalArgs['readTime']);
- }
-
- if (isset($optionalArgs['explainOptions'])) {
- $request->setExplainOptions($optionalArgs['explainOptions']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('RunQuery', RunQueryResponse::class, $optionalArgs, $request, Call::SERVER_STREAMING_CALL);
- }
-
- /**
- * Updates or inserts a document.
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $document = new Document();
- * $updateMask = new DocumentMask();
- * $response = $firestoreClient->updateDocument($document, $updateMask);
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param Document $document Required. The updated document.
- * Creates the document if it does not already exist.
- * @param DocumentMask $updateMask The fields to update.
- * None of the field paths in the mask may contain a reserved name.
- *
- * If the document exists on the server and has fields not referenced in the
- * mask, they are left unchanged.
- * Fields referenced in the mask, but not present in the input document, are
- * deleted from the document on the server.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type DocumentMask $mask
- * The fields to return. If not set, returns all fields.
- *
- * If the document has a field that is not present in this mask, that field
- * will not be returned in the response.
- * @type Precondition $currentDocument
- * An optional precondition on the document.
- * The request will fail if this is set and not met by the target document.
- * @type RetrySettings|array $retrySettings
- * 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\Firestore\V1\Document
- *
- * @throws ApiException if the remote call fails
- */
- public function updateDocument($document, $updateMask, array $optionalArgs = [])
- {
- $request = new UpdateDocumentRequest();
- $requestParamHeaders = [];
- $request->setDocument($document);
- $request->setUpdateMask($updateMask);
- $requestParamHeaders['document.name'] = $document->getName();
- if (isset($optionalArgs['mask'])) {
- $request->setMask($optionalArgs['mask']);
- }
-
- if (isset($optionalArgs['currentDocument'])) {
- $request->setCurrentDocument($optionalArgs['currentDocument']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('UpdateDocument', Document::class, $optionalArgs, $request)->wait();
- }
-
- /**
- * Streams batches of document updates and deletes, in order. This method is
- * only available via gRPC or WebChannel (not REST).
- *
- * Sample code:
- * ```
- * $firestoreClient = new FirestoreClient();
- * try {
- * $database = 'database';
- * $request = new WriteRequest();
- * $request->setDatabase($database);
- * // Write all requests to the server, then read all responses until the
- * // stream is complete
- * $requests = [
- * $request,
- * ];
- * $stream = $firestoreClient->write();
- * $stream->writeAll($requests);
- * foreach ($stream->closeWriteAndReadAll() as $element) {
- * // doSomethingWith($element);
- * }
- * // Alternatively:
- * // Write requests individually, making read() calls if
- * // required. Call closeWrite() once writes are complete, and read the
- * // remaining responses from the server.
- * $requests = [
- * $request,
- * ];
- * $stream = $firestoreClient->write();
- * foreach ($requests as $request) {
- * $stream->write($request);
- * // if required, read a single response from the stream
- * $element = $stream->read();
- * // doSomethingWith($element)
- * }
- * $stream->closeWrite();
- * $element = $stream->read();
- * while (!is_null($element)) {
- * // doSomethingWith($element)
- * $element = $stream->read();
- * }
- * } finally {
- * $firestoreClient->close();
- * }
- * ```
- *
- * @param array $optionalArgs {
- * Optional.
- *
- * @type int $timeoutMillis
- * Timeout to use for this call.
- * }
- *
- * @return \Google\ApiCore\BidiStream
- *
- * @throws ApiException if the remote call fails
- */
- public function write(array $optionalArgs = [])
- {
- return $this->startCall('Write', WriteResponse::class, $optionalArgs, null, Call::BIDI_STREAMING_CALL);
- }
-}
diff --git a/owl-bot-staging/Firestore/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Firestore/v1/src/V1/gapic_metadata.json
deleted file mode 100644
index 16969eb8ec78..000000000000
--- a/owl-bot-staging/Firestore/v1/src/V1/gapic_metadata.json
+++ /dev/null
@@ -1,98 +0,0 @@
-{
- "schema": "1.0",
- "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods",
- "language": "php",
- "protoPackage": "google.firestore.v1",
- "libraryPackage": "Google\\Cloud\\Firestore\\V1",
- "services": {
- "Firestore": {
- "clients": {
- "grpc": {
- "libraryClient": "FirestoreGapicClient",
- "rpcs": {
- "BatchGetDocuments": {
- "methods": [
- "batchGetDocuments"
- ]
- },
- "BatchWrite": {
- "methods": [
- "batchWrite"
- ]
- },
- "BeginTransaction": {
- "methods": [
- "beginTransaction"
- ]
- },
- "Commit": {
- "methods": [
- "commit"
- ]
- },
- "CreateDocument": {
- "methods": [
- "createDocument"
- ]
- },
- "DeleteDocument": {
- "methods": [
- "deleteDocument"
- ]
- },
- "GetDocument": {
- "methods": [
- "getDocument"
- ]
- },
- "ListCollectionIds": {
- "methods": [
- "listCollectionIds"
- ]
- },
- "ListDocuments": {
- "methods": [
- "listDocuments"
- ]
- },
- "Listen": {
- "methods": [
- "listen"
- ]
- },
- "PartitionQuery": {
- "methods": [
- "partitionQuery"
- ]
- },
- "Rollback": {
- "methods": [
- "rollback"
- ]
- },
- "RunAggregationQuery": {
- "methods": [
- "runAggregationQuery"
- ]
- },
- "RunQuery": {
- "methods": [
- "runQuery"
- ]
- },
- "UpdateDocument": {
- "methods": [
- "updateDocument"
- ]
- },
- "Write": {
- "methods": [
- "write"
- ]
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/owl-bot-staging/Firestore/v1/src/V1/resources/firestore_client_config.json b/owl-bot-staging/Firestore/v1/src/V1/resources/firestore_client_config.json
deleted file mode 100644
index 0fb2c36f7df8..000000000000
--- a/owl-bot-staging/Firestore/v1/src/V1/resources/firestore_client_config.json
+++ /dev/null
@@ -1,174 +0,0 @@
-{
- "interfaces": {
- "google.firestore.v1.Firestore": {
- "retry_codes": {
- "no_retry_codes": [],
- "retry_policy_1_codes": [
- "RESOURCE_EXHAUSTED",
- "UNAVAILABLE"
- ],
- "retry_policy_2_codes": [
- "RESOURCE_EXHAUSTED",
- "UNAVAILABLE",
- "INTERNAL",
- "DEADLINE_EXCEEDED"
- ],
- "retry_policy_3_codes": [
- "RESOURCE_EXHAUSTED",
- "UNAVAILABLE",
- "INTERNAL",
- "DEADLINE_EXCEEDED"
- ],
- "no_retry_1_codes": [],
- "retry_policy_4_codes": [
- "RESOURCE_EXHAUSTED",
- "UNAVAILABLE",
- "INTERNAL",
- "DEADLINE_EXCEEDED"
- ],
- "retry_policy_5_codes": [
- "RESOURCE_EXHAUSTED",
- "UNAVAILABLE",
- "ABORTED"
- ]
- },
- "retry_params": {
- "no_retry_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 0,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 0,
- "total_timeout_millis": 0
- },
- "retry_policy_1_params": {
- "initial_retry_delay_millis": 100,
- "retry_delay_multiplier": 1.3,
- "max_retry_delay_millis": 60000,
- "initial_rpc_timeout_millis": 60000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000,
- "total_timeout_millis": 60000
- },
- "retry_policy_2_params": {
- "initial_retry_delay_millis": 100,
- "retry_delay_multiplier": 1.3,
- "max_retry_delay_millis": 60000,
- "initial_rpc_timeout_millis": 300000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 300000,
- "total_timeout_millis": 300000
- },
- "retry_policy_3_params": {
- "initial_retry_delay_millis": 100,
- "retry_delay_multiplier": 1.3,
- "max_retry_delay_millis": 60000,
- "initial_rpc_timeout_millis": 86400000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 86400000,
- "total_timeout_millis": 86400000
- },
- "no_retry_1_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 86400000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 86400000,
- "total_timeout_millis": 86400000
- },
- "retry_policy_4_params": {
- "initial_retry_delay_millis": 100,
- "retry_delay_multiplier": 1.3,
- "max_retry_delay_millis": 60000,
- "initial_rpc_timeout_millis": 60000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000,
- "total_timeout_millis": 60000
- },
- "retry_policy_5_params": {
- "initial_retry_delay_millis": 100,
- "retry_delay_multiplier": 1.3,
- "max_retry_delay_millis": 60000,
- "initial_rpc_timeout_millis": 60000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000,
- "total_timeout_millis": 60000
- }
- },
- "methods": {
- "BatchGetDocuments": {
- "timeout_millis": 300000
- },
- "BatchWrite": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_5_codes",
- "retry_params_name": "retry_policy_5_params"
- },
- "BeginTransaction": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_4_codes",
- "retry_params_name": "retry_policy_4_params"
- },
- "Commit": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "CreateDocument": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "DeleteDocument": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_4_codes",
- "retry_params_name": "retry_policy_4_params"
- },
- "GetDocument": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_4_codes",
- "retry_params_name": "retry_policy_4_params"
- },
- "ListCollectionIds": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_4_codes",
- "retry_params_name": "retry_policy_4_params"
- },
- "ListDocuments": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_4_codes",
- "retry_params_name": "retry_policy_4_params"
- },
- "Listen": {
- "timeout_millis": 86400000
- },
- "PartitionQuery": {
- "timeout_millis": 300000,
- "retry_codes_name": "retry_policy_2_codes",
- "retry_params_name": "retry_policy_2_params"
- },
- "Rollback": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_4_codes",
- "retry_params_name": "retry_policy_4_params"
- },
- "RunAggregationQuery": {
- "timeout_millis": 300000
- },
- "RunQuery": {
- "timeout_millis": 300000
- },
- "UpdateDocument": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "Write": {
- "timeout_millis": 86400000
- }
- }
- }
- }
-}
diff --git a/owl-bot-staging/Firestore/v1/src/V1/resources/firestore_descriptor_config.php b/owl-bot-staging/Firestore/v1/src/V1/resources/firestore_descriptor_config.php
deleted file mode 100644
index 4fff43f18ee9..000000000000
--- a/owl-bot-staging/Firestore/v1/src/V1/resources/firestore_descriptor_config.php
+++ /dev/null
@@ -1,272 +0,0 @@
- [
- 'google.firestore.v1.Firestore' => [
- 'BatchGetDocuments' => [
- 'grpcStreaming' => [
- 'grpcStreamingType' => 'ServerStreaming',
- ],
- 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL,
- 'responseType' => 'Google\Cloud\Firestore\V1\BatchGetDocumentsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'database',
- 'fieldAccessors' => [
- 'getDatabase',
- ],
- ],
- ],
- ],
- 'BatchWrite' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\V1\BatchWriteResponse',
- 'headerParams' => [
- [
- 'keyName' => 'database',
- 'fieldAccessors' => [
- 'getDatabase',
- ],
- ],
- ],
- ],
- 'BeginTransaction' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\V1\BeginTransactionResponse',
- 'headerParams' => [
- [
- 'keyName' => 'database',
- 'fieldAccessors' => [
- 'getDatabase',
- ],
- ],
- ],
- ],
- 'Commit' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\V1\CommitResponse',
- 'headerParams' => [
- [
- 'keyName' => 'database',
- 'fieldAccessors' => [
- 'getDatabase',
- ],
- ],
- ],
- ],
- 'CreateDocument' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\V1\Document',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- [
- 'keyName' => 'collection_id',
- 'fieldAccessors' => [
- 'getCollectionId',
- ],
- ],
- ],
- ],
- 'DeleteDocument' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Protobuf\GPBEmpty',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetDocument' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\V1\Document',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListCollectionIds' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getCollectionIds',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Firestore\V1\ListCollectionIdsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListDocuments' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getDocuments',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Firestore\V1\ListDocumentsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- [
- 'keyName' => 'collection_id',
- 'fieldAccessors' => [
- 'getCollectionId',
- ],
- ],
- ],
- ],
- 'Listen' => [
- 'grpcStreaming' => [
- 'grpcStreamingType' => 'BidiStreaming',
- ],
- 'callType' => \Google\ApiCore\Call::BIDI_STREAMING_CALL,
- 'responseType' => 'Google\Cloud\Firestore\V1\ListenResponse',
- 'headerParams' => [
- [
- 'keyName' => 'database',
- 'fieldAccessors' => [
- 'getDatabase',
- ],
- ],
- ],
- ],
- 'PartitionQuery' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getPartitions',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Firestore\V1\PartitionQueryResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'Rollback' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Protobuf\GPBEmpty',
- 'headerParams' => [
- [
- 'keyName' => 'database',
- 'fieldAccessors' => [
- 'getDatabase',
- ],
- ],
- ],
- ],
- 'RunAggregationQuery' => [
- 'grpcStreaming' => [
- 'grpcStreamingType' => 'ServerStreaming',
- ],
- 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL,
- 'responseType' => 'Google\Cloud\Firestore\V1\RunAggregationQueryResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'RunQuery' => [
- 'grpcStreaming' => [
- 'grpcStreamingType' => 'ServerStreaming',
- ],
- 'callType' => \Google\ApiCore\Call::SERVER_STREAMING_CALL,
- 'responseType' => 'Google\Cloud\Firestore\V1\RunQueryResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'UpdateDocument' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Firestore\V1\Document',
- 'headerParams' => [
- [
- 'keyName' => 'document.name',
- 'fieldAccessors' => [
- 'getDocument',
- 'getName',
- ],
- ],
- ],
- ],
- 'Write' => [
- 'grpcStreaming' => [
- 'grpcStreamingType' => 'BidiStreaming',
- ],
- 'callType' => \Google\ApiCore\Call::BIDI_STREAMING_CALL,
- 'responseType' => 'Google\Cloud\Firestore\V1\WriteResponse',
- 'headerParams' => [
- [
- 'keyName' => 'database',
- 'fieldAccessors' => [
- 'getDatabase',
- ],
- ],
- ],
- ],
- ],
- ],
-];
diff --git a/owl-bot-staging/Firestore/v1/src/V1/resources/firestore_rest_client_config.php b/owl-bot-staging/Firestore/v1/src/V1/resources/firestore_rest_client_config.php
deleted file mode 100644
index 054730f1901a..000000000000
--- a/owl-bot-staging/Firestore/v1/src/V1/resources/firestore_rest_client_config.php
+++ /dev/null
@@ -1,292 +0,0 @@
- [
- 'google.firestore.v1.Firestore' => [
- 'BatchGetDocuments' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{database=projects/*/databases/*}/documents:batchGet',
- 'body' => '*',
- 'placeholders' => [
- 'database' => [
- 'getters' => [
- 'getDatabase',
- ],
- ],
- ],
- ],
- 'BatchWrite' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{database=projects/*/databases/*}/documents:batchWrite',
- 'body' => '*',
- 'placeholders' => [
- 'database' => [
- 'getters' => [
- 'getDatabase',
- ],
- ],
- ],
- ],
- 'BeginTransaction' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{database=projects/*/databases/*}/documents:beginTransaction',
- 'body' => '*',
- 'placeholders' => [
- 'database' => [
- 'getters' => [
- 'getDatabase',
- ],
- ],
- ],
- ],
- 'Commit' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{database=projects/*/databases/*}/documents:commit',
- 'body' => '*',
- 'placeholders' => [
- 'database' => [
- 'getters' => [
- 'getDatabase',
- ],
- ],
- ],
- ],
- 'CreateDocument' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*/documents/**}/{collection_id}',
- 'body' => 'document',
- 'placeholders' => [
- 'collection_id' => [
- 'getters' => [
- 'getCollectionId',
- ],
- ],
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'document_id',
- ],
- ],
- 'DeleteDocument' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*/documents/*/**}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetDocument' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*/documents/*/**}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListCollectionIds' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*/documents}:listCollectionIds',
- 'body' => '*',
- 'additionalBindings' => [
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*/documents/*/**}:listCollectionIds',
- 'body' => '*',
- ],
- ],
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListDocuments' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*/documents/*/**}/{collection_id}',
- 'additionalBindings' => [
- [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*/documents}/{collection_id}',
- ],
- ],
- 'placeholders' => [
- 'collection_id' => [
- 'getters' => [
- 'getCollectionId',
- ],
- ],
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'PartitionQuery' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*/documents}:partitionQuery',
- 'body' => '*',
- 'additionalBindings' => [
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*/documents/*/**}:partitionQuery',
- 'body' => '*',
- ],
- ],
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'Rollback' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{database=projects/*/databases/*}/documents:rollback',
- 'body' => '*',
- 'placeholders' => [
- 'database' => [
- 'getters' => [
- 'getDatabase',
- ],
- ],
- ],
- ],
- 'RunAggregationQuery' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*/documents}:runAggregationQuery',
- 'body' => '*',
- 'additionalBindings' => [
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*/documents/*/**}:runAggregationQuery',
- 'body' => '*',
- ],
- ],
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'RunQuery' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*/documents}:runQuery',
- 'body' => '*',
- 'additionalBindings' => [
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/databases/*/documents/*/**}:runQuery',
- 'body' => '*',
- ],
- ],
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'UpdateDocument' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{document.name=projects/*/databases/*/documents/*/**}',
- 'body' => 'document',
- 'placeholders' => [
- 'document.name' => [
- 'getters' => [
- 'getDocument',
- 'getName',
- ],
- ],
- ],
- 'queryParams' => [
- 'update_mask',
- ],
- ],
- ],
- 'google.longrunning.Operations' => [
- 'CancelOperation' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*/operations/*}:cancel',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteOperation' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*/operations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetOperation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*/operations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListOperations' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/databases/*}/operations',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- ],
- 'numericEnums' => true,
-];
diff --git a/owl-bot-staging/Firestore/v1/tests/Unit/V1/Client/FirestoreClientTest.php b/owl-bot-staging/Firestore/v1/tests/Unit/V1/Client/FirestoreClientTest.php
deleted file mode 100644
index e071d92d5b47..000000000000
--- a/owl-bot-staging/Firestore/v1/tests/Unit/V1/Client/FirestoreClientTest.php
+++ /dev/null
@@ -1,1323 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return FirestoreClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new FirestoreClient($options);
- }
-
- /** @test */
- public function batchGetDocumentsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $missing = 'missing1069449574';
- $transaction2 = '17';
- $expectedResponse = new BatchGetDocumentsResponse();
- $expectedResponse->setMissing($missing);
- $expectedResponse->setTransaction($transaction2);
- $transport->addResponse($expectedResponse);
- $missing2 = 'missing21243859865';
- $transaction3 = '18';
- $expectedResponse2 = new BatchGetDocumentsResponse();
- $expectedResponse2->setMissing($missing2);
- $expectedResponse2->setTransaction($transaction3);
- $transport->addResponse($expectedResponse2);
- $missing3 = 'missing31243859866';
- $transaction4 = '19';
- $expectedResponse3 = new BatchGetDocumentsResponse();
- $expectedResponse3->setMissing($missing3);
- $expectedResponse3->setTransaction($transaction4);
- $transport->addResponse($expectedResponse3);
- // Mock request
- $database = 'database1789464955';
- $documents = [];
- $request = (new BatchGetDocumentsRequest())
- ->setDatabase($database)
- ->setDocuments($documents);
- $serverStream = $gapicClient->batchGetDocuments($request);
- $this->assertInstanceOf(ServerStream::class, $serverStream);
- $responses = iterator_to_array($serverStream->readAll());
- $expectedResponses = [];
- $expectedResponses[] = $expectedResponse;
- $expectedResponses[] = $expectedResponse2;
- $expectedResponses[] = $expectedResponse3;
- $this->assertEquals($expectedResponses, $responses);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/BatchGetDocuments', $actualFuncCall);
- $actualValue = $actualRequestObject->getDatabase();
- $this->assertProtobufEquals($database, $actualValue);
- $actualValue = $actualRequestObject->getDocuments();
- $this->assertProtobufEquals($documents, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function batchGetDocumentsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->setStreamingStatus($status);
- $this->assertTrue($transport->isExhausted());
- // Mock request
- $database = 'database1789464955';
- $documents = [];
- $request = (new BatchGetDocumentsRequest())
- ->setDatabase($database)
- ->setDocuments($documents);
- $serverStream = $gapicClient->batchGetDocuments($request);
- $results = $serverStream->readAll();
- try {
- iterator_to_array($results);
- // If the close stream 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function batchWriteTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new BatchWriteResponse();
- $transport->addResponse($expectedResponse);
- $request = new BatchWriteRequest();
- $response = $gapicClient->batchWrite($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/BatchWrite', $actualFuncCall);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function batchWriteExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- $request = new BatchWriteRequest();
- try {
- $gapicClient->batchWrite($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function beginTransactionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $transaction = '-34';
- $expectedResponse = new BeginTransactionResponse();
- $expectedResponse->setTransaction($transaction);
- $transport->addResponse($expectedResponse);
- // Mock request
- $database = 'database1789464955';
- $request = (new BeginTransactionRequest())
- ->setDatabase($database);
- $response = $gapicClient->beginTransaction($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/BeginTransaction', $actualFuncCall);
- $actualValue = $actualRequestObject->getDatabase();
- $this->assertProtobufEquals($database, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function beginTransactionExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $database = 'database1789464955';
- $request = (new BeginTransactionRequest())
- ->setDatabase($database);
- try {
- $gapicClient->beginTransaction($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function commitTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new CommitResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $database = 'database1789464955';
- $writes = [];
- $request = (new CommitRequest())
- ->setDatabase($database)
- ->setWrites($writes);
- $response = $gapicClient->commit($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/Commit', $actualFuncCall);
- $actualValue = $actualRequestObject->getDatabase();
- $this->assertProtobufEquals($database, $actualValue);
- $actualValue = $actualRequestObject->getWrites();
- $this->assertProtobufEquals($writes, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function commitExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $database = 'database1789464955';
- $writes = [];
- $request = (new CommitRequest())
- ->setDatabase($database)
- ->setWrites($writes);
- try {
- $gapicClient->commit($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createDocumentTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $expectedResponse = new Document();
- $expectedResponse->setName($name);
- $transport->addResponse($expectedResponse);
- // Mock request
- $parent = 'parent-995424086';
- $collectionId = 'collectionId-821242276';
- $documentId = 'documentId506676927';
- $document = new Document();
- $request = (new CreateDocumentRequest())
- ->setParent($parent)
- ->setCollectionId($collectionId)
- ->setDocumentId($documentId)
- ->setDocument($document);
- $response = $gapicClient->createDocument($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/CreateDocument', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($parent, $actualValue);
- $actualValue = $actualRequestObject->getCollectionId();
- $this->assertProtobufEquals($collectionId, $actualValue);
- $actualValue = $actualRequestObject->getDocumentId();
- $this->assertProtobufEquals($documentId, $actualValue);
- $actualValue = $actualRequestObject->getDocument();
- $this->assertProtobufEquals($document, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createDocumentExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $parent = 'parent-995424086';
- $collectionId = 'collectionId-821242276';
- $documentId = 'documentId506676927';
- $document = new Document();
- $request = (new CreateDocumentRequest())
- ->setParent($parent)
- ->setCollectionId($collectionId)
- ->setDocumentId($documentId)
- ->setDocument($document);
- try {
- $gapicClient->createDocument($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteDocumentTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $name = 'name3373707';
- $request = (new DeleteDocumentRequest())
- ->setName($name);
- $gapicClient->deleteDocument($request);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/DeleteDocument', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($name, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteDocumentExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $name = 'name3373707';
- $request = (new DeleteDocumentRequest())
- ->setName($name);
- try {
- $gapicClient->deleteDocument($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getDocumentTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $expectedResponse = new Document();
- $expectedResponse->setName($name2);
- $transport->addResponse($expectedResponse);
- // Mock request
- $name = 'name3373707';
- $request = (new GetDocumentRequest())
- ->setName($name);
- $response = $gapicClient->getDocument($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/GetDocument', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($name, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getDocumentExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $name = 'name3373707';
- $request = (new GetDocumentRequest())
- ->setName($name);
- try {
- $gapicClient->getDocument($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listCollectionIdsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $collectionIdsElement = 'collectionIdsElement1368994900';
- $collectionIds = [
- $collectionIdsElement,
- ];
- $expectedResponse = new ListCollectionIdsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setCollectionIds($collectionIds);
- $transport->addResponse($expectedResponse);
- // Mock request
- $parent = 'parent-995424086';
- $request = (new ListCollectionIdsRequest())
- ->setParent($parent);
- $response = $gapicClient->listCollectionIds($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getCollectionIds()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/ListCollectionIds', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($parent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listCollectionIdsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $parent = 'parent-995424086';
- $request = (new ListCollectionIdsRequest())
- ->setParent($parent);
- try {
- $gapicClient->listCollectionIds($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listDocumentsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $documentsElement = new Document();
- $documents = [
- $documentsElement,
- ];
- $expectedResponse = new ListDocumentsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setDocuments($documents);
- $transport->addResponse($expectedResponse);
- // Mock request
- $parent = 'parent-995424086';
- $collectionId = 'collectionId-821242276';
- $request = (new ListDocumentsRequest())
- ->setParent($parent)
- ->setCollectionId($collectionId);
- $response = $gapicClient->listDocuments($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getDocuments()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/ListDocuments', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($parent, $actualValue);
- $actualValue = $actualRequestObject->getCollectionId();
- $this->assertProtobufEquals($collectionId, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listDocumentsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $parent = 'parent-995424086';
- $collectionId = 'collectionId-821242276';
- $request = (new ListDocumentsRequest())
- ->setParent($parent)
- ->setCollectionId($collectionId);
- try {
- $gapicClient->listDocuments($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listenTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new ListenResponse();
- $transport->addResponse($expectedResponse);
- $expectedResponse2 = new ListenResponse();
- $transport->addResponse($expectedResponse2);
- $expectedResponse3 = new ListenResponse();
- $transport->addResponse($expectedResponse3);
- // Mock request
- $database = 'database1789464955';
- $request = new ListenRequest();
- $request->setDatabase($database);
- $database2 = 'database21688906350';
- $request2 = new ListenRequest();
- $request2->setDatabase($database2);
- $database3 = 'database31688906351';
- $request3 = new ListenRequest();
- $request3->setDatabase($database3);
- $bidi = $gapicClient->listen();
- $this->assertInstanceOf(BidiStream::class, $bidi);
- $bidi->write($request);
- $responses = [];
- $responses[] = $bidi->read();
- $bidi->writeAll([
- $request2,
- $request3,
- ]);
- foreach ($bidi->closeWriteAndReadAll() as $response) {
- $responses[] = $response;
- }
-
- $expectedResponses = [];
- $expectedResponses[] = $expectedResponse;
- $expectedResponses[] = $expectedResponse2;
- $expectedResponses[] = $expectedResponse3;
- $this->assertEquals($expectedResponses, $responses);
- $createStreamRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($createStreamRequests));
- $streamFuncCall = $createStreamRequests[0]->getFuncCall();
- $streamRequestObject = $createStreamRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/Listen', $streamFuncCall);
- $this->assertNull($streamRequestObject);
- $callObjects = $transport->popCallObjects();
- $this->assertSame(1, count($callObjects));
- $bidiCall = $callObjects[0];
- $writeRequests = $bidiCall->popReceivedCalls();
- $expectedRequests = [];
- $expectedRequests[] = $request;
- $expectedRequests[] = $request2;
- $expectedRequests[] = $request3;
- $this->assertEquals($expectedRequests, $writeRequests);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listenExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->setStreamingStatus($status);
- $this->assertTrue($transport->isExhausted());
- $bidi = $gapicClient->listen();
- $results = $bidi->closeWriteAndReadAll();
- try {
- iterator_to_array($results);
- // If the close stream 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function partitionQueryTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $partitionsElement = new Cursor();
- $partitions = [
- $partitionsElement,
- ];
- $expectedResponse = new PartitionQueryResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setPartitions($partitions);
- $transport->addResponse($expectedResponse);
- $request = new PartitionQueryRequest();
- $response = $gapicClient->partitionQuery($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getPartitions()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/PartitionQuery', $actualFuncCall);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function partitionQueryExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- $request = new PartitionQueryRequest();
- try {
- $gapicClient->partitionQuery($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function rollbackTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $database = 'database1789464955';
- $transaction = '-34';
- $request = (new RollbackRequest())
- ->setDatabase($database)
- ->setTransaction($transaction);
- $gapicClient->rollback($request);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/Rollback', $actualFuncCall);
- $actualValue = $actualRequestObject->getDatabase();
- $this->assertProtobufEquals($database, $actualValue);
- $actualValue = $actualRequestObject->getTransaction();
- $this->assertProtobufEquals($transaction, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function rollbackExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $database = 'database1789464955';
- $transaction = '-34';
- $request = (new RollbackRequest())
- ->setDatabase($database)
- ->setTransaction($transaction);
- try {
- $gapicClient->rollback($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function runAggregationQueryTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $transaction2 = '17';
- $expectedResponse = new RunAggregationQueryResponse();
- $expectedResponse->setTransaction($transaction2);
- $transport->addResponse($expectedResponse);
- $transaction3 = '18';
- $expectedResponse2 = new RunAggregationQueryResponse();
- $expectedResponse2->setTransaction($transaction3);
- $transport->addResponse($expectedResponse2);
- $transaction4 = '19';
- $expectedResponse3 = new RunAggregationQueryResponse();
- $expectedResponse3->setTransaction($transaction4);
- $transport->addResponse($expectedResponse3);
- // Mock request
- $parent = 'parent-995424086';
- $request = (new RunAggregationQueryRequest())
- ->setParent($parent);
- $serverStream = $gapicClient->runAggregationQuery($request);
- $this->assertInstanceOf(ServerStream::class, $serverStream);
- $responses = iterator_to_array($serverStream->readAll());
- $expectedResponses = [];
- $expectedResponses[] = $expectedResponse;
- $expectedResponses[] = $expectedResponse2;
- $expectedResponses[] = $expectedResponse3;
- $this->assertEquals($expectedResponses, $responses);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/RunAggregationQuery', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($parent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function runAggregationQueryExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->setStreamingStatus($status);
- $this->assertTrue($transport->isExhausted());
- // Mock request
- $parent = 'parent-995424086';
- $request = (new RunAggregationQueryRequest())
- ->setParent($parent);
- $serverStream = $gapicClient->runAggregationQuery($request);
- $results = $serverStream->readAll();
- try {
- iterator_to_array($results);
- // If the close stream 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function runQueryTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $transaction2 = '17';
- $skippedResults = 880286183;
- $done = true;
- $expectedResponse = new RunQueryResponse();
- $expectedResponse->setTransaction($transaction2);
- $expectedResponse->setSkippedResults($skippedResults);
- $expectedResponse->setDone($done);
- $transport->addResponse($expectedResponse);
- $transaction3 = '18';
- $skippedResults2 = 153532454;
- $done2 = false;
- $expectedResponse2 = new RunQueryResponse();
- $expectedResponse2->setTransaction($transaction3);
- $expectedResponse2->setSkippedResults($skippedResults2);
- $expectedResponse2->setDone($done2);
- $transport->addResponse($expectedResponse2);
- $transaction4 = '19';
- $skippedResults3 = 153532453;
- $done3 = true;
- $expectedResponse3 = new RunQueryResponse();
- $expectedResponse3->setTransaction($transaction4);
- $expectedResponse3->setSkippedResults($skippedResults3);
- $expectedResponse3->setDone($done3);
- $transport->addResponse($expectedResponse3);
- // Mock request
- $parent = 'parent-995424086';
- $request = (new RunQueryRequest())
- ->setParent($parent);
- $serverStream = $gapicClient->runQuery($request);
- $this->assertInstanceOf(ServerStream::class, $serverStream);
- $responses = iterator_to_array($serverStream->readAll());
- $expectedResponses = [];
- $expectedResponses[] = $expectedResponse;
- $expectedResponses[] = $expectedResponse2;
- $expectedResponses[] = $expectedResponse3;
- $this->assertEquals($expectedResponses, $responses);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/RunQuery', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($parent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function runQueryExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->setStreamingStatus($status);
- $this->assertTrue($transport->isExhausted());
- // Mock request
- $parent = 'parent-995424086';
- $request = (new RunQueryRequest())
- ->setParent($parent);
- $serverStream = $gapicClient->runQuery($request);
- $results = $serverStream->readAll();
- try {
- iterator_to_array($results);
- // If the close stream 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function updateDocumentTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $expectedResponse = new Document();
- $expectedResponse->setName($name);
- $transport->addResponse($expectedResponse);
- // Mock request
- $document = new Document();
- $updateMask = new DocumentMask();
- $request = (new UpdateDocumentRequest())
- ->setDocument($document)
- ->setUpdateMask($updateMask);
- $response = $gapicClient->updateDocument($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/UpdateDocument', $actualFuncCall);
- $actualValue = $actualRequestObject->getDocument();
- $this->assertProtobufEquals($document, $actualValue);
- $actualValue = $actualRequestObject->getUpdateMask();
- $this->assertProtobufEquals($updateMask, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function updateDocumentExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $document = new Document();
- $updateMask = new DocumentMask();
- $request = (new UpdateDocumentRequest())
- ->setDocument($document)
- ->setUpdateMask($updateMask);
- try {
- $gapicClient->updateDocument($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function writeTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $streamId = 'streamId-315624902';
- $streamToken = '122';
- $expectedResponse = new WriteResponse();
- $expectedResponse->setStreamId($streamId);
- $expectedResponse->setStreamToken($streamToken);
- $transport->addResponse($expectedResponse);
- $streamId2 = 'streamId21627150189';
- $streamToken2 = '-83';
- $expectedResponse2 = new WriteResponse();
- $expectedResponse2->setStreamId($streamId2);
- $expectedResponse2->setStreamToken($streamToken2);
- $transport->addResponse($expectedResponse2);
- $streamId3 = 'streamId31627150190';
- $streamToken3 = '-82';
- $expectedResponse3 = new WriteResponse();
- $expectedResponse3->setStreamId($streamId3);
- $expectedResponse3->setStreamToken($streamToken3);
- $transport->addResponse($expectedResponse3);
- // Mock request
- $database = 'database1789464955';
- $request = new WriteRequest();
- $request->setDatabase($database);
- $database2 = 'database21688906350';
- $request2 = new WriteRequest();
- $request2->setDatabase($database2);
- $database3 = 'database31688906351';
- $request3 = new WriteRequest();
- $request3->setDatabase($database3);
- $bidi = $gapicClient->write();
- $this->assertInstanceOf(BidiStream::class, $bidi);
- $bidi->write($request);
- $responses = [];
- $responses[] = $bidi->read();
- $bidi->writeAll([
- $request2,
- $request3,
- ]);
- foreach ($bidi->closeWriteAndReadAll() as $response) {
- $responses[] = $response;
- }
-
- $expectedResponses = [];
- $expectedResponses[] = $expectedResponse;
- $expectedResponses[] = $expectedResponse2;
- $expectedResponses[] = $expectedResponse3;
- $this->assertEquals($expectedResponses, $responses);
- $createStreamRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($createStreamRequests));
- $streamFuncCall = $createStreamRequests[0]->getFuncCall();
- $streamRequestObject = $createStreamRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/Write', $streamFuncCall);
- $this->assertNull($streamRequestObject);
- $callObjects = $transport->popCallObjects();
- $this->assertSame(1, count($callObjects));
- $bidiCall = $callObjects[0];
- $writeRequests = $bidiCall->popReceivedCalls();
- $expectedRequests = [];
- $expectedRequests[] = $request;
- $expectedRequests[] = $request2;
- $expectedRequests[] = $request3;
- $this->assertEquals($expectedRequests, $writeRequests);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function writeExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->setStreamingStatus($status);
- $this->assertTrue($transport->isExhausted());
- $bidi = $gapicClient->write();
- $results = $bidi->closeWriteAndReadAll();
- try {
- iterator_to_array($results);
- // If the close stream 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function batchWriteAsyncTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new BatchWriteResponse();
- $transport->addResponse($expectedResponse);
- $request = new BatchWriteRequest();
- $response = $gapicClient->batchWriteAsync($request)->wait();
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/BatchWrite', $actualFuncCall);
- $this->assertTrue($transport->isExhausted());
- }
-}
diff --git a/owl-bot-staging/Firestore/v1/tests/Unit/V1/FirestoreClientTest.php b/owl-bot-staging/Firestore/v1/tests/Unit/V1/FirestoreClientTest.php
deleted file mode 100644
index e328eb47242a..000000000000
--- a/owl-bot-staging/Firestore/v1/tests/Unit/V1/FirestoreClientTest.php
+++ /dev/null
@@ -1,1219 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return FirestoreClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new FirestoreClient($options);
- }
-
- /** @test */
- public function batchGetDocumentsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $missing = 'missing1069449574';
- $transaction2 = '17';
- $expectedResponse = new BatchGetDocumentsResponse();
- $expectedResponse->setMissing($missing);
- $expectedResponse->setTransaction($transaction2);
- $transport->addResponse($expectedResponse);
- $missing2 = 'missing21243859865';
- $transaction3 = '18';
- $expectedResponse2 = new BatchGetDocumentsResponse();
- $expectedResponse2->setMissing($missing2);
- $expectedResponse2->setTransaction($transaction3);
- $transport->addResponse($expectedResponse2);
- $missing3 = 'missing31243859866';
- $transaction4 = '19';
- $expectedResponse3 = new BatchGetDocumentsResponse();
- $expectedResponse3->setMissing($missing3);
- $expectedResponse3->setTransaction($transaction4);
- $transport->addResponse($expectedResponse3);
- // Mock request
- $database = 'database1789464955';
- $documents = [];
- $serverStream = $gapicClient->batchGetDocuments($database, $documents);
- $this->assertInstanceOf(ServerStream::class, $serverStream);
- $responses = iterator_to_array($serverStream->readAll());
- $expectedResponses = [];
- $expectedResponses[] = $expectedResponse;
- $expectedResponses[] = $expectedResponse2;
- $expectedResponses[] = $expectedResponse3;
- $this->assertEquals($expectedResponses, $responses);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/BatchGetDocuments', $actualFuncCall);
- $actualValue = $actualRequestObject->getDatabase();
- $this->assertProtobufEquals($database, $actualValue);
- $actualValue = $actualRequestObject->getDocuments();
- $this->assertProtobufEquals($documents, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function batchGetDocumentsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->setStreamingStatus($status);
- $this->assertTrue($transport->isExhausted());
- // Mock request
- $database = 'database1789464955';
- $documents = [];
- $serverStream = $gapicClient->batchGetDocuments($database, $documents);
- $results = $serverStream->readAll();
- try {
- iterator_to_array($results);
- // If the close stream 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function batchWriteTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new BatchWriteResponse();
- $transport->addResponse($expectedResponse);
- $response = $gapicClient->batchWrite();
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/BatchWrite', $actualFuncCall);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function batchWriteExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- try {
- $gapicClient->batchWrite();
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function beginTransactionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $transaction = '-34';
- $expectedResponse = new BeginTransactionResponse();
- $expectedResponse->setTransaction($transaction);
- $transport->addResponse($expectedResponse);
- // Mock request
- $database = 'database1789464955';
- $response = $gapicClient->beginTransaction($database);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/BeginTransaction', $actualFuncCall);
- $actualValue = $actualRequestObject->getDatabase();
- $this->assertProtobufEquals($database, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function beginTransactionExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $database = 'database1789464955';
- try {
- $gapicClient->beginTransaction($database);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function commitTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new CommitResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $database = 'database1789464955';
- $writes = [];
- $response = $gapicClient->commit($database, $writes);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/Commit', $actualFuncCall);
- $actualValue = $actualRequestObject->getDatabase();
- $this->assertProtobufEquals($database, $actualValue);
- $actualValue = $actualRequestObject->getWrites();
- $this->assertProtobufEquals($writes, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function commitExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $database = 'database1789464955';
- $writes = [];
- try {
- $gapicClient->commit($database, $writes);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createDocumentTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $expectedResponse = new Document();
- $expectedResponse->setName($name);
- $transport->addResponse($expectedResponse);
- // Mock request
- $parent = 'parent-995424086';
- $collectionId = 'collectionId-821242276';
- $documentId = 'documentId506676927';
- $document = new Document();
- $response = $gapicClient->createDocument($parent, $collectionId, $documentId, $document);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/CreateDocument', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($parent, $actualValue);
- $actualValue = $actualRequestObject->getCollectionId();
- $this->assertProtobufEquals($collectionId, $actualValue);
- $actualValue = $actualRequestObject->getDocumentId();
- $this->assertProtobufEquals($documentId, $actualValue);
- $actualValue = $actualRequestObject->getDocument();
- $this->assertProtobufEquals($document, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createDocumentExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $parent = 'parent-995424086';
- $collectionId = 'collectionId-821242276';
- $documentId = 'documentId506676927';
- $document = new Document();
- try {
- $gapicClient->createDocument($parent, $collectionId, $documentId, $document);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteDocumentTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $name = 'name3373707';
- $gapicClient->deleteDocument($name);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/DeleteDocument', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($name, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteDocumentExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $name = 'name3373707';
- try {
- $gapicClient->deleteDocument($name);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getDocumentTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $expectedResponse = new Document();
- $expectedResponse->setName($name2);
- $transport->addResponse($expectedResponse);
- // Mock request
- $name = 'name3373707';
- $response = $gapicClient->getDocument($name);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/GetDocument', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($name, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getDocumentExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $name = 'name3373707';
- try {
- $gapicClient->getDocument($name);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listCollectionIdsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $collectionIdsElement = 'collectionIdsElement1368994900';
- $collectionIds = [
- $collectionIdsElement,
- ];
- $expectedResponse = new ListCollectionIdsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setCollectionIds($collectionIds);
- $transport->addResponse($expectedResponse);
- // Mock request
- $parent = 'parent-995424086';
- $response = $gapicClient->listCollectionIds($parent);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getCollectionIds()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/ListCollectionIds', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($parent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listCollectionIdsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $parent = 'parent-995424086';
- try {
- $gapicClient->listCollectionIds($parent);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listDocumentsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $documentsElement = new Document();
- $documents = [
- $documentsElement,
- ];
- $expectedResponse = new ListDocumentsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setDocuments($documents);
- $transport->addResponse($expectedResponse);
- // Mock request
- $parent = 'parent-995424086';
- $collectionId = 'collectionId-821242276';
- $response = $gapicClient->listDocuments($parent, $collectionId);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getDocuments()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/ListDocuments', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($parent, $actualValue);
- $actualValue = $actualRequestObject->getCollectionId();
- $this->assertProtobufEquals($collectionId, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listDocumentsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $parent = 'parent-995424086';
- $collectionId = 'collectionId-821242276';
- try {
- $gapicClient->listDocuments($parent, $collectionId);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listenTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new ListenResponse();
- $transport->addResponse($expectedResponse);
- $expectedResponse2 = new ListenResponse();
- $transport->addResponse($expectedResponse2);
- $expectedResponse3 = new ListenResponse();
- $transport->addResponse($expectedResponse3);
- // Mock request
- $database = 'database1789464955';
- $request = new ListenRequest();
- $request->setDatabase($database);
- $database2 = 'database21688906350';
- $request2 = new ListenRequest();
- $request2->setDatabase($database2);
- $database3 = 'database31688906351';
- $request3 = new ListenRequest();
- $request3->setDatabase($database3);
- $bidi = $gapicClient->listen();
- $this->assertInstanceOf(BidiStream::class, $bidi);
- $bidi->write($request);
- $responses = [];
- $responses[] = $bidi->read();
- $bidi->writeAll([
- $request2,
- $request3,
- ]);
- foreach ($bidi->closeWriteAndReadAll() as $response) {
- $responses[] = $response;
- }
-
- $expectedResponses = [];
- $expectedResponses[] = $expectedResponse;
- $expectedResponses[] = $expectedResponse2;
- $expectedResponses[] = $expectedResponse3;
- $this->assertEquals($expectedResponses, $responses);
- $createStreamRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($createStreamRequests));
- $streamFuncCall = $createStreamRequests[0]->getFuncCall();
- $streamRequestObject = $createStreamRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/Listen', $streamFuncCall);
- $this->assertNull($streamRequestObject);
- $callObjects = $transport->popCallObjects();
- $this->assertSame(1, count($callObjects));
- $bidiCall = $callObjects[0];
- $writeRequests = $bidiCall->popReceivedCalls();
- $expectedRequests = [];
- $expectedRequests[] = $request;
- $expectedRequests[] = $request2;
- $expectedRequests[] = $request3;
- $this->assertEquals($expectedRequests, $writeRequests);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listenExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->setStreamingStatus($status);
- $this->assertTrue($transport->isExhausted());
- $bidi = $gapicClient->listen();
- $results = $bidi->closeWriteAndReadAll();
- try {
- iterator_to_array($results);
- // If the close stream 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function partitionQueryTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $partitionsElement = new Cursor();
- $partitions = [
- $partitionsElement,
- ];
- $expectedResponse = new PartitionQueryResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setPartitions($partitions);
- $transport->addResponse($expectedResponse);
- $response = $gapicClient->partitionQuery();
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getPartitions()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/PartitionQuery', $actualFuncCall);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function partitionQueryExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- try {
- $gapicClient->partitionQuery();
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function rollbackTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $database = 'database1789464955';
- $transaction = '-34';
- $gapicClient->rollback($database, $transaction);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/Rollback', $actualFuncCall);
- $actualValue = $actualRequestObject->getDatabase();
- $this->assertProtobufEquals($database, $actualValue);
- $actualValue = $actualRequestObject->getTransaction();
- $this->assertProtobufEquals($transaction, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function rollbackExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $database = 'database1789464955';
- $transaction = '-34';
- try {
- $gapicClient->rollback($database, $transaction);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function runAggregationQueryTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $transaction2 = '17';
- $expectedResponse = new RunAggregationQueryResponse();
- $expectedResponse->setTransaction($transaction2);
- $transport->addResponse($expectedResponse);
- $transaction3 = '18';
- $expectedResponse2 = new RunAggregationQueryResponse();
- $expectedResponse2->setTransaction($transaction3);
- $transport->addResponse($expectedResponse2);
- $transaction4 = '19';
- $expectedResponse3 = new RunAggregationQueryResponse();
- $expectedResponse3->setTransaction($transaction4);
- $transport->addResponse($expectedResponse3);
- // Mock request
- $parent = 'parent-995424086';
- $serverStream = $gapicClient->runAggregationQuery($parent);
- $this->assertInstanceOf(ServerStream::class, $serverStream);
- $responses = iterator_to_array($serverStream->readAll());
- $expectedResponses = [];
- $expectedResponses[] = $expectedResponse;
- $expectedResponses[] = $expectedResponse2;
- $expectedResponses[] = $expectedResponse3;
- $this->assertEquals($expectedResponses, $responses);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/RunAggregationQuery', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($parent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function runAggregationQueryExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->setStreamingStatus($status);
- $this->assertTrue($transport->isExhausted());
- // Mock request
- $parent = 'parent-995424086';
- $serverStream = $gapicClient->runAggregationQuery($parent);
- $results = $serverStream->readAll();
- try {
- iterator_to_array($results);
- // If the close stream 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function runQueryTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $transaction2 = '17';
- $skippedResults = 880286183;
- $done = true;
- $expectedResponse = new RunQueryResponse();
- $expectedResponse->setTransaction($transaction2);
- $expectedResponse->setSkippedResults($skippedResults);
- $expectedResponse->setDone($done);
- $transport->addResponse($expectedResponse);
- $transaction3 = '18';
- $skippedResults2 = 153532454;
- $done2 = false;
- $expectedResponse2 = new RunQueryResponse();
- $expectedResponse2->setTransaction($transaction3);
- $expectedResponse2->setSkippedResults($skippedResults2);
- $expectedResponse2->setDone($done2);
- $transport->addResponse($expectedResponse2);
- $transaction4 = '19';
- $skippedResults3 = 153532453;
- $done3 = true;
- $expectedResponse3 = new RunQueryResponse();
- $expectedResponse3->setTransaction($transaction4);
- $expectedResponse3->setSkippedResults($skippedResults3);
- $expectedResponse3->setDone($done3);
- $transport->addResponse($expectedResponse3);
- // Mock request
- $parent = 'parent-995424086';
- $serverStream = $gapicClient->runQuery($parent);
- $this->assertInstanceOf(ServerStream::class, $serverStream);
- $responses = iterator_to_array($serverStream->readAll());
- $expectedResponses = [];
- $expectedResponses[] = $expectedResponse;
- $expectedResponses[] = $expectedResponse2;
- $expectedResponses[] = $expectedResponse3;
- $this->assertEquals($expectedResponses, $responses);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/RunQuery', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($parent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function runQueryExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->setStreamingStatus($status);
- $this->assertTrue($transport->isExhausted());
- // Mock request
- $parent = 'parent-995424086';
- $serverStream = $gapicClient->runQuery($parent);
- $results = $serverStream->readAll();
- try {
- iterator_to_array($results);
- // If the close stream 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function updateDocumentTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $expectedResponse = new Document();
- $expectedResponse->setName($name);
- $transport->addResponse($expectedResponse);
- // Mock request
- $document = new Document();
- $updateMask = new DocumentMask();
- $response = $gapicClient->updateDocument($document, $updateMask);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/UpdateDocument', $actualFuncCall);
- $actualValue = $actualRequestObject->getDocument();
- $this->assertProtobufEquals($document, $actualValue);
- $actualValue = $actualRequestObject->getUpdateMask();
- $this->assertProtobufEquals($updateMask, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function updateDocumentExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $document = new Document();
- $updateMask = new DocumentMask();
- try {
- $gapicClient->updateDocument($document, $updateMask);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function writeTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $streamId = 'streamId-315624902';
- $streamToken = '122';
- $expectedResponse = new WriteResponse();
- $expectedResponse->setStreamId($streamId);
- $expectedResponse->setStreamToken($streamToken);
- $transport->addResponse($expectedResponse);
- $streamId2 = 'streamId21627150189';
- $streamToken2 = '-83';
- $expectedResponse2 = new WriteResponse();
- $expectedResponse2->setStreamId($streamId2);
- $expectedResponse2->setStreamToken($streamToken2);
- $transport->addResponse($expectedResponse2);
- $streamId3 = 'streamId31627150190';
- $streamToken3 = '-82';
- $expectedResponse3 = new WriteResponse();
- $expectedResponse3->setStreamId($streamId3);
- $expectedResponse3->setStreamToken($streamToken3);
- $transport->addResponse($expectedResponse3);
- // Mock request
- $database = 'database1789464955';
- $request = new WriteRequest();
- $request->setDatabase($database);
- $database2 = 'database21688906350';
- $request2 = new WriteRequest();
- $request2->setDatabase($database2);
- $database3 = 'database31688906351';
- $request3 = new WriteRequest();
- $request3->setDatabase($database3);
- $bidi = $gapicClient->write();
- $this->assertInstanceOf(BidiStream::class, $bidi);
- $bidi->write($request);
- $responses = [];
- $responses[] = $bidi->read();
- $bidi->writeAll([
- $request2,
- $request3,
- ]);
- foreach ($bidi->closeWriteAndReadAll() as $response) {
- $responses[] = $response;
- }
-
- $expectedResponses = [];
- $expectedResponses[] = $expectedResponse;
- $expectedResponses[] = $expectedResponse2;
- $expectedResponses[] = $expectedResponse3;
- $this->assertEquals($expectedResponses, $responses);
- $createStreamRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($createStreamRequests));
- $streamFuncCall = $createStreamRequests[0]->getFuncCall();
- $streamRequestObject = $createStreamRequests[0]->getRequestObject();
- $this->assertSame('/google.firestore.v1.Firestore/Write', $streamFuncCall);
- $this->assertNull($streamRequestObject);
- $callObjects = $transport->popCallObjects();
- $this->assertSame(1, count($callObjects));
- $bidiCall = $callObjects[0];
- $writeRequests = $bidiCall->popReceivedCalls();
- $expectedRequests = [];
- $expectedRequests[] = $request;
- $expectedRequests[] = $request2;
- $expectedRequests[] = $request3;
- $this->assertEquals($expectedRequests, $writeRequests);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function writeExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->setStreamingStatus($status);
- $this->assertTrue($transport->isExhausted());
- $bidi = $gapicClient->write();
- $results = $bidi->closeWriteAndReadAll();
- try {
- iterator_to_array($results);
- // If the close stream 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-}
diff --git a/owl-bot-staging/Functions/v2/proto/src/GPBMetadata/Google/Cloud/Functions/V2/Functions.php b/owl-bot-staging/Functions/v2/proto/src/GPBMetadata/Google/Cloud/Functions/V2/Functions.php
deleted file mode 100644
index 67d1301d26f5..000000000000
Binary files a/owl-bot-staging/Functions/v2/proto/src/GPBMetadata/Google/Cloud/Functions/V2/Functions.php and /dev/null differ
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/AutomaticUpdatePolicy.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/AutomaticUpdatePolicy.php
deleted file mode 100644
index b30ace2a41a9..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/AutomaticUpdatePolicy.php
+++ /dev/null
@@ -1,34 +0,0 @@
-google.cloud.functions.v2.AutomaticUpdatePolicy
- */
-class AutomaticUpdatePolicy extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/BuildConfig.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/BuildConfig.php
deleted file mode 100644
index ad0033887c63..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/BuildConfig.php
+++ /dev/null
@@ -1,599 +0,0 @@
-google.cloud.functions.v2.BuildConfig
- */
-class BuildConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The Cloud Build name of the latest successful deployment of
- * the function.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $build = '';
- /**
- * The runtime in which to run the function. Required when deploying a new
- * function, optional when updating an existing function. For a complete
- * list of possible choices, see the
- * [`gcloud` command
- * reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
- *
- * Generated from protobuf field string runtime = 2;
- */
- protected $runtime = '';
- /**
- * The name of the function (as defined in source code) that will be
- * executed. Defaults to the resource name suffix, if not specified. For
- * backward compatibility, if function with given name is not found, then the
- * system will try to use function named "function".
- * For Node.js this is name of a function exported by the module specified
- * in `source_location`.
- *
- * Generated from protobuf field string entry_point = 3;
- */
- protected $entry_point = '';
- /**
- * The location of the function source code.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Source source = 4;
- */
- protected $source = null;
- /**
- * Output only. A permanent fixed identifier for source.
- *
- * Generated from protobuf field .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $source_provenance = null;
- /**
- * Name of the Cloud Build Custom Worker Pool that should be used to build the
- * function. The format of this field is
- * `projects/{project}/locations/{region}/workerPools/{workerPool}` where
- * {project} and {region} are the project id and region respectively where the
- * worker pool is defined and {workerPool} is the short name of the worker
- * pool.
- * If the project id is not the same as the function, then the Cloud
- * Functions Service Agent
- * (service-@gcf-admin-robot.iam.gserviceaccount.com) must be
- * granted the role Cloud Build Custom Workers Builder
- * (roles/cloudbuild.customworkers.builder) in the project.
- *
- * Generated from protobuf field string worker_pool = 5 [(.google.api.resource_reference) = {
- */
- protected $worker_pool = '';
- /**
- * User-provided build-time environment variables for the function
- *
- * Generated from protobuf field map environment_variables = 6;
- */
- private $environment_variables;
- /**
- * Docker Registry to use for this deployment. This configuration is only
- * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
- * Registry.
- * If unspecified, it defaults to `ARTIFACT_REGISTRY`.
- * If `docker_repository` field is specified, this field should either be left
- * unspecified or set to `ARTIFACT_REGISTRY`.
- *
- * Generated from protobuf field .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10;
- */
- protected $docker_registry = 0;
- /**
- * Repository in Artifact Registry to which the function docker image will be
- * pushed after it is built by Cloud Build. If specified by user, it is
- * created and managed by user with a customer managed encryption key.
- * Otherwise, GCF will create and use a repository named 'gcf-artifacts'
- * for every deployed region.
- * It must match the pattern
- * `projects/{project}/locations/{location}/repositories/{repository}`.
- * Cross-project repositories are not supported.
- * Cross-location repositories are not supported.
- * Repository format must be 'DOCKER'.
- *
- * Generated from protobuf field string docker_repository = 7 [(.google.api.resource_reference) = {
- */
- protected $docker_repository = '';
- /**
- * Service account to be used for building the container. The format of this
- * field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
- *
- * Generated from protobuf field string service_account = 27;
- */
- protected $service_account = '';
- protected $runtime_update_policy;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Functions\V2\AutomaticUpdatePolicy $automatic_update_policy
- * @type \Google\Cloud\Functions\V2\OnDeployUpdatePolicy $on_deploy_update_policy
- * @type string $build
- * Output only. The Cloud Build name of the latest successful deployment of
- * the function.
- * @type string $runtime
- * The runtime in which to run the function. Required when deploying a new
- * function, optional when updating an existing function. For a complete
- * list of possible choices, see the
- * [`gcloud` command
- * reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
- * @type string $entry_point
- * The name of the function (as defined in source code) that will be
- * executed. Defaults to the resource name suffix, if not specified. For
- * backward compatibility, if function with given name is not found, then the
- * system will try to use function named "function".
- * For Node.js this is name of a function exported by the module specified
- * in `source_location`.
- * @type \Google\Cloud\Functions\V2\Source $source
- * The location of the function source code.
- * @type \Google\Cloud\Functions\V2\SourceProvenance $source_provenance
- * Output only. A permanent fixed identifier for source.
- * @type string $worker_pool
- * Name of the Cloud Build Custom Worker Pool that should be used to build the
- * function. The format of this field is
- * `projects/{project}/locations/{region}/workerPools/{workerPool}` where
- * {project} and {region} are the project id and region respectively where the
- * worker pool is defined and {workerPool} is the short name of the worker
- * pool.
- * If the project id is not the same as the function, then the Cloud
- * Functions Service Agent
- * (service-@gcf-admin-robot.iam.gserviceaccount.com) must be
- * granted the role Cloud Build Custom Workers Builder
- * (roles/cloudbuild.customworkers.builder) in the project.
- * @type array|\Google\Protobuf\Internal\MapField $environment_variables
- * User-provided build-time environment variables for the function
- * @type int $docker_registry
- * Docker Registry to use for this deployment. This configuration is only
- * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
- * Registry.
- * If unspecified, it defaults to `ARTIFACT_REGISTRY`.
- * If `docker_repository` field is specified, this field should either be left
- * unspecified or set to `ARTIFACT_REGISTRY`.
- * @type string $docker_repository
- * Repository in Artifact Registry to which the function docker image will be
- * pushed after it is built by Cloud Build. If specified by user, it is
- * created and managed by user with a customer managed encryption key.
- * Otherwise, GCF will create and use a repository named 'gcf-artifacts'
- * for every deployed region.
- * It must match the pattern
- * `projects/{project}/locations/{location}/repositories/{repository}`.
- * Cross-project repositories are not supported.
- * Cross-location repositories are not supported.
- * Repository format must be 'DOCKER'.
- * @type string $service_account
- * Service account to be used for building the container. The format of this
- * field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .google.cloud.functions.v2.AutomaticUpdatePolicy automatic_update_policy = 40;
- * @return \Google\Cloud\Functions\V2\AutomaticUpdatePolicy|null
- */
- public function getAutomaticUpdatePolicy()
- {
- return $this->readOneof(40);
- }
-
- public function hasAutomaticUpdatePolicy()
- {
- return $this->hasOneof(40);
- }
-
- /**
- * Generated from protobuf field .google.cloud.functions.v2.AutomaticUpdatePolicy automatic_update_policy = 40;
- * @param \Google\Cloud\Functions\V2\AutomaticUpdatePolicy $var
- * @return $this
- */
- public function setAutomaticUpdatePolicy($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Functions\V2\AutomaticUpdatePolicy::class);
- $this->writeOneof(40, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.cloud.functions.v2.OnDeployUpdatePolicy on_deploy_update_policy = 41;
- * @return \Google\Cloud\Functions\V2\OnDeployUpdatePolicy|null
- */
- public function getOnDeployUpdatePolicy()
- {
- return $this->readOneof(41);
- }
-
- public function hasOnDeployUpdatePolicy()
- {
- return $this->hasOneof(41);
- }
-
- /**
- * Generated from protobuf field .google.cloud.functions.v2.OnDeployUpdatePolicy on_deploy_update_policy = 41;
- * @param \Google\Cloud\Functions\V2\OnDeployUpdatePolicy $var
- * @return $this
- */
- public function setOnDeployUpdatePolicy($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Functions\V2\OnDeployUpdatePolicy::class);
- $this->writeOneof(41, $var);
-
- return $this;
- }
-
- /**
- * Output only. The Cloud Build name of the latest successful deployment of
- * the function.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getBuild()
- {
- return $this->build;
- }
-
- /**
- * Output only. The Cloud Build name of the latest successful deployment of
- * the function.
- *
- * Generated from protobuf field string build = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setBuild($var)
- {
- GPBUtil::checkString($var, True);
- $this->build = $var;
-
- return $this;
- }
-
- /**
- * The runtime in which to run the function. Required when deploying a new
- * function, optional when updating an existing function. For a complete
- * list of possible choices, see the
- * [`gcloud` command
- * reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
- *
- * Generated from protobuf field string runtime = 2;
- * @return string
- */
- public function getRuntime()
- {
- return $this->runtime;
- }
-
- /**
- * The runtime in which to run the function. Required when deploying a new
- * function, optional when updating an existing function. For a complete
- * list of possible choices, see the
- * [`gcloud` command
- * reference](https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime).
- *
- * Generated from protobuf field string runtime = 2;
- * @param string $var
- * @return $this
- */
- public function setRuntime($var)
- {
- GPBUtil::checkString($var, True);
- $this->runtime = $var;
-
- return $this;
- }
-
- /**
- * The name of the function (as defined in source code) that will be
- * executed. Defaults to the resource name suffix, if not specified. For
- * backward compatibility, if function with given name is not found, then the
- * system will try to use function named "function".
- * For Node.js this is name of a function exported by the module specified
- * in `source_location`.
- *
- * Generated from protobuf field string entry_point = 3;
- * @return string
- */
- public function getEntryPoint()
- {
- return $this->entry_point;
- }
-
- /**
- * The name of the function (as defined in source code) that will be
- * executed. Defaults to the resource name suffix, if not specified. For
- * backward compatibility, if function with given name is not found, then the
- * system will try to use function named "function".
- * For Node.js this is name of a function exported by the module specified
- * in `source_location`.
- *
- * Generated from protobuf field string entry_point = 3;
- * @param string $var
- * @return $this
- */
- public function setEntryPoint($var)
- {
- GPBUtil::checkString($var, True);
- $this->entry_point = $var;
-
- return $this;
- }
-
- /**
- * The location of the function source code.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Source source = 4;
- * @return \Google\Cloud\Functions\V2\Source|null
- */
- public function getSource()
- {
- return $this->source;
- }
-
- public function hasSource()
- {
- return isset($this->source);
- }
-
- public function clearSource()
- {
- unset($this->source);
- }
-
- /**
- * The location of the function source code.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Source source = 4;
- * @param \Google\Cloud\Functions\V2\Source $var
- * @return $this
- */
- public function setSource($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Functions\V2\Source::class);
- $this->source = $var;
-
- return $this;
- }
-
- /**
- * Output only. A permanent fixed identifier for source.
- *
- * Generated from protobuf field .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Functions\V2\SourceProvenance|null
- */
- public function getSourceProvenance()
- {
- return $this->source_provenance;
- }
-
- public function hasSourceProvenance()
- {
- return isset($this->source_provenance);
- }
-
- public function clearSourceProvenance()
- {
- unset($this->source_provenance);
- }
-
- /**
- * Output only. A permanent fixed identifier for source.
- *
- * Generated from protobuf field .google.cloud.functions.v2.SourceProvenance source_provenance = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Functions\V2\SourceProvenance $var
- * @return $this
- */
- public function setSourceProvenance($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Functions\V2\SourceProvenance::class);
- $this->source_provenance = $var;
-
- return $this;
- }
-
- /**
- * Name of the Cloud Build Custom Worker Pool that should be used to build the
- * function. The format of this field is
- * `projects/{project}/locations/{region}/workerPools/{workerPool}` where
- * {project} and {region} are the project id and region respectively where the
- * worker pool is defined and {workerPool} is the short name of the worker
- * pool.
- * If the project id is not the same as the function, then the Cloud
- * Functions Service Agent
- * (service-@gcf-admin-robot.iam.gserviceaccount.com) must be
- * granted the role Cloud Build Custom Workers Builder
- * (roles/cloudbuild.customworkers.builder) in the project.
- *
- * Generated from protobuf field string worker_pool = 5 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getWorkerPool()
- {
- return $this->worker_pool;
- }
-
- /**
- * Name of the Cloud Build Custom Worker Pool that should be used to build the
- * function. The format of this field is
- * `projects/{project}/locations/{region}/workerPools/{workerPool}` where
- * {project} and {region} are the project id and region respectively where the
- * worker pool is defined and {workerPool} is the short name of the worker
- * pool.
- * If the project id is not the same as the function, then the Cloud
- * Functions Service Agent
- * (service-@gcf-admin-robot.iam.gserviceaccount.com) must be
- * granted the role Cloud Build Custom Workers Builder
- * (roles/cloudbuild.customworkers.builder) in the project.
- *
- * Generated from protobuf field string worker_pool = 5 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setWorkerPool($var)
- {
- GPBUtil::checkString($var, True);
- $this->worker_pool = $var;
-
- return $this;
- }
-
- /**
- * User-provided build-time environment variables for the function
- *
- * Generated from protobuf field map environment_variables = 6;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getEnvironmentVariables()
- {
- return $this->environment_variables;
- }
-
- /**
- * User-provided build-time environment variables for the function
- *
- * Generated from protobuf field map environment_variables = 6;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setEnvironmentVariables($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->environment_variables = $arr;
-
- return $this;
- }
-
- /**
- * Docker Registry to use for this deployment. This configuration is only
- * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
- * Registry.
- * If unspecified, it defaults to `ARTIFACT_REGISTRY`.
- * If `docker_repository` field is specified, this field should either be left
- * unspecified or set to `ARTIFACT_REGISTRY`.
- *
- * Generated from protobuf field .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10;
- * @return int
- */
- public function getDockerRegistry()
- {
- return $this->docker_registry;
- }
-
- /**
- * Docker Registry to use for this deployment. This configuration is only
- * applicable to 1st Gen functions, 2nd Gen functions can only use Artifact
- * Registry.
- * If unspecified, it defaults to `ARTIFACT_REGISTRY`.
- * If `docker_repository` field is specified, this field should either be left
- * unspecified or set to `ARTIFACT_REGISTRY`.
- *
- * Generated from protobuf field .google.cloud.functions.v2.BuildConfig.DockerRegistry docker_registry = 10;
- * @param int $var
- * @return $this
- */
- public function setDockerRegistry($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Functions\V2\BuildConfig\DockerRegistry::class);
- $this->docker_registry = $var;
-
- return $this;
- }
-
- /**
- * Repository in Artifact Registry to which the function docker image will be
- * pushed after it is built by Cloud Build. If specified by user, it is
- * created and managed by user with a customer managed encryption key.
- * Otherwise, GCF will create and use a repository named 'gcf-artifacts'
- * for every deployed region.
- * It must match the pattern
- * `projects/{project}/locations/{location}/repositories/{repository}`.
- * Cross-project repositories are not supported.
- * Cross-location repositories are not supported.
- * Repository format must be 'DOCKER'.
- *
- * Generated from protobuf field string docker_repository = 7 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getDockerRepository()
- {
- return $this->docker_repository;
- }
-
- /**
- * Repository in Artifact Registry to which the function docker image will be
- * pushed after it is built by Cloud Build. If specified by user, it is
- * created and managed by user with a customer managed encryption key.
- * Otherwise, GCF will create and use a repository named 'gcf-artifacts'
- * for every deployed region.
- * It must match the pattern
- * `projects/{project}/locations/{location}/repositories/{repository}`.
- * Cross-project repositories are not supported.
- * Cross-location repositories are not supported.
- * Repository format must be 'DOCKER'.
- *
- * Generated from protobuf field string docker_repository = 7 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setDockerRepository($var)
- {
- GPBUtil::checkString($var, True);
- $this->docker_repository = $var;
-
- return $this;
- }
-
- /**
- * Service account to be used for building the container. The format of this
- * field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
- *
- * Generated from protobuf field string service_account = 27;
- * @return string
- */
- public function getServiceAccount()
- {
- return $this->service_account;
- }
-
- /**
- * Service account to be used for building the container. The format of this
- * field is `projects/{projectId}/serviceAccounts/{serviceAccountEmail}`.
- *
- * Generated from protobuf field string service_account = 27;
- * @param string $var
- * @return $this
- */
- public function setServiceAccount($var)
- {
- GPBUtil::checkString($var, True);
- $this->service_account = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getRuntimeUpdatePolicy()
- {
- return $this->whichOneof("runtime_update_policy");
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/BuildConfig/DockerRegistry.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/BuildConfig/DockerRegistry.php
deleted file mode 100644
index dc5838f431f2..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/BuildConfig/DockerRegistry.php
+++ /dev/null
@@ -1,69 +0,0 @@
-google.cloud.functions.v2.BuildConfig.DockerRegistry
- */
-class DockerRegistry
-{
- /**
- * Unspecified.
- *
- * Generated from protobuf enum DOCKER_REGISTRY_UNSPECIFIED = 0;
- */
- const DOCKER_REGISTRY_UNSPECIFIED = 0;
- /**
- * Docker images will be stored in multi-regional Container Registry
- * repositories named `gcf`.
- *
- * Generated from protobuf enum CONTAINER_REGISTRY = 1;
- */
- const CONTAINER_REGISTRY = 1;
- /**
- * Docker images will be stored in regional Artifact Registry repositories.
- * By default, GCF will create and use repositories named `gcf-artifacts`
- * in every region in which a function is deployed. But the repository to
- * use can also be specified by the user using the `docker_repository`
- * field.
- *
- * Generated from protobuf enum ARTIFACT_REGISTRY = 2;
- */
- const ARTIFACT_REGISTRY = 2;
-
- private static $valueToName = [
- self::DOCKER_REGISTRY_UNSPECIFIED => 'DOCKER_REGISTRY_UNSPECIFIED',
- self::CONTAINER_REGISTRY => 'CONTAINER_REGISTRY',
- self::ARTIFACT_REGISTRY => 'ARTIFACT_REGISTRY',
- ];
-
- 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(DockerRegistry::class, \Google\Cloud\Functions\V2\BuildConfig_DockerRegistry::class);
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/CreateFunctionRequest.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/CreateFunctionRequest.php
deleted file mode 100644
index 903e08f50551..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/CreateFunctionRequest.php
+++ /dev/null
@@ -1,184 +0,0 @@
-google.cloud.functions.v2.CreateFunctionRequest
- */
-class CreateFunctionRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The project and location in which the function should be created,
- * specified in the format `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. Function to be created.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $function = null;
- /**
- * The ID to use for the function, which will become the final component of
- * the function's resource name.
- * This value should be 4-63 characters, and valid characters
- * are /[a-z][0-9]-/.
- *
- * Generated from protobuf field string function_id = 3;
- */
- protected $function_id = '';
-
- /**
- * @param string $parent Required. The project and location in which the function should be created,
- * specified in the format `projects/*/locations/*`
- * Please see {@see FunctionServiceClient::locationName()} for help formatting this field.
- * @param \Google\Cloud\Functions\V2\PBFunction $function Required. Function to be created.
- * @param string $functionId The ID to use for the function, which will become the final component of
- * the function's resource name.
- *
- * This value should be 4-63 characters, and valid characters
- * are /[a-z][0-9]-/.
- *
- * @return \Google\Cloud\Functions\V2\CreateFunctionRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\Functions\V2\PBFunction $function, string $functionId): self
- {
- return (new self())
- ->setParent($parent)
- ->setFunction($function)
- ->setFunctionId($functionId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The project and location in which the function should be created,
- * specified in the format `projects/*/locations/*`
- * @type \Google\Cloud\Functions\V2\PBFunction $function
- * Required. Function to be created.
- * @type string $function_id
- * The ID to use for the function, which will become the final component of
- * the function's resource name.
- * This value should be 4-63 characters, and valid characters
- * are /[a-z][0-9]-/.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The project and location in which the function should be created,
- * specified in the format `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The project and location in which the function should be created,
- * specified in the format `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. Function to be created.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Functions\V2\PBFunction|null
- */
- public function getFunction()
- {
- return $this->function;
- }
-
- public function hasFunction()
- {
- return isset($this->function);
- }
-
- public function clearFunction()
- {
- unset($this->function);
- }
-
- /**
- * Required. Function to be created.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Function function = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Functions\V2\PBFunction $var
- * @return $this
- */
- public function setFunction($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Functions\V2\PBFunction::class);
- $this->function = $var;
-
- return $this;
- }
-
- /**
- * The ID to use for the function, which will become the final component of
- * the function's resource name.
- * This value should be 4-63 characters, and valid characters
- * are /[a-z][0-9]-/.
- *
- * Generated from protobuf field string function_id = 3;
- * @return string
- */
- public function getFunctionId()
- {
- return $this->function_id;
- }
-
- /**
- * The ID to use for the function, which will become the final component of
- * the function's resource name.
- * This value should be 4-63 characters, and valid characters
- * are /[a-z][0-9]-/.
- *
- * Generated from protobuf field string function_id = 3;
- * @param string $var
- * @return $this
- */
- public function setFunctionId($var)
- {
- GPBUtil::checkString($var, True);
- $this->function_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/DeleteFunctionRequest.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/DeleteFunctionRequest.php
deleted file mode 100644
index cd7afb9522a6..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/DeleteFunctionRequest.php
+++ /dev/null
@@ -1,81 +0,0 @@
-google.cloud.functions.v2.DeleteFunctionRequest
- */
-class DeleteFunctionRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the function which should be deleted.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. The name of the function which should be deleted. Please see
- * {@see FunctionServiceClient::functionName()} for help formatting this field.
- *
- * @return \Google\Cloud\Functions\V2\DeleteFunctionRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The name of the function which should be deleted.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the function which should be deleted.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The name of the function which should be deleted.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Environment.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Environment.php
deleted file mode 100644
index a1fd8153a794..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Environment.php
+++ /dev/null
@@ -1,61 +0,0 @@
-google.cloud.functions.v2.Environment
- */
-class Environment
-{
- /**
- * Unspecified
- *
- * Generated from protobuf enum ENVIRONMENT_UNSPECIFIED = 0;
- */
- const ENVIRONMENT_UNSPECIFIED = 0;
- /**
- * Gen 1
- *
- * Generated from protobuf enum GEN_1 = 1;
- */
- const GEN_1 = 1;
- /**
- * Gen 2
- *
- * Generated from protobuf enum GEN_2 = 2;
- */
- const GEN_2 = 2;
-
- private static $valueToName = [
- self::ENVIRONMENT_UNSPECIFIED => 'ENVIRONMENT_UNSPECIFIED',
- self::GEN_1 => 'GEN_1',
- self::GEN_2 => 'GEN_2',
- ];
-
- 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);
- }
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/EventFilter.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/EventFilter.php
deleted file mode 100644
index 15ec540f1dd6..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/EventFilter.php
+++ /dev/null
@@ -1,147 +0,0 @@
-google.cloud.functions.v2.EventFilter
- */
-class EventFilter extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of a CloudEvents attribute.
- *
- * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $attribute = '';
- /**
- * Required. The value for the attribute.
- *
- * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $value = '';
- /**
- * Optional. The operator used for matching the events with the value of the
- * filter. If not specified, only events that have an exact key-value pair
- * specified in the filter are matched. The only allowed value is
- * `match-path-pattern`.
- *
- * Generated from protobuf field string operator = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $operator = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $attribute
- * Required. The name of a CloudEvents attribute.
- * @type string $value
- * Required. The value for the attribute.
- * @type string $operator
- * Optional. The operator used for matching the events with the value of the
- * filter. If not specified, only events that have an exact key-value pair
- * specified in the filter are matched. The only allowed value is
- * `match-path-pattern`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of a CloudEvents attribute.
- *
- * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getAttribute()
- {
- return $this->attribute;
- }
-
- /**
- * Required. The name of a CloudEvents attribute.
- *
- * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setAttribute($var)
- {
- GPBUtil::checkString($var, True);
- $this->attribute = $var;
-
- return $this;
- }
-
- /**
- * Required. The value for the attribute.
- *
- * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getValue()
- {
- return $this->value;
- }
-
- /**
- * Required. The value for the attribute.
- *
- * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setValue($var)
- {
- GPBUtil::checkString($var, True);
- $this->value = $var;
-
- return $this;
- }
-
- /**
- * Optional. The operator used for matching the events with the value of the
- * filter. If not specified, only events that have an exact key-value pair
- * specified in the filter are matched. The only allowed value is
- * `match-path-pattern`.
- *
- * Generated from protobuf field string operator = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOperator()
- {
- return $this->operator;
- }
-
- /**
- * Optional. The operator used for matching the events with the value of the
- * filter. If not specified, only events that have an exact key-value pair
- * specified in the filter are matched. The only allowed value is
- * `match-path-pattern`.
- *
- * Generated from protobuf field string operator = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOperator($var)
- {
- GPBUtil::checkString($var, True);
- $this->operator = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/EventTrigger.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/EventTrigger.php
deleted file mode 100644
index 62813744547d..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/EventTrigger.php
+++ /dev/null
@@ -1,432 +0,0 @@
-google.cloud.functions.v2.EventTrigger
- */
-class EventTrigger extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The resource name of the Eventarc trigger. The format of this
- * field is `projects/{project}/locations/{region}/triggers/{trigger}`.
- *
- * Generated from protobuf field string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $trigger = '';
- /**
- * The region that the trigger will be in. The trigger will only receive
- * events originating in this region. It can be the same
- * region as the function, a different region or multi-region, or the global
- * region. If not provided, defaults to the same region as the function.
- *
- * Generated from protobuf field string trigger_region = 2;
- */
- protected $trigger_region = '';
- /**
- * Required. The type of event to observe. For example:
- * `google.cloud.audit.log.v1.written` or
- * `google.cloud.pubsub.topic.v1.messagePublished`.
- *
- * Generated from protobuf field string event_type = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $event_type = '';
- /**
- * Criteria used to filter events.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.EventFilter event_filters = 4;
- */
- private $event_filters;
- /**
- * Optional. The name of a Pub/Sub topic in the same project that will be used
- * as the transport topic for the event delivery. Format:
- * `projects/{project}/topics/{topic}`.
- * This is only valid for events of type
- * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here
- * will not be deleted at function deletion.
- *
- * Generated from protobuf field string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- */
- protected $pubsub_topic = '';
- /**
- * Optional. The email of the trigger's service account. The service account
- * must have permission to invoke Cloud Run services, the permission is
- * `run.routes.invoke`.
- * If empty, defaults to the Compute Engine default service account:
- * `{project_number}-compute@developer.gserviceaccount.com`.
- *
- * Generated from protobuf field string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $service_account_email = '';
- /**
- * Optional. If unset, then defaults to ignoring failures (i.e. not retrying
- * them).
- *
- * Generated from protobuf field .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $retry_policy = 0;
- /**
- * Optional. The name of the channel associated with the trigger in
- * `projects/{project}/locations/{location}/channels/{channel}` format.
- * You must provide a channel to receive events from Eventarc SaaS partners.
- *
- * Generated from protobuf field string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- */
- protected $channel = '';
- /**
- * Optional. The hostname of the service that 1st Gen function should be
- * observed.
- * If no string is provided, the default service implementing the API will
- * be used. For example, `storage.googleapis.com` is the default for all
- * event types in the `google.storage` namespace.
- * The field is only applicable to 1st Gen functions.
- *
- * Generated from protobuf field string service = 9 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $service = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $trigger
- * Output only. The resource name of the Eventarc trigger. The format of this
- * field is `projects/{project}/locations/{region}/triggers/{trigger}`.
- * @type string $trigger_region
- * The region that the trigger will be in. The trigger will only receive
- * events originating in this region. It can be the same
- * region as the function, a different region or multi-region, or the global
- * region. If not provided, defaults to the same region as the function.
- * @type string $event_type
- * Required. The type of event to observe. For example:
- * `google.cloud.audit.log.v1.written` or
- * `google.cloud.pubsub.topic.v1.messagePublished`.
- * @type array<\Google\Cloud\Functions\V2\EventFilter>|\Google\Protobuf\Internal\RepeatedField $event_filters
- * Criteria used to filter events.
- * @type string $pubsub_topic
- * Optional. The name of a Pub/Sub topic in the same project that will be used
- * as the transport topic for the event delivery. Format:
- * `projects/{project}/topics/{topic}`.
- * This is only valid for events of type
- * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here
- * will not be deleted at function deletion.
- * @type string $service_account_email
- * Optional. The email of the trigger's service account. The service account
- * must have permission to invoke Cloud Run services, the permission is
- * `run.routes.invoke`.
- * If empty, defaults to the Compute Engine default service account:
- * `{project_number}-compute@developer.gserviceaccount.com`.
- * @type int $retry_policy
- * Optional. If unset, then defaults to ignoring failures (i.e. not retrying
- * them).
- * @type string $channel
- * Optional. The name of the channel associated with the trigger in
- * `projects/{project}/locations/{location}/channels/{channel}` format.
- * You must provide a channel to receive events from Eventarc SaaS partners.
- * @type string $service
- * Optional. The hostname of the service that 1st Gen function should be
- * observed.
- * If no string is provided, the default service implementing the API will
- * be used. For example, `storage.googleapis.com` is the default for all
- * event types in the `google.storage` namespace.
- * The field is only applicable to 1st Gen functions.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The resource name of the Eventarc trigger. The format of this
- * field is `projects/{project}/locations/{region}/triggers/{trigger}`.
- *
- * Generated from protobuf field string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getTrigger()
- {
- return $this->trigger;
- }
-
- /**
- * Output only. The resource name of the Eventarc trigger. The format of this
- * field is `projects/{project}/locations/{region}/triggers/{trigger}`.
- *
- * Generated from protobuf field string trigger = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setTrigger($var)
- {
- GPBUtil::checkString($var, True);
- $this->trigger = $var;
-
- return $this;
- }
-
- /**
- * The region that the trigger will be in. The trigger will only receive
- * events originating in this region. It can be the same
- * region as the function, a different region or multi-region, or the global
- * region. If not provided, defaults to the same region as the function.
- *
- * Generated from protobuf field string trigger_region = 2;
- * @return string
- */
- public function getTriggerRegion()
- {
- return $this->trigger_region;
- }
-
- /**
- * The region that the trigger will be in. The trigger will only receive
- * events originating in this region. It can be the same
- * region as the function, a different region or multi-region, or the global
- * region. If not provided, defaults to the same region as the function.
- *
- * Generated from protobuf field string trigger_region = 2;
- * @param string $var
- * @return $this
- */
- public function setTriggerRegion($var)
- {
- GPBUtil::checkString($var, True);
- $this->trigger_region = $var;
-
- return $this;
- }
-
- /**
- * Required. The type of event to observe. For example:
- * `google.cloud.audit.log.v1.written` or
- * `google.cloud.pubsub.topic.v1.messagePublished`.
- *
- * Generated from protobuf field string event_type = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getEventType()
- {
- return $this->event_type;
- }
-
- /**
- * Required. The type of event to observe. For example:
- * `google.cloud.audit.log.v1.written` or
- * `google.cloud.pubsub.topic.v1.messagePublished`.
- *
- * Generated from protobuf field string event_type = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setEventType($var)
- {
- GPBUtil::checkString($var, True);
- $this->event_type = $var;
-
- return $this;
- }
-
- /**
- * Criteria used to filter events.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.EventFilter event_filters = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getEventFilters()
- {
- return $this->event_filters;
- }
-
- /**
- * Criteria used to filter events.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.EventFilter event_filters = 4;
- * @param array<\Google\Cloud\Functions\V2\EventFilter>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setEventFilters($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Functions\V2\EventFilter::class);
- $this->event_filters = $arr;
-
- return $this;
- }
-
- /**
- * Optional. The name of a Pub/Sub topic in the same project that will be used
- * as the transport topic for the event delivery. Format:
- * `projects/{project}/topics/{topic}`.
- * This is only valid for events of type
- * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here
- * will not be deleted at function deletion.
- *
- * Generated from protobuf field string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @return string
- */
- public function getPubsubTopic()
- {
- return $this->pubsub_topic;
- }
-
- /**
- * Optional. The name of a Pub/Sub topic in the same project that will be used
- * as the transport topic for the event delivery. Format:
- * `projects/{project}/topics/{topic}`.
- * This is only valid for events of type
- * `google.cloud.pubsub.topic.v1.messagePublished`. The topic provided here
- * will not be deleted at function deletion.
- *
- * Generated from protobuf field string pubsub_topic = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setPubsubTopic($var)
- {
- GPBUtil::checkString($var, True);
- $this->pubsub_topic = $var;
-
- return $this;
- }
-
- /**
- * Optional. The email of the trigger's service account. The service account
- * must have permission to invoke Cloud Run services, the permission is
- * `run.routes.invoke`.
- * If empty, defaults to the Compute Engine default service account:
- * `{project_number}-compute@developer.gserviceaccount.com`.
- *
- * Generated from protobuf field string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getServiceAccountEmail()
- {
- return $this->service_account_email;
- }
-
- /**
- * Optional. The email of the trigger's service account. The service account
- * must have permission to invoke Cloud Run services, the permission is
- * `run.routes.invoke`.
- * If empty, defaults to the Compute Engine default service account:
- * `{project_number}-compute@developer.gserviceaccount.com`.
- *
- * Generated from protobuf field string service_account_email = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setServiceAccountEmail($var)
- {
- GPBUtil::checkString($var, True);
- $this->service_account_email = $var;
-
- return $this;
- }
-
- /**
- * Optional. If unset, then defaults to ignoring failures (i.e. not retrying
- * them).
- *
- * Generated from protobuf field .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getRetryPolicy()
- {
- return $this->retry_policy;
- }
-
- /**
- * Optional. If unset, then defaults to ignoring failures (i.e. not retrying
- * them).
- *
- * Generated from protobuf field .google.cloud.functions.v2.EventTrigger.RetryPolicy retry_policy = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setRetryPolicy($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Functions\V2\EventTrigger\RetryPolicy::class);
- $this->retry_policy = $var;
-
- return $this;
- }
-
- /**
- * Optional. The name of the channel associated with the trigger in
- * `projects/{project}/locations/{location}/channels/{channel}` format.
- * You must provide a channel to receive events from Eventarc SaaS partners.
- *
- * Generated from protobuf field string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @return string
- */
- public function getChannel()
- {
- return $this->channel;
- }
-
- /**
- * Optional. The name of the channel associated with the trigger in
- * `projects/{project}/locations/{location}/channels/{channel}` format.
- * You must provide a channel to receive events from Eventarc SaaS partners.
- *
- * Generated from protobuf field string channel = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setChannel($var)
- {
- GPBUtil::checkString($var, True);
- $this->channel = $var;
-
- return $this;
- }
-
- /**
- * Optional. The hostname of the service that 1st Gen function should be
- * observed.
- * If no string is provided, the default service implementing the API will
- * be used. For example, `storage.googleapis.com` is the default for all
- * event types in the `google.storage` namespace.
- * The field is only applicable to 1st Gen functions.
- *
- * Generated from protobuf field string service = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getService()
- {
- return $this->service;
- }
-
- /**
- * Optional. The hostname of the service that 1st Gen function should be
- * observed.
- * If no string is provided, the default service implementing the API will
- * be used. For example, `storage.googleapis.com` is the default for all
- * event types in the `google.storage` namespace.
- * The field is only applicable to 1st Gen functions.
- *
- * Generated from protobuf field string service = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setService($var)
- {
- GPBUtil::checkString($var, True);
- $this->service = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/EventTrigger/RetryPolicy.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/EventTrigger/RetryPolicy.php
deleted file mode 100644
index fe9035ebeee4..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/EventTrigger/RetryPolicy.php
+++ /dev/null
@@ -1,66 +0,0 @@
-google.cloud.functions.v2.EventTrigger.RetryPolicy
- */
-class RetryPolicy
-{
- /**
- * Not specified.
- *
- * Generated from protobuf enum RETRY_POLICY_UNSPECIFIED = 0;
- */
- const RETRY_POLICY_UNSPECIFIED = 0;
- /**
- * Do not retry.
- *
- * Generated from protobuf enum RETRY_POLICY_DO_NOT_RETRY = 1;
- */
- const RETRY_POLICY_DO_NOT_RETRY = 1;
- /**
- * Retry on any failure, retry up to 7 days with an exponential backoff
- * (capped at 10 seconds).
- *
- * Generated from protobuf enum RETRY_POLICY_RETRY = 2;
- */
- const RETRY_POLICY_RETRY = 2;
-
- private static $valueToName = [
- self::RETRY_POLICY_UNSPECIFIED => 'RETRY_POLICY_UNSPECIFIED',
- self::RETRY_POLICY_DO_NOT_RETRY => 'RETRY_POLICY_DO_NOT_RETRY',
- self::RETRY_POLICY_RETRY => 'RETRY_POLICY_RETRY',
- ];
-
- 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(RetryPolicy::class, \Google\Cloud\Functions\V2\EventTrigger_RetryPolicy::class);
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GenerateDownloadUrlRequest.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GenerateDownloadUrlRequest.php
deleted file mode 100644
index 6e003ddc46aa..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GenerateDownloadUrlRequest.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.functions.v2.GenerateDownloadUrlRequest
- */
-class GenerateDownloadUrlRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of function for which source code Google Cloud Storage
- * signed URL should be generated.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The name of function for which source code Google Cloud Storage
- * signed URL should be generated.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of function for which source code Google Cloud Storage
- * signed URL should be generated.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The name of function for which source code Google Cloud Storage
- * signed URL should be generated.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GenerateDownloadUrlResponse.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GenerateDownloadUrlResponse.php
deleted file mode 100644
index c49cbe0ed3f5..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GenerateDownloadUrlResponse.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.functions.v2.GenerateDownloadUrlResponse
- */
-class GenerateDownloadUrlResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The generated Google Cloud Storage signed URL that should be used for
- * function source code download.
- *
- * Generated from protobuf field string download_url = 1;
- */
- protected $download_url = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $download_url
- * The generated Google Cloud Storage signed URL that should be used for
- * function source code download.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The generated Google Cloud Storage signed URL that should be used for
- * function source code download.
- *
- * Generated from protobuf field string download_url = 1;
- * @return string
- */
- public function getDownloadUrl()
- {
- return $this->download_url;
- }
-
- /**
- * The generated Google Cloud Storage signed URL that should be used for
- * function source code download.
- *
- * Generated from protobuf field string download_url = 1;
- * @param string $var
- * @return $this
- */
- public function setDownloadUrl($var)
- {
- GPBUtil::checkString($var, True);
- $this->download_url = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GenerateUploadUrlRequest.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GenerateUploadUrlRequest.php
deleted file mode 100644
index e61cc8639a76..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GenerateUploadUrlRequest.php
+++ /dev/null
@@ -1,199 +0,0 @@
-google.cloud.functions.v2.GenerateUploadUrlRequest
- */
-class GenerateUploadUrlRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The project and location in which the Google Cloud Storage signed
- * URL should be generated, specified in the format `projects/*/locations/*`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * [Preview] Resource name of a KMS crypto key (managed by the user) used to
- * encrypt/decrypt function source code objects in intermediate Cloud Storage
- * buckets. When you generate an upload url and upload your source code, it
- * gets copied to an intermediate Cloud Storage bucket. The source code is
- * then copied to a versioned directory in the sources bucket in the consumer
- * project during the function deployment.
- * It must match the pattern
- * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- * The Google Cloud Functions service account
- * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
- * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
- * (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
- * Key/KeyRing/Project/Organization (least access preferred).
- *
- * Generated from protobuf field string kms_key_name = 2 [(.google.api.resource_reference) = {
- */
- protected $kms_key_name = '';
- /**
- * The function environment the generated upload url will be used for.
- * The upload url for 2nd Gen functions can also be used for 1st gen
- * functions, but not vice versa. If not specified, 2nd generation-style
- * upload URLs are generated.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Environment environment = 3;
- */
- protected $environment = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The project and location in which the Google Cloud Storage signed
- * URL should be generated, specified in the format `projects/*/locations/*`.
- * @type string $kms_key_name
- * [Preview] Resource name of a KMS crypto key (managed by the user) used to
- * encrypt/decrypt function source code objects in intermediate Cloud Storage
- * buckets. When you generate an upload url and upload your source code, it
- * gets copied to an intermediate Cloud Storage bucket. The source code is
- * then copied to a versioned directory in the sources bucket in the consumer
- * project during the function deployment.
- * It must match the pattern
- * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- * The Google Cloud Functions service account
- * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
- * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
- * (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
- * Key/KeyRing/Project/Organization (least access preferred).
- * @type int $environment
- * The function environment the generated upload url will be used for.
- * The upload url for 2nd Gen functions can also be used for 1st gen
- * functions, but not vice versa. If not specified, 2nd generation-style
- * upload URLs are generated.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The project and location in which the Google Cloud Storage signed
- * URL should be generated, specified in the format `projects/*/locations/*`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The project and location in which the Google Cloud Storage signed
- * URL should be generated, specified in the format `projects/*/locations/*`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * [Preview] Resource name of a KMS crypto key (managed by the user) used to
- * encrypt/decrypt function source code objects in intermediate Cloud Storage
- * buckets. When you generate an upload url and upload your source code, it
- * gets copied to an intermediate Cloud Storage bucket. The source code is
- * then copied to a versioned directory in the sources bucket in the consumer
- * project during the function deployment.
- * It must match the pattern
- * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- * The Google Cloud Functions service account
- * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
- * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
- * (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
- * Key/KeyRing/Project/Organization (least access preferred).
- *
- * Generated from protobuf field string kms_key_name = 2 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getKmsKeyName()
- {
- return $this->kms_key_name;
- }
-
- /**
- * [Preview] Resource name of a KMS crypto key (managed by the user) used to
- * encrypt/decrypt function source code objects in intermediate Cloud Storage
- * buckets. When you generate an upload url and upload your source code, it
- * gets copied to an intermediate Cloud Storage bucket. The source code is
- * then copied to a versioned directory in the sources bucket in the consumer
- * project during the function deployment.
- * It must match the pattern
- * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- * The Google Cloud Functions service account
- * (service-{project_number}@gcf-admin-robot.iam.gserviceaccount.com) must be
- * granted the role 'Cloud KMS CryptoKey Encrypter/Decrypter
- * (roles/cloudkms.cryptoKeyEncrypterDecrypter)' on the
- * Key/KeyRing/Project/Organization (least access preferred).
- *
- * Generated from protobuf field string kms_key_name = 2 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setKmsKeyName($var)
- {
- GPBUtil::checkString($var, True);
- $this->kms_key_name = $var;
-
- return $this;
- }
-
- /**
- * The function environment the generated upload url will be used for.
- * The upload url for 2nd Gen functions can also be used for 1st gen
- * functions, but not vice versa. If not specified, 2nd generation-style
- * upload URLs are generated.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Environment environment = 3;
- * @return int
- */
- public function getEnvironment()
- {
- return $this->environment;
- }
-
- /**
- * The function environment the generated upload url will be used for.
- * The upload url for 2nd Gen functions can also be used for 1st gen
- * functions, but not vice versa. If not specified, 2nd generation-style
- * upload URLs are generated.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Environment environment = 3;
- * @param int $var
- * @return $this
- */
- public function setEnvironment($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Functions\V2\Environment::class);
- $this->environment = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GenerateUploadUrlResponse.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GenerateUploadUrlResponse.php
deleted file mode 100644
index ec4ee0a82cfa..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GenerateUploadUrlResponse.php
+++ /dev/null
@@ -1,139 +0,0 @@
-google.cloud.functions.v2.GenerateUploadUrlResponse
- */
-class GenerateUploadUrlResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The generated Google Cloud Storage signed URL that should be used for a
- * function source code upload. The uploaded file should be a zip archive
- * which contains a function.
- *
- * Generated from protobuf field string upload_url = 1;
- */
- protected $upload_url = '';
- /**
- * The location of the source code in the upload bucket.
- * Once the archive is uploaded using the `upload_url` use this field to
- * set the `function.build_config.source.storage_source`
- * during CreateFunction and UpdateFunction.
- * Generation defaults to 0, as Cloud Storage provides a new generation only
- * upon uploading a new object or version of an object.
- *
- * Generated from protobuf field .google.cloud.functions.v2.StorageSource storage_source = 2;
- */
- protected $storage_source = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $upload_url
- * The generated Google Cloud Storage signed URL that should be used for a
- * function source code upload. The uploaded file should be a zip archive
- * which contains a function.
- * @type \Google\Cloud\Functions\V2\StorageSource $storage_source
- * The location of the source code in the upload bucket.
- * Once the archive is uploaded using the `upload_url` use this field to
- * set the `function.build_config.source.storage_source`
- * during CreateFunction and UpdateFunction.
- * Generation defaults to 0, as Cloud Storage provides a new generation only
- * upon uploading a new object or version of an object.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The generated Google Cloud Storage signed URL that should be used for a
- * function source code upload. The uploaded file should be a zip archive
- * which contains a function.
- *
- * Generated from protobuf field string upload_url = 1;
- * @return string
- */
- public function getUploadUrl()
- {
- return $this->upload_url;
- }
-
- /**
- * The generated Google Cloud Storage signed URL that should be used for a
- * function source code upload. The uploaded file should be a zip archive
- * which contains a function.
- *
- * Generated from protobuf field string upload_url = 1;
- * @param string $var
- * @return $this
- */
- public function setUploadUrl($var)
- {
- GPBUtil::checkString($var, True);
- $this->upload_url = $var;
-
- return $this;
- }
-
- /**
- * The location of the source code in the upload bucket.
- * Once the archive is uploaded using the `upload_url` use this field to
- * set the `function.build_config.source.storage_source`
- * during CreateFunction and UpdateFunction.
- * Generation defaults to 0, as Cloud Storage provides a new generation only
- * upon uploading a new object or version of an object.
- *
- * Generated from protobuf field .google.cloud.functions.v2.StorageSource storage_source = 2;
- * @return \Google\Cloud\Functions\V2\StorageSource|null
- */
- public function getStorageSource()
- {
- return $this->storage_source;
- }
-
- public function hasStorageSource()
- {
- return isset($this->storage_source);
- }
-
- public function clearStorageSource()
- {
- unset($this->storage_source);
- }
-
- /**
- * The location of the source code in the upload bucket.
- * Once the archive is uploaded using the `upload_url` use this field to
- * set the `function.build_config.source.storage_source`
- * during CreateFunction and UpdateFunction.
- * Generation defaults to 0, as Cloud Storage provides a new generation only
- * upon uploading a new object or version of an object.
- *
- * Generated from protobuf field .google.cloud.functions.v2.StorageSource storage_source = 2;
- * @param \Google\Cloud\Functions\V2\StorageSource $var
- * @return $this
- */
- public function setStorageSource($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Functions\V2\StorageSource::class);
- $this->storage_source = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GetFunctionRequest.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GetFunctionRequest.php
deleted file mode 100644
index 015177d21580..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/GetFunctionRequest.php
+++ /dev/null
@@ -1,135 +0,0 @@
-google.cloud.functions.v2.GetFunctionRequest
- */
-class GetFunctionRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the function which details should be obtained.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Optional. The version of the 1st gen function whose details should
- * be obtained. The version of a 1st gen function is an integer that starts
- * from 1 and gets incremented on redeployments. GCF may keep historical
- * configs for old versions of 1st gen function. This field can be specified
- * to fetch the historical configs. This field is valid only for GCF 1st gen
- * function.
- *
- * Generated from protobuf field string revision = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $revision = '';
-
- /**
- * @param string $name Required. The name of the function which details should be obtained. Please see
- * {@see FunctionServiceClient::functionName()} for help formatting this field.
- *
- * @return \Google\Cloud\Functions\V2\GetFunctionRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The name of the function which details should be obtained.
- * @type string $revision
- * Optional. The version of the 1st gen function whose details should
- * be obtained. The version of a 1st gen function is an integer that starts
- * from 1 and gets incremented on redeployments. GCF may keep historical
- * configs for old versions of 1st gen function. This field can be specified
- * to fetch the historical configs. This field is valid only for GCF 1st gen
- * function.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the function which details should be obtained.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The name of the function which details should be obtained.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. The version of the 1st gen function whose details should
- * be obtained. The version of a 1st gen function is an integer that starts
- * from 1 and gets incremented on redeployments. GCF may keep historical
- * configs for old versions of 1st gen function. This field can be specified
- * to fetch the historical configs. This field is valid only for GCF 1st gen
- * function.
- *
- * Generated from protobuf field string revision = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRevision()
- {
- return $this->revision;
- }
-
- /**
- * Optional. The version of the 1st gen function whose details should
- * be obtained. The version of a 1st gen function is an integer that starts
- * from 1 and gets incremented on redeployments. GCF may keep historical
- * configs for old versions of 1st gen function. This field can be specified
- * to fetch the historical configs. This field is valid only for GCF 1st gen
- * function.
- *
- * Generated from protobuf field string revision = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRevision($var)
- {
- GPBUtil::checkString($var, True);
- $this->revision = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListFunctionsRequest.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListFunctionsRequest.php
deleted file mode 100644
index 993b0f979c80..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListFunctionsRequest.php
+++ /dev/null
@@ -1,278 +0,0 @@
-google.cloud.functions.v2.ListFunctionsRequest
- */
-class ListFunctionsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The project and location from which the function should be
- * listed, specified in the format `projects/*/locations/*` If you want to
- * list functions in all locations, use "-" in place of a location. When
- * listing functions in all locations, if one or more location(s) are
- * unreachable, the response will contain functions from all reachable
- * locations along with the names of any unreachable locations.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Maximum number of functions to return per call. The largest allowed
- * page_size is 1,000, if the page_size is omitted or specified as greater
- * than 1,000 then it will be replaced as 1,000. The size of the list
- * response can be less than specified when used with filters.
- *
- * Generated from protobuf field int32 page_size = 2;
- */
- protected $page_size = 0;
- /**
- * The value returned by the last
- * `ListFunctionsResponse`; indicates that
- * this is a continuation of a prior `ListFunctions` call, and that the
- * system should return the next page of data.
- *
- * Generated from protobuf field string page_token = 3;
- */
- protected $page_token = '';
- /**
- * The filter for Functions that match the filter expression,
- * following the syntax outlined in https://google.aip.dev/160.
- *
- * Generated from protobuf field string filter = 4;
- */
- protected $filter = '';
- /**
- * The sorting order of the resources returned. Value should be a comma
- * separated list of fields. The default sorting oder is ascending.
- * See https://google.aip.dev/132#ordering.
- *
- * Generated from protobuf field string order_by = 5;
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The project and location from which the function should be
- * listed, specified in the format `projects/*/locations/*` If you want to
- * list functions in all locations, use "-" in place of a location. When
- * listing functions in all locations, if one or more location(s) are
- * unreachable, the response will contain functions from all reachable
- * locations along with the names of any unreachable locations. Please see
- * {@see FunctionServiceClient::locationName()} for help formatting this field.
- *
- * @return \Google\Cloud\Functions\V2\ListFunctionsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The project and location from which the function should be
- * listed, specified in the format `projects/*/locations/*` If you want to
- * list functions in all locations, use "-" in place of a location. When
- * listing functions in all locations, if one or more location(s) are
- * unreachable, the response will contain functions from all reachable
- * locations along with the names of any unreachable locations.
- * @type int $page_size
- * Maximum number of functions to return per call. The largest allowed
- * page_size is 1,000, if the page_size is omitted or specified as greater
- * than 1,000 then it will be replaced as 1,000. The size of the list
- * response can be less than specified when used with filters.
- * @type string $page_token
- * The value returned by the last
- * `ListFunctionsResponse`; indicates that
- * this is a continuation of a prior `ListFunctions` call, and that the
- * system should return the next page of data.
- * @type string $filter
- * The filter for Functions that match the filter expression,
- * following the syntax outlined in https://google.aip.dev/160.
- * @type string $order_by
- * The sorting order of the resources returned. Value should be a comma
- * separated list of fields. The default sorting oder is ascending.
- * See https://google.aip.dev/132#ordering.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The project and location from which the function should be
- * listed, specified in the format `projects/*/locations/*` If you want to
- * list functions in all locations, use "-" in place of a location. When
- * listing functions in all locations, if one or more location(s) are
- * unreachable, the response will contain functions from all reachable
- * locations along with the names of any unreachable locations.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The project and location from which the function should be
- * listed, specified in the format `projects/*/locations/*` If you want to
- * list functions in all locations, use "-" in place of a location. When
- * listing functions in all locations, if one or more location(s) are
- * unreachable, the response will contain functions from all reachable
- * locations along with the names of any unreachable locations.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Maximum number of functions to return per call. The largest allowed
- * page_size is 1,000, if the page_size is omitted or specified as greater
- * than 1,000 then it will be replaced as 1,000. The size of the list
- * response can be less than specified when used with filters.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Maximum number of functions to return per call. The largest allowed
- * page_size is 1,000, if the page_size is omitted or specified as greater
- * than 1,000 then it will be replaced as 1,000. The size of the list
- * response can be less than specified when used with filters.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * The value returned by the last
- * `ListFunctionsResponse`; indicates that
- * this is a continuation of a prior `ListFunctions` call, and that the
- * system should return the next page of data.
- *
- * Generated from protobuf field string page_token = 3;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * The value returned by the last
- * `ListFunctionsResponse`; indicates that
- * this is a continuation of a prior `ListFunctions` call, and that the
- * system should return the next page of data.
- *
- * Generated from protobuf field string page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * The filter for Functions that match the filter expression,
- * following the syntax outlined in https://google.aip.dev/160.
- *
- * Generated from protobuf field string filter = 4;
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * The filter for Functions that match the filter expression,
- * following the syntax outlined in https://google.aip.dev/160.
- *
- * Generated from protobuf field string filter = 4;
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * The sorting order of the resources returned. Value should be a comma
- * separated list of fields. The default sorting oder is ascending.
- * See https://google.aip.dev/132#ordering.
- *
- * Generated from protobuf field string order_by = 5;
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * The sorting order of the resources returned. Value should be a comma
- * separated list of fields. The default sorting oder is ascending.
- * See https://google.aip.dev/132#ordering.
- *
- * Generated from protobuf field string order_by = 5;
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListFunctionsResponse.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListFunctionsResponse.php
deleted file mode 100644
index edfa21aa7abe..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListFunctionsResponse.php
+++ /dev/null
@@ -1,143 +0,0 @@
-google.cloud.functions.v2.ListFunctionsResponse
- */
-class ListFunctionsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The functions that match the request.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.Function functions = 1;
- */
- private $functions;
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Locations that could not be reached. The response does not include any
- * functions from these locations.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Functions\V2\PBFunction>|\Google\Protobuf\Internal\RepeatedField $functions
- * The functions that match the request.
- * @type string $next_page_token
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * Locations that could not be reached. The response does not include any
- * functions from these locations.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The functions that match the request.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.Function functions = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFunctions()
- {
- return $this->functions;
- }
-
- /**
- * The functions that match the request.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.Function functions = 1;
- * @param array<\Google\Cloud\Functions\V2\PBFunction>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFunctions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Functions\V2\PBFunction::class);
- $this->functions = $arr;
-
- return $this;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Locations that could not be reached. The response does not include any
- * functions from these locations.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * Locations that could not be reached. The response does not include any
- * functions from these locations.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListRuntimesRequest.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListRuntimesRequest.php
deleted file mode 100644
index 7b4e50584294..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListRuntimesRequest.php
+++ /dev/null
@@ -1,124 +0,0 @@
-google.cloud.functions.v2.ListRuntimesRequest
- */
-class ListRuntimesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The project and location from which the runtimes should be
- * listed, specified in the format `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * The filter for Runtimes that match the filter expression,
- * following the syntax outlined in https://google.aip.dev/160.
- *
- * Generated from protobuf field string filter = 2;
- */
- protected $filter = '';
-
- /**
- * @param string $parent Required. The project and location from which the runtimes should be
- * listed, specified in the format `projects/*/locations/*`
- * Please see {@see FunctionServiceClient::locationName()} for help formatting this field.
- *
- * @return \Google\Cloud\Functions\V2\ListRuntimesRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The project and location from which the runtimes should be
- * listed, specified in the format `projects/*/locations/*`
- * @type string $filter
- * The filter for Runtimes that match the filter expression,
- * following the syntax outlined in https://google.aip.dev/160.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The project and location from which the runtimes should be
- * listed, specified in the format `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The project and location from which the runtimes should be
- * listed, specified in the format `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * The filter for Runtimes that match the filter expression,
- * following the syntax outlined in https://google.aip.dev/160.
- *
- * Generated from protobuf field string filter = 2;
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * The filter for Runtimes that match the filter expression,
- * following the syntax outlined in https://google.aip.dev/160.
- *
- * Generated from protobuf field string filter = 2;
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListRuntimesResponse.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListRuntimesResponse.php
deleted file mode 100644
index b833f9d472e1..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListRuntimesResponse.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.cloud.functions.v2.ListRuntimesResponse
- */
-class ListRuntimesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The runtimes that match the request.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1;
- */
- private $runtimes;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\Functions\V2\ListRuntimesResponse\Runtime>|\Google\Protobuf\Internal\RepeatedField $runtimes
- * The runtimes that match the request.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The runtimes that match the request.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRuntimes()
- {
- return $this->runtimes;
- }
-
- /**
- * The runtimes that match the request.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.ListRuntimesResponse.Runtime runtimes = 1;
- * @param array<\Google\Cloud\Functions\V2\ListRuntimesResponse\Runtime>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRuntimes($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Functions\V2\ListRuntimesResponse\Runtime::class);
- $this->runtimes = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListRuntimesResponse/Runtime.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListRuntimesResponse/Runtime.php
deleted file mode 100644
index 2928581dd1a4..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListRuntimesResponse/Runtime.php
+++ /dev/null
@@ -1,295 +0,0 @@
-google.cloud.functions.v2.ListRuntimesResponse.Runtime
- */
-class Runtime extends \Google\Protobuf\Internal\Message
-{
- /**
- * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
- *
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
- /**
- * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
- *
- * Generated from protobuf field string display_name = 5;
- */
- protected $display_name = '';
- /**
- * The stage of life this runtime is in, e.g., BETA, GA, etc.
- *
- * Generated from protobuf field .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2;
- */
- protected $stage = 0;
- /**
- * Warning messages, e.g., a deprecation warning.
- *
- * Generated from protobuf field repeated string warnings = 3;
- */
- private $warnings;
- /**
- * The environment for the runtime.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Environment environment = 4;
- */
- protected $environment = 0;
- /**
- * Deprecation date for the runtime.
- *
- * Generated from protobuf field .google.type.Date deprecation_date = 6;
- */
- protected $deprecation_date = null;
- /**
- * Decommission date for the runtime.
- *
- * Generated from protobuf field .google.type.Date decommission_date = 7;
- */
- protected $decommission_date = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
- * @type string $display_name
- * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
- * @type int $stage
- * The stage of life this runtime is in, e.g., BETA, GA, etc.
- * @type array|\Google\Protobuf\Internal\RepeatedField $warnings
- * Warning messages, e.g., a deprecation warning.
- * @type int $environment
- * The environment for the runtime.
- * @type \Google\Type\Date $deprecation_date
- * Deprecation date for the runtime.
- * @type \Google\Type\Date $decommission_date
- * Decommission date for the runtime.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
- *
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * The name of the runtime, e.g., 'go113', 'nodejs12', etc.
- *
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
- *
- * Generated from protobuf field string display_name = 5;
- * @return string
- */
- public function getDisplayName()
- {
- return $this->display_name;
- }
-
- /**
- * The user facing name, eg 'Go 1.13', 'Node.js 12', etc.
- *
- * Generated from protobuf field string display_name = 5;
- * @param string $var
- * @return $this
- */
- public function setDisplayName($var)
- {
- GPBUtil::checkString($var, True);
- $this->display_name = $var;
-
- return $this;
- }
-
- /**
- * The stage of life this runtime is in, e.g., BETA, GA, etc.
- *
- * Generated from protobuf field .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2;
- * @return int
- */
- public function getStage()
- {
- return $this->stage;
- }
-
- /**
- * The stage of life this runtime is in, e.g., BETA, GA, etc.
- *
- * Generated from protobuf field .google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage stage = 2;
- * @param int $var
- * @return $this
- */
- public function setStage($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Functions\V2\ListRuntimesResponse\RuntimeStage::class);
- $this->stage = $var;
-
- return $this;
- }
-
- /**
- * Warning messages, e.g., a deprecation warning.
- *
- * Generated from protobuf field repeated string warnings = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getWarnings()
- {
- return $this->warnings;
- }
-
- /**
- * Warning messages, e.g., a deprecation warning.
- *
- * Generated from protobuf field repeated string warnings = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setWarnings($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->warnings = $arr;
-
- return $this;
- }
-
- /**
- * The environment for the runtime.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Environment environment = 4;
- * @return int
- */
- public function getEnvironment()
- {
- return $this->environment;
- }
-
- /**
- * The environment for the runtime.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Environment environment = 4;
- * @param int $var
- * @return $this
- */
- public function setEnvironment($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Functions\V2\Environment::class);
- $this->environment = $var;
-
- return $this;
- }
-
- /**
- * Deprecation date for the runtime.
- *
- * Generated from protobuf field .google.type.Date deprecation_date = 6;
- * @return \Google\Type\Date|null
- */
- public function getDeprecationDate()
- {
- return $this->deprecation_date;
- }
-
- public function hasDeprecationDate()
- {
- return isset($this->deprecation_date);
- }
-
- public function clearDeprecationDate()
- {
- unset($this->deprecation_date);
- }
-
- /**
- * Deprecation date for the runtime.
- *
- * Generated from protobuf field .google.type.Date deprecation_date = 6;
- * @param \Google\Type\Date $var
- * @return $this
- */
- public function setDeprecationDate($var)
- {
- GPBUtil::checkMessage($var, \Google\Type\Date::class);
- $this->deprecation_date = $var;
-
- return $this;
- }
-
- /**
- * Decommission date for the runtime.
- *
- * Generated from protobuf field .google.type.Date decommission_date = 7;
- * @return \Google\Type\Date|null
- */
- public function getDecommissionDate()
- {
- return $this->decommission_date;
- }
-
- public function hasDecommissionDate()
- {
- return isset($this->decommission_date);
- }
-
- public function clearDecommissionDate()
- {
- unset($this->decommission_date);
- }
-
- /**
- * Decommission date for the runtime.
- *
- * Generated from protobuf field .google.type.Date decommission_date = 7;
- * @param \Google\Type\Date $var
- * @return $this
- */
- public function setDecommissionDate($var)
- {
- GPBUtil::checkMessage($var, \Google\Type\Date::class);
- $this->decommission_date = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(Runtime::class, \Google\Cloud\Functions\V2\ListRuntimesResponse_Runtime::class);
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListRuntimesResponse/RuntimeStage.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListRuntimesResponse/RuntimeStage.php
deleted file mode 100644
index 60d76ac6285e..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ListRuntimesResponse/RuntimeStage.php
+++ /dev/null
@@ -1,92 +0,0 @@
-google.cloud.functions.v2.ListRuntimesResponse.RuntimeStage
- */
-class RuntimeStage
-{
- /**
- * Not specified.
- *
- * Generated from protobuf enum RUNTIME_STAGE_UNSPECIFIED = 0;
- */
- const RUNTIME_STAGE_UNSPECIFIED = 0;
- /**
- * The runtime is in development.
- *
- * Generated from protobuf enum DEVELOPMENT = 1;
- */
- const DEVELOPMENT = 1;
- /**
- * The runtime is in the Alpha stage.
- *
- * Generated from protobuf enum ALPHA = 2;
- */
- const ALPHA = 2;
- /**
- * The runtime is in the Beta stage.
- *
- * Generated from protobuf enum BETA = 3;
- */
- const BETA = 3;
- /**
- * The runtime is generally available.
- *
- * Generated from protobuf enum GA = 4;
- */
- const GA = 4;
- /**
- * The runtime is deprecated.
- *
- * Generated from protobuf enum DEPRECATED = 5;
- */
- const DEPRECATED = 5;
- /**
- * The runtime is no longer supported.
- *
- * Generated from protobuf enum DECOMMISSIONED = 6;
- */
- const DECOMMISSIONED = 6;
-
- private static $valueToName = [
- self::RUNTIME_STAGE_UNSPECIFIED => 'RUNTIME_STAGE_UNSPECIFIED',
- self::DEVELOPMENT => 'DEVELOPMENT',
- self::ALPHA => 'ALPHA',
- self::BETA => 'BETA',
- self::GA => 'GA',
- self::DEPRECATED => 'DEPRECATED',
- self::DECOMMISSIONED => 'DECOMMISSIONED',
- ];
-
- 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(RuntimeStage::class, \Google\Cloud\Functions\V2\ListRuntimesResponse_RuntimeStage::class);
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/LocationMetadata.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/LocationMetadata.php
deleted file mode 100644
index f6f8e06ea974..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/LocationMetadata.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.cloud.functions.v2.LocationMetadata
- */
-class LocationMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * The Cloud Function environments this location supports.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.Environment environments = 1;
- */
- private $environments;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $environments
- * The Cloud Function environments this location supports.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The Cloud Function environments this location supports.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.Environment environments = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getEnvironments()
- {
- return $this->environments;
- }
-
- /**
- * The Cloud Function environments this location supports.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.Environment environments = 1;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setEnvironments($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Functions\V2\Environment::class);
- $this->environments = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/OnDeployUpdatePolicy.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/OnDeployUpdatePolicy.php
deleted file mode 100644
index 471df8d867e2..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/OnDeployUpdatePolicy.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.functions.v2.OnDeployUpdatePolicy
- */
-class OnDeployUpdatePolicy extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. contains the runtime version which was used during latest
- * function deployment.
- *
- * Generated from protobuf field string runtime_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $runtime_version = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $runtime_version
- * Output only. contains the runtime version which was used during latest
- * function deployment.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. contains the runtime version which was used during latest
- * function deployment.
- *
- * Generated from protobuf field string runtime_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getRuntimeVersion()
- {
- return $this->runtime_version;
- }
-
- /**
- * Output only. contains the runtime version which was used during latest
- * function deployment.
- *
- * Generated from protobuf field string runtime_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setRuntimeVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->runtime_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/OperationMetadata.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/OperationMetadata.php
deleted file mode 100644
index b6394ceb74f7..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/OperationMetadata.php
+++ /dev/null
@@ -1,495 +0,0 @@
-google.cloud.functions.v2.OperationMetadata
- */
-class OperationMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * The time the operation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 1;
- */
- protected $create_time = null;
- /**
- * The time the operation finished running.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- */
- protected $end_time = null;
- /**
- * Server-defined resource path for the target of the operation.
- *
- * Generated from protobuf field string target = 3;
- */
- protected $target = '';
- /**
- * Name of the verb executed by the operation.
- *
- * Generated from protobuf field string verb = 4;
- */
- protected $verb = '';
- /**
- * Human-readable status of the operation, if any.
- *
- * Generated from protobuf field string status_detail = 5;
- */
- protected $status_detail = '';
- /**
- * Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have
- * [google.longrunning.Operation.error][google.longrunning.Operation.error]
- * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
- * corresponding to `Code.CANCELLED`.
- *
- * Generated from protobuf field bool cancel_requested = 6;
- */
- protected $cancel_requested = false;
- /**
- * API version used to start the operation.
- *
- * Generated from protobuf field string api_version = 7;
- */
- protected $api_version = '';
- /**
- * The original request that started the operation.
- *
- * Generated from protobuf field .google.protobuf.Any request_resource = 8;
- */
- protected $request_resource = null;
- /**
- * Mechanism for reporting in-progress stages
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.Stage stages = 9;
- */
- private $stages;
- /**
- * An identifier for Firebase function sources. Disclaimer: This field is only
- * supported for Firebase function deployments.
- *
- * Generated from protobuf field string source_token = 10;
- */
- protected $source_token = '';
- /**
- * The build name of the function for create and update operations.
- *
- * Generated from protobuf field string build_name = 13;
- */
- protected $build_name = '';
- /**
- * The operation type.
- *
- * Generated from protobuf field .google.cloud.functions.v2.OperationType operation_type = 11;
- */
- protected $operation_type = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $create_time
- * The time the operation was created.
- * @type \Google\Protobuf\Timestamp $end_time
- * The time the operation finished running.
- * @type string $target
- * Server-defined resource path for the target of the operation.
- * @type string $verb
- * Name of the verb executed by the operation.
- * @type string $status_detail
- * Human-readable status of the operation, if any.
- * @type bool $cancel_requested
- * Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have
- * [google.longrunning.Operation.error][google.longrunning.Operation.error]
- * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
- * corresponding to `Code.CANCELLED`.
- * @type string $api_version
- * API version used to start the operation.
- * @type \Google\Protobuf\Any $request_resource
- * The original request that started the operation.
- * @type array<\Google\Cloud\Functions\V2\Stage>|\Google\Protobuf\Internal\RepeatedField $stages
- * Mechanism for reporting in-progress stages
- * @type string $source_token
- * An identifier for Firebase function sources. Disclaimer: This field is only
- * supported for Firebase function deployments.
- * @type string $build_name
- * The build name of the function for create and update operations.
- * @type int $operation_type
- * The operation type.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The time the operation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 1;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * The time the operation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 1;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * The time the operation finished running.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * The time the operation finished running.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
- /**
- * Server-defined resource path for the target of the operation.
- *
- * Generated from protobuf field string target = 3;
- * @return string
- */
- public function getTarget()
- {
- return $this->target;
- }
-
- /**
- * Server-defined resource path for the target of the operation.
- *
- * Generated from protobuf field string target = 3;
- * @param string $var
- * @return $this
- */
- public function setTarget($var)
- {
- GPBUtil::checkString($var, True);
- $this->target = $var;
-
- return $this;
- }
-
- /**
- * Name of the verb executed by the operation.
- *
- * Generated from protobuf field string verb = 4;
- * @return string
- */
- public function getVerb()
- {
- return $this->verb;
- }
-
- /**
- * Name of the verb executed by the operation.
- *
- * Generated from protobuf field string verb = 4;
- * @param string $var
- * @return $this
- */
- public function setVerb($var)
- {
- GPBUtil::checkString($var, True);
- $this->verb = $var;
-
- return $this;
- }
-
- /**
- * Human-readable status of the operation, if any.
- *
- * Generated from protobuf field string status_detail = 5;
- * @return string
- */
- public function getStatusDetail()
- {
- return $this->status_detail;
- }
-
- /**
- * Human-readable status of the operation, if any.
- *
- * Generated from protobuf field string status_detail = 5;
- * @param string $var
- * @return $this
- */
- public function setStatusDetail($var)
- {
- GPBUtil::checkString($var, True);
- $this->status_detail = $var;
-
- return $this;
- }
-
- /**
- * Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have
- * [google.longrunning.Operation.error][google.longrunning.Operation.error]
- * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
- * corresponding to `Code.CANCELLED`.
- *
- * Generated from protobuf field bool cancel_requested = 6;
- * @return bool
- */
- public function getCancelRequested()
- {
- return $this->cancel_requested;
- }
-
- /**
- * Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have
- * [google.longrunning.Operation.error][google.longrunning.Operation.error]
- * value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
- * corresponding to `Code.CANCELLED`.
- *
- * Generated from protobuf field bool cancel_requested = 6;
- * @param bool $var
- * @return $this
- */
- public function setCancelRequested($var)
- {
- GPBUtil::checkBool($var);
- $this->cancel_requested = $var;
-
- return $this;
- }
-
- /**
- * API version used to start the operation.
- *
- * Generated from protobuf field string api_version = 7;
- * @return string
- */
- public function getApiVersion()
- {
- return $this->api_version;
- }
-
- /**
- * API version used to start the operation.
- *
- * Generated from protobuf field string api_version = 7;
- * @param string $var
- * @return $this
- */
- public function setApiVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->api_version = $var;
-
- return $this;
- }
-
- /**
- * The original request that started the operation.
- *
- * Generated from protobuf field .google.protobuf.Any request_resource = 8;
- * @return \Google\Protobuf\Any|null
- */
- public function getRequestResource()
- {
- return $this->request_resource;
- }
-
- public function hasRequestResource()
- {
- return isset($this->request_resource);
- }
-
- public function clearRequestResource()
- {
- unset($this->request_resource);
- }
-
- /**
- * The original request that started the operation.
- *
- * Generated from protobuf field .google.protobuf.Any request_resource = 8;
- * @param \Google\Protobuf\Any $var
- * @return $this
- */
- public function setRequestResource($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Any::class);
- $this->request_resource = $var;
-
- return $this;
- }
-
- /**
- * Mechanism for reporting in-progress stages
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.Stage stages = 9;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getStages()
- {
- return $this->stages;
- }
-
- /**
- * Mechanism for reporting in-progress stages
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.Stage stages = 9;
- * @param array<\Google\Cloud\Functions\V2\Stage>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setStages($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Functions\V2\Stage::class);
- $this->stages = $arr;
-
- return $this;
- }
-
- /**
- * An identifier for Firebase function sources. Disclaimer: This field is only
- * supported for Firebase function deployments.
- *
- * Generated from protobuf field string source_token = 10;
- * @return string
- */
- public function getSourceToken()
- {
- return $this->source_token;
- }
-
- /**
- * An identifier for Firebase function sources. Disclaimer: This field is only
- * supported for Firebase function deployments.
- *
- * Generated from protobuf field string source_token = 10;
- * @param string $var
- * @return $this
- */
- public function setSourceToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->source_token = $var;
-
- return $this;
- }
-
- /**
- * The build name of the function for create and update operations.
- *
- * Generated from protobuf field string build_name = 13;
- * @return string
- */
- public function getBuildName()
- {
- return $this->build_name;
- }
-
- /**
- * The build name of the function for create and update operations.
- *
- * Generated from protobuf field string build_name = 13;
- * @param string $var
- * @return $this
- */
- public function setBuildName($var)
- {
- GPBUtil::checkString($var, True);
- $this->build_name = $var;
-
- return $this;
- }
-
- /**
- * The operation type.
- *
- * Generated from protobuf field .google.cloud.functions.v2.OperationType operation_type = 11;
- * @return int
- */
- public function getOperationType()
- {
- return $this->operation_type;
- }
-
- /**
- * The operation type.
- *
- * Generated from protobuf field .google.cloud.functions.v2.OperationType operation_type = 11;
- * @param int $var
- * @return $this
- */
- public function setOperationType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Functions\V2\OperationType::class);
- $this->operation_type = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/OperationType.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/OperationType.php
deleted file mode 100644
index 00296bf3ca85..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/OperationType.php
+++ /dev/null
@@ -1,68 +0,0 @@
-google.cloud.functions.v2.OperationType
- */
-class OperationType
-{
- /**
- * Unspecified
- *
- * Generated from protobuf enum OPERATIONTYPE_UNSPECIFIED = 0;
- */
- const OPERATIONTYPE_UNSPECIFIED = 0;
- /**
- * CreateFunction
- *
- * Generated from protobuf enum CREATE_FUNCTION = 1;
- */
- const CREATE_FUNCTION = 1;
- /**
- * UpdateFunction
- *
- * Generated from protobuf enum UPDATE_FUNCTION = 2;
- */
- const UPDATE_FUNCTION = 2;
- /**
- * DeleteFunction
- *
- * Generated from protobuf enum DELETE_FUNCTION = 3;
- */
- const DELETE_FUNCTION = 3;
-
- private static $valueToName = [
- self::OPERATIONTYPE_UNSPECIFIED => 'OPERATIONTYPE_UNSPECIFIED',
- self::CREATE_FUNCTION => 'CREATE_FUNCTION',
- self::UPDATE_FUNCTION => 'UPDATE_FUNCTION',
- self::DELETE_FUNCTION => 'DELETE_FUNCTION',
- ];
-
- 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);
- }
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/PBFunction.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/PBFunction.php
deleted file mode 100644
index f910190061c4..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/PBFunction.php
+++ /dev/null
@@ -1,592 +0,0 @@
-google.cloud.functions.v2.Function
- */
-class PBFunction extends \Google\Protobuf\Internal\Message
-{
- /**
- * A user-defined name of the function. Function names must be unique
- * globally and match pattern `projects/*/locations/*/functions/*`
- *
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
- /**
- * User-provided description of a function.
- *
- * Generated from protobuf field string description = 2;
- */
- protected $description = '';
- /**
- * Describes the Build step of the function that builds a container from the
- * given source.
- *
- * Generated from protobuf field .google.cloud.functions.v2.BuildConfig build_config = 3;
- */
- protected $build_config = null;
- /**
- * Describes the Service being deployed. Currently deploys services to Cloud
- * Run (fully managed).
- *
- * Generated from protobuf field .google.cloud.functions.v2.ServiceConfig service_config = 4;
- */
- protected $service_config = null;
- /**
- * An Eventarc trigger managed by Google Cloud Functions that fires events in
- * response to a condition in another service.
- *
- * Generated from protobuf field .google.cloud.functions.v2.EventTrigger event_trigger = 5;
- */
- protected $event_trigger = null;
- /**
- * Output only. State of the function.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. The last update timestamp of a Cloud Function.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * Labels associated with this Cloud Function.
- *
- * Generated from protobuf field map labels = 8;
- */
- private $labels;
- /**
- * Output only. State Messages for this Cloud Function.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $state_messages;
- /**
- * Describe whether the function is 1st Gen or 2nd Gen.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Environment environment = 10;
- */
- protected $environment = 0;
- /**
- * Output only. The deployed url for the function.
- *
- * Generated from protobuf field string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $url = '';
- /**
- * [Preview] Resource name of a KMS crypto key (managed by the user) used to
- * encrypt/decrypt function resources.
- * It must match the pattern
- * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- *
- * Generated from protobuf field string kms_key_name = 25 [(.google.api.resource_reference) = {
- */
- protected $kms_key_name = '';
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $satisfies_pzs = false;
- /**
- * Output only. The create timestamp of a Cloud Function. This is only
- * applicable to 2nd Gen functions.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * A user-defined name of the function. Function names must be unique
- * globally and match pattern `projects/*/locations/*/functions/*`
- * @type string $description
- * User-provided description of a function.
- * @type \Google\Cloud\Functions\V2\BuildConfig $build_config
- * Describes the Build step of the function that builds a container from the
- * given source.
- * @type \Google\Cloud\Functions\V2\ServiceConfig $service_config
- * Describes the Service being deployed. Currently deploys services to Cloud
- * Run (fully managed).
- * @type \Google\Cloud\Functions\V2\EventTrigger $event_trigger
- * An Eventarc trigger managed by Google Cloud Functions that fires events in
- * response to a condition in another service.
- * @type int $state
- * Output only. State of the function.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. The last update timestamp of a Cloud Function.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Labels associated with this Cloud Function.
- * @type array<\Google\Cloud\Functions\V2\StateMessage>|\Google\Protobuf\Internal\RepeatedField $state_messages
- * Output only. State Messages for this Cloud Function.
- * @type int $environment
- * Describe whether the function is 1st Gen or 2nd Gen.
- * @type string $url
- * Output only. The deployed url for the function.
- * @type string $kms_key_name
- * [Preview] Resource name of a KMS crypto key (managed by the user) used to
- * encrypt/decrypt function resources.
- * It must match the pattern
- * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- * @type bool $satisfies_pzs
- * Output only. Reserved for future use.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The create timestamp of a Cloud Function. This is only
- * applicable to 2nd Gen functions.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A user-defined name of the function. Function names must be unique
- * globally and match pattern `projects/*/locations/*/functions/*`
- *
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * A user-defined name of the function. Function names must be unique
- * globally and match pattern `projects/*/locations/*/functions/*`
- *
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * User-provided description of a function.
- *
- * Generated from protobuf field string description = 2;
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * User-provided description of a function.
- *
- * Generated from protobuf field string description = 2;
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Describes the Build step of the function that builds a container from the
- * given source.
- *
- * Generated from protobuf field .google.cloud.functions.v2.BuildConfig build_config = 3;
- * @return \Google\Cloud\Functions\V2\BuildConfig|null
- */
- public function getBuildConfig()
- {
- return $this->build_config;
- }
-
- public function hasBuildConfig()
- {
- return isset($this->build_config);
- }
-
- public function clearBuildConfig()
- {
- unset($this->build_config);
- }
-
- /**
- * Describes the Build step of the function that builds a container from the
- * given source.
- *
- * Generated from protobuf field .google.cloud.functions.v2.BuildConfig build_config = 3;
- * @param \Google\Cloud\Functions\V2\BuildConfig $var
- * @return $this
- */
- public function setBuildConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Functions\V2\BuildConfig::class);
- $this->build_config = $var;
-
- return $this;
- }
-
- /**
- * Describes the Service being deployed. Currently deploys services to Cloud
- * Run (fully managed).
- *
- * Generated from protobuf field .google.cloud.functions.v2.ServiceConfig service_config = 4;
- * @return \Google\Cloud\Functions\V2\ServiceConfig|null
- */
- public function getServiceConfig()
- {
- return $this->service_config;
- }
-
- public function hasServiceConfig()
- {
- return isset($this->service_config);
- }
-
- public function clearServiceConfig()
- {
- unset($this->service_config);
- }
-
- /**
- * Describes the Service being deployed. Currently deploys services to Cloud
- * Run (fully managed).
- *
- * Generated from protobuf field .google.cloud.functions.v2.ServiceConfig service_config = 4;
- * @param \Google\Cloud\Functions\V2\ServiceConfig $var
- * @return $this
- */
- public function setServiceConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Functions\V2\ServiceConfig::class);
- $this->service_config = $var;
-
- return $this;
- }
-
- /**
- * An Eventarc trigger managed by Google Cloud Functions that fires events in
- * response to a condition in another service.
- *
- * Generated from protobuf field .google.cloud.functions.v2.EventTrigger event_trigger = 5;
- * @return \Google\Cloud\Functions\V2\EventTrigger|null
- */
- public function getEventTrigger()
- {
- return $this->event_trigger;
- }
-
- public function hasEventTrigger()
- {
- return isset($this->event_trigger);
- }
-
- public function clearEventTrigger()
- {
- unset($this->event_trigger);
- }
-
- /**
- * An Eventarc trigger managed by Google Cloud Functions that fires events in
- * response to a condition in another service.
- *
- * Generated from protobuf field .google.cloud.functions.v2.EventTrigger event_trigger = 5;
- * @param \Google\Cloud\Functions\V2\EventTrigger $var
- * @return $this
- */
- public function setEventTrigger($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Functions\V2\EventTrigger::class);
- $this->event_trigger = $var;
-
- return $this;
- }
-
- /**
- * Output only. State of the function.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. State of the function.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Function.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Functions\V2\PBFunction\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. The last update timestamp of a Cloud Function.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. The last update timestamp of a Cloud Function.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * Labels associated with this Cloud Function.
- *
- * Generated from protobuf field map labels = 8;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Labels associated with this Cloud Function.
- *
- * Generated from protobuf field map labels = 8;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Output only. State Messages for this Cloud Function.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getStateMessages()
- {
- return $this->state_messages;
- }
-
- /**
- * Output only. State Messages for this Cloud Function.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.StateMessage state_messages = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array<\Google\Cloud\Functions\V2\StateMessage>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setStateMessages($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Functions\V2\StateMessage::class);
- $this->state_messages = $arr;
-
- return $this;
- }
-
- /**
- * Describe whether the function is 1st Gen or 2nd Gen.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Environment environment = 10;
- * @return int
- */
- public function getEnvironment()
- {
- return $this->environment;
- }
-
- /**
- * Describe whether the function is 1st Gen or 2nd Gen.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Environment environment = 10;
- * @param int $var
- * @return $this
- */
- public function setEnvironment($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Functions\V2\Environment::class);
- $this->environment = $var;
-
- return $this;
- }
-
- /**
- * Output only. The deployed url for the function.
- *
- * Generated from protobuf field string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUrl()
- {
- return $this->url;
- }
-
- /**
- * Output only. The deployed url for the function.
- *
- * Generated from protobuf field string url = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUrl($var)
- {
- GPBUtil::checkString($var, True);
- $this->url = $var;
-
- return $this;
- }
-
- /**
- * [Preview] Resource name of a KMS crypto key (managed by the user) used to
- * encrypt/decrypt function resources.
- * It must match the pattern
- * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- *
- * Generated from protobuf field string kms_key_name = 25 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getKmsKeyName()
- {
- return $this->kms_key_name;
- }
-
- /**
- * [Preview] Resource name of a KMS crypto key (managed by the user) used to
- * encrypt/decrypt function resources.
- * It must match the pattern
- * `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
- *
- * Generated from protobuf field string kms_key_name = 25 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setKmsKeyName($var)
- {
- GPBUtil::checkString($var, True);
- $this->kms_key_name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool
- */
- public function getSatisfiesPzs()
- {
- return $this->satisfies_pzs;
- }
-
- /**
- * Output only. Reserved for future use.
- *
- * Generated from protobuf field bool satisfies_pzs = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool $var
- * @return $this
- */
- public function setSatisfiesPzs($var)
- {
- GPBUtil::checkBool($var);
- $this->satisfies_pzs = $var;
-
- return $this;
- }
-
- /**
- * Output only. The create timestamp of a Cloud Function. This is only
- * applicable to 2nd Gen functions.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The create timestamp of a Cloud Function. This is only
- * applicable to 2nd Gen functions.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/PBFunction/State.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/PBFunction/State.php
deleted file mode 100644
index f6e8c8a0e5cd..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/PBFunction/State.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.functions.v2.Function.State
- */
-class State
-{
- /**
- * Not specified. Invalid state.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * Function has been successfully deployed and is serving.
- *
- * Generated from protobuf enum ACTIVE = 1;
- */
- const ACTIVE = 1;
- /**
- * Function deployment failed and the function is not serving.
- *
- * Generated from protobuf enum FAILED = 2;
- */
- const FAILED = 2;
- /**
- * Function is being created or updated.
- *
- * Generated from protobuf enum DEPLOYING = 3;
- */
- const DEPLOYING = 3;
- /**
- * Function is being deleted.
- *
- * Generated from protobuf enum DELETING = 4;
- */
- const DELETING = 4;
- /**
- * Function deployment failed and the function serving state is undefined.
- * The function should be updated or deleted to move it out of this state.
- *
- * Generated from protobuf enum UNKNOWN = 5;
- */
- const UNKNOWN = 5;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::ACTIVE => 'ACTIVE',
- self::FAILED => 'FAILED',
- self::DEPLOYING => 'DEPLOYING',
- self::DELETING => 'DELETING',
- self::UNKNOWN => 'UNKNOWN',
- ];
-
- 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(State::class, \Google\Cloud\Functions\V2\Function_State::class);
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/RepoSource.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/RepoSource.php
deleted file mode 100644
index 5326f62530e6..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/RepoSource.php
+++ /dev/null
@@ -1,309 +0,0 @@
-google.cloud.functions.v2.RepoSource
- */
-class RepoSource extends \Google\Protobuf\Internal\Message
-{
- /**
- * ID of the project that owns the Cloud Source Repository. If omitted, the
- * project ID requesting the build is assumed.
- *
- * Generated from protobuf field string project_id = 1;
- */
- protected $project_id = '';
- /**
- * Name of the Cloud Source Repository.
- *
- * Generated from protobuf field string repo_name = 2;
- */
- protected $repo_name = '';
- /**
- * Directory, relative to the source root, in which to run the build.
- * This must be a relative path. If a step's `dir` is specified and is an
- * absolute path, this value is ignored for that step's execution.
- * eg. helloworld (no leading slash allowed)
- *
- * Generated from protobuf field string dir = 6;
- */
- protected $dir = '';
- /**
- * Only trigger a build if the revision regex does NOT match the revision
- * regex.
- *
- * Generated from protobuf field bool invert_regex = 7;
- */
- protected $invert_regex = false;
- protected $revision;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $branch_name
- * Regex matching branches to build.
- * The syntax of the regular expressions accepted is the syntax accepted by
- * RE2 and described at https://github.com/google/re2/wiki/Syntax
- * @type string $tag_name
- * Regex matching tags to build.
- * The syntax of the regular expressions accepted is the syntax accepted by
- * RE2 and described at https://github.com/google/re2/wiki/Syntax
- * @type string $commit_sha
- * Explicit commit SHA to build.
- * @type string $project_id
- * ID of the project that owns the Cloud Source Repository. If omitted, the
- * project ID requesting the build is assumed.
- * @type string $repo_name
- * Name of the Cloud Source Repository.
- * @type string $dir
- * Directory, relative to the source root, in which to run the build.
- * This must be a relative path. If a step's `dir` is specified and is an
- * absolute path, this value is ignored for that step's execution.
- * eg. helloworld (no leading slash allowed)
- * @type bool $invert_regex
- * Only trigger a build if the revision regex does NOT match the revision
- * regex.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Regex matching branches to build.
- * The syntax of the regular expressions accepted is the syntax accepted by
- * RE2 and described at https://github.com/google/re2/wiki/Syntax
- *
- * Generated from protobuf field string branch_name = 3;
- * @return string
- */
- public function getBranchName()
- {
- return $this->readOneof(3);
- }
-
- public function hasBranchName()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * Regex matching branches to build.
- * The syntax of the regular expressions accepted is the syntax accepted by
- * RE2 and described at https://github.com/google/re2/wiki/Syntax
- *
- * Generated from protobuf field string branch_name = 3;
- * @param string $var
- * @return $this
- */
- public function setBranchName($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * Regex matching tags to build.
- * The syntax of the regular expressions accepted is the syntax accepted by
- * RE2 and described at https://github.com/google/re2/wiki/Syntax
- *
- * Generated from protobuf field string tag_name = 4;
- * @return string
- */
- public function getTagName()
- {
- return $this->readOneof(4);
- }
-
- public function hasTagName()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Regex matching tags to build.
- * The syntax of the regular expressions accepted is the syntax accepted by
- * RE2 and described at https://github.com/google/re2/wiki/Syntax
- *
- * Generated from protobuf field string tag_name = 4;
- * @param string $var
- * @return $this
- */
- public function setTagName($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * Explicit commit SHA to build.
- *
- * Generated from protobuf field string commit_sha = 5;
- * @return string
- */
- public function getCommitSha()
- {
- return $this->readOneof(5);
- }
-
- public function hasCommitSha()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Explicit commit SHA to build.
- *
- * Generated from protobuf field string commit_sha = 5;
- * @param string $var
- * @return $this
- */
- public function setCommitSha($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * ID of the project that owns the Cloud Source Repository. If omitted, the
- * project ID requesting the build is assumed.
- *
- * Generated from protobuf field string project_id = 1;
- * @return string
- */
- public function getProjectId()
- {
- return $this->project_id;
- }
-
- /**
- * ID of the project that owns the Cloud Source Repository. If omitted, the
- * project ID requesting the build is assumed.
- *
- * Generated from protobuf field string project_id = 1;
- * @param string $var
- * @return $this
- */
- public function setProjectId($var)
- {
- GPBUtil::checkString($var, True);
- $this->project_id = $var;
-
- return $this;
- }
-
- /**
- * Name of the Cloud Source Repository.
- *
- * Generated from protobuf field string repo_name = 2;
- * @return string
- */
- public function getRepoName()
- {
- return $this->repo_name;
- }
-
- /**
- * Name of the Cloud Source Repository.
- *
- * Generated from protobuf field string repo_name = 2;
- * @param string $var
- * @return $this
- */
- public function setRepoName($var)
- {
- GPBUtil::checkString($var, True);
- $this->repo_name = $var;
-
- return $this;
- }
-
- /**
- * Directory, relative to the source root, in which to run the build.
- * This must be a relative path. If a step's `dir` is specified and is an
- * absolute path, this value is ignored for that step's execution.
- * eg. helloworld (no leading slash allowed)
- *
- * Generated from protobuf field string dir = 6;
- * @return string
- */
- public function getDir()
- {
- return $this->dir;
- }
-
- /**
- * Directory, relative to the source root, in which to run the build.
- * This must be a relative path. If a step's `dir` is specified and is an
- * absolute path, this value is ignored for that step's execution.
- * eg. helloworld (no leading slash allowed)
- *
- * Generated from protobuf field string dir = 6;
- * @param string $var
- * @return $this
- */
- public function setDir($var)
- {
- GPBUtil::checkString($var, True);
- $this->dir = $var;
-
- return $this;
- }
-
- /**
- * Only trigger a build if the revision regex does NOT match the revision
- * regex.
- *
- * Generated from protobuf field bool invert_regex = 7;
- * @return bool
- */
- public function getInvertRegex()
- {
- return $this->invert_regex;
- }
-
- /**
- * Only trigger a build if the revision regex does NOT match the revision
- * regex.
- *
- * Generated from protobuf field bool invert_regex = 7;
- * @param bool $var
- * @return $this
- */
- public function setInvertRegex($var)
- {
- GPBUtil::checkBool($var);
- $this->invert_regex = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getRevision()
- {
- return $this->whichOneof("revision");
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/SecretEnvVar.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/SecretEnvVar.php
deleted file mode 100644
index d14b7f6d187b..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/SecretEnvVar.php
+++ /dev/null
@@ -1,191 +0,0 @@
-google.cloud.functions.v2.SecretEnvVar
- */
-class SecretEnvVar extends \Google\Protobuf\Internal\Message
-{
- /**
- * Name of the environment variable.
- *
- * Generated from protobuf field string key = 1;
- */
- protected $key = '';
- /**
- * Project identifier (preferably project number but can also be the
- * project ID) of the project that contains the secret. If not set, it is
- * assumed that the secret is in the same project as the function.
- *
- * Generated from protobuf field string project_id = 2;
- */
- protected $project_id = '';
- /**
- * Name of the secret in secret manager (not the full resource name).
- *
- * Generated from protobuf field string secret = 3;
- */
- protected $secret = '';
- /**
- * Version of the secret (version number or the string 'latest'). It is
- * recommended to use a numeric version for secret environment variables as
- * any updates to the secret value is not reflected until new instances
- * start.
- *
- * Generated from protobuf field string version = 4;
- */
- protected $version = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $key
- * Name of the environment variable.
- * @type string $project_id
- * Project identifier (preferably project number but can also be the
- * project ID) of the project that contains the secret. If not set, it is
- * assumed that the secret is in the same project as the function.
- * @type string $secret
- * Name of the secret in secret manager (not the full resource name).
- * @type string $version
- * Version of the secret (version number or the string 'latest'). It is
- * recommended to use a numeric version for secret environment variables as
- * any updates to the secret value is not reflected until new instances
- * start.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Name of the environment variable.
- *
- * Generated from protobuf field string key = 1;
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * Name of the environment variable.
- *
- * Generated from protobuf field string key = 1;
- * @param string $var
- * @return $this
- */
- public function setKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->key = $var;
-
- return $this;
- }
-
- /**
- * Project identifier (preferably project number but can also be the
- * project ID) of the project that contains the secret. If not set, it is
- * assumed that the secret is in the same project as the function.
- *
- * Generated from protobuf field string project_id = 2;
- * @return string
- */
- public function getProjectId()
- {
- return $this->project_id;
- }
-
- /**
- * Project identifier (preferably project number but can also be the
- * project ID) of the project that contains the secret. If not set, it is
- * assumed that the secret is in the same project as the function.
- *
- * Generated from protobuf field string project_id = 2;
- * @param string $var
- * @return $this
- */
- public function setProjectId($var)
- {
- GPBUtil::checkString($var, True);
- $this->project_id = $var;
-
- return $this;
- }
-
- /**
- * Name of the secret in secret manager (not the full resource name).
- *
- * Generated from protobuf field string secret = 3;
- * @return string
- */
- public function getSecret()
- {
- return $this->secret;
- }
-
- /**
- * Name of the secret in secret manager (not the full resource name).
- *
- * Generated from protobuf field string secret = 3;
- * @param string $var
- * @return $this
- */
- public function setSecret($var)
- {
- GPBUtil::checkString($var, True);
- $this->secret = $var;
-
- return $this;
- }
-
- /**
- * Version of the secret (version number or the string 'latest'). It is
- * recommended to use a numeric version for secret environment variables as
- * any updates to the secret value is not reflected until new instances
- * start.
- *
- * Generated from protobuf field string version = 4;
- * @return string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * Version of the secret (version number or the string 'latest'). It is
- * recommended to use a numeric version for secret environment variables as
- * any updates to the secret value is not reflected until new instances
- * start.
- *
- * Generated from protobuf field string version = 4;
- * @param string $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/SecretVolume.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/SecretVolume.php
deleted file mode 100644
index 505db9251bf8..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/SecretVolume.php
+++ /dev/null
@@ -1,203 +0,0 @@
-google.cloud.functions.v2.SecretVolume
- */
-class SecretVolume extends \Google\Protobuf\Internal\Message
-{
- /**
- * The path within the container to mount the secret volume. For example,
- * setting the mount_path as `/etc/secrets` would mount the secret value files
- * under the `/etc/secrets` directory. This directory will also be completely
- * shadowed and unavailable to mount any other secrets.
- * Recommended mount path: /etc/secrets
- *
- * Generated from protobuf field string mount_path = 1;
- */
- protected $mount_path = '';
- /**
- * Project identifier (preferably project number but can also be the project
- * ID) of the project that contains the secret. If not set, it is
- * assumed that the secret is in the same project as the function.
- *
- * Generated from protobuf field string project_id = 2;
- */
- protected $project_id = '';
- /**
- * Name of the secret in secret manager (not the full resource name).
- *
- * Generated from protobuf field string secret = 3;
- */
- protected $secret = '';
- /**
- * List of secret versions to mount for this secret. If empty, the `latest`
- * version of the secret will be made available in a file named after the
- * secret under the mount point.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
- */
- private $versions;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $mount_path
- * The path within the container to mount the secret volume. For example,
- * setting the mount_path as `/etc/secrets` would mount the secret value files
- * under the `/etc/secrets` directory. This directory will also be completely
- * shadowed and unavailable to mount any other secrets.
- * Recommended mount path: /etc/secrets
- * @type string $project_id
- * Project identifier (preferably project number but can also be the project
- * ID) of the project that contains the secret. If not set, it is
- * assumed that the secret is in the same project as the function.
- * @type string $secret
- * Name of the secret in secret manager (not the full resource name).
- * @type array<\Google\Cloud\Functions\V2\SecretVolume\SecretVersion>|\Google\Protobuf\Internal\RepeatedField $versions
- * List of secret versions to mount for this secret. If empty, the `latest`
- * version of the secret will be made available in a file named after the
- * secret under the mount point.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The path within the container to mount the secret volume. For example,
- * setting the mount_path as `/etc/secrets` would mount the secret value files
- * under the `/etc/secrets` directory. This directory will also be completely
- * shadowed and unavailable to mount any other secrets.
- * Recommended mount path: /etc/secrets
- *
- * Generated from protobuf field string mount_path = 1;
- * @return string
- */
- public function getMountPath()
- {
- return $this->mount_path;
- }
-
- /**
- * The path within the container to mount the secret volume. For example,
- * setting the mount_path as `/etc/secrets` would mount the secret value files
- * under the `/etc/secrets` directory. This directory will also be completely
- * shadowed and unavailable to mount any other secrets.
- * Recommended mount path: /etc/secrets
- *
- * Generated from protobuf field string mount_path = 1;
- * @param string $var
- * @return $this
- */
- public function setMountPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->mount_path = $var;
-
- return $this;
- }
-
- /**
- * Project identifier (preferably project number but can also be the project
- * ID) of the project that contains the secret. If not set, it is
- * assumed that the secret is in the same project as the function.
- *
- * Generated from protobuf field string project_id = 2;
- * @return string
- */
- public function getProjectId()
- {
- return $this->project_id;
- }
-
- /**
- * Project identifier (preferably project number but can also be the project
- * ID) of the project that contains the secret. If not set, it is
- * assumed that the secret is in the same project as the function.
- *
- * Generated from protobuf field string project_id = 2;
- * @param string $var
- * @return $this
- */
- public function setProjectId($var)
- {
- GPBUtil::checkString($var, True);
- $this->project_id = $var;
-
- return $this;
- }
-
- /**
- * Name of the secret in secret manager (not the full resource name).
- *
- * Generated from protobuf field string secret = 3;
- * @return string
- */
- public function getSecret()
- {
- return $this->secret;
- }
-
- /**
- * Name of the secret in secret manager (not the full resource name).
- *
- * Generated from protobuf field string secret = 3;
- * @param string $var
- * @return $this
- */
- public function setSecret($var)
- {
- GPBUtil::checkString($var, True);
- $this->secret = $var;
-
- return $this;
- }
-
- /**
- * List of secret versions to mount for this secret. If empty, the `latest`
- * version of the secret will be made available in a file named after the
- * secret under the mount point.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getVersions()
- {
- return $this->versions;
- }
-
- /**
- * List of secret versions to mount for this secret. If empty, the `latest`
- * version of the secret will be made available in a file named after the
- * secret under the mount point.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.SecretVolume.SecretVersion versions = 4;
- * @param array<\Google\Cloud\Functions\V2\SecretVolume\SecretVersion>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setVersions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Functions\V2\SecretVolume\SecretVersion::class);
- $this->versions = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/SecretVolume/SecretVersion.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/SecretVolume/SecretVersion.php
deleted file mode 100644
index fe99c1e3ddd3..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/SecretVolume/SecretVersion.php
+++ /dev/null
@@ -1,124 +0,0 @@
-google.cloud.functions.v2.SecretVolume.SecretVersion
- */
-class SecretVersion extends \Google\Protobuf\Internal\Message
-{
- /**
- * Version of the secret (version number or the string 'latest'). It is
- * preferable to use `latest` version with secret volumes as secret value
- * changes are reflected immediately.
- *
- * Generated from protobuf field string version = 1;
- */
- protected $version = '';
- /**
- * Relative path of the file under the mount path where the secret value for
- * this version will be fetched and made available. For example, setting the
- * mount_path as '/etc/secrets' and path as `secret_foo` would mount the
- * secret value file at `/etc/secrets/secret_foo`.
- *
- * Generated from protobuf field string path = 2;
- */
- protected $path = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $version
- * Version of the secret (version number or the string 'latest'). It is
- * preferable to use `latest` version with secret volumes as secret value
- * changes are reflected immediately.
- * @type string $path
- * Relative path of the file under the mount path where the secret value for
- * this version will be fetched and made available. For example, setting the
- * mount_path as '/etc/secrets' and path as `secret_foo` would mount the
- * secret value file at `/etc/secrets/secret_foo`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Version of the secret (version number or the string 'latest'). It is
- * preferable to use `latest` version with secret volumes as secret value
- * changes are reflected immediately.
- *
- * Generated from protobuf field string version = 1;
- * @return string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * Version of the secret (version number or the string 'latest'). It is
- * preferable to use `latest` version with secret volumes as secret value
- * changes are reflected immediately.
- *
- * Generated from protobuf field string version = 1;
- * @param string $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->version = $var;
-
- return $this;
- }
-
- /**
- * Relative path of the file under the mount path where the secret value for
- * this version will be fetched and made available. For example, setting the
- * mount_path as '/etc/secrets' and path as `secret_foo` would mount the
- * secret value file at `/etc/secrets/secret_foo`.
- *
- * Generated from protobuf field string path = 2;
- * @return string
- */
- public function getPath()
- {
- return $this->path;
- }
-
- /**
- * Relative path of the file under the mount path where the secret value for
- * this version will be fetched and made available. For example, setting the
- * mount_path as '/etc/secrets' and path as `secret_foo` would mount the
- * secret value file at `/etc/secrets/secret_foo`.
- *
- * Generated from protobuf field string path = 2;
- * @param string $var
- * @return $this
- */
- public function setPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->path = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(SecretVersion::class, \Google\Cloud\Functions\V2\SecretVolume_SecretVersion::class);
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ServiceConfig.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ServiceConfig.php
deleted file mode 100644
index d0d031b1c59c..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ServiceConfig.php
+++ /dev/null
@@ -1,848 +0,0 @@
-google.cloud.functions.v2.ServiceConfig
- */
-class ServiceConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. Name of the service associated with a Function.
- * The format of this field is
- * `projects/{project}/locations/{region}/services/{service}`
- *
- * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $service = '';
- /**
- * The function execution timeout. Execution is considered failed and
- * can be terminated if the function is not completed at the end of the
- * timeout period. Defaults to 60 seconds.
- *
- * Generated from protobuf field int32 timeout_seconds = 2;
- */
- protected $timeout_seconds = 0;
- /**
- * The amount of memory available for a function.
- * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
- * supplied the value is interpreted as bytes.
- * See
- * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- * a full description.
- *
- * Generated from protobuf field string available_memory = 13;
- */
- protected $available_memory = '';
- /**
- * The number of CPUs used in a single container instance.
- * Default value is calculated from available memory.
- * Supports the same values as Cloud Run, see
- * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
- * Example: "1" indicates 1 vCPU
- *
- * Generated from protobuf field string available_cpu = 22;
- */
- protected $available_cpu = '';
- /**
- * Environment variables that shall be available during function execution.
- *
- * Generated from protobuf field map environment_variables = 4;
- */
- private $environment_variables;
- /**
- * The limit on the maximum number of function instances that may coexist at a
- * given time.
- * In some cases, such as rapid traffic surges, Cloud Functions may, for a
- * short period of time, create more instances than the specified max
- * instances limit. If your function cannot tolerate this temporary behavior,
- * you may want to factor in a safety margin and set a lower max instances
- * value than your function can tolerate.
- * See the [Max
- * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
- * more details.
- *
- * Generated from protobuf field int32 max_instance_count = 5;
- */
- protected $max_instance_count = 0;
- /**
- * The limit on the minimum number of function instances that may coexist at a
- * given time.
- * Function instances are kept in idle state for a short period after they
- * finished executing the request to reduce cold start time for subsequent
- * requests. Setting a minimum instance count will ensure that the given
- * number of instances are kept running in idle state always. This can help
- * with cold start times when jump in incoming request count occurs after the
- * idle instance would have been stopped in the default case.
- *
- * Generated from protobuf field int32 min_instance_count = 12;
- */
- protected $min_instance_count = 0;
- /**
- * The Serverless VPC Access connector that this cloud function can connect
- * to. The format of this field is `projects/*/locations/*/connectors/*`.
- *
- * Generated from protobuf field string vpc_connector = 6 [(.google.api.resource_reference) = {
- */
- protected $vpc_connector = '';
- /**
- * The egress settings for the connector, controlling what traffic is diverted
- * through it.
- *
- * Generated from protobuf field .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
- */
- protected $vpc_connector_egress_settings = 0;
- /**
- * The ingress settings for the function, controlling what traffic can reach
- * it.
- *
- * Generated from protobuf field .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8;
- */
- protected $ingress_settings = 0;
- /**
- * Output only. URI of the Service deployed.
- *
- * Generated from protobuf field string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uri = '';
- /**
- * The email of the service's service account. If empty, defaults to
- * `{project_number}-compute@developer.gserviceaccount.com`.
- *
- * Generated from protobuf field string service_account_email = 10;
- */
- protected $service_account_email = '';
- /**
- * Whether 100% of traffic is routed to the latest revision.
- * On CreateFunction and UpdateFunction, when set to true, the revision being
- * deployed will serve 100% of traffic, ignoring any traffic split settings,
- * if any. On GetFunction, true will be returned if the latest revision is
- * serving 100% of traffic.
- *
- * Generated from protobuf field bool all_traffic_on_latest_revision = 16;
- */
- protected $all_traffic_on_latest_revision = false;
- /**
- * Secret environment variables configuration.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;
- */
- private $secret_environment_variables;
- /**
- * Secret volumes configuration.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;
- */
- private $secret_volumes;
- /**
- * Output only. The name of service revision.
- *
- * Generated from protobuf field string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $revision = '';
- /**
- * Sets the maximum number of concurrent requests that each instance
- * can receive. Defaults to 1.
- *
- * Generated from protobuf field int32 max_instance_request_concurrency = 20;
- */
- protected $max_instance_request_concurrency = 0;
- /**
- * Security level configure whether the function only accepts https.
- * This configuration is only applicable to 1st Gen functions with Http
- * trigger. By default https is optional for 1st Gen functions; 2nd Gen
- * functions are https ONLY.
- *
- * Generated from protobuf field .google.cloud.functions.v2.ServiceConfig.SecurityLevel security_level = 21;
- */
- protected $security_level = 0;
- /**
- * Optional. The binary authorization policy to be checked when deploying the
- * Cloud Run service.
- *
- * Generated from protobuf field string binary_authorization_policy = 23 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $binary_authorization_policy = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $service
- * Output only. Name of the service associated with a Function.
- * The format of this field is
- * `projects/{project}/locations/{region}/services/{service}`
- * @type int $timeout_seconds
- * The function execution timeout. Execution is considered failed and
- * can be terminated if the function is not completed at the end of the
- * timeout period. Defaults to 60 seconds.
- * @type string $available_memory
- * The amount of memory available for a function.
- * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
- * supplied the value is interpreted as bytes.
- * See
- * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- * a full description.
- * @type string $available_cpu
- * The number of CPUs used in a single container instance.
- * Default value is calculated from available memory.
- * Supports the same values as Cloud Run, see
- * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
- * Example: "1" indicates 1 vCPU
- * @type array|\Google\Protobuf\Internal\MapField $environment_variables
- * Environment variables that shall be available during function execution.
- * @type int $max_instance_count
- * The limit on the maximum number of function instances that may coexist at a
- * given time.
- * In some cases, such as rapid traffic surges, Cloud Functions may, for a
- * short period of time, create more instances than the specified max
- * instances limit. If your function cannot tolerate this temporary behavior,
- * you may want to factor in a safety margin and set a lower max instances
- * value than your function can tolerate.
- * See the [Max
- * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
- * more details.
- * @type int $min_instance_count
- * The limit on the minimum number of function instances that may coexist at a
- * given time.
- * Function instances are kept in idle state for a short period after they
- * finished executing the request to reduce cold start time for subsequent
- * requests. Setting a minimum instance count will ensure that the given
- * number of instances are kept running in idle state always. This can help
- * with cold start times when jump in incoming request count occurs after the
- * idle instance would have been stopped in the default case.
- * @type string $vpc_connector
- * The Serverless VPC Access connector that this cloud function can connect
- * to. The format of this field is `projects/*/locations/*/connectors/*`.
- * @type int $vpc_connector_egress_settings
- * The egress settings for the connector, controlling what traffic is diverted
- * through it.
- * @type int $ingress_settings
- * The ingress settings for the function, controlling what traffic can reach
- * it.
- * @type string $uri
- * Output only. URI of the Service deployed.
- * @type string $service_account_email
- * The email of the service's service account. If empty, defaults to
- * `{project_number}-compute@developer.gserviceaccount.com`.
- * @type bool $all_traffic_on_latest_revision
- * Whether 100% of traffic is routed to the latest revision.
- * On CreateFunction and UpdateFunction, when set to true, the revision being
- * deployed will serve 100% of traffic, ignoring any traffic split settings,
- * if any. On GetFunction, true will be returned if the latest revision is
- * serving 100% of traffic.
- * @type array<\Google\Cloud\Functions\V2\SecretEnvVar>|\Google\Protobuf\Internal\RepeatedField $secret_environment_variables
- * Secret environment variables configuration.
- * @type array<\Google\Cloud\Functions\V2\SecretVolume>|\Google\Protobuf\Internal\RepeatedField $secret_volumes
- * Secret volumes configuration.
- * @type string $revision
- * Output only. The name of service revision.
- * @type int $max_instance_request_concurrency
- * Sets the maximum number of concurrent requests that each instance
- * can receive. Defaults to 1.
- * @type int $security_level
- * Security level configure whether the function only accepts https.
- * This configuration is only applicable to 1st Gen functions with Http
- * trigger. By default https is optional for 1st Gen functions; 2nd Gen
- * functions are https ONLY.
- * @type string $binary_authorization_policy
- * Optional. The binary authorization policy to be checked when deploying the
- * Cloud Run service.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. Name of the service associated with a Function.
- * The format of this field is
- * `projects/{project}/locations/{region}/services/{service}`
- *
- * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getService()
- {
- return $this->service;
- }
-
- /**
- * Output only. Name of the service associated with a Function.
- * The format of this field is
- * `projects/{project}/locations/{region}/services/{service}`
- *
- * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setService($var)
- {
- GPBUtil::checkString($var, True);
- $this->service = $var;
-
- return $this;
- }
-
- /**
- * The function execution timeout. Execution is considered failed and
- * can be terminated if the function is not completed at the end of the
- * timeout period. Defaults to 60 seconds.
- *
- * Generated from protobuf field int32 timeout_seconds = 2;
- * @return int
- */
- public function getTimeoutSeconds()
- {
- return $this->timeout_seconds;
- }
-
- /**
- * The function execution timeout. Execution is considered failed and
- * can be terminated if the function is not completed at the end of the
- * timeout period. Defaults to 60 seconds.
- *
- * Generated from protobuf field int32 timeout_seconds = 2;
- * @param int $var
- * @return $this
- */
- public function setTimeoutSeconds($var)
- {
- GPBUtil::checkInt32($var);
- $this->timeout_seconds = $var;
-
- return $this;
- }
-
- /**
- * The amount of memory available for a function.
- * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
- * supplied the value is interpreted as bytes.
- * See
- * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- * a full description.
- *
- * Generated from protobuf field string available_memory = 13;
- * @return string
- */
- public function getAvailableMemory()
- {
- return $this->available_memory;
- }
-
- /**
- * The amount of memory available for a function.
- * Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is
- * supplied the value is interpreted as bytes.
- * See
- * https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
- * a full description.
- *
- * Generated from protobuf field string available_memory = 13;
- * @param string $var
- * @return $this
- */
- public function setAvailableMemory($var)
- {
- GPBUtil::checkString($var, True);
- $this->available_memory = $var;
-
- return $this;
- }
-
- /**
- * The number of CPUs used in a single container instance.
- * Default value is calculated from available memory.
- * Supports the same values as Cloud Run, see
- * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
- * Example: "1" indicates 1 vCPU
- *
- * Generated from protobuf field string available_cpu = 22;
- * @return string
- */
- public function getAvailableCpu()
- {
- return $this->available_cpu;
- }
-
- /**
- * The number of CPUs used in a single container instance.
- * Default value is calculated from available memory.
- * Supports the same values as Cloud Run, see
- * https://cloud.google.com/run/docs/reference/rest/v1/Container#resourcerequirements
- * Example: "1" indicates 1 vCPU
- *
- * Generated from protobuf field string available_cpu = 22;
- * @param string $var
- * @return $this
- */
- public function setAvailableCpu($var)
- {
- GPBUtil::checkString($var, True);
- $this->available_cpu = $var;
-
- return $this;
- }
-
- /**
- * Environment variables that shall be available during function execution.
- *
- * Generated from protobuf field map environment_variables = 4;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getEnvironmentVariables()
- {
- return $this->environment_variables;
- }
-
- /**
- * Environment variables that shall be available during function execution.
- *
- * Generated from protobuf field map environment_variables = 4;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setEnvironmentVariables($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->environment_variables = $arr;
-
- return $this;
- }
-
- /**
- * The limit on the maximum number of function instances that may coexist at a
- * given time.
- * In some cases, such as rapid traffic surges, Cloud Functions may, for a
- * short period of time, create more instances than the specified max
- * instances limit. If your function cannot tolerate this temporary behavior,
- * you may want to factor in a safety margin and set a lower max instances
- * value than your function can tolerate.
- * See the [Max
- * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
- * more details.
- *
- * Generated from protobuf field int32 max_instance_count = 5;
- * @return int
- */
- public function getMaxInstanceCount()
- {
- return $this->max_instance_count;
- }
-
- /**
- * The limit on the maximum number of function instances that may coexist at a
- * given time.
- * In some cases, such as rapid traffic surges, Cloud Functions may, for a
- * short period of time, create more instances than the specified max
- * instances limit. If your function cannot tolerate this temporary behavior,
- * you may want to factor in a safety margin and set a lower max instances
- * value than your function can tolerate.
- * See the [Max
- * Instances](https://cloud.google.com/functions/docs/max-instances) Guide for
- * more details.
- *
- * Generated from protobuf field int32 max_instance_count = 5;
- * @param int $var
- * @return $this
- */
- public function setMaxInstanceCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->max_instance_count = $var;
-
- return $this;
- }
-
- /**
- * The limit on the minimum number of function instances that may coexist at a
- * given time.
- * Function instances are kept in idle state for a short period after they
- * finished executing the request to reduce cold start time for subsequent
- * requests. Setting a minimum instance count will ensure that the given
- * number of instances are kept running in idle state always. This can help
- * with cold start times when jump in incoming request count occurs after the
- * idle instance would have been stopped in the default case.
- *
- * Generated from protobuf field int32 min_instance_count = 12;
- * @return int
- */
- public function getMinInstanceCount()
- {
- return $this->min_instance_count;
- }
-
- /**
- * The limit on the minimum number of function instances that may coexist at a
- * given time.
- * Function instances are kept in idle state for a short period after they
- * finished executing the request to reduce cold start time for subsequent
- * requests. Setting a minimum instance count will ensure that the given
- * number of instances are kept running in idle state always. This can help
- * with cold start times when jump in incoming request count occurs after the
- * idle instance would have been stopped in the default case.
- *
- * Generated from protobuf field int32 min_instance_count = 12;
- * @param int $var
- * @return $this
- */
- public function setMinInstanceCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->min_instance_count = $var;
-
- return $this;
- }
-
- /**
- * The Serverless VPC Access connector that this cloud function can connect
- * to. The format of this field is `projects/*/locations/*/connectors/*`.
- *
- * Generated from protobuf field string vpc_connector = 6 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getVpcConnector()
- {
- return $this->vpc_connector;
- }
-
- /**
- * The Serverless VPC Access connector that this cloud function can connect
- * to. The format of this field is `projects/*/locations/*/connectors/*`.
- *
- * Generated from protobuf field string vpc_connector = 6 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setVpcConnector($var)
- {
- GPBUtil::checkString($var, True);
- $this->vpc_connector = $var;
-
- return $this;
- }
-
- /**
- * The egress settings for the connector, controlling what traffic is diverted
- * through it.
- *
- * Generated from protobuf field .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
- * @return int
- */
- public function getVpcConnectorEgressSettings()
- {
- return $this->vpc_connector_egress_settings;
- }
-
- /**
- * The egress settings for the connector, controlling what traffic is diverted
- * through it.
- *
- * Generated from protobuf field .google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings vpc_connector_egress_settings = 7;
- * @param int $var
- * @return $this
- */
- public function setVpcConnectorEgressSettings($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Functions\V2\ServiceConfig\VpcConnectorEgressSettings::class);
- $this->vpc_connector_egress_settings = $var;
-
- return $this;
- }
-
- /**
- * The ingress settings for the function, controlling what traffic can reach
- * it.
- *
- * Generated from protobuf field .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8;
- * @return int
- */
- public function getIngressSettings()
- {
- return $this->ingress_settings;
- }
-
- /**
- * The ingress settings for the function, controlling what traffic can reach
- * it.
- *
- * Generated from protobuf field .google.cloud.functions.v2.ServiceConfig.IngressSettings ingress_settings = 8;
- * @param int $var
- * @return $this
- */
- public function setIngressSettings($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Functions\V2\ServiceConfig\IngressSettings::class);
- $this->ingress_settings = $var;
-
- return $this;
- }
-
- /**
- * Output only. URI of the Service deployed.
- *
- * Generated from protobuf field string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUri()
- {
- return $this->uri;
- }
-
- /**
- * Output only. URI of the Service deployed.
- *
- * Generated from protobuf field string uri = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->uri = $var;
-
- return $this;
- }
-
- /**
- * The email of the service's service account. If empty, defaults to
- * `{project_number}-compute@developer.gserviceaccount.com`.
- *
- * Generated from protobuf field string service_account_email = 10;
- * @return string
- */
- public function getServiceAccountEmail()
- {
- return $this->service_account_email;
- }
-
- /**
- * The email of the service's service account. If empty, defaults to
- * `{project_number}-compute@developer.gserviceaccount.com`.
- *
- * Generated from protobuf field string service_account_email = 10;
- * @param string $var
- * @return $this
- */
- public function setServiceAccountEmail($var)
- {
- GPBUtil::checkString($var, True);
- $this->service_account_email = $var;
-
- return $this;
- }
-
- /**
- * Whether 100% of traffic is routed to the latest revision.
- * On CreateFunction and UpdateFunction, when set to true, the revision being
- * deployed will serve 100% of traffic, ignoring any traffic split settings,
- * if any. On GetFunction, true will be returned if the latest revision is
- * serving 100% of traffic.
- *
- * Generated from protobuf field bool all_traffic_on_latest_revision = 16;
- * @return bool
- */
- public function getAllTrafficOnLatestRevision()
- {
- return $this->all_traffic_on_latest_revision;
- }
-
- /**
- * Whether 100% of traffic is routed to the latest revision.
- * On CreateFunction and UpdateFunction, when set to true, the revision being
- * deployed will serve 100% of traffic, ignoring any traffic split settings,
- * if any. On GetFunction, true will be returned if the latest revision is
- * serving 100% of traffic.
- *
- * Generated from protobuf field bool all_traffic_on_latest_revision = 16;
- * @param bool $var
- * @return $this
- */
- public function setAllTrafficOnLatestRevision($var)
- {
- GPBUtil::checkBool($var);
- $this->all_traffic_on_latest_revision = $var;
-
- return $this;
- }
-
- /**
- * Secret environment variables configuration.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getSecretEnvironmentVariables()
- {
- return $this->secret_environment_variables;
- }
-
- /**
- * Secret environment variables configuration.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.SecretEnvVar secret_environment_variables = 17;
- * @param array<\Google\Cloud\Functions\V2\SecretEnvVar>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setSecretEnvironmentVariables($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Functions\V2\SecretEnvVar::class);
- $this->secret_environment_variables = $arr;
-
- return $this;
- }
-
- /**
- * Secret volumes configuration.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getSecretVolumes()
- {
- return $this->secret_volumes;
- }
-
- /**
- * Secret volumes configuration.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.SecretVolume secret_volumes = 19;
- * @param array<\Google\Cloud\Functions\V2\SecretVolume>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setSecretVolumes($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Functions\V2\SecretVolume::class);
- $this->secret_volumes = $arr;
-
- return $this;
- }
-
- /**
- * Output only. The name of service revision.
- *
- * Generated from protobuf field string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getRevision()
- {
- return $this->revision;
- }
-
- /**
- * Output only. The name of service revision.
- *
- * Generated from protobuf field string revision = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setRevision($var)
- {
- GPBUtil::checkString($var, True);
- $this->revision = $var;
-
- return $this;
- }
-
- /**
- * Sets the maximum number of concurrent requests that each instance
- * can receive. Defaults to 1.
- *
- * Generated from protobuf field int32 max_instance_request_concurrency = 20;
- * @return int
- */
- public function getMaxInstanceRequestConcurrency()
- {
- return $this->max_instance_request_concurrency;
- }
-
- /**
- * Sets the maximum number of concurrent requests that each instance
- * can receive. Defaults to 1.
- *
- * Generated from protobuf field int32 max_instance_request_concurrency = 20;
- * @param int $var
- * @return $this
- */
- public function setMaxInstanceRequestConcurrency($var)
- {
- GPBUtil::checkInt32($var);
- $this->max_instance_request_concurrency = $var;
-
- return $this;
- }
-
- /**
- * Security level configure whether the function only accepts https.
- * This configuration is only applicable to 1st Gen functions with Http
- * trigger. By default https is optional for 1st Gen functions; 2nd Gen
- * functions are https ONLY.
- *
- * Generated from protobuf field .google.cloud.functions.v2.ServiceConfig.SecurityLevel security_level = 21;
- * @return int
- */
- public function getSecurityLevel()
- {
- return $this->security_level;
- }
-
- /**
- * Security level configure whether the function only accepts https.
- * This configuration is only applicable to 1st Gen functions with Http
- * trigger. By default https is optional for 1st Gen functions; 2nd Gen
- * functions are https ONLY.
- *
- * Generated from protobuf field .google.cloud.functions.v2.ServiceConfig.SecurityLevel security_level = 21;
- * @param int $var
- * @return $this
- */
- public function setSecurityLevel($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Functions\V2\ServiceConfig\SecurityLevel::class);
- $this->security_level = $var;
-
- return $this;
- }
-
- /**
- * Optional. The binary authorization policy to be checked when deploying the
- * Cloud Run service.
- *
- * Generated from protobuf field string binary_authorization_policy = 23 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getBinaryAuthorizationPolicy()
- {
- return $this->binary_authorization_policy;
- }
-
- /**
- * Optional. The binary authorization policy to be checked when deploying the
- * Cloud Run service.
- *
- * Generated from protobuf field string binary_authorization_policy = 23 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setBinaryAuthorizationPolicy($var)
- {
- GPBUtil::checkString($var, True);
- $this->binary_authorization_policy = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ServiceConfig/IngressSettings.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ServiceConfig/IngressSettings.php
deleted file mode 100644
index 0dfd22d07834..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ServiceConfig/IngressSettings.php
+++ /dev/null
@@ -1,73 +0,0 @@
-google.cloud.functions.v2.ServiceConfig.IngressSettings
- */
-class IngressSettings
-{
- /**
- * Unspecified.
- *
- * Generated from protobuf enum INGRESS_SETTINGS_UNSPECIFIED = 0;
- */
- const INGRESS_SETTINGS_UNSPECIFIED = 0;
- /**
- * Allow HTTP traffic from public and private sources.
- *
- * Generated from protobuf enum ALLOW_ALL = 1;
- */
- const ALLOW_ALL = 1;
- /**
- * Allow HTTP traffic from only private VPC sources.
- *
- * Generated from protobuf enum ALLOW_INTERNAL_ONLY = 2;
- */
- const ALLOW_INTERNAL_ONLY = 2;
- /**
- * Allow HTTP traffic from private VPC sources and through GCLB.
- *
- * Generated from protobuf enum ALLOW_INTERNAL_AND_GCLB = 3;
- */
- const ALLOW_INTERNAL_AND_GCLB = 3;
-
- private static $valueToName = [
- self::INGRESS_SETTINGS_UNSPECIFIED => 'INGRESS_SETTINGS_UNSPECIFIED',
- self::ALLOW_ALL => 'ALLOW_ALL',
- self::ALLOW_INTERNAL_ONLY => 'ALLOW_INTERNAL_ONLY',
- self::ALLOW_INTERNAL_AND_GCLB => 'ALLOW_INTERNAL_AND_GCLB',
- ];
-
- 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(IngressSettings::class, \Google\Cloud\Functions\V2\ServiceConfig_IngressSettings::class);
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ServiceConfig/SecurityLevel.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ServiceConfig/SecurityLevel.php
deleted file mode 100644
index 5fb4b8b79894..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ServiceConfig/SecurityLevel.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.functions.v2.ServiceConfig.SecurityLevel
- */
-class SecurityLevel
-{
- /**
- * Unspecified.
- *
- * Generated from protobuf enum SECURITY_LEVEL_UNSPECIFIED = 0;
- */
- const SECURITY_LEVEL_UNSPECIFIED = 0;
- /**
- * Requests for a URL that match this handler that do not use HTTPS are
- * automatically redirected to the HTTPS URL with the same path. Query
- * parameters are reserved for the redirect.
- *
- * Generated from protobuf enum SECURE_ALWAYS = 1;
- */
- const SECURE_ALWAYS = 1;
- /**
- * Both HTTP and HTTPS requests with URLs that match the handler succeed
- * without redirects. The application can examine the request to determine
- * which protocol was used and respond accordingly.
- *
- * Generated from protobuf enum SECURE_OPTIONAL = 2;
- */
- const SECURE_OPTIONAL = 2;
-
- private static $valueToName = [
- self::SECURITY_LEVEL_UNSPECIFIED => 'SECURITY_LEVEL_UNSPECIFIED',
- self::SECURE_ALWAYS => 'SECURE_ALWAYS',
- self::SECURE_OPTIONAL => 'SECURE_OPTIONAL',
- ];
-
- 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(SecurityLevel::class, \Google\Cloud\Functions\V2\ServiceConfig_SecurityLevel::class);
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ServiceConfig/VpcConnectorEgressSettings.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ServiceConfig/VpcConnectorEgressSettings.php
deleted file mode 100644
index 77a3f98e3ae3..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/ServiceConfig/VpcConnectorEgressSettings.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.cloud.functions.v2.ServiceConfig.VpcConnectorEgressSettings
- */
-class VpcConnectorEgressSettings
-{
- /**
- * Unspecified.
- *
- * Generated from protobuf enum VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0;
- */
- const VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED = 0;
- /**
- * Use the VPC Access Connector only for private IP space from RFC1918.
- *
- * Generated from protobuf enum PRIVATE_RANGES_ONLY = 1;
- */
- const PRIVATE_RANGES_ONLY = 1;
- /**
- * Force the use of VPC Access Connector for all egress traffic from the
- * function.
- *
- * Generated from protobuf enum ALL_TRAFFIC = 2;
- */
- const ALL_TRAFFIC = 2;
-
- private static $valueToName = [
- self::VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED => 'VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED',
- self::PRIVATE_RANGES_ONLY => 'PRIVATE_RANGES_ONLY',
- self::ALL_TRAFFIC => 'ALL_TRAFFIC',
- ];
-
- 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(VpcConnectorEgressSettings::class, \Google\Cloud\Functions\V2\ServiceConfig_VpcConnectorEgressSettings::class);
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Source.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Source.php
deleted file mode 100644
index b16cd2dea16e..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Source.php
+++ /dev/null
@@ -1,150 +0,0 @@
-google.cloud.functions.v2.Source
- */
-class Source extends \Google\Protobuf\Internal\Message
-{
- protected $source;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Functions\V2\StorageSource $storage_source
- * If provided, get the source from this location in Google Cloud Storage.
- * @type \Google\Cloud\Functions\V2\RepoSource $repo_source
- * If provided, get the source from this location in a Cloud Source
- * Repository.
- * @type string $git_uri
- * If provided, get the source from GitHub repository. This option is valid
- * only for GCF 1st Gen function.
- * Example: https://github.com///blob//
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * If provided, get the source from this location in Google Cloud Storage.
- *
- * Generated from protobuf field .google.cloud.functions.v2.StorageSource storage_source = 1;
- * @return \Google\Cloud\Functions\V2\StorageSource|null
- */
- public function getStorageSource()
- {
- return $this->readOneof(1);
- }
-
- public function hasStorageSource()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * If provided, get the source from this location in Google Cloud Storage.
- *
- * Generated from protobuf field .google.cloud.functions.v2.StorageSource storage_source = 1;
- * @param \Google\Cloud\Functions\V2\StorageSource $var
- * @return $this
- */
- public function setStorageSource($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Functions\V2\StorageSource::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * If provided, get the source from this location in a Cloud Source
- * Repository.
- *
- * Generated from protobuf field .google.cloud.functions.v2.RepoSource repo_source = 2;
- * @return \Google\Cloud\Functions\V2\RepoSource|null
- */
- public function getRepoSource()
- {
- return $this->readOneof(2);
- }
-
- public function hasRepoSource()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * If provided, get the source from this location in a Cloud Source
- * Repository.
- *
- * Generated from protobuf field .google.cloud.functions.v2.RepoSource repo_source = 2;
- * @param \Google\Cloud\Functions\V2\RepoSource $var
- * @return $this
- */
- public function setRepoSource($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Functions\V2\RepoSource::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * If provided, get the source from GitHub repository. This option is valid
- * only for GCF 1st Gen function.
- * Example: https://github.com///blob//
- *
- * Generated from protobuf field string git_uri = 3;
- * @return string
- */
- public function getGitUri()
- {
- return $this->readOneof(3);
- }
-
- public function hasGitUri()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * If provided, get the source from GitHub repository. This option is valid
- * only for GCF 1st Gen function.
- * Example: https://github.com///blob//
- *
- * Generated from protobuf field string git_uri = 3;
- * @param string $var
- * @return $this
- */
- public function setGitUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getSource()
- {
- return $this->whichOneof("source");
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/SourceProvenance.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/SourceProvenance.php
deleted file mode 100644
index 0b1954543663..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/SourceProvenance.php
+++ /dev/null
@@ -1,168 +0,0 @@
-google.cloud.functions.v2.SourceProvenance
- */
-class SourceProvenance extends \Google\Protobuf\Internal\Message
-{
- /**
- * A copy of the build's `source.storage_source`, if exists, with any
- * generations resolved.
- *
- * Generated from protobuf field .google.cloud.functions.v2.StorageSource resolved_storage_source = 1;
- */
- protected $resolved_storage_source = null;
- /**
- * A copy of the build's `source.repo_source`, if exists, with any
- * revisions resolved.
- *
- * Generated from protobuf field .google.cloud.functions.v2.RepoSource resolved_repo_source = 2;
- */
- protected $resolved_repo_source = null;
- /**
- * A copy of the build's `source.git_uri`, if exists, with any commits
- * resolved.
- *
- * Generated from protobuf field string git_uri = 3;
- */
- protected $git_uri = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Functions\V2\StorageSource $resolved_storage_source
- * A copy of the build's `source.storage_source`, if exists, with any
- * generations resolved.
- * @type \Google\Cloud\Functions\V2\RepoSource $resolved_repo_source
- * A copy of the build's `source.repo_source`, if exists, with any
- * revisions resolved.
- * @type string $git_uri
- * A copy of the build's `source.git_uri`, if exists, with any commits
- * resolved.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A copy of the build's `source.storage_source`, if exists, with any
- * generations resolved.
- *
- * Generated from protobuf field .google.cloud.functions.v2.StorageSource resolved_storage_source = 1;
- * @return \Google\Cloud\Functions\V2\StorageSource|null
- */
- public function getResolvedStorageSource()
- {
- return $this->resolved_storage_source;
- }
-
- public function hasResolvedStorageSource()
- {
- return isset($this->resolved_storage_source);
- }
-
- public function clearResolvedStorageSource()
- {
- unset($this->resolved_storage_source);
- }
-
- /**
- * A copy of the build's `source.storage_source`, if exists, with any
- * generations resolved.
- *
- * Generated from protobuf field .google.cloud.functions.v2.StorageSource resolved_storage_source = 1;
- * @param \Google\Cloud\Functions\V2\StorageSource $var
- * @return $this
- */
- public function setResolvedStorageSource($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Functions\V2\StorageSource::class);
- $this->resolved_storage_source = $var;
-
- return $this;
- }
-
- /**
- * A copy of the build's `source.repo_source`, if exists, with any
- * revisions resolved.
- *
- * Generated from protobuf field .google.cloud.functions.v2.RepoSource resolved_repo_source = 2;
- * @return \Google\Cloud\Functions\V2\RepoSource|null
- */
- public function getResolvedRepoSource()
- {
- return $this->resolved_repo_source;
- }
-
- public function hasResolvedRepoSource()
- {
- return isset($this->resolved_repo_source);
- }
-
- public function clearResolvedRepoSource()
- {
- unset($this->resolved_repo_source);
- }
-
- /**
- * A copy of the build's `source.repo_source`, if exists, with any
- * revisions resolved.
- *
- * Generated from protobuf field .google.cloud.functions.v2.RepoSource resolved_repo_source = 2;
- * @param \Google\Cloud\Functions\V2\RepoSource $var
- * @return $this
- */
- public function setResolvedRepoSource($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Functions\V2\RepoSource::class);
- $this->resolved_repo_source = $var;
-
- return $this;
- }
-
- /**
- * A copy of the build's `source.git_uri`, if exists, with any commits
- * resolved.
- *
- * Generated from protobuf field string git_uri = 3;
- * @return string
- */
- public function getGitUri()
- {
- return $this->git_uri;
- }
-
- /**
- * A copy of the build's `source.git_uri`, if exists, with any commits
- * resolved.
- *
- * Generated from protobuf field string git_uri = 3;
- * @param string $var
- * @return $this
- */
- public function setGitUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->git_uri = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Stage.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Stage.php
deleted file mode 100644
index e965c5a3023b..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Stage.php
+++ /dev/null
@@ -1,237 +0,0 @@
-google.cloud.functions.v2.Stage
- */
-class Stage extends \Google\Protobuf\Internal\Message
-{
- /**
- * Name of the Stage. This will be unique for each Stage.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Stage.Name name = 1;
- */
- protected $name = 0;
- /**
- * Message describing the Stage
- *
- * Generated from protobuf field string message = 2;
- */
- protected $message = '';
- /**
- * Current state of the Stage
- *
- * Generated from protobuf field .google.cloud.functions.v2.Stage.State state = 3;
- */
- protected $state = 0;
- /**
- * Resource of the Stage
- *
- * Generated from protobuf field string resource = 4;
- */
- protected $resource = '';
- /**
- * Link to the current Stage resource
- *
- * Generated from protobuf field string resource_uri = 5;
- */
- protected $resource_uri = '';
- /**
- * State messages from the current Stage.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.StateMessage state_messages = 6;
- */
- private $state_messages;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $name
- * Name of the Stage. This will be unique for each Stage.
- * @type string $message
- * Message describing the Stage
- * @type int $state
- * Current state of the Stage
- * @type string $resource
- * Resource of the Stage
- * @type string $resource_uri
- * Link to the current Stage resource
- * @type array<\Google\Cloud\Functions\V2\StateMessage>|\Google\Protobuf\Internal\RepeatedField $state_messages
- * State messages from the current Stage.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Name of the Stage. This will be unique for each Stage.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Stage.Name name = 1;
- * @return int
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Name of the Stage. This will be unique for each Stage.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Stage.Name name = 1;
- * @param int $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Functions\V2\Stage\Name::class);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Message describing the Stage
- *
- * Generated from protobuf field string message = 2;
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Message describing the Stage
- *
- * Generated from protobuf field string message = 2;
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
-
- return $this;
- }
-
- /**
- * Current state of the Stage
- *
- * Generated from protobuf field .google.cloud.functions.v2.Stage.State state = 3;
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Current state of the Stage
- *
- * Generated from protobuf field .google.cloud.functions.v2.Stage.State state = 3;
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Functions\V2\Stage\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Resource of the Stage
- *
- * Generated from protobuf field string resource = 4;
- * @return string
- */
- public function getResource()
- {
- return $this->resource;
- }
-
- /**
- * Resource of the Stage
- *
- * Generated from protobuf field string resource = 4;
- * @param string $var
- * @return $this
- */
- public function setResource($var)
- {
- GPBUtil::checkString($var, True);
- $this->resource = $var;
-
- return $this;
- }
-
- /**
- * Link to the current Stage resource
- *
- * Generated from protobuf field string resource_uri = 5;
- * @return string
- */
- public function getResourceUri()
- {
- return $this->resource_uri;
- }
-
- /**
- * Link to the current Stage resource
- *
- * Generated from protobuf field string resource_uri = 5;
- * @param string $var
- * @return $this
- */
- public function setResourceUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->resource_uri = $var;
-
- return $this;
- }
-
- /**
- * State messages from the current Stage.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.StateMessage state_messages = 6;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getStateMessages()
- {
- return $this->state_messages;
- }
-
- /**
- * State messages from the current Stage.
- *
- * Generated from protobuf field repeated .google.cloud.functions.v2.StateMessage state_messages = 6;
- * @param array<\Google\Cloud\Functions\V2\StateMessage>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setStateMessages($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Functions\V2\StateMessage::class);
- $this->state_messages = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Stage/Name.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Stage/Name.php
deleted file mode 100644
index 6dbaa6f06046..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Stage/Name.php
+++ /dev/null
@@ -1,92 +0,0 @@
-google.cloud.functions.v2.Stage.Name
- */
-class Name
-{
- /**
- * Not specified. Invalid name.
- *
- * Generated from protobuf enum NAME_UNSPECIFIED = 0;
- */
- const NAME_UNSPECIFIED = 0;
- /**
- * Artifact Regsitry Stage
- *
- * Generated from protobuf enum ARTIFACT_REGISTRY = 1;
- */
- const ARTIFACT_REGISTRY = 1;
- /**
- * Build Stage
- *
- * Generated from protobuf enum BUILD = 2;
- */
- const BUILD = 2;
- /**
- * Service Stage
- *
- * Generated from protobuf enum SERVICE = 3;
- */
- const SERVICE = 3;
- /**
- * Trigger Stage
- *
- * Generated from protobuf enum TRIGGER = 4;
- */
- const TRIGGER = 4;
- /**
- * Service Rollback Stage
- *
- * Generated from protobuf enum SERVICE_ROLLBACK = 5;
- */
- const SERVICE_ROLLBACK = 5;
- /**
- * Trigger Rollback Stage
- *
- * Generated from protobuf enum TRIGGER_ROLLBACK = 6;
- */
- const TRIGGER_ROLLBACK = 6;
-
- private static $valueToName = [
- self::NAME_UNSPECIFIED => 'NAME_UNSPECIFIED',
- self::ARTIFACT_REGISTRY => 'ARTIFACT_REGISTRY',
- self::BUILD => 'BUILD',
- self::SERVICE => 'SERVICE',
- self::TRIGGER => 'TRIGGER',
- self::SERVICE_ROLLBACK => 'SERVICE_ROLLBACK',
- self::TRIGGER_ROLLBACK => 'TRIGGER_ROLLBACK',
- ];
-
- 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(Name::class, \Google\Cloud\Functions\V2\Stage_Name::class);
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Stage/State.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Stage/State.php
deleted file mode 100644
index 5a0be65fc0dc..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/Stage/State.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.functions.v2.Stage.State
- */
-class State
-{
- /**
- * Not specified. Invalid state.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * Stage has not started.
- *
- * Generated from protobuf enum NOT_STARTED = 1;
- */
- const NOT_STARTED = 1;
- /**
- * Stage is in progress.
- *
- * Generated from protobuf enum IN_PROGRESS = 2;
- */
- const IN_PROGRESS = 2;
- /**
- * Stage has completed.
- *
- * Generated from protobuf enum COMPLETE = 3;
- */
- const COMPLETE = 3;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::NOT_STARTED => 'NOT_STARTED',
- self::IN_PROGRESS => 'IN_PROGRESS',
- self::COMPLETE => 'COMPLETE',
- ];
-
- 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(State::class, \Google\Cloud\Functions\V2\Stage_State::class);
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/StateMessage.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/StateMessage.php
deleted file mode 100644
index 9e318e5af10f..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/StateMessage.php
+++ /dev/null
@@ -1,135 +0,0 @@
-google.cloud.functions.v2.StateMessage
- */
-class StateMessage extends \Google\Protobuf\Internal\Message
-{
- /**
- * Severity of the state message.
- *
- * Generated from protobuf field .google.cloud.functions.v2.StateMessage.Severity severity = 1;
- */
- protected $severity = 0;
- /**
- * One-word CamelCase type of the state message.
- *
- * Generated from protobuf field string type = 2;
- */
- protected $type = '';
- /**
- * The message.
- *
- * Generated from protobuf field string message = 3;
- */
- protected $message = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $severity
- * Severity of the state message.
- * @type string $type
- * One-word CamelCase type of the state message.
- * @type string $message
- * The message.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Severity of the state message.
- *
- * Generated from protobuf field .google.cloud.functions.v2.StateMessage.Severity severity = 1;
- * @return int
- */
- public function getSeverity()
- {
- return $this->severity;
- }
-
- /**
- * Severity of the state message.
- *
- * Generated from protobuf field .google.cloud.functions.v2.StateMessage.Severity severity = 1;
- * @param int $var
- * @return $this
- */
- public function setSeverity($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Functions\V2\StateMessage\Severity::class);
- $this->severity = $var;
-
- return $this;
- }
-
- /**
- * One-word CamelCase type of the state message.
- *
- * Generated from protobuf field string type = 2;
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * One-word CamelCase type of the state message.
- *
- * Generated from protobuf field string type = 2;
- * @param string $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkString($var, True);
- $this->type = $var;
-
- return $this;
- }
-
- /**
- * The message.
- *
- * Generated from protobuf field string message = 3;
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * The message.
- *
- * Generated from protobuf field string message = 3;
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/StateMessage/Severity.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/StateMessage/Severity.php
deleted file mode 100644
index d201473a95e0..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/StateMessage/Severity.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.functions.v2.StateMessage.Severity
- */
-class Severity
-{
- /**
- * Not specified. Invalid severity.
- *
- * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0;
- */
- const SEVERITY_UNSPECIFIED = 0;
- /**
- * ERROR-level severity.
- *
- * Generated from protobuf enum ERROR = 1;
- */
- const ERROR = 1;
- /**
- * WARNING-level severity.
- *
- * Generated from protobuf enum WARNING = 2;
- */
- const WARNING = 2;
- /**
- * INFO-level severity.
- *
- * Generated from protobuf enum INFO = 3;
- */
- const INFO = 3;
-
- private static $valueToName = [
- self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED',
- self::ERROR => 'ERROR',
- self::WARNING => 'WARNING',
- self::INFO => 'INFO',
- ];
-
- 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(Severity::class, \Google\Cloud\Functions\V2\StateMessage_Severity::class);
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/StorageSource.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/StorageSource.php
deleted file mode 100644
index ddeebbd71e96..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/StorageSource.php
+++ /dev/null
@@ -1,197 +0,0 @@
-google.cloud.functions.v2.StorageSource
- */
-class StorageSource extends \Google\Protobuf\Internal\Message
-{
- /**
- * Google Cloud Storage bucket containing the source (see
- * [Bucket Name
- * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
- *
- * Generated from protobuf field string bucket = 1;
- */
- protected $bucket = '';
- /**
- * Google Cloud Storage object containing the source.
- * This object must be a gzipped archive file (`.tar.gz`) containing source to
- * build.
- *
- * Generated from protobuf field string object = 2;
- */
- protected $object = '';
- /**
- * Google Cloud Storage generation for the object. If the generation is
- * omitted, the latest generation will be used.
- *
- * Generated from protobuf field int64 generation = 3;
- */
- protected $generation = 0;
- /**
- * When the specified storage bucket is a 1st gen function uploard url bucket,
- * this field should be set as the generated upload url for 1st gen
- * deployment.
- *
- * Generated from protobuf field string source_upload_url = 4;
- */
- protected $source_upload_url = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $bucket
- * Google Cloud Storage bucket containing the source (see
- * [Bucket Name
- * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
- * @type string $object
- * Google Cloud Storage object containing the source.
- * This object must be a gzipped archive file (`.tar.gz`) containing source to
- * build.
- * @type int|string $generation
- * Google Cloud Storage generation for the object. If the generation is
- * omitted, the latest generation will be used.
- * @type string $source_upload_url
- * When the specified storage bucket is a 1st gen function uploard url bucket,
- * this field should be set as the generated upload url for 1st gen
- * deployment.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Google Cloud Storage bucket containing the source (see
- * [Bucket Name
- * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
- *
- * Generated from protobuf field string bucket = 1;
- * @return string
- */
- public function getBucket()
- {
- return $this->bucket;
- }
-
- /**
- * Google Cloud Storage bucket containing the source (see
- * [Bucket Name
- * Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements)).
- *
- * Generated from protobuf field string bucket = 1;
- * @param string $var
- * @return $this
- */
- public function setBucket($var)
- {
- GPBUtil::checkString($var, True);
- $this->bucket = $var;
-
- return $this;
- }
-
- /**
- * Google Cloud Storage object containing the source.
- * This object must be a gzipped archive file (`.tar.gz`) containing source to
- * build.
- *
- * Generated from protobuf field string object = 2;
- * @return string
- */
- public function getObject()
- {
- return $this->object;
- }
-
- /**
- * Google Cloud Storage object containing the source.
- * This object must be a gzipped archive file (`.tar.gz`) containing source to
- * build.
- *
- * Generated from protobuf field string object = 2;
- * @param string $var
- * @return $this
- */
- public function setObject($var)
- {
- GPBUtil::checkString($var, True);
- $this->object = $var;
-
- return $this;
- }
-
- /**
- * Google Cloud Storage generation for the object. If the generation is
- * omitted, the latest generation will be used.
- *
- * Generated from protobuf field int64 generation = 3;
- * @return int|string
- */
- public function getGeneration()
- {
- return $this->generation;
- }
-
- /**
- * Google Cloud Storage generation for the object. If the generation is
- * omitted, the latest generation will be used.
- *
- * Generated from protobuf field int64 generation = 3;
- * @param int|string $var
- * @return $this
- */
- public function setGeneration($var)
- {
- GPBUtil::checkInt64($var);
- $this->generation = $var;
-
- return $this;
- }
-
- /**
- * When the specified storage bucket is a 1st gen function uploard url bucket,
- * this field should be set as the generated upload url for 1st gen
- * deployment.
- *
- * Generated from protobuf field string source_upload_url = 4;
- * @return string
- */
- public function getSourceUploadUrl()
- {
- return $this->source_upload_url;
- }
-
- /**
- * When the specified storage bucket is a 1st gen function uploard url bucket,
- * this field should be set as the generated upload url for 1st gen
- * deployment.
- *
- * Generated from protobuf field string source_upload_url = 4;
- * @param string $var
- * @return $this
- */
- public function setSourceUploadUrl($var)
- {
- GPBUtil::checkString($var, True);
- $this->source_upload_url = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/UpdateFunctionRequest.php b/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/UpdateFunctionRequest.php
deleted file mode 100644
index 3834e2723d6e..000000000000
--- a/owl-bot-staging/Functions/v2/proto/src/Google/Cloud/Functions/V2/UpdateFunctionRequest.php
+++ /dev/null
@@ -1,141 +0,0 @@
-google.cloud.functions.v2.UpdateFunctionRequest
- */
-class UpdateFunctionRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. New version of the function.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $function = null;
- /**
- * The list of fields to be updated.
- * If no field mask is provided, all fields will be updated.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- */
- protected $update_mask = null;
-
- /**
- * @param \Google\Cloud\Functions\V2\PBFunction $function Required. New version of the function.
- * @param \Google\Protobuf\FieldMask $updateMask The list of fields to be updated.
- * If no field mask is provided, all fields will be updated.
- *
- * @return \Google\Cloud\Functions\V2\UpdateFunctionRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\Functions\V2\PBFunction $function, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setFunction($function)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Functions\V2\PBFunction $function
- * Required. New version of the function.
- * @type \Google\Protobuf\FieldMask $update_mask
- * The list of fields to be updated.
- * If no field mask is provided, all fields will be updated.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Functions\V2\Functions::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. New version of the function.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\Functions\V2\PBFunction|null
- */
- public function getFunction()
- {
- return $this->function;
- }
-
- public function hasFunction()
- {
- return isset($this->function);
- }
-
- public function clearFunction()
- {
- unset($this->function);
- }
-
- /**
- * Required. New version of the function.
- *
- * Generated from protobuf field .google.cloud.functions.v2.Function function = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\Functions\V2\PBFunction $var
- * @return $this
- */
- public function setFunction($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Functions\V2\PBFunction::class);
- $this->function = $var;
-
- return $this;
- }
-
- /**
- * The list of fields to be updated.
- * If no field mask is provided, all fields will be updated.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * The list of fields to be updated.
- * If no field mask is provided, all fields will be updated.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/create_function.php b/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/create_function.php
deleted file mode 100644
index 9973077ba5d3..000000000000
--- a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/create_function.php
+++ /dev/null
@@ -1,88 +0,0 @@
-setParent($formattedParent)
- ->setFunction($function);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $functionServiceClient->createFunction($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var PBFunction $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = FunctionServiceClient::locationName('[PROJECT]', '[LOCATION]');
-
- create_function_sample($formattedParent);
-}
-// [END cloudfunctions_v2_generated_FunctionService_CreateFunction_sync]
diff --git a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/delete_function.php b/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/delete_function.php
deleted file mode 100644
index d4b706eed552..000000000000
--- a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/delete_function.php
+++ /dev/null
@@ -1,82 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $functionServiceClient->deleteFunction($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FunctionServiceClient::functionName('[PROJECT]', '[LOCATION]', '[FUNCTION]');
-
- delete_function_sample($formattedName);
-}
-// [END cloudfunctions_v2_generated_FunctionService_DeleteFunction_sync]
diff --git a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/generate_download_url.php b/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/generate_download_url.php
deleted file mode 100644
index 8c67ca295d6e..000000000000
--- a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/generate_download_url.php
+++ /dev/null
@@ -1,76 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var GenerateDownloadUrlResponse $response */
- $response = $functionServiceClient->generateDownloadUrl($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FunctionServiceClient::functionName('[PROJECT]', '[LOCATION]', '[FUNCTION]');
-
- generate_download_url_sample($formattedName);
-}
-// [END cloudfunctions_v2_generated_FunctionService_GenerateDownloadUrl_sync]
diff --git a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/generate_upload_url.php b/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/generate_upload_url.php
deleted file mode 100644
index 450230528989..000000000000
--- a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/generate_upload_url.php
+++ /dev/null
@@ -1,94 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var GenerateUploadUrlResponse $response */
- $response = $functionServiceClient->generateUploadUrl($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = FunctionServiceClient::locationName('[PROJECT]', '[LOCATION]');
-
- generate_upload_url_sample($formattedParent);
-}
-// [END cloudfunctions_v2_generated_FunctionService_GenerateUploadUrl_sync]
diff --git a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/get_function.php b/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/get_function.php
deleted file mode 100644
index eee78f27db80..000000000000
--- a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/get_function.php
+++ /dev/null
@@ -1,71 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var PBFunction $response */
- $response = $functionServiceClient->getFunction($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = FunctionServiceClient::functionName('[PROJECT]', '[LOCATION]', '[FUNCTION]');
-
- get_function_sample($formattedName);
-}
-// [END cloudfunctions_v2_generated_FunctionService_GetFunction_sync]
diff --git a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/get_iam_policy.php b/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/get_iam_policy.php
deleted file mode 100644
index 6a84bd75b393..000000000000
--- a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/get_iam_policy.php
+++ /dev/null
@@ -1,72 +0,0 @@
-setResource($resource);
-
- // Call the API and handle any network failures.
- try {
- /** @var Policy $response */
- $response = $functionServiceClient->getIamPolicy($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $resource = '[RESOURCE]';
-
- get_iam_policy_sample($resource);
-}
-// [END cloudfunctions_v2_generated_FunctionService_GetIamPolicy_sync]
diff --git a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/list_functions.php b/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/list_functions.php
deleted file mode 100644
index 2211ba2247b3..000000000000
--- a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/list_functions.php
+++ /dev/null
@@ -1,81 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $functionServiceClient->listFunctions($request);
-
- /** @var PBFunction $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = FunctionServiceClient::locationName('[PROJECT]', '[LOCATION]');
-
- list_functions_sample($formattedParent);
-}
-// [END cloudfunctions_v2_generated_FunctionService_ListFunctions_sync]
diff --git a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/list_locations.php b/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/list_locations.php
deleted file mode 100644
index 287d79cf8c32..000000000000
--- a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/list_locations.php
+++ /dev/null
@@ -1,62 +0,0 @@
-listLocations($request);
-
- /** @var Location $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END cloudfunctions_v2_generated_FunctionService_ListLocations_sync]
diff --git a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/list_runtimes.php b/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/list_runtimes.php
deleted file mode 100644
index aca8dd8c813e..000000000000
--- a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/list_runtimes.php
+++ /dev/null
@@ -1,72 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var ListRuntimesResponse $response */
- $response = $functionServiceClient->listRuntimes($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = FunctionServiceClient::locationName('[PROJECT]', '[LOCATION]');
-
- list_runtimes_sample($formattedParent);
-}
-// [END cloudfunctions_v2_generated_FunctionService_ListRuntimes_sync]
diff --git a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/set_iam_policy.php b/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/set_iam_policy.php
deleted file mode 100644
index 97295556fbfc..000000000000
--- a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/set_iam_policy.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setResource($resource)
- ->setPolicy($policy);
-
- // Call the API and handle any network failures.
- try {
- /** @var Policy $response */
- $response = $functionServiceClient->setIamPolicy($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $resource = '[RESOURCE]';
-
- set_iam_policy_sample($resource);
-}
-// [END cloudfunctions_v2_generated_FunctionService_SetIamPolicy_sync]
diff --git a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/test_iam_permissions.php b/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/test_iam_permissions.php
deleted file mode 100644
index 93d2ca86cb79..000000000000
--- a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/test_iam_permissions.php
+++ /dev/null
@@ -1,84 +0,0 @@
-setResource($resource)
- ->setPermissions($permissions);
-
- // Call the API and handle any network failures.
- try {
- /** @var TestIamPermissionsResponse $response */
- $response = $functionServiceClient->testIamPermissions($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $resource = '[RESOURCE]';
- $permissionsElement = '[PERMISSIONS]';
-
- test_iam_permissions_sample($resource, $permissionsElement);
-}
-// [END cloudfunctions_v2_generated_FunctionService_TestIamPermissions_sync]
diff --git a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/update_function.php b/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/update_function.php
deleted file mode 100644
index 600989041e80..000000000000
--- a/owl-bot-staging/Functions/v2/samples/V2/FunctionServiceClient/update_function.php
+++ /dev/null
@@ -1,71 +0,0 @@
-setFunction($function);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $functionServiceClient->updateFunction($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var PBFunction $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END cloudfunctions_v2_generated_FunctionService_UpdateFunction_sync]
diff --git a/owl-bot-staging/Functions/v2/src/V2/Client/FunctionServiceClient.php b/owl-bot-staging/Functions/v2/src/V2/Client/FunctionServiceClient.php
deleted file mode 100644
index f7304e8e5a6d..000000000000
--- a/owl-bot-staging/Functions/v2/src/V2/Client/FunctionServiceClient.php
+++ /dev/null
@@ -1,855 +0,0 @@
- createFunctionAsync(CreateFunctionRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteFunctionAsync(DeleteFunctionRequest $request, array $optionalArgs = [])
- * @method PromiseInterface generateDownloadUrlAsync(GenerateDownloadUrlRequest $request, array $optionalArgs = [])
- * @method PromiseInterface generateUploadUrlAsync(GenerateUploadUrlRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getFunctionAsync(GetFunctionRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listFunctionsAsync(ListFunctionsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listRuntimesAsync(ListRuntimesRequest $request, array $optionalArgs = [])
- * @method PromiseInterface updateFunctionAsync(UpdateFunctionRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = [])
- * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = [])
- * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = [])
- */
-final class FunctionServiceClient
-{
- use GapicClientTrait;
- use ResourceHelperTrait;
-
- /** The name of the service. */
- private const SERVICE_NAME = 'google.cloud.functions.v2.FunctionService';
-
- /**
- * The default address of the service.
- *
- * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
- */
- private const SERVICE_ADDRESS = 'cloudfunctions.googleapis.com';
-
- /** The address template of the service. */
- private const SERVICE_ADDRESS_TEMPLATE = 'cloudfunctions.UNIVERSE_DOMAIN';
-
- /** The default port of the service. */
- private const DEFAULT_SERVICE_PORT = 443;
-
- /** The name of the code generator, to be included in the agent header. */
- private const CODEGEN_NAME = 'gapic';
-
- /** The default scopes required by the service. */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- ];
-
- private $operationsClient;
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/function_service_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/function_service_descriptor_config.php',
- 'gcpApiConfigPath' => __DIR__ . '/../resources/function_service_grpc_config.json',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/function_service_rest_client_config.php',
- ],
- ],
- ];
- }
-
- /**
- * Return an OperationsClient object with the same endpoint as $this.
- *
- * @return OperationsClient
- */
- public function getOperationsClient()
- {
- return $this->operationsClient;
- }
-
- /**
- * Resume an existing long running operation that was previously started by a long
- * running API method. If $methodName is not provided, or does not match a long
- * running API method, then the operation can still be resumed, but the
- * OperationResponse object will not deserialize the final response.
- *
- * @param string $operationName The name of the long running operation
- * @param string $methodName The name of the method used to start the operation
- *
- * @return OperationResponse
- */
- public function resumeOperation($operationName, $methodName = null)
- {
- $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : [];
- $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options);
- $operation->reload();
- return $operation;
- }
-
- /**
- * Create the default operation client for the service.
- *
- * @param array $options ClientOptions for the client.
- *
- * @return OperationsClient
- */
- private function createOperationsClient(array $options)
- {
- // Unset client-specific configuration options
- unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']);
-
- if (isset($options['operationsClient'])) {
- return $options['operationsClient'];
- }
-
- return new OperationsClient($options);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a build
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $build
- *
- * @return string The formatted build resource.
- */
- public static function buildName(string $project, string $location, string $build): string
- {
- return self::getPathTemplate('build')->render([
- 'project' => $project,
- 'location' => $location,
- 'build' => $build,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a channel
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $channel
- *
- * @return string The formatted channel resource.
- */
- public static function channelName(string $project, string $location, string $channel): string
- {
- return self::getPathTemplate('channel')->render([
- 'project' => $project,
- 'location' => $location,
- 'channel' => $channel,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a connector
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $connector
- *
- * @return string The formatted connector resource.
- */
- public static function connectorName(string $project, string $location, string $connector): string
- {
- return self::getPathTemplate('connector')->render([
- 'project' => $project,
- 'location' => $location,
- 'connector' => $connector,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a crypto_key
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $keyRing
- * @param string $cryptoKey
- *
- * @return string The formatted crypto_key resource.
- */
- public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string
- {
- return self::getPathTemplate('cryptoKey')->render([
- 'project' => $project,
- 'location' => $location,
- 'key_ring' => $keyRing,
- 'crypto_key' => $cryptoKey,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a function
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $function
- *
- * @return string The formatted function resource.
- */
- public static function functionName(string $project, string $location, string $function): string
- {
- return self::getPathTemplate('function')->render([
- 'project' => $project,
- 'location' => $location,
- 'function' => $function,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a location
- * resource.
- *
- * @param string $project
- * @param string $location
- *
- * @return string The formatted location resource.
- */
- public static function locationName(string $project, string $location): string
- {
- return self::getPathTemplate('location')->render([
- 'project' => $project,
- 'location' => $location,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a repository
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $repository
- *
- * @return string The formatted repository resource.
- */
- public static function repositoryName(string $project, string $location, string $repository): string
- {
- return self::getPathTemplate('repository')->render([
- 'project' => $project,
- 'location' => $location,
- 'repository' => $repository,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a service
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $service
- *
- * @return string The formatted service resource.
- */
- public static function serviceName(string $project, string $location, string $service): string
- {
- return self::getPathTemplate('service')->render([
- 'project' => $project,
- 'location' => $location,
- 'service' => $service,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a topic
- * resource.
- *
- * @param string $project
- * @param string $topic
- *
- * @return string The formatted topic resource.
- */
- public static function topicName(string $project, string $topic): string
- {
- return self::getPathTemplate('topic')->render([
- 'project' => $project,
- 'topic' => $topic,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a trigger
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $trigger
- *
- * @return string The formatted trigger resource.
- */
- public static function triggerName(string $project, string $location, string $trigger): string
- {
- return self::getPathTemplate('trigger')->render([
- 'project' => $project,
- 'location' => $location,
- 'trigger' => $trigger,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a worker_pool
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $workerPool
- *
- * @return string The formatted worker_pool resource.
- */
- public static function workerPoolName(string $project, string $location, string $workerPool): string
- {
- return self::getPathTemplate('workerPool')->render([
- 'project' => $project,
- 'location' => $location,
- 'worker_pool' => $workerPool,
- ]);
- }
-
- /**
- * Parses a formatted name string and returns an associative array of the components in the name.
- * The following name formats are supported:
- * Template: Pattern
- * - build: projects/{project}/locations/{location}/builds/{build}
- * - channel: projects/{project}/locations/{location}/channels/{channel}
- * - connector: projects/{project}/locations/{location}/connectors/{connector}
- * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
- * - function: projects/{project}/locations/{location}/functions/{function}
- * - location: projects/{project}/locations/{location}
- * - repository: projects/{project}/locations/{location}/repositories/{repository}
- * - service: projects/{project}/locations/{location}/services/{service}
- * - topic: projects/{project}/topics/{topic}
- * - trigger: projects/{project}/locations/{location}/triggers/{trigger}
- * - workerPool: projects/{project}/locations/{location}/workerPools/{worker_pool}
- *
- * The optional $template argument can be supplied to specify a particular pattern,
- * and must match one of the templates listed above. If no $template argument is
- * provided, or if the $template argument does not match one of the templates
- * listed, then parseName will check each of the supported templates, and return
- * the first match.
- *
- * @param string $formattedName The formatted name string
- * @param ?string $template Optional name of template to match
- *
- * @return array An associative array from name component IDs to component values.
- *
- * @throws ValidationException If $formattedName could not be matched.
- */
- public static function parseName(string $formattedName, ?string $template = null): array
- {
- return self::parseFormattedName($formattedName, $template);
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'cloudfunctions.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. May be either the string
- * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
- * *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'grpc' => [...],
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and
- * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * @type false|LoggerInterface $logger
- * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
- * 'GOOGLE_SDK_PHP_LOGGING' environment flag
- * }
- *
- * @throws ValidationException
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- $this->operationsClient = $this->createOperationsClient($clientOptions);
- }
-
- /** Handles execution of the async variants for each documented method. */
- public function __call($method, $args)
- {
- if (substr($method, -5) !== 'Async') {
- trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR);
- }
-
- array_unshift($args, substr($method, 0, -5));
- return call_user_func_array([$this, 'startAsyncCall'], $args);
- }
-
- /**
- * Creates a new function. If a function with the given name already exists in
- * the specified project, the long running operation will return
- * `ALREADY_EXISTS` error.
- *
- * The async variant is {@see FunctionServiceClient::createFunctionAsync()} .
- *
- * @example samples/V2/FunctionServiceClient/create_function.php
- *
- * @param CreateFunctionRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createFunction(CreateFunctionRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateFunction', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes a function with the given name from the specified project. If the
- * given function is used by some trigger, the trigger will be updated to
- * remove this function.
- *
- * The async variant is {@see FunctionServiceClient::deleteFunctionAsync()} .
- *
- * @example samples/V2/FunctionServiceClient/delete_function.php
- *
- * @param DeleteFunctionRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function deleteFunction(DeleteFunctionRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('DeleteFunction', $request, $callOptions)->wait();
- }
-
- /**
- * Returns a signed URL for downloading deployed function source code.
- * The URL is only valid for a limited period and should be used within
- * 30 minutes of generation.
- * For more information about the signed URL usage see:
- * https://cloud.google.com/storage/docs/access-control/signed-urls
- *
- * The async variant is {@see FunctionServiceClient::generateDownloadUrlAsync()} .
- *
- * @example samples/V2/FunctionServiceClient/generate_download_url.php
- *
- * @param GenerateDownloadUrlRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 GenerateDownloadUrlResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function generateDownloadUrl(GenerateDownloadUrlRequest $request, array $callOptions = []): GenerateDownloadUrlResponse
- {
- return $this->startApiCall('GenerateDownloadUrl', $request, $callOptions)->wait();
- }
-
- /**
- * Returns a signed URL for uploading a function source code.
- * For more information about the signed URL usage see:
- * https://cloud.google.com/storage/docs/access-control/signed-urls.
- * Once the function source code upload is complete, the used signed
- * URL should be provided in CreateFunction or UpdateFunction request
- * as a reference to the function source code.
- *
- * When uploading source code to the generated signed URL, please follow
- * these restrictions:
- *
- * * Source file type should be a zip file.
- * * No credentials should be attached - the signed URLs provide access to the
- * target bucket using internal service identity; if credentials were
- * attached, the identity from the credentials would be used, but that
- * identity does not have permissions to upload files to the URL.
- *
- * When making a HTTP PUT request, specify this header:
- *
- * * `content-type: application/zip`
- *
- * Do not specify this header:
- *
- * * `Authorization: Bearer YOUR_TOKEN`
- *
- * The async variant is {@see FunctionServiceClient::generateUploadUrlAsync()} .
- *
- * @example samples/V2/FunctionServiceClient/generate_upload_url.php
- *
- * @param GenerateUploadUrlRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 GenerateUploadUrlResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function generateUploadUrl(GenerateUploadUrlRequest $request, array $callOptions = []): GenerateUploadUrlResponse
- {
- return $this->startApiCall('GenerateUploadUrl', $request, $callOptions)->wait();
- }
-
- /**
- * Returns a function with the given name from the requested project.
- *
- * The async variant is {@see FunctionServiceClient::getFunctionAsync()} .
- *
- * @example samples/V2/FunctionServiceClient/get_function.php
- *
- * @param GetFunctionRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PBFunction
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getFunction(GetFunctionRequest $request, array $callOptions = []): PBFunction
- {
- return $this->startApiCall('GetFunction', $request, $callOptions)->wait();
- }
-
- /**
- * Returns a list of functions that belong to the requested project.
- *
- * The async variant is {@see FunctionServiceClient::listFunctionsAsync()} .
- *
- * @example samples/V2/FunctionServiceClient/list_functions.php
- *
- * @param ListFunctionsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listFunctions(ListFunctionsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListFunctions', $request, $callOptions);
- }
-
- /**
- * Returns a list of runtimes that are supported for the requested project.
- *
- * The async variant is {@see FunctionServiceClient::listRuntimesAsync()} .
- *
- * @example samples/V2/FunctionServiceClient/list_runtimes.php
- *
- * @param ListRuntimesRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 ListRuntimesResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listRuntimes(ListRuntimesRequest $request, array $callOptions = []): ListRuntimesResponse
- {
- return $this->startApiCall('ListRuntimes', $request, $callOptions)->wait();
- }
-
- /**
- * Updates existing function.
- *
- * The async variant is {@see FunctionServiceClient::updateFunctionAsync()} .
- *
- * @example samples/V2/FunctionServiceClient/update_function.php
- *
- * @param UpdateFunctionRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateFunction(UpdateFunctionRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('UpdateFunction', $request, $callOptions)->wait();
- }
-
- /**
- * Lists information about the supported locations for this service.
- *
- * The async variant is {@see FunctionServiceClient::listLocationsAsync()} .
- *
- * @example samples/V2/FunctionServiceClient/list_locations.php
- *
- * @param ListLocationsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListLocations', $request, $callOptions);
- }
-
- /**
- * Gets the access control policy for a resource. Returns an empty policy
- if the resource exists and does not have a policy set.
- *
- * The async variant is {@see FunctionServiceClient::getIamPolicyAsync()} .
- *
- * @example samples/V2/FunctionServiceClient/get_iam_policy.php
- *
- * @param GetIamPolicyRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Policy
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy
- {
- return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait();
- }
-
- /**
- * Sets the access control policy on the specified resource. Replaces
- any existing policy.
-
- Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
- errors.
- *
- * The async variant is {@see FunctionServiceClient::setIamPolicyAsync()} .
- *
- * @example samples/V2/FunctionServiceClient/set_iam_policy.php
- *
- * @param SetIamPolicyRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Policy
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy
- {
- return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait();
- }
-
- /**
- * Returns permissions that a caller has on the specified resource. If the
- resource does not exist, this will return an empty set of
- permissions, not a `NOT_FOUND` error.
-
- Note: This operation is designed to be used for building
- permission-aware UIs and command-line tools, not for authorization
- checking. This operation may "fail open" without warning.
- *
- * The async variant is {@see FunctionServiceClient::testIamPermissionsAsync()} .
- *
- * @example samples/V2/FunctionServiceClient/test_iam_permissions.php
- *
- * @param TestIamPermissionsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 TestIamPermissionsResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
- {
- return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
- }
-}
diff --git a/owl-bot-staging/Functions/v2/src/V2/gapic_metadata.json b/owl-bot-staging/Functions/v2/src/V2/gapic_metadata.json
deleted file mode 100644
index 9e109ca2916e..000000000000
--- a/owl-bot-staging/Functions/v2/src/V2/gapic_metadata.json
+++ /dev/null
@@ -1,78 +0,0 @@
-{
- "schema": "1.0",
- "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods",
- "language": "php",
- "protoPackage": "google.cloud.functions.v2",
- "libraryPackage": "Google\\Cloud\\Functions\\V2",
- "services": {
- "FunctionService": {
- "clients": {
- "grpc": {
- "libraryClient": "FunctionServiceGapicClient",
- "rpcs": {
- "CreateFunction": {
- "methods": [
- "createFunction"
- ]
- },
- "DeleteFunction": {
- "methods": [
- "deleteFunction"
- ]
- },
- "GenerateDownloadUrl": {
- "methods": [
- "generateDownloadUrl"
- ]
- },
- "GenerateUploadUrl": {
- "methods": [
- "generateUploadUrl"
- ]
- },
- "GetFunction": {
- "methods": [
- "getFunction"
- ]
- },
- "ListFunctions": {
- "methods": [
- "listFunctions"
- ]
- },
- "ListRuntimes": {
- "methods": [
- "listRuntimes"
- ]
- },
- "UpdateFunction": {
- "methods": [
- "updateFunction"
- ]
- },
- "ListLocations": {
- "methods": [
- "listLocations"
- ]
- },
- "GetIamPolicy": {
- "methods": [
- "getIamPolicy"
- ]
- },
- "SetIamPolicy": {
- "methods": [
- "setIamPolicy"
- ]
- },
- "TestIamPermissions": {
- "methods": [
- "testIamPermissions"
- ]
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/owl-bot-staging/Functions/v2/src/V2/resources/function_service_client_config.json b/owl-bot-staging/Functions/v2/src/V2/resources/function_service_client_config.json
deleted file mode 100644
index bfc64e4b21e5..000000000000
--- a/owl-bot-staging/Functions/v2/src/V2/resources/function_service_client_config.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "interfaces": {
- "google.cloud.functions.v2.FunctionService": {
- "retry_codes": {
- "no_retry_codes": []
- },
- "retry_params": {
- "no_retry_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 0,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 0,
- "total_timeout_millis": 0
- }
- },
- "methods": {
- "CreateFunction": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "DeleteFunction": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "GenerateDownloadUrl": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "GenerateUploadUrl": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "GetFunction": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "ListFunctions": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "ListRuntimes": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "UpdateFunction": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "ListLocations": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "GetIamPolicy": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "SetIamPolicy": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "TestIamPermissions": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- }
- }
- }
- }
-}
diff --git a/owl-bot-staging/Functions/v2/src/V2/resources/function_service_descriptor_config.php b/owl-bot-staging/Functions/v2/src/V2/resources/function_service_descriptor_config.php
deleted file mode 100644
index b0f8d88bbb90..000000000000
--- a/owl-bot-staging/Functions/v2/src/V2/resources/function_service_descriptor_config.php
+++ /dev/null
@@ -1,227 +0,0 @@
- [
- 'google.cloud.functions.v2.FunctionService' => [
- 'CreateFunction' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Functions\V2\PBFunction',
- 'metadataReturnType' => '\Google\Cloud\Functions\V2\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'DeleteFunction' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Protobuf\GPBEmpty',
- 'metadataReturnType' => '\Google\Cloud\Functions\V2\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateFunction' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\Functions\V2\PBFunction',
- 'metadataReturnType' => '\Google\Cloud\Functions\V2\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'function.name',
- 'fieldAccessors' => [
- 'getFunction',
- 'getName',
- ],
- ],
- ],
- ],
- 'GenerateDownloadUrl' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Functions\V2\GenerateDownloadUrlResponse',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GenerateUploadUrl' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Functions\V2\GenerateUploadUrlResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'GetFunction' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Functions\V2\PBFunction',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListFunctions' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getFunctions',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Functions\V2\ListFunctionsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListRuntimes' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Functions\V2\ListRuntimesResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListLocations' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getLocations',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Location\ListLocationsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- 'interfaceOverride' => 'google.cloud.location.Locations',
- ],
- 'GetIamPolicy' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Iam\V1\Policy',
- 'headerParams' => [
- [
- 'keyName' => 'resource',
- 'fieldAccessors' => [
- 'getResource',
- ],
- ],
- ],
- 'interfaceOverride' => 'google.iam.v1.IAMPolicy',
- ],
- 'SetIamPolicy' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Iam\V1\Policy',
- 'headerParams' => [
- [
- 'keyName' => 'resource',
- 'fieldAccessors' => [
- 'getResource',
- ],
- ],
- ],
- 'interfaceOverride' => 'google.iam.v1.IAMPolicy',
- ],
- 'TestIamPermissions' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'resource',
- 'fieldAccessors' => [
- 'getResource',
- ],
- ],
- ],
- 'interfaceOverride' => 'google.iam.v1.IAMPolicy',
- ],
- 'templateMap' => [
- 'build' => 'projects/{project}/locations/{location}/builds/{build}',
- 'channel' => 'projects/{project}/locations/{location}/channels/{channel}',
- 'connector' => 'projects/{project}/locations/{location}/connectors/{connector}',
- 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}',
- 'function' => 'projects/{project}/locations/{location}/functions/{function}',
- 'location' => 'projects/{project}/locations/{location}',
- 'repository' => 'projects/{project}/locations/{location}/repositories/{repository}',
- 'service' => 'projects/{project}/locations/{location}/services/{service}',
- 'topic' => 'projects/{project}/topics/{topic}',
- 'trigger' => 'projects/{project}/locations/{location}/triggers/{trigger}',
- 'workerPool' => 'projects/{project}/locations/{location}/workerPools/{worker_pool}',
- ],
- ],
- ],
-];
diff --git a/owl-bot-staging/Functions/v2/src/V2/resources/function_service_rest_client_config.php b/owl-bot-staging/Functions/v2/src/V2/resources/function_service_rest_client_config.php
deleted file mode 100644
index 44d8f539758e..000000000000
--- a/owl-bot-staging/Functions/v2/src/V2/resources/function_service_rest_client_config.php
+++ /dev/null
@@ -1,196 +0,0 @@
- [
- 'google.cloud.functions.v2.FunctionService' => [
- 'CreateFunction' => [
- 'method' => 'post',
- 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/functions',
- 'body' => 'function',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'DeleteFunction' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v2/{name=projects/*/locations/*/functions/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GenerateDownloadUrl' => [
- 'method' => 'post',
- 'uriTemplate' => '/v2/{name=projects/*/locations/*/functions/*}:generateDownloadUrl',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GenerateUploadUrl' => [
- 'method' => 'post',
- 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/functions:generateUploadUrl',
- 'body' => '*',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'GetFunction' => [
- 'method' => 'get',
- 'uriTemplate' => '/v2/{name=projects/*/locations/*/functions/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListFunctions' => [
- 'method' => 'get',
- 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/functions',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListRuntimes' => [
- 'method' => 'get',
- 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/runtimes',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'UpdateFunction' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v2/{function.name=projects/*/locations/*/functions/*}',
- 'body' => 'function',
- 'placeholders' => [
- 'function.name' => [
- 'getters' => [
- 'getFunction',
- 'getName',
- ],
- ],
- ],
- ],
- ],
- 'google.cloud.location.Locations' => [
- 'ListLocations' => [
- 'method' => 'get',
- 'uriTemplate' => '/v2/{name=projects/*}/locations',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- 'google.iam.v1.IAMPolicy' => [
- 'GetIamPolicy' => [
- 'method' => 'get',
- 'uriTemplate' => '/v2/{resource=projects/*/locations/*/functions/*}:getIamPolicy',
- 'placeholders' => [
- 'resource' => [
- 'getters' => [
- 'getResource',
- ],
- ],
- ],
- ],
- 'SetIamPolicy' => [
- 'method' => 'post',
- 'uriTemplate' => '/v2/{resource=projects/*/locations/*/functions/*}:setIamPolicy',
- 'body' => '*',
- 'placeholders' => [
- 'resource' => [
- 'getters' => [
- 'getResource',
- ],
- ],
- ],
- ],
- 'TestIamPermissions' => [
- 'method' => 'post',
- 'uriTemplate' => '/v2/{resource=projects/*/locations/*/functions/*}:testIamPermissions',
- 'body' => '*',
- 'placeholders' => [
- 'resource' => [
- 'getters' => [
- 'getResource',
- ],
- ],
- ],
- ],
- ],
- 'google.longrunning.Operations' => [
- 'GetOperation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v2/{name=projects/*/locations/*/operations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListOperations' => [
- 'method' => 'get',
- 'uriTemplate' => '/v2/{name=projects/*/locations/*}/operations',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- ],
- 'numericEnums' => true,
-];
diff --git a/owl-bot-staging/Functions/v2/tests/Unit/V2/Client/FunctionServiceClientTest.php b/owl-bot-staging/Functions/v2/tests/Unit/V2/Client/FunctionServiceClientTest.php
deleted file mode 100644
index ae70447d7c53..000000000000
--- a/owl-bot-staging/Functions/v2/tests/Unit/V2/Client/FunctionServiceClientTest.php
+++ /dev/null
@@ -1,1157 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return FunctionServiceClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new FunctionServiceClient($options);
- }
-
- /** @test */
- public function createFunctionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createFunctionTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $description = 'description-1724546052';
- $url = 'url116079';
- $kmsKeyName = 'kmsKeyName2094986649';
- $satisfiesPzs = false;
- $expectedResponse = new PBFunction();
- $expectedResponse->setName($name);
- $expectedResponse->setDescription($description);
- $expectedResponse->setUrl($url);
- $expectedResponse->setKmsKeyName($kmsKeyName);
- $expectedResponse->setSatisfiesPzs($satisfiesPzs);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createFunctionTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $function = new PBFunction();
- $request = (new CreateFunctionRequest())
- ->setParent($formattedParent)
- ->setFunction($function);
- $response = $gapicClient->createFunction($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.functions.v2.FunctionService/CreateFunction', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getFunction();
- $this->assertProtobufEquals($function, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createFunctionTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createFunctionExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createFunctionTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $function = new PBFunction();
- $request = (new CreateFunctionRequest())
- ->setParent($formattedParent)
- ->setFunction($function);
- $response = $gapicClient->createFunction($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createFunctionTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteFunctionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteFunctionTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteFunctionTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->functionName('[PROJECT]', '[LOCATION]', '[FUNCTION]');
- $request = (new DeleteFunctionRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteFunction($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.functions.v2.FunctionService/DeleteFunction', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteFunctionTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteFunctionExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteFunctionTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->functionName('[PROJECT]', '[LOCATION]', '[FUNCTION]');
- $request = (new DeleteFunctionRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteFunction($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteFunctionTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function generateDownloadUrlTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $downloadUrl = 'downloadUrl1109408056';
- $expectedResponse = new GenerateDownloadUrlResponse();
- $expectedResponse->setDownloadUrl($downloadUrl);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->functionName('[PROJECT]', '[LOCATION]', '[FUNCTION]');
- $request = (new GenerateDownloadUrlRequest())
- ->setName($formattedName);
- $response = $gapicClient->generateDownloadUrl($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.functions.v2.FunctionService/GenerateDownloadUrl', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function generateDownloadUrlExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->functionName('[PROJECT]', '[LOCATION]', '[FUNCTION]');
- $request = (new GenerateDownloadUrlRequest())
- ->setName($formattedName);
- try {
- $gapicClient->generateDownloadUrl($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function generateUploadUrlTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $uploadUrl = 'uploadUrl-242738639';
- $expectedResponse = new GenerateUploadUrlResponse();
- $expectedResponse->setUploadUrl($uploadUrl);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new GenerateUploadUrlRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->generateUploadUrl($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.functions.v2.FunctionService/GenerateUploadUrl', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function generateUploadUrlExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new GenerateUploadUrlRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->generateUploadUrl($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getFunctionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $description = 'description-1724546052';
- $url = 'url116079';
- $kmsKeyName = 'kmsKeyName2094986649';
- $satisfiesPzs = false;
- $expectedResponse = new PBFunction();
- $expectedResponse->setName($name2);
- $expectedResponse->setDescription($description);
- $expectedResponse->setUrl($url);
- $expectedResponse->setKmsKeyName($kmsKeyName);
- $expectedResponse->setSatisfiesPzs($satisfiesPzs);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->functionName('[PROJECT]', '[LOCATION]', '[FUNCTION]');
- $request = (new GetFunctionRequest())
- ->setName($formattedName);
- $response = $gapicClient->getFunction($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.functions.v2.FunctionService/GetFunction', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getFunctionExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->functionName('[PROJECT]', '[LOCATION]', '[FUNCTION]');
- $request = (new GetFunctionRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getFunction($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listFunctionsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $functionsElement = new PBFunction();
- $functions = [
- $functionsElement,
- ];
- $expectedResponse = new ListFunctionsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setFunctions($functions);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListFunctionsRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listFunctions($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getFunctions()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.functions.v2.FunctionService/ListFunctions', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listFunctionsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListFunctionsRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listFunctions($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listRuntimesTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new ListRuntimesResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListRuntimesRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listRuntimes($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.functions.v2.FunctionService/ListRuntimes', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listRuntimesExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListRuntimesRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listRuntimes($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function updateFunctionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateFunctionTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $description = 'description-1724546052';
- $url = 'url116079';
- $kmsKeyName = 'kmsKeyName2094986649';
- $satisfiesPzs = false;
- $expectedResponse = new PBFunction();
- $expectedResponse->setName($name);
- $expectedResponse->setDescription($description);
- $expectedResponse->setUrl($url);
- $expectedResponse->setKmsKeyName($kmsKeyName);
- $expectedResponse->setSatisfiesPzs($satisfiesPzs);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateFunctionTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $function = new PBFunction();
- $request = (new UpdateFunctionRequest())
- ->setFunction($function);
- $response = $gapicClient->updateFunction($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.functions.v2.FunctionService/UpdateFunction', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getFunction();
- $this->assertProtobufEquals($function, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateFunctionTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateFunctionExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateFunctionTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $function = new PBFunction();
- $request = (new UpdateFunctionRequest())
- ->setFunction($function);
- $response = $gapicClient->updateFunction($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateFunctionTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function listLocationsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $locationsElement = new Location();
- $locations = [
- $locationsElement,
- ];
- $expectedResponse = new ListLocationsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setLocations($locations);
- $transport->addResponse($expectedResponse);
- $request = new ListLocationsRequest();
- $response = $gapicClient->listLocations($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listLocationsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- $request = new ListLocationsRequest();
- try {
- $gapicClient->listLocations($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getIamPolicyTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $version = 351608024;
- $etag = '21';
- $expectedResponse = new Policy();
- $expectedResponse->setVersion($version);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $resource = 'resource-341064690';
- $request = (new GetIamPolicyRequest())
- ->setResource($resource);
- $response = $gapicClient->getIamPolicy($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall);
- $actualValue = $actualRequestObject->getResource();
- $this->assertProtobufEquals($resource, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getIamPolicyExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $resource = 'resource-341064690';
- $request = (new GetIamPolicyRequest())
- ->setResource($resource);
- try {
- $gapicClient->getIamPolicy($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function setIamPolicyTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $version = 351608024;
- $etag = '21';
- $expectedResponse = new Policy();
- $expectedResponse->setVersion($version);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $resource = 'resource-341064690';
- $policy = new Policy();
- $request = (new SetIamPolicyRequest())
- ->setResource($resource)
- ->setPolicy($policy);
- $response = $gapicClient->setIamPolicy($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall);
- $actualValue = $actualRequestObject->getResource();
- $this->assertProtobufEquals($resource, $actualValue);
- $actualValue = $actualRequestObject->getPolicy();
- $this->assertProtobufEquals($policy, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function setIamPolicyExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $resource = 'resource-341064690';
- $policy = new Policy();
- $request = (new SetIamPolicyRequest())
- ->setResource($resource)
- ->setPolicy($policy);
- try {
- $gapicClient->setIamPolicy($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function testIamPermissionsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new TestIamPermissionsResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $resource = 'resource-341064690';
- $permissions = [];
- $request = (new TestIamPermissionsRequest())
- ->setResource($resource)
- ->setPermissions($permissions);
- $response = $gapicClient->testIamPermissions($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall);
- $actualValue = $actualRequestObject->getResource();
- $this->assertProtobufEquals($resource, $actualValue);
- $actualValue = $actualRequestObject->getPermissions();
- $this->assertProtobufEquals($permissions, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function testIamPermissionsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $resource = 'resource-341064690';
- $permissions = [];
- $request = (new TestIamPermissionsRequest())
- ->setResource($resource)
- ->setPermissions($permissions);
- try {
- $gapicClient->testIamPermissions($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createFunctionAsyncTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createFunctionTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $description = 'description-1724546052';
- $url = 'url116079';
- $kmsKeyName = 'kmsKeyName2094986649';
- $satisfiesPzs = false;
- $expectedResponse = new PBFunction();
- $expectedResponse->setName($name);
- $expectedResponse->setDescription($description);
- $expectedResponse->setUrl($url);
- $expectedResponse->setKmsKeyName($kmsKeyName);
- $expectedResponse->setSatisfiesPzs($satisfiesPzs);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createFunctionTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $function = new PBFunction();
- $request = (new CreateFunctionRequest())
- ->setParent($formattedParent)
- ->setFunction($function);
- $response = $gapicClient->createFunctionAsync($request)->wait();
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.functions.v2.FunctionService/CreateFunction', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getFunction();
- $this->assertProtobufEquals($function, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createFunctionTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-}
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/GPBMetadata/Google/Cloud/Gsuiteaddons/V1/Gsuiteaddons.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/GPBMetadata/Google/Cloud/Gsuiteaddons/V1/Gsuiteaddons.php
deleted file mode 100644
index 3d90bfa2c635..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/GPBMetadata/Google/Cloud/Gsuiteaddons/V1/Gsuiteaddons.php
+++ /dev/null
@@ -1,116 +0,0 @@
-internalAddGeneratedFile(
- '
-š%
-/google/cloud/gsuiteaddons/v1/gsuiteaddons.protogoogle.cloud.gsuiteaddons.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto>google/apps/script/type/calendar/calendar_addon_manifest.proto6google/apps/script/type/docs/docs_addon_manifest.proto8google/apps/script/type/drive/drive_addon_manifest.proto8google/apps/script/type/gmail/gmail_addon_manifest.proto-google/apps/script/type/script_manifest.proto:google/apps/script/type/sheets/sheets_addon_manifest.proto:google/apps/script/type/slides/slides_addon_manifest.protogoogle/protobuf/empty.protogoogle/protobuf/wrappers.proto"Z
-GetAuthorizationRequest?
-name ( B1àAúA+
-)gsuiteaddons.googleapis.com/Authorization"§
-
Authorization
-name (
-service_account_email (
-oauth_client_id ( :PêAM
-)gsuiteaddons.googleapis.com/Authorization projects/{project}/authorization"½
-CreateDeploymentRequestC
-parent ( B3àAúA-
-+cloudresourcemanager.googleapis.com/Project
-
deployment_id ( BàAA
-
-deployment (2(.google.cloud.gsuiteaddons.v1.DeploymentBàA"]
-ReplaceDeploymentRequestA
-
-deployment (2(.google.cloud.gsuiteaddons.v1.DeploymentBàA"T
-GetDeploymentRequest<
-name ( B.àAúA(
-&gsuiteaddons.googleapis.com/Deployment"„
-ListDeploymentsRequestC
-parent ( B3àAúA-
-+cloudresourcemanager.googleapis.com/Project
- page_size (
-
-page_token ( "q
-ListDeploymentsResponse=
-deployments (2(.google.cloud.gsuiteaddons.v1.Deployment
-next_page_token ( "e
-DeleteDeploymentRequest<
-name ( B.àAúA(
-&gsuiteaddons.googleapis.com/Deployment
-etag ( "X
-InstallDeploymentRequest<
-name ( B.àAúA(
-&gsuiteaddons.googleapis.com/Deployment"Z
-UninstallDeploymentRequest<
-name ( B.àAúA(
-&gsuiteaddons.googleapis.com/Deployment"Z
-GetInstallStatusRequest?
-name ( B1àAúA+
-)gsuiteaddons.googleapis.com/InstallStatus"·
-
InstallStatus
-name ( -
- installed (2.google.protobuf.BoolValue:iêAf
-)gsuiteaddons.googleapis.com/InstallStatus9projects/{project}/deployments/{deployment}/installStatus"Ï
-
-Deployment
-name (
-oauth_scopes ( 5
-add_ons (2$.google.cloud.gsuiteaddons.v1.AddOns
-etag ( :XêAU
-&gsuiteaddons.googleapis.com/Deployment+projects/{project}/deployments/{deployment}"š
-AddOns<
-common (2,.google.apps.script.type.CommonAddOnManifest@
-gmail (21.google.apps.script.type.gmail.GmailAddOnManifest@
-drive (21.google.apps.script.type.drive.DriveAddOnManifestI
-calendar (27.google.apps.script.type.calendar.CalendarAddOnManifest=
-docs (2/.google.apps.script.type.docs.DocsAddOnManifestC
-sheets (23.google.apps.script.type.sheets.SheetsAddOnManifestC
-slides
- (23.google.apps.script.type.slides.SlidesAddOnManifest:
-http_options (2$.google.apps.script.type.HttpOptions2¤
-GSuiteAddOnsª
-GetAuthorization5.google.cloud.gsuiteaddons.v1.GetAuthorizationRequest+.google.cloud.gsuiteaddons.v1.Authorization"2ÚAname‚Óä“%#/v1/{name=projects/*/authorization}Î
-CreateDeployment5.google.cloud.gsuiteaddons.v1.CreateDeploymentRequest(.google.cloud.gsuiteaddons.v1.Deployment"YÚAparent,deployment,deployment_id‚Óä“1"#/v1/{parent=projects/*}/deployments:
-deploymentÆ
-ReplaceDeployment6.google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest(.google.cloud.gsuiteaddons.v1.Deployment"OÚA
-deployment‚Óä“<./v1/{deployment.name=projects/*/deployments/*}:
-deployment¡
-
GetDeployment2.google.cloud.gsuiteaddons.v1.GetDeploymentRequest(.google.cloud.gsuiteaddons.v1.Deployment"2ÚAname‚Óä“%#/v1/{name=projects/*/deployments/*}´
-ListDeployments4.google.cloud.gsuiteaddons.v1.ListDeploymentsRequest5.google.cloud.gsuiteaddons.v1.ListDeploymentsResponse"4ÚAparent‚Óä“%#/v1/{parent=projects/*}/deployments•
-DeleteDeployment5.google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest.google.protobuf.Empty"2ÚAname‚Óä“%*#/v1/{name=projects/*/deployments/*}¢
-InstallDeployment6.google.cloud.gsuiteaddons.v1.InstallDeploymentRequest.google.protobuf.Empty"=ÚAname‚Óä“0"+/v1/{name=projects/*/deployments/*}:install:*¨
-UninstallDeployment8.google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest.google.protobuf.Empty"?ÚAname‚Óä“2"-/v1/{name=projects/*/deployments/*}:uninstall:*¸
-GetInstallStatus5.google.cloud.gsuiteaddons.v1.GetInstallStatusRequest+.google.cloud.gsuiteaddons.v1.InstallStatus"@ÚAname‚Óä“31/v1/{name=projects/*/deployments/*/installStatus}OÊAgsuiteaddons.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBÝ
- com.google.cloud.gsuiteaddons.v1BGSuiteAddOnsProtoPZDcloud.google.com/go/gsuiteaddons/apiv1/gsuiteaddonspb;gsuiteaddonspbªGoogle.Cloud.GSuiteAddOns.V1ÊGoogle\\Cloud\\GSuiteAddOns\\V1êGoogle::Cloud::GSuiteAddOns::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/AddOns.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/AddOns.php
deleted file mode 100644
index e03bb68d1fd1..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/AddOns.php
+++ /dev/null
@@ -1,385 +0,0 @@
-google.cloud.gsuiteaddons.v1.AddOns
- */
-class AddOns extends \Google\Protobuf\Internal\Message
-{
- /**
- * Configuration that is common across all Google Workspace Add-ons.
- *
- * Generated from protobuf field .google.apps.script.type.CommonAddOnManifest common = 1;
- */
- protected $common = null;
- /**
- * Gmail add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;
- */
- protected $gmail = null;
- /**
- * Drive add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.drive.DriveAddOnManifest drive = 5;
- */
- protected $drive = null;
- /**
- * Calendar add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;
- */
- protected $calendar = null;
- /**
- * Docs add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.docs.DocsAddOnManifest docs = 7;
- */
- protected $docs = null;
- /**
- * Sheets add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;
- */
- protected $sheets = null;
- /**
- * Slides add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.slides.SlidesAddOnManifest slides = 10;
- */
- protected $slides = null;
- /**
- * Options for sending requests to add-on HTTP endpoints
- *
- * Generated from protobuf field .google.apps.script.type.HttpOptions http_options = 15;
- */
- protected $http_options = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Apps\Script\Type\CommonAddOnManifest $common
- * Configuration that is common across all Google Workspace Add-ons.
- * @type \Google\Apps\Script\Type\Gmail\GmailAddOnManifest $gmail
- * Gmail add-on configuration.
- * @type \Google\Apps\Script\Type\Drive\DriveAddOnManifest $drive
- * Drive add-on configuration.
- * @type \Google\Apps\Script\Type\Calendar\CalendarAddOnManifest $calendar
- * Calendar add-on configuration.
- * @type \Google\Apps\Script\Type\Docs\DocsAddOnManifest $docs
- * Docs add-on configuration.
- * @type \Google\Apps\Script\Type\Sheets\SheetsAddOnManifest $sheets
- * Sheets add-on configuration.
- * @type \Google\Apps\Script\Type\Slides\SlidesAddOnManifest $slides
- * Slides add-on configuration.
- * @type \Google\Apps\Script\Type\HttpOptions $http_options
- * Options for sending requests to add-on HTTP endpoints
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gsuiteaddons\V1\Gsuiteaddons::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Configuration that is common across all Google Workspace Add-ons.
- *
- * Generated from protobuf field .google.apps.script.type.CommonAddOnManifest common = 1;
- * @return \Google\Apps\Script\Type\CommonAddOnManifest|null
- */
- public function getCommon()
- {
- return $this->common;
- }
-
- public function hasCommon()
- {
- return isset($this->common);
- }
-
- public function clearCommon()
- {
- unset($this->common);
- }
-
- /**
- * Configuration that is common across all Google Workspace Add-ons.
- *
- * Generated from protobuf field .google.apps.script.type.CommonAddOnManifest common = 1;
- * @param \Google\Apps\Script\Type\CommonAddOnManifest $var
- * @return $this
- */
- public function setCommon($var)
- {
- GPBUtil::checkMessage($var, \Google\Apps\Script\Type\CommonAddOnManifest::class);
- $this->common = $var;
-
- return $this;
- }
-
- /**
- * Gmail add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;
- * @return \Google\Apps\Script\Type\Gmail\GmailAddOnManifest|null
- */
- public function getGmail()
- {
- return $this->gmail;
- }
-
- public function hasGmail()
- {
- return isset($this->gmail);
- }
-
- public function clearGmail()
- {
- unset($this->gmail);
- }
-
- /**
- * Gmail add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.gmail.GmailAddOnManifest gmail = 2;
- * @param \Google\Apps\Script\Type\Gmail\GmailAddOnManifest $var
- * @return $this
- */
- public function setGmail($var)
- {
- GPBUtil::checkMessage($var, \Google\Apps\Script\Type\Gmail\GmailAddOnManifest::class);
- $this->gmail = $var;
-
- return $this;
- }
-
- /**
- * Drive add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.drive.DriveAddOnManifest drive = 5;
- * @return \Google\Apps\Script\Type\Drive\DriveAddOnManifest|null
- */
- public function getDrive()
- {
- return $this->drive;
- }
-
- public function hasDrive()
- {
- return isset($this->drive);
- }
-
- public function clearDrive()
- {
- unset($this->drive);
- }
-
- /**
- * Drive add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.drive.DriveAddOnManifest drive = 5;
- * @param \Google\Apps\Script\Type\Drive\DriveAddOnManifest $var
- * @return $this
- */
- public function setDrive($var)
- {
- GPBUtil::checkMessage($var, \Google\Apps\Script\Type\Drive\DriveAddOnManifest::class);
- $this->drive = $var;
-
- return $this;
- }
-
- /**
- * Calendar add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;
- * @return \Google\Apps\Script\Type\Calendar\CalendarAddOnManifest|null
- */
- public function getCalendar()
- {
- return $this->calendar;
- }
-
- public function hasCalendar()
- {
- return isset($this->calendar);
- }
-
- public function clearCalendar()
- {
- unset($this->calendar);
- }
-
- /**
- * Calendar add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.calendar.CalendarAddOnManifest calendar = 6;
- * @param \Google\Apps\Script\Type\Calendar\CalendarAddOnManifest $var
- * @return $this
- */
- public function setCalendar($var)
- {
- GPBUtil::checkMessage($var, \Google\Apps\Script\Type\Calendar\CalendarAddOnManifest::class);
- $this->calendar = $var;
-
- return $this;
- }
-
- /**
- * Docs add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.docs.DocsAddOnManifest docs = 7;
- * @return \Google\Apps\Script\Type\Docs\DocsAddOnManifest|null
- */
- public function getDocs()
- {
- return $this->docs;
- }
-
- public function hasDocs()
- {
- return isset($this->docs);
- }
-
- public function clearDocs()
- {
- unset($this->docs);
- }
-
- /**
- * Docs add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.docs.DocsAddOnManifest docs = 7;
- * @param \Google\Apps\Script\Type\Docs\DocsAddOnManifest $var
- * @return $this
- */
- public function setDocs($var)
- {
- GPBUtil::checkMessage($var, \Google\Apps\Script\Type\Docs\DocsAddOnManifest::class);
- $this->docs = $var;
-
- return $this;
- }
-
- /**
- * Sheets add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;
- * @return \Google\Apps\Script\Type\Sheets\SheetsAddOnManifest|null
- */
- public function getSheets()
- {
- return $this->sheets;
- }
-
- public function hasSheets()
- {
- return isset($this->sheets);
- }
-
- public function clearSheets()
- {
- unset($this->sheets);
- }
-
- /**
- * Sheets add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.sheets.SheetsAddOnManifest sheets = 8;
- * @param \Google\Apps\Script\Type\Sheets\SheetsAddOnManifest $var
- * @return $this
- */
- public function setSheets($var)
- {
- GPBUtil::checkMessage($var, \Google\Apps\Script\Type\Sheets\SheetsAddOnManifest::class);
- $this->sheets = $var;
-
- return $this;
- }
-
- /**
- * Slides add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.slides.SlidesAddOnManifest slides = 10;
- * @return \Google\Apps\Script\Type\Slides\SlidesAddOnManifest|null
- */
- public function getSlides()
- {
- return $this->slides;
- }
-
- public function hasSlides()
- {
- return isset($this->slides);
- }
-
- public function clearSlides()
- {
- unset($this->slides);
- }
-
- /**
- * Slides add-on configuration.
- *
- * Generated from protobuf field .google.apps.script.type.slides.SlidesAddOnManifest slides = 10;
- * @param \Google\Apps\Script\Type\Slides\SlidesAddOnManifest $var
- * @return $this
- */
- public function setSlides($var)
- {
- GPBUtil::checkMessage($var, \Google\Apps\Script\Type\Slides\SlidesAddOnManifest::class);
- $this->slides = $var;
-
- return $this;
- }
-
- /**
- * Options for sending requests to add-on HTTP endpoints
- *
- * Generated from protobuf field .google.apps.script.type.HttpOptions http_options = 15;
- * @return \Google\Apps\Script\Type\HttpOptions|null
- */
- public function getHttpOptions()
- {
- return $this->http_options;
- }
-
- public function hasHttpOptions()
- {
- return isset($this->http_options);
- }
-
- public function clearHttpOptions()
- {
- unset($this->http_options);
- }
-
- /**
- * Options for sending requests to add-on HTTP endpoints
- *
- * Generated from protobuf field .google.apps.script.type.HttpOptions http_options = 15;
- * @param \Google\Apps\Script\Type\HttpOptions $var
- * @return $this
- */
- public function setHttpOptions($var)
- {
- GPBUtil::checkMessage($var, \Google\Apps\Script\Type\HttpOptions::class);
- $this->http_options = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/Authorization.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/Authorization.php
deleted file mode 100644
index 904cb85121ea..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/Authorization.php
+++ /dev/null
@@ -1,147 +0,0 @@
-google.cloud.gsuiteaddons.v1.Authorization
- */
-class Authorization extends \Google\Protobuf\Internal\Message
-{
- /**
- * The canonical full name of this resource.
- * Example: `projects/123/authorization`
- *
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
- /**
- * The email address of the service account used to authenticate requests to
- * add-on callback endpoints.
- *
- * Generated from protobuf field string service_account_email = 2;
- */
- protected $service_account_email = '';
- /**
- * The OAuth client ID used to obtain OAuth access tokens for a user on the
- * add-on's behalf.
- *
- * Generated from protobuf field string oauth_client_id = 3;
- */
- protected $oauth_client_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * The canonical full name of this resource.
- * Example: `projects/123/authorization`
- * @type string $service_account_email
- * The email address of the service account used to authenticate requests to
- * add-on callback endpoints.
- * @type string $oauth_client_id
- * The OAuth client ID used to obtain OAuth access tokens for a user on the
- * add-on's behalf.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gsuiteaddons\V1\Gsuiteaddons::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The canonical full name of this resource.
- * Example: `projects/123/authorization`
- *
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * The canonical full name of this resource.
- * Example: `projects/123/authorization`
- *
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * The email address of the service account used to authenticate requests to
- * add-on callback endpoints.
- *
- * Generated from protobuf field string service_account_email = 2;
- * @return string
- */
- public function getServiceAccountEmail()
- {
- return $this->service_account_email;
- }
-
- /**
- * The email address of the service account used to authenticate requests to
- * add-on callback endpoints.
- *
- * Generated from protobuf field string service_account_email = 2;
- * @param string $var
- * @return $this
- */
- public function setServiceAccountEmail($var)
- {
- GPBUtil::checkString($var, True);
- $this->service_account_email = $var;
-
- return $this;
- }
-
- /**
- * The OAuth client ID used to obtain OAuth access tokens for a user on the
- * add-on's behalf.
- *
- * Generated from protobuf field string oauth_client_id = 3;
- * @return string
- */
- public function getOauthClientId()
- {
- return $this->oauth_client_id;
- }
-
- /**
- * The OAuth client ID used to obtain OAuth access tokens for a user on the
- * add-on's behalf.
- *
- * Generated from protobuf field string oauth_client_id = 3;
- * @param string $var
- * @return $this
- */
- public function setOauthClientId($var)
- {
- GPBUtil::checkString($var, True);
- $this->oauth_client_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/CreateDeploymentRequest.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/CreateDeploymentRequest.php
deleted file mode 100644
index 58cf6cc05a17..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/CreateDeploymentRequest.php
+++ /dev/null
@@ -1,174 +0,0 @@
-google.cloud.gsuiteaddons.v1.CreateDeploymentRequest
- */
-class CreateDeploymentRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the project in which to create the deployment.
- * Example: `projects/my_project`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. The id to use for this deployment. The full name of the created
- * resource will be `projects//deployments/`.
- *
- * Generated from protobuf field string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $deployment_id = '';
- /**
- * Required. The deployment to create (deployment.name cannot be set).
- *
- * Generated from protobuf field .google.cloud.gsuiteaddons.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $deployment = null;
-
- /**
- * @param string $parent Required. Name of the project in which to create the deployment.
- *
- * Example: `projects/my_project`. Please see
- * {@see GSuiteAddOnsClient::projectName()} for help formatting this field.
- * @param \Google\Cloud\GSuiteAddOns\V1\Deployment $deployment Required. The deployment to create (deployment.name cannot be set).
- * @param string $deploymentId Required. The id to use for this deployment. The full name of the created
- * resource will be `projects//deployments/`.
- *
- * @return \Google\Cloud\GSuiteAddOns\V1\CreateDeploymentRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\GSuiteAddOns\V1\Deployment $deployment, string $deploymentId): self
- {
- return (new self())
- ->setParent($parent)
- ->setDeployment($deployment)
- ->setDeploymentId($deploymentId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. Name of the project in which to create the deployment.
- * Example: `projects/my_project`.
- * @type string $deployment_id
- * Required. The id to use for this deployment. The full name of the created
- * resource will be `projects//deployments/`.
- * @type \Google\Cloud\GSuiteAddOns\V1\Deployment $deployment
- * Required. The deployment to create (deployment.name cannot be set).
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gsuiteaddons\V1\Gsuiteaddons::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the project in which to create the deployment.
- * Example: `projects/my_project`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. Name of the project in which to create the deployment.
- * Example: `projects/my_project`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. The id to use for this deployment. The full name of the created
- * resource will be `projects//deployments/`.
- *
- * Generated from protobuf field string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getDeploymentId()
- {
- return $this->deployment_id;
- }
-
- /**
- * Required. The id to use for this deployment. The full name of the created
- * resource will be `projects//deployments/`.
- *
- * Generated from protobuf field string deployment_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setDeploymentId($var)
- {
- GPBUtil::checkString($var, True);
- $this->deployment_id = $var;
-
- return $this;
- }
-
- /**
- * Required. The deployment to create (deployment.name cannot be set).
- *
- * Generated from protobuf field .google.cloud.gsuiteaddons.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\GSuiteAddOns\V1\Deployment|null
- */
- public function getDeployment()
- {
- return $this->deployment;
- }
-
- public function hasDeployment()
- {
- return isset($this->deployment);
- }
-
- public function clearDeployment()
- {
- unset($this->deployment);
- }
-
- /**
- * Required. The deployment to create (deployment.name cannot be set).
- *
- * Generated from protobuf field .google.cloud.gsuiteaddons.v1.Deployment deployment = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\GSuiteAddOns\V1\Deployment $var
- * @return $this
- */
- public function setDeployment($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GSuiteAddOns\V1\Deployment::class);
- $this->deployment = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/DeleteDeploymentRequest.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/DeleteDeploymentRequest.php
deleted file mode 100644
index fd86c02f4bad..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/DeleteDeploymentRequest.php
+++ /dev/null
@@ -1,125 +0,0 @@
-google.cloud.gsuiteaddons.v1.DeleteDeploymentRequest
- */
-class DeleteDeploymentRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The full resource name of the deployment to delete.
- * Example: `projects/my_project/deployments/my_deployment`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * The etag of the deployment to delete.
- * If this is provided, it must match the server's etag.
- *
- * Generated from protobuf field string etag = 2;
- */
- protected $etag = '';
-
- /**
- * @param string $name Required. The full resource name of the deployment to delete.
- *
- * Example: `projects/my_project/deployments/my_deployment`. Please see
- * {@see GSuiteAddOnsClient::deploymentName()} for help formatting this field.
- *
- * @return \Google\Cloud\GSuiteAddOns\V1\DeleteDeploymentRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The full resource name of the deployment to delete.
- * Example: `projects/my_project/deployments/my_deployment`.
- * @type string $etag
- * The etag of the deployment to delete.
- * If this is provided, it must match the server's etag.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gsuiteaddons\V1\Gsuiteaddons::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The full resource name of the deployment to delete.
- * Example: `projects/my_project/deployments/my_deployment`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The full resource name of the deployment to delete.
- * Example: `projects/my_project/deployments/my_deployment`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * The etag of the deployment to delete.
- * If this is provided, it must match the server's etag.
- *
- * Generated from protobuf field string etag = 2;
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * The etag of the deployment to delete.
- * If this is provided, it must match the server's etag.
- *
- * Generated from protobuf field string etag = 2;
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/Deployment.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/Deployment.php
deleted file mode 100644
index 4eb8c8fefa1d..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/Deployment.php
+++ /dev/null
@@ -1,195 +0,0 @@
-google.cloud.gsuiteaddons.v1.Deployment
- */
-class Deployment extends \Google\Protobuf\Internal\Message
-{
- /**
- * The deployment resource name.
- * Example: projects/123/deployments/my_deployment.
- *
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
- /**
- * The list of Google OAuth scopes for which to request consent from the end
- * user before executing an add-on endpoint.
- *
- * Generated from protobuf field repeated string oauth_scopes = 2;
- */
- private $oauth_scopes;
- /**
- * The Google Workspace Add-on configuration.
- *
- * Generated from protobuf field .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;
- */
- protected $add_ons = null;
- /**
- * This value is computed by the server based on the version of the
- * deployment in storage, and may be sent on update and delete requests to
- * ensure the client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5;
- */
- protected $etag = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * The deployment resource name.
- * Example: projects/123/deployments/my_deployment.
- * @type array|\Google\Protobuf\Internal\RepeatedField $oauth_scopes
- * The list of Google OAuth scopes for which to request consent from the end
- * user before executing an add-on endpoint.
- * @type \Google\Cloud\GSuiteAddOns\V1\AddOns $add_ons
- * The Google Workspace Add-on configuration.
- * @type string $etag
- * This value is computed by the server based on the version of the
- * deployment in storage, and may be sent on update and delete requests to
- * ensure the client has an up-to-date value before proceeding.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gsuiteaddons\V1\Gsuiteaddons::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The deployment resource name.
- * Example: projects/123/deployments/my_deployment.
- *
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * The deployment resource name.
- * Example: projects/123/deployments/my_deployment.
- *
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * The list of Google OAuth scopes for which to request consent from the end
- * user before executing an add-on endpoint.
- *
- * Generated from protobuf field repeated string oauth_scopes = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getOauthScopes()
- {
- return $this->oauth_scopes;
- }
-
- /**
- * The list of Google OAuth scopes for which to request consent from the end
- * user before executing an add-on endpoint.
- *
- * Generated from protobuf field repeated string oauth_scopes = 2;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setOauthScopes($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->oauth_scopes = $arr;
-
- return $this;
- }
-
- /**
- * The Google Workspace Add-on configuration.
- *
- * Generated from protobuf field .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;
- * @return \Google\Cloud\GSuiteAddOns\V1\AddOns|null
- */
- public function getAddOns()
- {
- return $this->add_ons;
- }
-
- public function hasAddOns()
- {
- return isset($this->add_ons);
- }
-
- public function clearAddOns()
- {
- unset($this->add_ons);
- }
-
- /**
- * The Google Workspace Add-on configuration.
- *
- * Generated from protobuf field .google.cloud.gsuiteaddons.v1.AddOns add_ons = 3;
- * @param \Google\Cloud\GSuiteAddOns\V1\AddOns $var
- * @return $this
- */
- public function setAddOns($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GSuiteAddOns\V1\AddOns::class);
- $this->add_ons = $var;
-
- return $this;
- }
-
- /**
- * This value is computed by the server based on the version of the
- * deployment in storage, and may be sent on update and delete requests to
- * ensure the client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5;
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * This value is computed by the server based on the version of the
- * deployment in storage, and may be sent on update and delete requests to
- * ensure the client has an up-to-date value before proceeding.
- *
- * Generated from protobuf field string etag = 5;
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/GetAuthorizationRequest.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/GetAuthorizationRequest.php
deleted file mode 100644
index 431a860fb261..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/GetAuthorizationRequest.php
+++ /dev/null
@@ -1,92 +0,0 @@
-google.cloud.gsuiteaddons.v1.GetAuthorizationRequest
- */
-class GetAuthorizationRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the project for which to get the Google Workspace Add-ons
- * authorization information.
- * Example: `projects/my_project/authorization`.
- *
- * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the project for which to get the Google Workspace Add-ons
- * authorization information.
- *
- * Example: `projects/my_project/authorization`. Please see
- * {@see GSuiteAddOnsClient::authorizationName()} for help formatting this field.
- *
- * @return \Google\Cloud\GSuiteAddOns\V1\GetAuthorizationRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the project for which to get the Google Workspace Add-ons
- * authorization information.
- * Example: `projects/my_project/authorization`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gsuiteaddons\V1\Gsuiteaddons::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the project for which to get the Google Workspace Add-ons
- * authorization information.
- * Example: `projects/my_project/authorization`.
- *
- * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the project for which to get the Google Workspace Add-ons
- * authorization information.
- * Example: `projects/my_project/authorization`.
- *
- * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/GetDeploymentRequest.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/GetDeploymentRequest.php
deleted file mode 100644
index 6de539926055..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/GetDeploymentRequest.php
+++ /dev/null
@@ -1,87 +0,0 @@
-google.cloud.gsuiteaddons.v1.GetDeploymentRequest
- */
-class GetDeploymentRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The full resource name of the deployment to get.
- * Example: `projects/my_project/deployments/my_deployment`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. The full resource name of the deployment to get.
- *
- * Example: `projects/my_project/deployments/my_deployment`. Please see
- * {@see GSuiteAddOnsClient::deploymentName()} for help formatting this field.
- *
- * @return \Google\Cloud\GSuiteAddOns\V1\GetDeploymentRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The full resource name of the deployment to get.
- * Example: `projects/my_project/deployments/my_deployment`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gsuiteaddons\V1\Gsuiteaddons::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The full resource name of the deployment to get.
- * Example: `projects/my_project/deployments/my_deployment`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The full resource name of the deployment to get.
- * Example: `projects/my_project/deployments/my_deployment`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/GetInstallStatusRequest.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/GetInstallStatusRequest.php
deleted file mode 100644
index e326d58f39be..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/GetInstallStatusRequest.php
+++ /dev/null
@@ -1,87 +0,0 @@
-google.cloud.gsuiteaddons.v1.GetInstallStatusRequest
- */
-class GetInstallStatusRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The full resource name of the deployment.
- * Example: `projects/my_project/deployments/my_deployment/installStatus`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. The full resource name of the deployment.
- *
- * Example: `projects/my_project/deployments/my_deployment/installStatus`. Please see
- * {@see GSuiteAddOnsClient::installStatusName()} for help formatting this field.
- *
- * @return \Google\Cloud\GSuiteAddOns\V1\GetInstallStatusRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The full resource name of the deployment.
- * Example: `projects/my_project/deployments/my_deployment/installStatus`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gsuiteaddons\V1\Gsuiteaddons::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The full resource name of the deployment.
- * Example: `projects/my_project/deployments/my_deployment/installStatus`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The full resource name of the deployment.
- * Example: `projects/my_project/deployments/my_deployment/installStatus`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/InstallDeploymentRequest.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/InstallDeploymentRequest.php
deleted file mode 100644
index c0cddef7f5b5..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/InstallDeploymentRequest.php
+++ /dev/null
@@ -1,87 +0,0 @@
-google.cloud.gsuiteaddons.v1.InstallDeploymentRequest
- */
-class InstallDeploymentRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The full resource name of the deployment to install.
- * Example: `projects/my_project/deployments/my_deployment`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. The full resource name of the deployment to install.
- *
- * Example: `projects/my_project/deployments/my_deployment`. Please see
- * {@see GSuiteAddOnsClient::deploymentName()} for help formatting this field.
- *
- * @return \Google\Cloud\GSuiteAddOns\V1\InstallDeploymentRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The full resource name of the deployment to install.
- * Example: `projects/my_project/deployments/my_deployment`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gsuiteaddons\V1\Gsuiteaddons::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The full resource name of the deployment to install.
- * Example: `projects/my_project/deployments/my_deployment`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The full resource name of the deployment to install.
- * Example: `projects/my_project/deployments/my_deployment`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/InstallStatus.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/InstallStatus.php
deleted file mode 100644
index d3636bd3028c..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/InstallStatus.php
+++ /dev/null
@@ -1,142 +0,0 @@
-google.cloud.gsuiteaddons.v1.InstallStatus
- */
-class InstallStatus extends \Google\Protobuf\Internal\Message
-{
- /**
- * The canonical full resource name of the deployment install status.
- * Example: `projects/123/deployments/my_deployment/installStatus`.
- *
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
- /**
- * True if the deployment is installed for the user
- *
- * Generated from protobuf field .google.protobuf.BoolValue installed = 2;
- */
- protected $installed = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * The canonical full resource name of the deployment install status.
- * Example: `projects/123/deployments/my_deployment/installStatus`.
- * @type \Google\Protobuf\BoolValue $installed
- * True if the deployment is installed for the user
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gsuiteaddons\V1\Gsuiteaddons::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The canonical full resource name of the deployment install status.
- * Example: `projects/123/deployments/my_deployment/installStatus`.
- *
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * The canonical full resource name of the deployment install status.
- * Example: `projects/123/deployments/my_deployment/installStatus`.
- *
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * True if the deployment is installed for the user
- *
- * Generated from protobuf field .google.protobuf.BoolValue installed = 2;
- * @return \Google\Protobuf\BoolValue|null
- */
- public function getInstalled()
- {
- return $this->installed;
- }
-
- public function hasInstalled()
- {
- return isset($this->installed);
- }
-
- public function clearInstalled()
- {
- unset($this->installed);
- }
-
- /**
- * Returns the unboxed value from getInstalled()
-
- * True if the deployment is installed for the user
- *
- * Generated from protobuf field .google.protobuf.BoolValue installed = 2;
- * @return bool|null
- */
- public function getInstalledUnwrapped()
- {
- return $this->readWrapperValue("installed");
- }
-
- /**
- * True if the deployment is installed for the user
- *
- * Generated from protobuf field .google.protobuf.BoolValue installed = 2;
- * @param \Google\Protobuf\BoolValue $var
- * @return $this
- */
- public function setInstalled($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class);
- $this->installed = $var;
-
- return $this;
- }
-
- /**
- * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object.
-
- * True if the deployment is installed for the user
- *
- * Generated from protobuf field .google.protobuf.BoolValue installed = 2;
- * @param bool|null $var
- * @return $this
- */
- public function setInstalledUnwrapped($var)
- {
- $this->writeWrapperValue("installed", $var);
- return $this;}
-
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/ListDeploymentsRequest.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/ListDeploymentsRequest.php
deleted file mode 100644
index 0d3789df7934..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/ListDeploymentsRequest.php
+++ /dev/null
@@ -1,179 +0,0 @@
-google.cloud.gsuiteaddons.v1.ListDeploymentsRequest
- */
-class ListDeploymentsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the project in which to create the deployment.
- * Example: `projects/my_project`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * The maximum number of deployments to return. The service may return fewer
- * than this value.
- * If unspecified, at most 1000 deployments will be returned.
- * The maximum value is 1000; values above 1000 will be coerced to 1000.
- *
- * Generated from protobuf field int32 page_size = 2;
- */
- protected $page_size = 0;
- /**
- * A page token, received from a previous `ListDeployments` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other parameters provided to `ListDeployments` must
- * match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3;
- */
- protected $page_token = '';
-
- /**
- * @param string $parent Required. Name of the project in which to create the deployment.
- *
- * Example: `projects/my_project`. Please see
- * {@see GSuiteAddOnsClient::projectName()} for help formatting this field.
- *
- * @return \Google\Cloud\GSuiteAddOns\V1\ListDeploymentsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. Name of the project in which to create the deployment.
- * Example: `projects/my_project`.
- * @type int $page_size
- * The maximum number of deployments to return. The service may return fewer
- * than this value.
- * If unspecified, at most 1000 deployments will be returned.
- * The maximum value is 1000; values above 1000 will be coerced to 1000.
- * @type string $page_token
- * A page token, received from a previous `ListDeployments` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other parameters provided to `ListDeployments` must
- * match the call that provided the page token.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gsuiteaddons\V1\Gsuiteaddons::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the project in which to create the deployment.
- * Example: `projects/my_project`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. Name of the project in which to create the deployment.
- * Example: `projects/my_project`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * The maximum number of deployments to return. The service may return fewer
- * than this value.
- * If unspecified, at most 1000 deployments will be returned.
- * The maximum value is 1000; values above 1000 will be coerced to 1000.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * The maximum number of deployments to return. The service may return fewer
- * than this value.
- * If unspecified, at most 1000 deployments will be returned.
- * The maximum value is 1000; values above 1000 will be coerced to 1000.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * A page token, received from a previous `ListDeployments` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other parameters provided to `ListDeployments` must
- * match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * A page token, received from a previous `ListDeployments` call.
- * Provide this to retrieve the subsequent page.
- * When paginating, all other parameters provided to `ListDeployments` must
- * match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/ListDeploymentsResponse.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/ListDeploymentsResponse.php
deleted file mode 100644
index 4a2b06a63091..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/ListDeploymentsResponse.php
+++ /dev/null
@@ -1,105 +0,0 @@
-google.cloud.gsuiteaddons.v1.ListDeploymentsResponse
- */
-class ListDeploymentsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The list of deployments for the given project.
- *
- * Generated from protobuf field repeated .google.cloud.gsuiteaddons.v1.Deployment deployments = 1;
- */
- private $deployments;
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GSuiteAddOns\V1\Deployment>|\Google\Protobuf\Internal\RepeatedField $deployments
- * The list of deployments for the given project.
- * @type string $next_page_token
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gsuiteaddons\V1\Gsuiteaddons::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The list of deployments for the given project.
- *
- * Generated from protobuf field repeated .google.cloud.gsuiteaddons.v1.Deployment deployments = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getDeployments()
- {
- return $this->deployments;
- }
-
- /**
- * The list of deployments for the given project.
- *
- * Generated from protobuf field repeated .google.cloud.gsuiteaddons.v1.Deployment deployments = 1;
- * @param array<\Google\Cloud\GSuiteAddOns\V1\Deployment>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setDeployments($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GSuiteAddOns\V1\Deployment::class);
- $this->deployments = $arr;
-
- return $this;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token, which can be sent as `page_token` to retrieve the next page.
- * If this field is omitted, there are no subsequent pages.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/ReplaceDeploymentRequest.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/ReplaceDeploymentRequest.php
deleted file mode 100644
index 3a79b65b564f..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/ReplaceDeploymentRequest.php
+++ /dev/null
@@ -1,90 +0,0 @@
-google.cloud.gsuiteaddons.v1.ReplaceDeploymentRequest
- */
-class ReplaceDeploymentRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The deployment to create or replace.
- *
- * Generated from protobuf field .google.cloud.gsuiteaddons.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $deployment = null;
-
- /**
- * @param \Google\Cloud\GSuiteAddOns\V1\Deployment $deployment Required. The deployment to create or replace.
- *
- * @return \Google\Cloud\GSuiteAddOns\V1\ReplaceDeploymentRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\GSuiteAddOns\V1\Deployment $deployment): self
- {
- return (new self())
- ->setDeployment($deployment);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GSuiteAddOns\V1\Deployment $deployment
- * Required. The deployment to create or replace.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gsuiteaddons\V1\Gsuiteaddons::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The deployment to create or replace.
- *
- * Generated from protobuf field .google.cloud.gsuiteaddons.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\GSuiteAddOns\V1\Deployment|null
- */
- public function getDeployment()
- {
- return $this->deployment;
- }
-
- public function hasDeployment()
- {
- return isset($this->deployment);
- }
-
- public function clearDeployment()
- {
- unset($this->deployment);
- }
-
- /**
- * Required. The deployment to create or replace.
- *
- * Generated from protobuf field .google.cloud.gsuiteaddons.v1.Deployment deployment = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\GSuiteAddOns\V1\Deployment $var
- * @return $this
- */
- public function setDeployment($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GSuiteAddOns\V1\Deployment::class);
- $this->deployment = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/UninstallDeploymentRequest.php b/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/UninstallDeploymentRequest.php
deleted file mode 100644
index 92f1cbe2a500..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/proto/src/Google/Cloud/GSuiteAddOns/V1/UninstallDeploymentRequest.php
+++ /dev/null
@@ -1,87 +0,0 @@
-google.cloud.gsuiteaddons.v1.UninstallDeploymentRequest
- */
-class UninstallDeploymentRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The full resource name of the deployment to install.
- * Example: `projects/my_project/deployments/my_deployment`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. The full resource name of the deployment to install.
- *
- * Example: `projects/my_project/deployments/my_deployment`. Please see
- * {@see GSuiteAddOnsClient::deploymentName()} for help formatting this field.
- *
- * @return \Google\Cloud\GSuiteAddOns\V1\UninstallDeploymentRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The full resource name of the deployment to install.
- * Example: `projects/my_project/deployments/my_deployment`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gsuiteaddons\V1\Gsuiteaddons::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The full resource name of the deployment to install.
- * Example: `projects/my_project/deployments/my_deployment`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The full resource name of the deployment to install.
- * Example: `projects/my_project/deployments/my_deployment`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/create_deployment.php b/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/create_deployment.php
deleted file mode 100644
index baf041f1bb7c..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/create_deployment.php
+++ /dev/null
@@ -1,79 +0,0 @@
-/deployments/`.
- */
-function create_deployment_sample(string $formattedParent, string $deploymentId): void
-{
- // Create a client.
- $gSuiteAddOnsClient = new GSuiteAddOnsClient();
-
- // Prepare the request message.
- $deployment = new Deployment();
- $request = (new CreateDeploymentRequest())
- ->setParent($formattedParent)
- ->setDeploymentId($deploymentId)
- ->setDeployment($deployment);
-
- // Call the API and handle any network failures.
- try {
- /** @var Deployment $response */
- $response = $gSuiteAddOnsClient->createDeployment($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = GSuiteAddOnsClient::projectName('[PROJECT]');
- $deploymentId = '[DEPLOYMENT_ID]';
-
- create_deployment_sample($formattedParent, $deploymentId);
-}
-// [END gsuiteaddons_v1_generated_GSuiteAddOns_CreateDeployment_sync]
diff --git a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/delete_deployment.php b/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/delete_deployment.php
deleted file mode 100644
index 824f86a5787b..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/delete_deployment.php
+++ /dev/null
@@ -1,71 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- $gSuiteAddOnsClient->deleteDeployment($request);
- printf('Call completed successfully.' . PHP_EOL);
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = GSuiteAddOnsClient::deploymentName('[PROJECT]', '[DEPLOYMENT]');
-
- delete_deployment_sample($formattedName);
-}
-// [END gsuiteaddons_v1_generated_GSuiteAddOns_DeleteDeployment_sync]
diff --git a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/get_authorization.php b/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/get_authorization.php
deleted file mode 100644
index 4bca0f1443b9..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/get_authorization.php
+++ /dev/null
@@ -1,74 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Authorization $response */
- $response = $gSuiteAddOnsClient->getAuthorization($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = GSuiteAddOnsClient::authorizationName('[PROJECT]');
-
- get_authorization_sample($formattedName);
-}
-// [END gsuiteaddons_v1_generated_GSuiteAddOns_GetAuthorization_sync]
diff --git a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/get_deployment.php b/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/get_deployment.php
deleted file mode 100644
index 6aa1041d3d79..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/get_deployment.php
+++ /dev/null
@@ -1,73 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Deployment $response */
- $response = $gSuiteAddOnsClient->getDeployment($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = GSuiteAddOnsClient::deploymentName('[PROJECT]', '[DEPLOYMENT]');
-
- get_deployment_sample($formattedName);
-}
-// [END gsuiteaddons_v1_generated_GSuiteAddOns_GetDeployment_sync]
diff --git a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/get_install_status.php b/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/get_install_status.php
deleted file mode 100644
index 7b998f8a5f90..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/get_install_status.php
+++ /dev/null
@@ -1,73 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var InstallStatus $response */
- $response = $gSuiteAddOnsClient->getInstallStatus($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = GSuiteAddOnsClient::installStatusName('[PROJECT]', '[DEPLOYMENT]');
-
- get_install_status_sample($formattedName);
-}
-// [END gsuiteaddons_v1_generated_GSuiteAddOns_GetInstallStatus_sync]
diff --git a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/install_deployment.php b/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/install_deployment.php
deleted file mode 100644
index f1775aa4c012..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/install_deployment.php
+++ /dev/null
@@ -1,73 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- $gSuiteAddOnsClient->installDeployment($request);
- printf('Call completed successfully.' . PHP_EOL);
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = GSuiteAddOnsClient::deploymentName('[PROJECT]', '[DEPLOYMENT]');
-
- install_deployment_sample($formattedName);
-}
-// [END gsuiteaddons_v1_generated_GSuiteAddOns_InstallDeployment_sync]
diff --git a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/list_deployments.php b/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/list_deployments.php
deleted file mode 100644
index 1da0a6794a02..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/list_deployments.php
+++ /dev/null
@@ -1,78 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $gSuiteAddOnsClient->listDeployments($request);
-
- /** @var Deployment $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = GSuiteAddOnsClient::projectName('[PROJECT]');
-
- list_deployments_sample($formattedParent);
-}
-// [END gsuiteaddons_v1_generated_GSuiteAddOns_ListDeployments_sync]
diff --git a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/replace_deployment.php b/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/replace_deployment.php
deleted file mode 100644
index 66a9a0810218..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/replace_deployment.php
+++ /dev/null
@@ -1,59 +0,0 @@
-setDeployment($deployment);
-
- // Call the API and handle any network failures.
- try {
- /** @var Deployment $response */
- $response = $gSuiteAddOnsClient->replaceDeployment($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END gsuiteaddons_v1_generated_GSuiteAddOns_ReplaceDeployment_sync]
diff --git a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/uninstall_deployment.php b/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/uninstall_deployment.php
deleted file mode 100644
index 6e64b75d1a86..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/samples/V1/GSuiteAddOnsClient/uninstall_deployment.php
+++ /dev/null
@@ -1,73 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- $gSuiteAddOnsClient->uninstallDeployment($request);
- printf('Call completed successfully.' . PHP_EOL);
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = GSuiteAddOnsClient::deploymentName('[PROJECT]', '[DEPLOYMENT]');
-
- uninstall_deployment_sample($formattedName);
-}
-// [END gsuiteaddons_v1_generated_GSuiteAddOns_UninstallDeployment_sync]
diff --git a/owl-bot-staging/GSuiteAddOns/v1/src/V1/Client/GSuiteAddOnsClient.php b/owl-bot-staging/GSuiteAddOns/v1/src/V1/Client/GSuiteAddOnsClient.php
deleted file mode 100644
index 4d41c69864e0..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/src/V1/Client/GSuiteAddOnsClient.php
+++ /dev/null
@@ -1,543 +0,0 @@
- createDeploymentAsync(CreateDeploymentRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteDeploymentAsync(DeleteDeploymentRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getAuthorizationAsync(GetAuthorizationRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getDeploymentAsync(GetDeploymentRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getInstallStatusAsync(GetInstallStatusRequest $request, array $optionalArgs = [])
- * @method PromiseInterface installDeploymentAsync(InstallDeploymentRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listDeploymentsAsync(ListDeploymentsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface replaceDeploymentAsync(ReplaceDeploymentRequest $request, array $optionalArgs = [])
- * @method PromiseInterface uninstallDeploymentAsync(UninstallDeploymentRequest $request, array $optionalArgs = [])
- */
-final class GSuiteAddOnsClient
-{
- use GapicClientTrait;
- use ResourceHelperTrait;
-
- /** The name of the service. */
- private const SERVICE_NAME = 'google.cloud.gsuiteaddons.v1.GSuiteAddOns';
-
- /**
- * The default address of the service.
- *
- * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
- */
- private const SERVICE_ADDRESS = 'gsuiteaddons.googleapis.com';
-
- /** The address template of the service. */
- private const SERVICE_ADDRESS_TEMPLATE = 'gsuiteaddons.UNIVERSE_DOMAIN';
-
- /** The default port of the service. */
- private const DEFAULT_SERVICE_PORT = 443;
-
- /** The name of the code generator, to be included in the agent header. */
- private const CODEGEN_NAME = 'gapic';
-
- /** The default scopes required by the service. */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- ];
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/g_suite_add_ons_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/g_suite_add_ons_descriptor_config.php',
- 'gcpApiConfigPath' => __DIR__ . '/../resources/g_suite_add_ons_grpc_config.json',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/g_suite_add_ons_rest_client_config.php',
- ],
- ],
- ];
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a
- * authorization resource.
- *
- * @param string $project
- *
- * @return string The formatted authorization resource.
- */
- public static function authorizationName(string $project): string
- {
- return self::getPathTemplate('authorization')->render([
- 'project' => $project,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a deployment
- * resource.
- *
- * @param string $project
- * @param string $deployment
- *
- * @return string The formatted deployment resource.
- */
- public static function deploymentName(string $project, string $deployment): string
- {
- return self::getPathTemplate('deployment')->render([
- 'project' => $project,
- 'deployment' => $deployment,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a
- * install_status resource.
- *
- * @param string $project
- * @param string $deployment
- *
- * @return string The formatted install_status resource.
- */
- public static function installStatusName(string $project, string $deployment): string
- {
- return self::getPathTemplate('installStatus')->render([
- 'project' => $project,
- 'deployment' => $deployment,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a project
- * resource.
- *
- * @param string $project
- *
- * @return string The formatted project resource.
- */
- public static function projectName(string $project): string
- {
- return self::getPathTemplate('project')->render([
- 'project' => $project,
- ]);
- }
-
- /**
- * Parses a formatted name string and returns an associative array of the components in the name.
- * The following name formats are supported:
- * Template: Pattern
- * - authorization: projects/{project}/authorization
- * - deployment: projects/{project}/deployments/{deployment}
- * - installStatus: projects/{project}/deployments/{deployment}/installStatus
- * - project: projects/{project}
- *
- * The optional $template argument can be supplied to specify a particular pattern,
- * and must match one of the templates listed above. If no $template argument is
- * provided, or if the $template argument does not match one of the templates
- * listed, then parseName will check each of the supported templates, and return
- * the first match.
- *
- * @param string $formattedName The formatted name string
- * @param ?string $template Optional name of template to match
- *
- * @return array An associative array from name component IDs to component values.
- *
- * @throws ValidationException If $formattedName could not be matched.
- */
- public static function parseName(string $formattedName, ?string $template = null): array
- {
- return self::parseFormattedName($formattedName, $template);
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'gsuiteaddons.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. May be either the string
- * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
- * *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'grpc' => [...],
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and
- * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * @type false|LoggerInterface $logger
- * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
- * 'GOOGLE_SDK_PHP_LOGGING' environment flag
- * }
- *
- * @throws ValidationException
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- }
-
- /** Handles execution of the async variants for each documented method. */
- public function __call($method, $args)
- {
- if (substr($method, -5) !== 'Async') {
- trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR);
- }
-
- array_unshift($args, substr($method, 0, -5));
- return call_user_func_array([$this, 'startAsyncCall'], $args);
- }
-
- /**
- * Creates a deployment with the specified name and configuration.
- *
- * The async variant is {@see GSuiteAddOnsClient::createDeploymentAsync()} .
- *
- * @example samples/V1/GSuiteAddOnsClient/create_deployment.php
- *
- * @param CreateDeploymentRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Deployment
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createDeployment(CreateDeploymentRequest $request, array $callOptions = []): Deployment
- {
- return $this->startApiCall('CreateDeployment', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes the deployment with the given name.
- *
- * The async variant is {@see GSuiteAddOnsClient::deleteDeploymentAsync()} .
- *
- * @example samples/V1/GSuiteAddOnsClient/delete_deployment.php
- *
- * @param DeleteDeploymentRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Thrown if the API call fails.
- */
- public function deleteDeployment(DeleteDeploymentRequest $request, array $callOptions = []): void
- {
- $this->startApiCall('DeleteDeployment', $request, $callOptions)->wait();
- }
-
- /**
- * Gets the authorization information for deployments in a given project.
- *
- * The async variant is {@see GSuiteAddOnsClient::getAuthorizationAsync()} .
- *
- * @example samples/V1/GSuiteAddOnsClient/get_authorization.php
- *
- * @param GetAuthorizationRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Authorization
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getAuthorization(GetAuthorizationRequest $request, array $callOptions = []): Authorization
- {
- return $this->startApiCall('GetAuthorization', $request, $callOptions)->wait();
- }
-
- /**
- * Gets the deployment with the specified name.
- *
- * The async variant is {@see GSuiteAddOnsClient::getDeploymentAsync()} .
- *
- * @example samples/V1/GSuiteAddOnsClient/get_deployment.php
- *
- * @param GetDeploymentRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Deployment
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getDeployment(GetDeploymentRequest $request, array $callOptions = []): Deployment
- {
- return $this->startApiCall('GetDeployment', $request, $callOptions)->wait();
- }
-
- /**
- * Fetches the install status of a developer mode deployment.
- *
- * The async variant is {@see GSuiteAddOnsClient::getInstallStatusAsync()} .
- *
- * @example samples/V1/GSuiteAddOnsClient/get_install_status.php
- *
- * @param GetInstallStatusRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 InstallStatus
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getInstallStatus(GetInstallStatusRequest $request, array $callOptions = []): InstallStatus
- {
- return $this->startApiCall('GetInstallStatus', $request, $callOptions)->wait();
- }
-
- /**
- * Installs a deployment in developer mode.
- * See:
- * https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons.
- *
- * The async variant is {@see GSuiteAddOnsClient::installDeploymentAsync()} .
- *
- * @example samples/V1/GSuiteAddOnsClient/install_deployment.php
- *
- * @param InstallDeploymentRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Thrown if the API call fails.
- */
- public function installDeployment(InstallDeploymentRequest $request, array $callOptions = []): void
- {
- $this->startApiCall('InstallDeployment', $request, $callOptions)->wait();
- }
-
- /**
- * Lists all deployments in a particular project.
- *
- * The async variant is {@see GSuiteAddOnsClient::listDeploymentsAsync()} .
- *
- * @example samples/V1/GSuiteAddOnsClient/list_deployments.php
- *
- * @param ListDeploymentsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listDeployments(ListDeploymentsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListDeployments', $request, $callOptions);
- }
-
- /**
- * Creates or replaces a deployment with the specified name.
- *
- * The async variant is {@see GSuiteAddOnsClient::replaceDeploymentAsync()} .
- *
- * @example samples/V1/GSuiteAddOnsClient/replace_deployment.php
- *
- * @param ReplaceDeploymentRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Deployment
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function replaceDeployment(ReplaceDeploymentRequest $request, array $callOptions = []): Deployment
- {
- return $this->startApiCall('ReplaceDeployment', $request, $callOptions)->wait();
- }
-
- /**
- * Uninstalls a developer mode deployment.
- * See:
- * https://developers.google.com/gsuite/add-ons/how-tos/testing-gsuite-addons.
- *
- * The async variant is {@see GSuiteAddOnsClient::uninstallDeploymentAsync()} .
- *
- * @example samples/V1/GSuiteAddOnsClient/uninstall_deployment.php
- *
- * @param UninstallDeploymentRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Thrown if the API call fails.
- */
- public function uninstallDeployment(UninstallDeploymentRequest $request, array $callOptions = []): void
- {
- $this->startApiCall('UninstallDeployment', $request, $callOptions)->wait();
- }
-}
diff --git a/owl-bot-staging/GSuiteAddOns/v1/src/V1/gapic_metadata.json b/owl-bot-staging/GSuiteAddOns/v1/src/V1/gapic_metadata.json
deleted file mode 100644
index 7e5b8ce080e6..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/src/V1/gapic_metadata.json
+++ /dev/null
@@ -1,63 +0,0 @@
-{
- "schema": "1.0",
- "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods",
- "language": "php",
- "protoPackage": "google.cloud.gsuiteaddons.v1",
- "libraryPackage": "Google\\Cloud\\GSuiteAddOns\\V1",
- "services": {
- "GSuiteAddOns": {
- "clients": {
- "grpc": {
- "libraryClient": "GSuiteAddOnsGapicClient",
- "rpcs": {
- "CreateDeployment": {
- "methods": [
- "createDeployment"
- ]
- },
- "DeleteDeployment": {
- "methods": [
- "deleteDeployment"
- ]
- },
- "GetAuthorization": {
- "methods": [
- "getAuthorization"
- ]
- },
- "GetDeployment": {
- "methods": [
- "getDeployment"
- ]
- },
- "GetInstallStatus": {
- "methods": [
- "getInstallStatus"
- ]
- },
- "InstallDeployment": {
- "methods": [
- "installDeployment"
- ]
- },
- "ListDeployments": {
- "methods": [
- "listDeployments"
- ]
- },
- "ReplaceDeployment": {
- "methods": [
- "replaceDeployment"
- ]
- },
- "UninstallDeployment": {
- "methods": [
- "uninstallDeployment"
- ]
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/owl-bot-staging/GSuiteAddOns/v1/src/V1/resources/g_suite_add_ons_client_config.json b/owl-bot-staging/GSuiteAddOns/v1/src/V1/resources/g_suite_add_ons_client_config.json
deleted file mode 100644
index 72ccdb04dcea..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/src/V1/resources/g_suite_add_ons_client_config.json
+++ /dev/null
@@ -1,100 +0,0 @@
-{
- "interfaces": {
- "google.cloud.gsuiteaddons.v1.GSuiteAddOns": {
- "retry_codes": {
- "no_retry_codes": [],
- "retry_policy_1_codes": [
- "UNAVAILABLE",
- "UNKNOWN"
- ],
- "no_retry_1_codes": [],
- "no_retry_2_codes": []
- },
- "retry_params": {
- "no_retry_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 0,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 0,
- "total_timeout_millis": 0
- },
- "retry_policy_1_params": {
- "initial_retry_delay_millis": 1000,
- "retry_delay_multiplier": 1.3,
- "max_retry_delay_millis": 10000,
- "initial_rpc_timeout_millis": 10000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 10000,
- "total_timeout_millis": 10000
- },
- "no_retry_1_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 10000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 10000,
- "total_timeout_millis": 10000
- },
- "no_retry_2_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 120000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 120000,
- "total_timeout_millis": 120000
- }
- },
- "methods": {
- "CreateDeployment": {
- "timeout_millis": 10000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "DeleteDeployment": {
- "timeout_millis": 10000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "GetAuthorization": {
- "timeout_millis": 120000,
- "retry_codes_name": "no_retry_2_codes",
- "retry_params_name": "no_retry_2_params"
- },
- "GetDeployment": {
- "timeout_millis": 10000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetInstallStatus": {
- "timeout_millis": 10000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "InstallDeployment": {
- "timeout_millis": 10000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListDeployments": {
- "timeout_millis": 10000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ReplaceDeployment": {
- "timeout_millis": 10000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "UninstallDeployment": {
- "timeout_millis": 10000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- }
- }
- }
- }
-}
diff --git a/owl-bot-staging/GSuiteAddOns/v1/src/V1/resources/g_suite_add_ons_descriptor_config.php b/owl-bot-staging/GSuiteAddOns/v1/src/V1/resources/g_suite_add_ons_descriptor_config.php
deleted file mode 100644
index f85736b5ac05..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/src/V1/resources/g_suite_add_ons_descriptor_config.php
+++ /dev/null
@@ -1,151 +0,0 @@
- [
- 'google.cloud.gsuiteaddons.v1.GSuiteAddOns' => [
- 'CreateDeployment' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\GSuiteAddOns\V1\Deployment',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'DeleteDeployment' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Protobuf\GPBEmpty',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetAuthorization' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\GSuiteAddOns\V1\Authorization',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetDeployment' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\GSuiteAddOns\V1\Deployment',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetInstallStatus' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\GSuiteAddOns\V1\InstallStatus',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'InstallDeployment' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Protobuf\GPBEmpty',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListDeployments' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getDeployments',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\GSuiteAddOns\V1\ListDeploymentsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ReplaceDeployment' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\GSuiteAddOns\V1\Deployment',
- 'headerParams' => [
- [
- 'keyName' => 'deployment.name',
- 'fieldAccessors' => [
- 'getDeployment',
- 'getName',
- ],
- ],
- ],
- ],
- 'UninstallDeployment' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Protobuf\GPBEmpty',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'templateMap' => [
- 'authorization' => 'projects/{project}/authorization',
- 'deployment' => 'projects/{project}/deployments/{deployment}',
- 'installStatus' => 'projects/{project}/deployments/{deployment}/installStatus',
- 'project' => 'projects/{project}',
- ],
- ],
- ],
-];
diff --git a/owl-bot-staging/GSuiteAddOns/v1/src/V1/resources/g_suite_add_ons_rest_client_config.php b/owl-bot-staging/GSuiteAddOns/v1/src/V1/resources/g_suite_add_ons_rest_client_config.php
deleted file mode 100644
index 17fbcad14628..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/src/V1/resources/g_suite_add_ons_rest_client_config.php
+++ /dev/null
@@ -1,136 +0,0 @@
- [
- 'google.cloud.gsuiteaddons.v1.GSuiteAddOns' => [
- 'CreateDeployment' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*}/deployments',
- 'body' => 'deployment',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'deployment_id',
- ],
- ],
- 'DeleteDeployment' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/deployments/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetAuthorization' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/authorization}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetDeployment' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/deployments/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetInstallStatus' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/deployments/*/installStatus}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'InstallDeployment' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/deployments/*}:install',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListDeployments' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*}/deployments',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ReplaceDeployment' => [
- 'method' => 'put',
- 'uriTemplate' => '/v1/{deployment.name=projects/*/deployments/*}',
- 'body' => 'deployment',
- 'placeholders' => [
- 'deployment.name' => [
- 'getters' => [
- 'getDeployment',
- 'getName',
- ],
- ],
- ],
- ],
- 'UninstallDeployment' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/deployments/*}:uninstall',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- ],
- 'numericEnums' => true,
-];
diff --git a/owl-bot-staging/GSuiteAddOns/v1/tests/Unit/V1/Client/GSuiteAddOnsClientTest.php b/owl-bot-staging/GSuiteAddOns/v1/tests/Unit/V1/Client/GSuiteAddOnsClientTest.php
deleted file mode 100644
index 6bbd77211fa9..000000000000
--- a/owl-bot-staging/GSuiteAddOns/v1/tests/Unit/V1/Client/GSuiteAddOnsClientTest.php
+++ /dev/null
@@ -1,710 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return GSuiteAddOnsClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new GSuiteAddOnsClient($options);
- }
-
- /** @test */
- public function createDeploymentTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $etag = 'etag3123477';
- $expectedResponse = new Deployment();
- $expectedResponse->setName($name);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $deploymentId = 'deploymentId51250389';
- $deployment = new Deployment();
- $request = (new CreateDeploymentRequest())
- ->setParent($formattedParent)
- ->setDeploymentId($deploymentId)
- ->setDeployment($deployment);
- $response = $gapicClient->createDeployment($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gsuiteaddons.v1.GSuiteAddOns/CreateDeployment', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualRequestObject->getDeploymentId();
- $this->assertProtobufEquals($deploymentId, $actualValue);
- $actualValue = $actualRequestObject->getDeployment();
- $this->assertProtobufEquals($deployment, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createDeploymentExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $deploymentId = 'deploymentId51250389';
- $deployment = new Deployment();
- $request = (new CreateDeploymentRequest())
- ->setParent($formattedParent)
- ->setDeploymentId($deploymentId)
- ->setDeployment($deployment);
- try {
- $gapicClient->createDeployment($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteDeploymentTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->deploymentName('[PROJECT]', '[DEPLOYMENT]');
- $request = (new DeleteDeploymentRequest())
- ->setName($formattedName);
- $gapicClient->deleteDeployment($request);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gsuiteaddons.v1.GSuiteAddOns/DeleteDeployment', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function deleteDeploymentExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->deploymentName('[PROJECT]', '[DEPLOYMENT]');
- $request = (new DeleteDeploymentRequest())
- ->setName($formattedName);
- try {
- $gapicClient->deleteDeployment($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getAuthorizationTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $serviceAccountEmail = 'serviceAccountEmail-1300473088';
- $oauthClientId = 'oauthClientId-1137123737';
- $expectedResponse = new Authorization();
- $expectedResponse->setName($name2);
- $expectedResponse->setServiceAccountEmail($serviceAccountEmail);
- $expectedResponse->setOauthClientId($oauthClientId);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->authorizationName('[PROJECT]');
- $request = (new GetAuthorizationRequest())
- ->setName($formattedName);
- $response = $gapicClient->getAuthorization($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gsuiteaddons.v1.GSuiteAddOns/GetAuthorization', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getAuthorizationExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->authorizationName('[PROJECT]');
- $request = (new GetAuthorizationRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getAuthorization($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getDeploymentTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $etag = 'etag3123477';
- $expectedResponse = new Deployment();
- $expectedResponse->setName($name2);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->deploymentName('[PROJECT]', '[DEPLOYMENT]');
- $request = (new GetDeploymentRequest())
- ->setName($formattedName);
- $response = $gapicClient->getDeployment($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gsuiteaddons.v1.GSuiteAddOns/GetDeployment', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getDeploymentExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->deploymentName('[PROJECT]', '[DEPLOYMENT]');
- $request = (new GetDeploymentRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getDeployment($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getInstallStatusTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $expectedResponse = new InstallStatus();
- $expectedResponse->setName($name2);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->installStatusName('[PROJECT]', '[DEPLOYMENT]');
- $request = (new GetInstallStatusRequest())
- ->setName($formattedName);
- $response = $gapicClient->getInstallStatus($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gsuiteaddons.v1.GSuiteAddOns/GetInstallStatus', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getInstallStatusExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->installStatusName('[PROJECT]', '[DEPLOYMENT]');
- $request = (new GetInstallStatusRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getInstallStatus($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function installDeploymentTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->deploymentName('[PROJECT]', '[DEPLOYMENT]');
- $request = (new InstallDeploymentRequest())
- ->setName($formattedName);
- $gapicClient->installDeployment($request);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gsuiteaddons.v1.GSuiteAddOns/InstallDeployment', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function installDeploymentExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->deploymentName('[PROJECT]', '[DEPLOYMENT]');
- $request = (new InstallDeploymentRequest())
- ->setName($formattedName);
- try {
- $gapicClient->installDeployment($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listDeploymentsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $deploymentsElement = new Deployment();
- $deployments = [
- $deploymentsElement,
- ];
- $expectedResponse = new ListDeploymentsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setDeployments($deployments);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $request = (new ListDeploymentsRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listDeployments($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getDeployments()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gsuiteaddons.v1.GSuiteAddOns/ListDeployments', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listDeploymentsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $request = (new ListDeploymentsRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listDeployments($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function replaceDeploymentTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $etag = 'etag3123477';
- $expectedResponse = new Deployment();
- $expectedResponse->setName($name);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $deployment = new Deployment();
- $request = (new ReplaceDeploymentRequest())
- ->setDeployment($deployment);
- $response = $gapicClient->replaceDeployment($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gsuiteaddons.v1.GSuiteAddOns/ReplaceDeployment', $actualFuncCall);
- $actualValue = $actualRequestObject->getDeployment();
- $this->assertProtobufEquals($deployment, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function replaceDeploymentExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $deployment = new Deployment();
- $request = (new ReplaceDeploymentRequest())
- ->setDeployment($deployment);
- try {
- $gapicClient->replaceDeployment($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function uninstallDeploymentTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new GPBEmpty();
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->deploymentName('[PROJECT]', '[DEPLOYMENT]');
- $request = (new UninstallDeploymentRequest())
- ->setName($formattedName);
- $gapicClient->uninstallDeployment($request);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gsuiteaddons.v1.GSuiteAddOns/UninstallDeployment', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function uninstallDeploymentExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->deploymentName('[PROJECT]', '[DEPLOYMENT]');
- $request = (new UninstallDeploymentRequest())
- ->setName($formattedName);
- try {
- $gapicClient->uninstallDeployment($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createDeploymentAsyncTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name = 'name3373707';
- $etag = 'etag3123477';
- $expectedResponse = new Deployment();
- $expectedResponse->setName($name);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->projectName('[PROJECT]');
- $deploymentId = 'deploymentId51250389';
- $deployment = new Deployment();
- $request = (new CreateDeploymentRequest())
- ->setParent($formattedParent)
- ->setDeploymentId($deploymentId)
- ->setDeployment($deployment);
- $response = $gapicClient->createDeploymentAsync($request)->wait();
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gsuiteaddons.v1.GSuiteAddOns/CreateDeployment', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualRequestObject->getDeploymentId();
- $this->assertProtobufEquals($deploymentId, $actualValue);
- $actualValue = $actualRequestObject->getDeployment();
- $this->assertProtobufEquals($deployment, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-}
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Backup.php b/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Backup.php
deleted file mode 100644
index 269a69653719..000000000000
Binary files a/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Backup.php and /dev/null differ
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/BackupPlan.php b/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/BackupPlan.php
deleted file mode 100644
index 60c79d48dfc3..000000000000
Binary files a/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/BackupPlan.php and /dev/null differ
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Common.php b/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Common.php
deleted file mode 100644
index 033eea30b1d5..000000000000
Binary files a/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Common.php and /dev/null differ
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Gkebackup.php b/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Gkebackup.php
deleted file mode 100644
index 88dc7db961f7..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Gkebackup.php
+++ /dev/null
@@ -1,236 +0,0 @@
-internalAddGeneratedFile(
- '
-ÕT
-)google/cloud/gkebackup/v1/gkebackup.protogoogle.cloud.gkebackup.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto&google/cloud/gkebackup/v1/backup.proto+google/cloud/gkebackup/v1/backup_plan.proto\'google/cloud/gkebackup/v1/restore.proto,google/cloud/gkebackup/v1/restore_plan.proto&google/cloud/gkebackup/v1/volume.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"€
-OperationMetadata4
-create_time (2.google.protobuf.TimestampBàA1
-end_time (2.google.protobuf.TimestampBàA
-target ( BàA
-verb ( BàA
-status_message ( BàA#
-requested_cancellation (BàA
-api_version ( BàA"²
-CreateBackupPlanRequest9
-parent ( B)àAúA#
-!locations.googleapis.com/Location?
-backup_plan (2%.google.cloud.gkebackup.v1.BackupPlanBàA
-backup_plan_id ( BàA"°
-ListBackupPlansRequest9
-parent ( B)àAúA#
-!locations.googleapis.com/Location
- page_size (BàA
-
-page_token ( BàA
-filter ( BàA
-order_by ( BàA"„
-ListBackupPlansResponse;
-backup_plans (2%.google.cloud.gkebackup.v1.BackupPlan
-next_page_token (
-unreachable ( "Q
-GetBackupPlanRequest9
-name ( B+àAúA%
-#gkebackup.googleapis.com/BackupPlan"
-UpdateBackupPlanRequest?
-backup_plan (2%.google.cloud.gkebackup.v1.BackupPlanBàA4
-update_mask (2.google.protobuf.FieldMaskBàA"g
-DeleteBackupPlanRequest9
-name ( B+àAúA%
-#gkebackup.googleapis.com/BackupPlan
-etag ( BàA"¢
-CreateBackupRequest;
-parent ( B+àAúA%
-#gkebackup.googleapis.com/BackupPlan6
-backup (2!.google.cloud.gkebackup.v1.BackupBàA
- backup_id ( BàA"®
-ListBackupsRequest;
-parent ( B+àAúA%
-#gkebackup.googleapis.com/BackupPlan
- page_size (BàA
-
-page_token ( BàA
-filter ( BàA
-order_by ( BàA"b
-ListBackupsResponse2
-backups (2!.google.cloud.gkebackup.v1.Backup
-next_page_token ( "I
-GetBackupRequest5
-name ( B\'àAúA!
-gkebackup.googleapis.com/Backup"ƒ
-UpdateBackupRequest6
-backup (2!.google.cloud.gkebackup.v1.BackupBàA4
-update_mask (2.google.protobuf.FieldMaskBàA"s
-DeleteBackupRequest5
-name ( B\'àAúA!
-gkebackup.googleapis.com/Backup
-etag ( BàA
-force (BàA"°
-ListVolumeBackupsRequest7
-parent ( B\'àAúA!
-gkebackup.googleapis.com/Backup
- page_size (BàA
-
-page_token ( BàA
-filter ( BàA
-order_by ( BàA"u
-ListVolumeBackupsResponse?
-volume_backups (2\'.google.cloud.gkebackup.v1.VolumeBackup
-next_page_token ( "U
-GetVolumeBackupRequest;
-name ( B-àAúA\'
-%gkebackup.googleapis.com/VolumeBackup"¶
-CreateRestorePlanRequest9
-parent ( B)àAúA#
-!locations.googleapis.com/LocationA
-restore_plan (2&.google.cloud.gkebackup.v1.RestorePlanBàA
-restore_plan_id ( BàA"±
-ListRestorePlansRequest9
-parent ( B)àAúA#
-!locations.googleapis.com/Location
- page_size (BàA
-
-page_token ( BàA
-filter ( BàA
-order_by ( BàA"‡
-ListRestorePlansResponse=
-
restore_plans (2&.google.cloud.gkebackup.v1.RestorePlan
-next_page_token (
-unreachable ( "S
-GetRestorePlanRequest:
-name ( B,àAúA&
-$gkebackup.googleapis.com/RestorePlan"“
-UpdateRestorePlanRequestA
-restore_plan (2&.google.cloud.gkebackup.v1.RestorePlanBàA4
-update_mask (2.google.protobuf.FieldMaskBàA"}
-DeleteRestorePlanRequest:
-name ( B,àAúA&
-$gkebackup.googleapis.com/RestorePlan
-etag ( BàA
-force (BàA"§
-CreateRestoreRequest<
-parent ( B,àAúA&
-$gkebackup.googleapis.com/RestorePlan8
-restore (2".google.cloud.gkebackup.v1.RestoreBàA
-
-restore_id ( BàA"°
-ListRestoresRequest<
-parent ( B,àAúA&
-$gkebackup.googleapis.com/RestorePlan
- page_size (BàA
-
-page_token ( BàA
-filter ( BàA
-order_by ( BàA"z
-ListRestoresResponse4
-restores (2".google.cloud.gkebackup.v1.Restore
-next_page_token (
-unreachable ( "K
-GetRestoreRequest6
-name ( B(àAúA"
- gkebackup.googleapis.com/Restore"†
-UpdateRestoreRequest8
-restore (2".google.cloud.gkebackup.v1.RestoreBàA4
-update_mask (2.google.protobuf.FieldMaskBàA"u
-DeleteRestoreRequest6
-name ( B(àAúA"
- gkebackup.googleapis.com/Restore
-etag ( BàA
-force (BàA"²
-ListVolumeRestoresRequest8
-parent ( B(àAúA"
- gkebackup.googleapis.com/Restore
- page_size (BàA
-
-page_token ( BàA
-filter ( BàA
-order_by ( BàA"x
-ListVolumeRestoresResponseA
-volume_restores (2(.google.cloud.gkebackup.v1.VolumeRestore
-next_page_token ( "W
-GetVolumeRestoreRequest<
-name ( B.àAúA(
-&gkebackup.googleapis.com/VolumeRestore"[
- GetBackupIndexDownloadUrlRequest7
-backup ( B\'àAúA!
-gkebackup.googleapis.com/Backup"<
-!GetBackupIndexDownloadUrlResponse
-
-signed_url ( BàA2Æ*
-BackupForGKEò
-CreateBackupPlan2.google.cloud.gkebackup.v1.CreateBackupPlanRequest.google.longrunning.Operation"ŠÊA
-
-BackupPlanOperationMetadataÚA!parent,backup_plan,backup_plan_id‚Óä“>"//v1/{parent=projects/*/locations/*}/backupPlans:backup_planº
-ListBackupPlans1.google.cloud.gkebackup.v1.ListBackupPlansRequest2.google.cloud.gkebackup.v1.ListBackupPlansResponse"@ÚAparent‚Óä“1//v1/{parent=projects/*/locations/*}/backupPlans§
-
GetBackupPlan/.google.cloud.gkebackup.v1.GetBackupPlanRequest%.google.cloud.gkebackup.v1.BackupPlan">ÚAname‚Óä“1//v1/{name=projects/*/locations/*/backupPlans/*}ô
-UpdateBackupPlan2.google.cloud.gkebackup.v1.UpdateBackupPlanRequest.google.longrunning.Operation"ŒÊA
-
-BackupPlanOperationMetadataÚAbackup_plan,update_mask‚Óä“J2;/v1/{backup_plan.name=projects/*/locations/*/backupPlans/*}:backup_planÒ
-DeleteBackupPlan2.google.cloud.gkebackup.v1.DeleteBackupPlanRequest.google.longrunning.Operation"kÊA*
-google.protobuf.EmptyOperationMetadataÚAname‚Óä“1*//v1/{name=projects/*/locations/*/backupPlans/*}á
-CreateBackup..google.cloud.gkebackup.v1.CreateBackupRequest.google.longrunning.Operation"ÊA
-BackupOperationMetadataÚAparent,backup,backup_id‚Óä“C"9/v1/{parent=projects/*/locations/*/backupPlans/*}/backups:backup¸
-ListBackups-.google.cloud.gkebackup.v1.ListBackupsRequest..google.cloud.gkebackup.v1.ListBackupsResponse"JÚAparent‚Óä“;9/v1/{parent=projects/*/locations/*/backupPlans/*}/backups¥
- GetBackup+.google.cloud.gkebackup.v1.GetBackupRequest!.google.cloud.gkebackup.v1.Backup"HÚAname‚Óä“;9/v1/{name=projects/*/locations/*/backupPlans/*/backups/*}ã
-UpdateBackup..google.cloud.gkebackup.v1.UpdateBackupRequest.google.longrunning.Operation"ƒÊA
-BackupOperationMetadataÚAbackup,update_mask‚Óä“J2@/v1/{backup.name=projects/*/locations/*/backupPlans/*/backups/*}:backupÔ
-DeleteBackup..google.cloud.gkebackup.v1.DeleteBackupRequest.google.longrunning.Operation"uÊA*
-google.protobuf.EmptyOperationMetadataÚAname‚Óä“;*9/v1/{name=projects/*/locations/*/backupPlans/*/backups/*}Ú
-ListVolumeBackups3.google.cloud.gkebackup.v1.ListVolumeBackupsRequest4.google.cloud.gkebackup.v1.ListVolumeBackupsResponse"ZÚAparent‚Óä“KI/v1/{parent=projects/*/locations/*/backupPlans/*/backups/*}/volumeBackupsÇ
-GetVolumeBackup1.google.cloud.gkebackup.v1.GetVolumeBackupRequest\'.google.cloud.gkebackup.v1.VolumeBackup"XÚAname‚Óä“KI/v1/{name=projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*}ù
-CreateRestorePlan3.google.cloud.gkebackup.v1.CreateRestorePlanRequest.google.longrunning.Operation"ÊA
-RestorePlanOperationMetadataÚA#parent,restore_plan,restore_plan_id‚Óä“@"0/v1/{parent=projects/*/locations/*}/restorePlans:restore_plan¾
-ListRestorePlans2.google.cloud.gkebackup.v1.ListRestorePlansRequest3.google.cloud.gkebackup.v1.ListRestorePlansResponse"AÚAparent‚Óä“20/v1/{parent=projects/*/locations/*}/restorePlans«
-GetRestorePlan0.google.cloud.gkebackup.v1.GetRestorePlanRequest&.google.cloud.gkebackup.v1.RestorePlan"?ÚAname‚Óä“20/v1/{name=projects/*/locations/*/restorePlans/*}û
-UpdateRestorePlan3.google.cloud.gkebackup.v1.UpdateRestorePlanRequest.google.longrunning.Operation"‘ÊA
-RestorePlanOperationMetadataÚArestore_plan,update_mask‚Óä“M2=/v1/{restore_plan.name=projects/*/locations/*/restorePlans/*}:restore_planÕ
-DeleteRestorePlan3.google.cloud.gkebackup.v1.DeleteRestorePlanRequest.google.longrunning.Operation"lÊA*
-google.protobuf.EmptyOperationMetadataÚAname‚Óä“2*0/v1/{name=projects/*/locations/*/restorePlans/*}é
-
CreateRestore/.google.cloud.gkebackup.v1.CreateRestoreRequest.google.longrunning.Operation"‡ÊA
-RestoreOperationMetadataÚAparent,restore,restore_id‚Óä“F";/v1/{parent=projects/*/locations/*/restorePlans/*}/restores:restore½
-ListRestores..google.cloud.gkebackup.v1.ListRestoresRequest/.google.cloud.gkebackup.v1.ListRestoresResponse"LÚAparent‚Óä“=;/v1/{parent=projects/*/locations/*/restorePlans/*}/restoresª
-
-GetRestore,.google.cloud.gkebackup.v1.GetRestoreRequest".google.cloud.gkebackup.v1.Restore"JÚAname‚Óä“=;/v1/{name=projects/*/locations/*/restorePlans/*/restores/*}ë
-
UpdateRestore/.google.cloud.gkebackup.v1.UpdateRestoreRequest.google.longrunning.Operation"‰ÊA
-RestoreOperationMetadataÚArestore,update_mask‚Óä“N2C/v1/{restore.name=projects/*/locations/*/restorePlans/*/restores/*}:restoreØ
-
DeleteRestore/.google.cloud.gkebackup.v1.DeleteRestoreRequest.google.longrunning.Operation"wÊA*
-google.protobuf.EmptyOperationMetadataÚAname‚Óä“=*;/v1/{name=projects/*/locations/*/restorePlans/*/restores/*}à
-ListVolumeRestores4.google.cloud.gkebackup.v1.ListVolumeRestoresRequest5.google.cloud.gkebackup.v1.ListVolumeRestoresResponse"]ÚAparent‚Óä“NL/v1/{parent=projects/*/locations/*/restorePlans/*/restores/*}/volumeRestoresÍ
-GetVolumeRestore2.google.cloud.gkebackup.v1.GetVolumeRestoreRequest(.google.cloud.gkebackup.v1.VolumeRestore"[ÚAname‚Óä“NL/v1/{name=projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*}þ
-GetBackupIndexDownloadUrl;.google.cloud.gkebackup.v1.GetBackupIndexDownloadUrlRequest<.google.cloud.gkebackup.v1.GetBackupIndexDownloadUrlResponse"fÚAbackup‚Óä“WU/v1/{backup=projects/*/locations/*/backupPlans/*/backups/*}:getBackupIndexDownloadUrlLÊAgkebackup.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB¡
-com.google.cloud.gkebackup.v1BGKEBackupProtoPZ;cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppbªGoogle.Cloud.GkeBackup.V1ÊGoogle\\Cloud\\GkeBackup\\V1êGoogle::Cloud::GkeBackup::V1êA^
- container.googleapis.com/Cluster:projects/{project}/locations/{location}/clusters/{cluster}êAx
-!cloudkms.googleapis.com/CryptoKeySprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Restore.php b/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Restore.php
deleted file mode 100644
index 4db46a950b0d..000000000000
Binary files a/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Restore.php and /dev/null differ
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/RestorePlan.php b/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/RestorePlan.php
deleted file mode 100644
index 6b207b777950..000000000000
Binary files a/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/RestorePlan.php and /dev/null differ
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Volume.php b/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Volume.php
deleted file mode 100644
index d1f6ce1a5d21..000000000000
Binary files a/owl-bot-staging/GkeBackup/v1/proto/src/GPBMetadata/Google/Cloud/Gkebackup/V1/Volume.php and /dev/null differ
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Backup.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Backup.php
deleted file mode 100644
index ded60b0f4465..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Backup.php
+++ /dev/null
@@ -1,1270 +0,0 @@
-google.cloud.gkebackup.v1.Backup
- */
-class Backup extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The fully qualified name of the Backup.
- * `projects/*/locations/*/backupPlans/*/backups/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * Output only. Server generated global unique identifier of
- * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uid = '';
- /**
- * Output only. The timestamp when this Backup resource was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. The timestamp when this Backup resource was last updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * Output only. This flag indicates whether this Backup resource was created
- * manually by a user or via a schedule in the BackupPlan. A value of True
- * means that the Backup was created manually.
- *
- * Generated from protobuf field bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $manual = false;
- /**
- * Optional. A set of custom labels supplied by user.
- *
- * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $labels;
- /**
- * Optional. Minimum age for this Backup (in days). If this field is set to a
- * non-zero value, the Backup will be "locked" against deletion (either manual
- * or automatic deletion) for the number of days provided (measured from the
- * creation time of the Backup). MUST be an integer value between 0-90
- * (inclusive).
- * Defaults to parent BackupPlan's
- * [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days]
- * setting and may only be increased
- * (either at creation time or in a subsequent update).
- *
- * Generated from protobuf field int32 delete_lock_days = 7 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $delete_lock_days = 0;
- /**
- * Output only. The time at which an existing delete lock will expire for this
- * backup (calculated from create_time +
- * [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
- *
- * Generated from protobuf field .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $delete_lock_expire_time = null;
- /**
- * Optional. The age (in days) after which this Backup will be automatically
- * deleted. Must be an integer value >= 0:
- * - If 0, no automatic deletion will occur for this Backup.
- * - If not 0, this must be >=
- * [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days] and
- * <= 365.
- * Once a Backup is created, this value may only be increased.
- * Defaults to the parent BackupPlan's
- * [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
- * value.
- *
- * Generated from protobuf field int32 retain_days = 9 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $retain_days = 0;
- /**
- * Output only. The time at which this Backup will be automatically deleted
- * (calculated from create_time +
- * [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
- *
- * Generated from protobuf field .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $retain_expire_time = null;
- /**
- * Output only. The customer managed encryption key that was used to encrypt
- * the Backup's artifacts. Inherited from the parent BackupPlan's
- * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key]
- * value.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $encryption_key = null;
- /**
- * Output only. Whether or not the Backup contains volume data. Controlled by
- * the parent BackupPlan's
- * [include_volume_data][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_volume_data]
- * value.
- *
- * Generated from protobuf field bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $contains_volume_data = false;
- /**
- * Output only. Whether or not the Backup contains Kubernetes Secrets.
- * Controlled by the parent BackupPlan's
- * [include_secrets][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_secrets]
- * value.
- *
- * Generated from protobuf field bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $contains_secrets = false;
- /**
- * Output only. Information about the GKE cluster from which this Backup was
- * created.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $cluster_metadata = null;
- /**
- * Output only. Current state of the Backup
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. Human-readable description of why the backup is in the current
- * `state`.
- *
- * Generated from protobuf field string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state_reason = '';
- /**
- * Output only. Completion time of the Backup
- *
- * Generated from protobuf field .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $complete_time = null;
- /**
- * Output only. The total number of Kubernetes resources included in the
- * Backup.
- *
- * Generated from protobuf field int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $resource_count = 0;
- /**
- * Output only. The total number of volume backups contained in the Backup.
- *
- * Generated from protobuf field int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $volume_count = 0;
- /**
- * Output only. The total size of the Backup in bytes = config backup size +
- * sum(volume backup sizes)
- *
- * Generated from protobuf field int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $size_bytes = 0;
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a backup from overwriting each other.
- * It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform backup updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetBackup`,
- * and systems are expected to put that etag in the request to
- * `UpdateBackup` or `DeleteBackup` to ensure that their change will be
- * applied to the same version of the resource.
- *
- * Generated from protobuf field string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $etag = '';
- /**
- * Optional. User specified descriptive string for this Backup.
- *
- * Generated from protobuf field string description = 25 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $description = '';
- /**
- * Output only. The total number of Kubernetes Pods contained in the Backup.
- *
- * Generated from protobuf field int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $pod_count = 0;
- /**
- * Output only. The size of the config backup in bytes.
- *
- * Generated from protobuf field int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $config_backup_size_bytes = 0;
- /**
- * Output only. If false, Backup will fail when Backup for GKE detects
- * Kubernetes configuration that is non-standard or
- * requires additional setup to restore.
- * Inherited from the parent BackupPlan's
- * [permissive_mode][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.permissive_mode]
- * value.
- *
- * Generated from protobuf field bool permissive_mode = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $permissive_mode = false;
- protected $backup_scope;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. The fully qualified name of the Backup.
- * `projects/*/locations/*/backupPlans/*/backups/*`
- * @type string $uid
- * Output only. Server generated global unique identifier of
- * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The timestamp when this Backup resource was created.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. The timestamp when this Backup resource was last updated.
- * @type bool $manual
- * Output only. This flag indicates whether this Backup resource was created
- * manually by a user or via a schedule in the BackupPlan. A value of True
- * means that the Backup was created manually.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Optional. A set of custom labels supplied by user.
- * @type int $delete_lock_days
- * Optional. Minimum age for this Backup (in days). If this field is set to a
- * non-zero value, the Backup will be "locked" against deletion (either manual
- * or automatic deletion) for the number of days provided (measured from the
- * creation time of the Backup). MUST be an integer value between 0-90
- * (inclusive).
- * Defaults to parent BackupPlan's
- * [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days]
- * setting and may only be increased
- * (either at creation time or in a subsequent update).
- * @type \Google\Protobuf\Timestamp $delete_lock_expire_time
- * Output only. The time at which an existing delete lock will expire for this
- * backup (calculated from create_time +
- * [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
- * @type int $retain_days
- * Optional. The age (in days) after which this Backup will be automatically
- * deleted. Must be an integer value >= 0:
- * - If 0, no automatic deletion will occur for this Backup.
- * - If not 0, this must be >=
- * [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days] and
- * <= 365.
- * Once a Backup is created, this value may only be increased.
- * Defaults to the parent BackupPlan's
- * [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
- * value.
- * @type \Google\Protobuf\Timestamp $retain_expire_time
- * Output only. The time at which this Backup will be automatically deleted
- * (calculated from create_time +
- * [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
- * @type \Google\Cloud\GkeBackup\V1\EncryptionKey $encryption_key
- * Output only. The customer managed encryption key that was used to encrypt
- * the Backup's artifacts. Inherited from the parent BackupPlan's
- * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key]
- * value.
- * @type bool $all_namespaces
- * Output only. If True, all namespaces were included in the Backup.
- * @type \Google\Cloud\GkeBackup\V1\Namespaces $selected_namespaces
- * Output only. If set, the list of namespaces that were included in the
- * Backup.
- * @type \Google\Cloud\GkeBackup\V1\NamespacedNames $selected_applications
- * Output only. If set, the list of ProtectedApplications whose resources
- * were included in the Backup.
- * @type bool $contains_volume_data
- * Output only. Whether or not the Backup contains volume data. Controlled by
- * the parent BackupPlan's
- * [include_volume_data][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_volume_data]
- * value.
- * @type bool $contains_secrets
- * Output only. Whether or not the Backup contains Kubernetes Secrets.
- * Controlled by the parent BackupPlan's
- * [include_secrets][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_secrets]
- * value.
- * @type \Google\Cloud\GkeBackup\V1\Backup\ClusterMetadata $cluster_metadata
- * Output only. Information about the GKE cluster from which this Backup was
- * created.
- * @type int $state
- * Output only. Current state of the Backup
- * @type string $state_reason
- * Output only. Human-readable description of why the backup is in the current
- * `state`.
- * @type \Google\Protobuf\Timestamp $complete_time
- * Output only. Completion time of the Backup
- * @type int $resource_count
- * Output only. The total number of Kubernetes resources included in the
- * Backup.
- * @type int $volume_count
- * Output only. The total number of volume backups contained in the Backup.
- * @type int|string $size_bytes
- * Output only. The total size of the Backup in bytes = config backup size +
- * sum(volume backup sizes)
- * @type string $etag
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a backup from overwriting each other.
- * It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform backup updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetBackup`,
- * and systems are expected to put that etag in the request to
- * `UpdateBackup` or `DeleteBackup` to ensure that their change will be
- * applied to the same version of the resource.
- * @type string $description
- * Optional. User specified descriptive string for this Backup.
- * @type int $pod_count
- * Output only. The total number of Kubernetes Pods contained in the Backup.
- * @type int|string $config_backup_size_bytes
- * Output only. The size of the config backup in bytes.
- * @type bool $permissive_mode
- * Output only. If false, Backup will fail when Backup for GKE detects
- * Kubernetes configuration that is non-standard or
- * requires additional setup to restore.
- * Inherited from the parent BackupPlan's
- * [permissive_mode][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.permissive_mode]
- * value.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Backup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The fully qualified name of the Backup.
- * `projects/*/locations/*/backupPlans/*/backups/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. The fully qualified name of the Backup.
- * `projects/*/locations/*/backupPlans/*/backups/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Server generated global unique identifier of
- * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-
- /**
- * Output only. Server generated global unique identifier of
- * [UUID4](https://en.wikipedia.org/wiki/Universally_unique_identifier)
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->uid = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp when this Backup resource was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The timestamp when this Backup resource was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp when this Backup resource was last updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. The timestamp when this Backup resource was last updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. This flag indicates whether this Backup resource was created
- * manually by a user or via a schedule in the BackupPlan. A value of True
- * means that the Backup was created manually.
- *
- * Generated from protobuf field bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool
- */
- public function getManual()
- {
- return $this->manual;
- }
-
- /**
- * Output only. This flag indicates whether this Backup resource was created
- * manually by a user or via a schedule in the BackupPlan. A value of True
- * means that the Backup was created manually.
- *
- * Generated from protobuf field bool manual = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool $var
- * @return $this
- */
- public function setManual($var)
- {
- GPBUtil::checkBool($var);
- $this->manual = $var;
-
- return $this;
- }
-
- /**
- * Optional. A set of custom labels supplied by user.
- *
- * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Optional. A set of custom labels supplied by user.
- *
- * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Optional. Minimum age for this Backup (in days). If this field is set to a
- * non-zero value, the Backup will be "locked" against deletion (either manual
- * or automatic deletion) for the number of days provided (measured from the
- * creation time of the Backup). MUST be an integer value between 0-90
- * (inclusive).
- * Defaults to parent BackupPlan's
- * [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days]
- * setting and may only be increased
- * (either at creation time or in a subsequent update).
- *
- * Generated from protobuf field int32 delete_lock_days = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getDeleteLockDays()
- {
- return $this->delete_lock_days;
- }
-
- /**
- * Optional. Minimum age for this Backup (in days). If this field is set to a
- * non-zero value, the Backup will be "locked" against deletion (either manual
- * or automatic deletion) for the number of days provided (measured from the
- * creation time of the Backup). MUST be an integer value between 0-90
- * (inclusive).
- * Defaults to parent BackupPlan's
- * [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days]
- * setting and may only be increased
- * (either at creation time or in a subsequent update).
- *
- * Generated from protobuf field int32 delete_lock_days = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setDeleteLockDays($var)
- {
- GPBUtil::checkInt32($var);
- $this->delete_lock_days = $var;
-
- return $this;
- }
-
- /**
- * Output only. The time at which an existing delete lock will expire for this
- * backup (calculated from create_time +
- * [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
- *
- * Generated from protobuf field .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getDeleteLockExpireTime()
- {
- return $this->delete_lock_expire_time;
- }
-
- public function hasDeleteLockExpireTime()
- {
- return isset($this->delete_lock_expire_time);
- }
-
- public function clearDeleteLockExpireTime()
- {
- unset($this->delete_lock_expire_time);
- }
-
- /**
- * Output only. The time at which an existing delete lock will expire for this
- * backup (calculated from create_time +
- * [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days]).
- *
- * Generated from protobuf field .google.protobuf.Timestamp delete_lock_expire_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setDeleteLockExpireTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->delete_lock_expire_time = $var;
-
- return $this;
- }
-
- /**
- * Optional. The age (in days) after which this Backup will be automatically
- * deleted. Must be an integer value >= 0:
- * - If 0, no automatic deletion will occur for this Backup.
- * - If not 0, this must be >=
- * [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days] and
- * <= 365.
- * Once a Backup is created, this value may only be increased.
- * Defaults to the parent BackupPlan's
- * [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
- * value.
- *
- * Generated from protobuf field int32 retain_days = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getRetainDays()
- {
- return $this->retain_days;
- }
-
- /**
- * Optional. The age (in days) after which this Backup will be automatically
- * deleted. Must be an integer value >= 0:
- * - If 0, no automatic deletion will occur for this Backup.
- * - If not 0, this must be >=
- * [delete_lock_days][google.cloud.gkebackup.v1.Backup.delete_lock_days] and
- * <= 365.
- * Once a Backup is created, this value may only be increased.
- * Defaults to the parent BackupPlan's
- * [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
- * value.
- *
- * Generated from protobuf field int32 retain_days = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setRetainDays($var)
- {
- GPBUtil::checkInt32($var);
- $this->retain_days = $var;
-
- return $this;
- }
-
- /**
- * Output only. The time at which this Backup will be automatically deleted
- * (calculated from create_time +
- * [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
- *
- * Generated from protobuf field .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getRetainExpireTime()
- {
- return $this->retain_expire_time;
- }
-
- public function hasRetainExpireTime()
- {
- return isset($this->retain_expire_time);
- }
-
- public function clearRetainExpireTime()
- {
- unset($this->retain_expire_time);
- }
-
- /**
- * Output only. The time at which this Backup will be automatically deleted
- * (calculated from create_time +
- * [retain_days][google.cloud.gkebackup.v1.Backup.retain_days]).
- *
- * Generated from protobuf field .google.protobuf.Timestamp retain_expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setRetainExpireTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->retain_expire_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The customer managed encryption key that was used to encrypt
- * the Backup's artifacts. Inherited from the parent BackupPlan's
- * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key]
- * value.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\GkeBackup\V1\EncryptionKey|null
- */
- public function getEncryptionKey()
- {
- return $this->encryption_key;
- }
-
- public function hasEncryptionKey()
- {
- return isset($this->encryption_key);
- }
-
- public function clearEncryptionKey()
- {
- unset($this->encryption_key);
- }
-
- /**
- * Output only. The customer managed encryption key that was used to encrypt
- * the Backup's artifacts. Inherited from the parent BackupPlan's
- * [encryption_key][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.encryption_key]
- * value.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\GkeBackup\V1\EncryptionKey $var
- * @return $this
- */
- public function setEncryptionKey($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\EncryptionKey::class);
- $this->encryption_key = $var;
-
- return $this;
- }
-
- /**
- * Output only. If True, all namespaces were included in the Backup.
- *
- * Generated from protobuf field bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool
- */
- public function getAllNamespaces()
- {
- return $this->readOneof(12);
- }
-
- public function hasAllNamespaces()
- {
- return $this->hasOneof(12);
- }
-
- /**
- * Output only. If True, all namespaces were included in the Backup.
- *
- * Generated from protobuf field bool all_namespaces = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool $var
- * @return $this
- */
- public function setAllNamespaces($var)
- {
- GPBUtil::checkBool($var);
- $this->writeOneof(12, $var);
-
- return $this;
- }
-
- /**
- * Output only. If set, the list of namespaces that were included in the
- * Backup.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\GkeBackup\V1\Namespaces|null
- */
- public function getSelectedNamespaces()
- {
- return $this->readOneof(13);
- }
-
- public function hasSelectedNamespaces()
- {
- return $this->hasOneof(13);
- }
-
- /**
- * Output only. If set, the list of namespaces that were included in the
- * Backup.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\GkeBackup\V1\Namespaces $var
- * @return $this
- */
- public function setSelectedNamespaces($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\Namespaces::class);
- $this->writeOneof(13, $var);
-
- return $this;
- }
-
- /**
- * Output only. If set, the list of ProtectedApplications whose resources
- * were included in the Backup.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\GkeBackup\V1\NamespacedNames|null
- */
- public function getSelectedApplications()
- {
- return $this->readOneof(14);
- }
-
- public function hasSelectedApplications()
- {
- return $this->hasOneof(14);
- }
-
- /**
- * Output only. If set, the list of ProtectedApplications whose resources
- * were included in the Backup.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\GkeBackup\V1\NamespacedNames $var
- * @return $this
- */
- public function setSelectedApplications($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\NamespacedNames::class);
- $this->writeOneof(14, $var);
-
- return $this;
- }
-
- /**
- * Output only. Whether or not the Backup contains volume data. Controlled by
- * the parent BackupPlan's
- * [include_volume_data][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_volume_data]
- * value.
- *
- * Generated from protobuf field bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool
- */
- public function getContainsVolumeData()
- {
- return $this->contains_volume_data;
- }
-
- /**
- * Output only. Whether or not the Backup contains volume data. Controlled by
- * the parent BackupPlan's
- * [include_volume_data][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_volume_data]
- * value.
- *
- * Generated from protobuf field bool contains_volume_data = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool $var
- * @return $this
- */
- public function setContainsVolumeData($var)
- {
- GPBUtil::checkBool($var);
- $this->contains_volume_data = $var;
-
- return $this;
- }
-
- /**
- * Output only. Whether or not the Backup contains Kubernetes Secrets.
- * Controlled by the parent BackupPlan's
- * [include_secrets][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_secrets]
- * value.
- *
- * Generated from protobuf field bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool
- */
- public function getContainsSecrets()
- {
- return $this->contains_secrets;
- }
-
- /**
- * Output only. Whether or not the Backup contains Kubernetes Secrets.
- * Controlled by the parent BackupPlan's
- * [include_secrets][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.include_secrets]
- * value.
- *
- * Generated from protobuf field bool contains_secrets = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool $var
- * @return $this
- */
- public function setContainsSecrets($var)
- {
- GPBUtil::checkBool($var);
- $this->contains_secrets = $var;
-
- return $this;
- }
-
- /**
- * Output only. Information about the GKE cluster from which this Backup was
- * created.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\GkeBackup\V1\Backup\ClusterMetadata|null
- */
- public function getClusterMetadata()
- {
- return $this->cluster_metadata;
- }
-
- public function hasClusterMetadata()
- {
- return isset($this->cluster_metadata);
- }
-
- public function clearClusterMetadata()
- {
- unset($this->cluster_metadata);
- }
-
- /**
- * Output only. Information about the GKE cluster from which this Backup was
- * created.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Backup.ClusterMetadata cluster_metadata = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\GkeBackup\V1\Backup\ClusterMetadata $var
- * @return $this
- */
- public function setClusterMetadata($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\Backup\ClusterMetadata::class);
- $this->cluster_metadata = $var;
-
- return $this;
- }
-
- /**
- * Output only. Current state of the Backup
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. Current state of the Backup
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Backup.State state = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\Backup\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Human-readable description of why the backup is in the current
- * `state`.
- *
- * Generated from protobuf field string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getStateReason()
- {
- return $this->state_reason;
- }
-
- /**
- * Output only. Human-readable description of why the backup is in the current
- * `state`.
- *
- * Generated from protobuf field string state_reason = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setStateReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->state_reason = $var;
-
- return $this;
- }
-
- /**
- * Output only. Completion time of the Backup
- *
- * Generated from protobuf field .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCompleteTime()
- {
- return $this->complete_time;
- }
-
- public function hasCompleteTime()
- {
- return isset($this->complete_time);
- }
-
- public function clearCompleteTime()
- {
- unset($this->complete_time);
- }
-
- /**
- * Output only. Completion time of the Backup
- *
- * Generated from protobuf field .google.protobuf.Timestamp complete_time = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCompleteTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->complete_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The total number of Kubernetes resources included in the
- * Backup.
- *
- * Generated from protobuf field int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getResourceCount()
- {
- return $this->resource_count;
- }
-
- /**
- * Output only. The total number of Kubernetes resources included in the
- * Backup.
- *
- * Generated from protobuf field int32 resource_count = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setResourceCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->resource_count = $var;
-
- return $this;
- }
-
- /**
- * Output only. The total number of volume backups contained in the Backup.
- *
- * Generated from protobuf field int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getVolumeCount()
- {
- return $this->volume_count;
- }
-
- /**
- * Output only. The total number of volume backups contained in the Backup.
- *
- * Generated from protobuf field int32 volume_count = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setVolumeCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->volume_count = $var;
-
- return $this;
- }
-
- /**
- * Output only. The total size of the Backup in bytes = config backup size +
- * sum(volume backup sizes)
- *
- * Generated from protobuf field int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getSizeBytes()
- {
- return $this->size_bytes;
- }
-
- /**
- * Output only. The total size of the Backup in bytes = config backup size +
- * sum(volume backup sizes)
- *
- * Generated from protobuf field int64 size_bytes = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setSizeBytes($var)
- {
- GPBUtil::checkInt64($var);
- $this->size_bytes = $var;
-
- return $this;
- }
-
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a backup from overwriting each other.
- * It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform backup updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetBackup`,
- * and systems are expected to put that etag in the request to
- * `UpdateBackup` or `DeleteBackup` to ensure that their change will be
- * applied to the same version of the resource.
- *
- * Generated from protobuf field string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a backup from overwriting each other.
- * It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform backup updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetBackup`,
- * and systems are expected to put that etag in the request to
- * `UpdateBackup` or `DeleteBackup` to ensure that their change will be
- * applied to the same version of the resource.
- *
- * Generated from protobuf field string etag = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * Optional. User specified descriptive string for this Backup.
- *
- * Generated from protobuf field string description = 25 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Optional. User specified descriptive string for this Backup.
- *
- * Generated from protobuf field string description = 25 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Output only. The total number of Kubernetes Pods contained in the Backup.
- *
- * Generated from protobuf field int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getPodCount()
- {
- return $this->pod_count;
- }
-
- /**
- * Output only. The total number of Kubernetes Pods contained in the Backup.
- *
- * Generated from protobuf field int32 pod_count = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setPodCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->pod_count = $var;
-
- return $this;
- }
-
- /**
- * Output only. The size of the config backup in bytes.
- *
- * Generated from protobuf field int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getConfigBackupSizeBytes()
- {
- return $this->config_backup_size_bytes;
- }
-
- /**
- * Output only. The size of the config backup in bytes.
- *
- * Generated from protobuf field int64 config_backup_size_bytes = 27 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setConfigBackupSizeBytes($var)
- {
- GPBUtil::checkInt64($var);
- $this->config_backup_size_bytes = $var;
-
- return $this;
- }
-
- /**
- * Output only. If false, Backup will fail when Backup for GKE detects
- * Kubernetes configuration that is non-standard or
- * requires additional setup to restore.
- * Inherited from the parent BackupPlan's
- * [permissive_mode][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.permissive_mode]
- * value.
- *
- * Generated from protobuf field bool permissive_mode = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool
- */
- public function getPermissiveMode()
- {
- return $this->permissive_mode;
- }
-
- /**
- * Output only. If false, Backup will fail when Backup for GKE detects
- * Kubernetes configuration that is non-standard or
- * requires additional setup to restore.
- * Inherited from the parent BackupPlan's
- * [permissive_mode][google.cloud.gkebackup.v1.BackupPlan.BackupConfig.permissive_mode]
- * value.
- *
- * Generated from protobuf field bool permissive_mode = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool $var
- * @return $this
- */
- public function setPermissiveMode($var)
- {
- GPBUtil::checkBool($var);
- $this->permissive_mode = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getBackupScope()
- {
- return $this->whichOneof("backup_scope");
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Backup/ClusterMetadata.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Backup/ClusterMetadata.php
deleted file mode 100644
index 677ae8b2612b..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Backup/ClusterMetadata.php
+++ /dev/null
@@ -1,237 +0,0 @@
-google.cloud.gkebackup.v1.Backup.ClusterMetadata
- */
-class ClusterMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The source cluster from which this Backup was created.
- * Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- * This is inherited from the parent BackupPlan's
- * [cluster][google.cloud.gkebackup.v1.BackupPlan.cluster] field.
- *
- * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $cluster = '';
- /**
- * Output only. The Kubernetes server version of the source cluster.
- *
- * Generated from protobuf field string k8s_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $k8s_version = '';
- /**
- * Output only. A list of the Backup for GKE CRD versions found in the
- * cluster.
- *
- * Generated from protobuf field map backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $backup_crd_versions;
- protected $platform_version;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $cluster
- * Output only. The source cluster from which this Backup was created.
- * Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- * This is inherited from the parent BackupPlan's
- * [cluster][google.cloud.gkebackup.v1.BackupPlan.cluster] field.
- * @type string $k8s_version
- * Output only. The Kubernetes server version of the source cluster.
- * @type array|\Google\Protobuf\Internal\MapField $backup_crd_versions
- * Output only. A list of the Backup for GKE CRD versions found in the
- * cluster.
- * @type string $gke_version
- * Output only. GKE version
- * @type string $anthos_version
- * Output only. Anthos version
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Backup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The source cluster from which this Backup was created.
- * Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- * This is inherited from the parent BackupPlan's
- * [cluster][google.cloud.gkebackup.v1.BackupPlan.cluster] field.
- *
- * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getCluster()
- {
- return $this->cluster;
- }
-
- /**
- * Output only. The source cluster from which this Backup was created.
- * Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- * This is inherited from the parent BackupPlan's
- * [cluster][google.cloud.gkebackup.v1.BackupPlan.cluster] field.
- *
- * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setCluster($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster = $var;
-
- return $this;
- }
-
- /**
- * Output only. The Kubernetes server version of the source cluster.
- *
- * Generated from protobuf field string k8s_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getK8SVersion()
- {
- return $this->k8s_version;
- }
-
- /**
- * Output only. The Kubernetes server version of the source cluster.
- *
- * Generated from protobuf field string k8s_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setK8SVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->k8s_version = $var;
-
- return $this;
- }
-
- /**
- * Output only. A list of the Backup for GKE CRD versions found in the
- * cluster.
- *
- * Generated from protobuf field map backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getBackupCrdVersions()
- {
- return $this->backup_crd_versions;
- }
-
- /**
- * Output only. A list of the Backup for GKE CRD versions found in the
- * cluster.
- *
- * Generated from protobuf field map backup_crd_versions = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setBackupCrdVersions($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->backup_crd_versions = $arr;
-
- return $this;
- }
-
- /**
- * Output only. GKE version
- *
- * Generated from protobuf field string gke_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getGkeVersion()
- {
- return $this->readOneof(4);
- }
-
- public function hasGkeVersion()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Output only. GKE version
- *
- * Generated from protobuf field string gke_version = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setGkeVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * Output only. Anthos version
- *
- * Generated from protobuf field string anthos_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getAnthosVersion()
- {
- return $this->readOneof(5);
- }
-
- public function hasAnthosVersion()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Output only. Anthos version
- *
- * Generated from protobuf field string anthos_version = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setAnthosVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getPlatformVersion()
- {
- return $this->whichOneof("platform_version");
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(ClusterMetadata::class, \Google\Cloud\GkeBackup\V1\Backup_ClusterMetadata::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Backup/State.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Backup/State.php
deleted file mode 100644
index d3f3a57ba825..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Backup/State.php
+++ /dev/null
@@ -1,88 +0,0 @@
-google.cloud.gkebackup.v1.Backup.State
- */
-class State
-{
- /**
- * The Backup resource is in the process of being created.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * The Backup resource has been created and the associated BackupJob
- * Kubernetes resource has been injected into the source cluster.
- *
- * Generated from protobuf enum CREATING = 1;
- */
- const CREATING = 1;
- /**
- * The gkebackup agent in the cluster has begun executing the backup
- * operation.
- *
- * Generated from protobuf enum IN_PROGRESS = 2;
- */
- const IN_PROGRESS = 2;
- /**
- * The backup operation has completed successfully.
- *
- * Generated from protobuf enum SUCCEEDED = 3;
- */
- const SUCCEEDED = 3;
- /**
- * The backup operation has failed.
- *
- * Generated from protobuf enum FAILED = 4;
- */
- const FAILED = 4;
- /**
- * This Backup resource (and its associated artifacts) is in the process
- * of being deleted.
- *
- * Generated from protobuf enum DELETING = 5;
- */
- const DELETING = 5;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::CREATING => 'CREATING',
- self::IN_PROGRESS => 'IN_PROGRESS',
- self::SUCCEEDED => 'SUCCEEDED',
- self::FAILED => 'FAILED',
- self::DELETING => 'DELETING',
- ];
-
- 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(State::class, \Google\Cloud\GkeBackup\V1\Backup_State::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan.php
deleted file mode 100644
index d393c29eb016..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan.php
+++ /dev/null
@@ -1,773 +0,0 @@
-google.cloud.gkebackup.v1.BackupPlan
- */
-class BackupPlan extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The full name of the BackupPlan resource.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uid = '';
- /**
- * Output only. The timestamp when this BackupPlan resource was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. The timestamp when this BackupPlan resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * Optional. User specified descriptive string for this BackupPlan.
- *
- * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $description = '';
- /**
- * Required. Immutable. The source cluster from which Backups will be created
- * via this BackupPlan. Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- *
- * Generated from protobuf field string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $cluster = '';
- /**
- * Optional. RetentionPolicy governs lifecycle of Backups created under this
- * plan.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $retention_policy = null;
- /**
- * Optional. A set of custom labels supplied by user.
- *
- * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $labels;
- /**
- * Optional. Defines a schedule for automatic Backup creation via this
- * BackupPlan.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $backup_schedule = null;
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a backup plan from overwriting each
- * other. It is strongly suggested that systems make use of the 'etag' in the
- * read-modify-write cycle to perform BackupPlan updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetBackupPlan`,
- * and systems are expected to put that etag in the request to
- * `UpdateBackupPlan` or `DeleteBackupPlan` to ensure that their change
- * will be applied to the same version of the resource.
- *
- * Generated from protobuf field string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $etag = '';
- /**
- * Optional. This flag indicates whether this BackupPlan has been deactivated.
- * Setting this field to True locks the BackupPlan such that no further
- * updates will be allowed (except deletes), including the deactivated field
- * itself. It also prevents any new Backups from being created via this
- * BackupPlan (including scheduled Backups).
- * Default: False
- *
- * Generated from protobuf field bool deactivated = 11 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $deactivated = false;
- /**
- * Optional. Defines the configuration of Backups created via this BackupPlan.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $backup_config = null;
- /**
- * Output only. The number of Kubernetes Pods backed up in the
- * last successful Backup created via this BackupPlan.
- *
- * Generated from protobuf field int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $protected_pod_count = 0;
- /**
- * Output only. State of the BackupPlan. This State field reflects the
- * various stages a BackupPlan can be in
- * during the Create operation. It will be set to "DEACTIVATED"
- * if the BackupPlan is deactivated on an Update
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. Human-readable description of why BackupPlan is in the current
- * `state`
- *
- * Generated from protobuf field string state_reason = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state_reason = '';
- /**
- * Output only. A number that represents the current risk level of this
- * BackupPlan from RPO perspective with 1 being no risk and 5 being highest
- * risk.
- *
- * Generated from protobuf field int32 rpo_risk_level = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $rpo_risk_level = 0;
- /**
- * Output only. Human-readable description of why the BackupPlan is in the
- * current rpo_risk_level and action items if any.
- *
- * Generated from protobuf field string rpo_risk_reason = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $rpo_risk_reason = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. The full name of the BackupPlan resource.
- * Format: `projects/*/locations/*/backupPlans/*`
- * @type string $uid
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The timestamp when this BackupPlan resource was created.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. The timestamp when this BackupPlan resource was last
- * updated.
- * @type string $description
- * Optional. User specified descriptive string for this BackupPlan.
- * @type string $cluster
- * Required. Immutable. The source cluster from which Backups will be created
- * via this BackupPlan. Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- * @type \Google\Cloud\GkeBackup\V1\BackupPlan\RetentionPolicy $retention_policy
- * Optional. RetentionPolicy governs lifecycle of Backups created under this
- * plan.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Optional. A set of custom labels supplied by user.
- * @type \Google\Cloud\GkeBackup\V1\BackupPlan\Schedule $backup_schedule
- * Optional. Defines a schedule for automatic Backup creation via this
- * BackupPlan.
- * @type string $etag
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a backup plan from overwriting each
- * other. It is strongly suggested that systems make use of the 'etag' in the
- * read-modify-write cycle to perform BackupPlan updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetBackupPlan`,
- * and systems are expected to put that etag in the request to
- * `UpdateBackupPlan` or `DeleteBackupPlan` to ensure that their change
- * will be applied to the same version of the resource.
- * @type bool $deactivated
- * Optional. This flag indicates whether this BackupPlan has been deactivated.
- * Setting this field to True locks the BackupPlan such that no further
- * updates will be allowed (except deletes), including the deactivated field
- * itself. It also prevents any new Backups from being created via this
- * BackupPlan (including scheduled Backups).
- * Default: False
- * @type \Google\Cloud\GkeBackup\V1\BackupPlan\BackupConfig $backup_config
- * Optional. Defines the configuration of Backups created via this BackupPlan.
- * @type int $protected_pod_count
- * Output only. The number of Kubernetes Pods backed up in the
- * last successful Backup created via this BackupPlan.
- * @type int $state
- * Output only. State of the BackupPlan. This State field reflects the
- * various stages a BackupPlan can be in
- * during the Create operation. It will be set to "DEACTIVATED"
- * if the BackupPlan is deactivated on an Update
- * @type string $state_reason
- * Output only. Human-readable description of why BackupPlan is in the current
- * `state`
- * @type int $rpo_risk_level
- * Output only. A number that represents the current risk level of this
- * BackupPlan from RPO perspective with 1 being no risk and 5 being highest
- * risk.
- * @type string $rpo_risk_reason
- * Output only. Human-readable description of why the BackupPlan is in the
- * current rpo_risk_level and action items if any.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\BackupPlan::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The full name of the BackupPlan resource.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. The full name of the BackupPlan resource.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->uid = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp when this BackupPlan resource was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The timestamp when this BackupPlan resource was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp when this BackupPlan resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. The timestamp when this BackupPlan resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * Optional. User specified descriptive string for this BackupPlan.
- *
- * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Optional. User specified descriptive string for this BackupPlan.
- *
- * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Required. Immutable. The source cluster from which Backups will be created
- * via this BackupPlan. Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- *
- * Generated from protobuf field string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getCluster()
- {
- return $this->cluster;
- }
-
- /**
- * Required. Immutable. The source cluster from which Backups will be created
- * via this BackupPlan. Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- *
- * Generated from protobuf field string cluster = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setCluster($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster = $var;
-
- return $this;
- }
-
- /**
- * Optional. RetentionPolicy governs lifecycle of Backups created under this
- * plan.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeBackup\V1\BackupPlan\RetentionPolicy|null
- */
- public function getRetentionPolicy()
- {
- return $this->retention_policy;
- }
-
- public function hasRetentionPolicy()
- {
- return isset($this->retention_policy);
- }
-
- public function clearRetentionPolicy()
- {
- unset($this->retention_policy);
- }
-
- /**
- * Optional. RetentionPolicy governs lifecycle of Backups created under this
- * plan.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy retention_policy = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeBackup\V1\BackupPlan\RetentionPolicy $var
- * @return $this
- */
- public function setRetentionPolicy($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\BackupPlan\RetentionPolicy::class);
- $this->retention_policy = $var;
-
- return $this;
- }
-
- /**
- * Optional. A set of custom labels supplied by user.
- *
- * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Optional. A set of custom labels supplied by user.
- *
- * Generated from protobuf field map labels = 8 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Optional. Defines a schedule for automatic Backup creation via this
- * BackupPlan.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeBackup\V1\BackupPlan\Schedule|null
- */
- public function getBackupSchedule()
- {
- return $this->backup_schedule;
- }
-
- public function hasBackupSchedule()
- {
- return isset($this->backup_schedule);
- }
-
- public function clearBackupSchedule()
- {
- unset($this->backup_schedule);
- }
-
- /**
- * Optional. Defines a schedule for automatic Backup creation via this
- * BackupPlan.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan.Schedule backup_schedule = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeBackup\V1\BackupPlan\Schedule $var
- * @return $this
- */
- public function setBackupSchedule($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\BackupPlan\Schedule::class);
- $this->backup_schedule = $var;
-
- return $this;
- }
-
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a backup plan from overwriting each
- * other. It is strongly suggested that systems make use of the 'etag' in the
- * read-modify-write cycle to perform BackupPlan updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetBackupPlan`,
- * and systems are expected to put that etag in the request to
- * `UpdateBackupPlan` or `DeleteBackupPlan` to ensure that their change
- * will be applied to the same version of the resource.
- *
- * Generated from protobuf field string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a backup plan from overwriting each
- * other. It is strongly suggested that systems make use of the 'etag' in the
- * read-modify-write cycle to perform BackupPlan updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetBackupPlan`,
- * and systems are expected to put that etag in the request to
- * `UpdateBackupPlan` or `DeleteBackupPlan` to ensure that their change
- * will be applied to the same version of the resource.
- *
- * Generated from protobuf field string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * Optional. This flag indicates whether this BackupPlan has been deactivated.
- * Setting this field to True locks the BackupPlan such that no further
- * updates will be allowed (except deletes), including the deactivated field
- * itself. It also prevents any new Backups from being created via this
- * BackupPlan (including scheduled Backups).
- * Default: False
- *
- * Generated from protobuf field bool deactivated = 11 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getDeactivated()
- {
- return $this->deactivated;
- }
-
- /**
- * Optional. This flag indicates whether this BackupPlan has been deactivated.
- * Setting this field to True locks the BackupPlan such that no further
- * updates will be allowed (except deletes), including the deactivated field
- * itself. It also prevents any new Backups from being created via this
- * BackupPlan (including scheduled Backups).
- * Default: False
- *
- * Generated from protobuf field bool deactivated = 11 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setDeactivated($var)
- {
- GPBUtil::checkBool($var);
- $this->deactivated = $var;
-
- return $this;
- }
-
- /**
- * Optional. Defines the configuration of Backups created via this BackupPlan.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeBackup\V1\BackupPlan\BackupConfig|null
- */
- public function getBackupConfig()
- {
- return $this->backup_config;
- }
-
- public function hasBackupConfig()
- {
- return isset($this->backup_config);
- }
-
- public function clearBackupConfig()
- {
- unset($this->backup_config);
- }
-
- /**
- * Optional. Defines the configuration of Backups created via this BackupPlan.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan.BackupConfig backup_config = 12 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeBackup\V1\BackupPlan\BackupConfig $var
- * @return $this
- */
- public function setBackupConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\BackupPlan\BackupConfig::class);
- $this->backup_config = $var;
-
- return $this;
- }
-
- /**
- * Output only. The number of Kubernetes Pods backed up in the
- * last successful Backup created via this BackupPlan.
- *
- * Generated from protobuf field int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getProtectedPodCount()
- {
- return $this->protected_pod_count;
- }
-
- /**
- * Output only. The number of Kubernetes Pods backed up in the
- * last successful Backup created via this BackupPlan.
- *
- * Generated from protobuf field int32 protected_pod_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setProtectedPodCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->protected_pod_count = $var;
-
- return $this;
- }
-
- /**
- * Output only. State of the BackupPlan. This State field reflects the
- * various stages a BackupPlan can be in
- * during the Create operation. It will be set to "DEACTIVATED"
- * if the BackupPlan is deactivated on an Update
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. State of the BackupPlan. This State field reflects the
- * various stages a BackupPlan can be in
- * during the Create operation. It will be set to "DEACTIVATED"
- * if the BackupPlan is deactivated on an Update
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\BackupPlan\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Human-readable description of why BackupPlan is in the current
- * `state`
- *
- * Generated from protobuf field string state_reason = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getStateReason()
- {
- return $this->state_reason;
- }
-
- /**
- * Output only. Human-readable description of why BackupPlan is in the current
- * `state`
- *
- * Generated from protobuf field string state_reason = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setStateReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->state_reason = $var;
-
- return $this;
- }
-
- /**
- * Output only. A number that represents the current risk level of this
- * BackupPlan from RPO perspective with 1 being no risk and 5 being highest
- * risk.
- *
- * Generated from protobuf field int32 rpo_risk_level = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getRpoRiskLevel()
- {
- return $this->rpo_risk_level;
- }
-
- /**
- * Output only. A number that represents the current risk level of this
- * BackupPlan from RPO perspective with 1 being no risk and 5 being highest
- * risk.
- *
- * Generated from protobuf field int32 rpo_risk_level = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setRpoRiskLevel($var)
- {
- GPBUtil::checkInt32($var);
- $this->rpo_risk_level = $var;
-
- return $this;
- }
-
- /**
- * Output only. Human-readable description of why the BackupPlan is in the
- * current rpo_risk_level and action items if any.
- *
- * Generated from protobuf field string rpo_risk_reason = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getRpoRiskReason()
- {
- return $this->rpo_risk_reason;
- }
-
- /**
- * Output only. Human-readable description of why the BackupPlan is in the
- * current rpo_risk_level and action items if any.
- *
- * Generated from protobuf field string rpo_risk_reason = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setRpoRiskReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->rpo_risk_reason = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan/BackupConfig.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan/BackupConfig.php
deleted file mode 100644
index 225bf80ba436..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan/BackupConfig.php
+++ /dev/null
@@ -1,334 +0,0 @@
-google.cloud.gkebackup.v1.BackupPlan.BackupConfig
- */
-class BackupConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. This flag specifies whether volume data should be backed up
- * when PVCs are included in the scope of a Backup.
- * Default: False
- *
- * Generated from protobuf field bool include_volume_data = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $include_volume_data = false;
- /**
- * Optional. This flag specifies whether Kubernetes Secret resources should
- * be included when they fall into the scope of Backups.
- * Default: False
- *
- * Generated from protobuf field bool include_secrets = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $include_secrets = false;
- /**
- * Optional. This defines a customer managed encryption key that will be
- * used to encrypt the "config" portion (the Kubernetes resources) of
- * Backups created via this plan.
- * Default (empty): Config backup artifacts will not be encrypted.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $encryption_key = null;
- /**
- * Optional. If false, Backups will fail when Backup for GKE detects
- * Kubernetes configuration that is non-standard or
- * requires additional setup to restore.
- * Default: False
- *
- * Generated from protobuf field bool permissive_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $permissive_mode = false;
- protected $backup_scope;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $all_namespaces
- * If True, include all namespaced resources
- * @type \Google\Cloud\GkeBackup\V1\Namespaces $selected_namespaces
- * If set, include just the resources in the listed namespaces.
- * @type \Google\Cloud\GkeBackup\V1\NamespacedNames $selected_applications
- * If set, include just the resources referenced by the listed
- * ProtectedApplications.
- * @type bool $include_volume_data
- * Optional. This flag specifies whether volume data should be backed up
- * when PVCs are included in the scope of a Backup.
- * Default: False
- * @type bool $include_secrets
- * Optional. This flag specifies whether Kubernetes Secret resources should
- * be included when they fall into the scope of Backups.
- * Default: False
- * @type \Google\Cloud\GkeBackup\V1\EncryptionKey $encryption_key
- * Optional. This defines a customer managed encryption key that will be
- * used to encrypt the "config" portion (the Kubernetes resources) of
- * Backups created via this plan.
- * Default (empty): Config backup artifacts will not be encrypted.
- * @type bool $permissive_mode
- * Optional. If false, Backups will fail when Backup for GKE detects
- * Kubernetes configuration that is non-standard or
- * requires additional setup to restore.
- * Default: False
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\BackupPlan::initOnce();
- parent::__construct($data);
- }
-
- /**
- * If True, include all namespaced resources
- *
- * Generated from protobuf field bool all_namespaces = 1;
- * @return bool
- */
- public function getAllNamespaces()
- {
- return $this->readOneof(1);
- }
-
- public function hasAllNamespaces()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * If True, include all namespaced resources
- *
- * Generated from protobuf field bool all_namespaces = 1;
- * @param bool $var
- * @return $this
- */
- public function setAllNamespaces($var)
- {
- GPBUtil::checkBool($var);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * If set, include just the resources in the listed namespaces.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
- * @return \Google\Cloud\GkeBackup\V1\Namespaces|null
- */
- public function getSelectedNamespaces()
- {
- return $this->readOneof(2);
- }
-
- public function hasSelectedNamespaces()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * If set, include just the resources in the listed namespaces.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 2;
- * @param \Google\Cloud\GkeBackup\V1\Namespaces $var
- * @return $this
- */
- public function setSelectedNamespaces($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\Namespaces::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * If set, include just the resources referenced by the listed
- * ProtectedApplications.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
- * @return \Google\Cloud\GkeBackup\V1\NamespacedNames|null
- */
- public function getSelectedApplications()
- {
- return $this->readOneof(3);
- }
-
- public function hasSelectedApplications()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * If set, include just the resources referenced by the listed
- * ProtectedApplications.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 3;
- * @param \Google\Cloud\GkeBackup\V1\NamespacedNames $var
- * @return $this
- */
- public function setSelectedApplications($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\NamespacedNames::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * Optional. This flag specifies whether volume data should be backed up
- * when PVCs are included in the scope of a Backup.
- * Default: False
- *
- * Generated from protobuf field bool include_volume_data = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getIncludeVolumeData()
- {
- return $this->include_volume_data;
- }
-
- /**
- * Optional. This flag specifies whether volume data should be backed up
- * when PVCs are included in the scope of a Backup.
- * Default: False
- *
- * Generated from protobuf field bool include_volume_data = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setIncludeVolumeData($var)
- {
- GPBUtil::checkBool($var);
- $this->include_volume_data = $var;
-
- return $this;
- }
-
- /**
- * Optional. This flag specifies whether Kubernetes Secret resources should
- * be included when they fall into the scope of Backups.
- * Default: False
- *
- * Generated from protobuf field bool include_secrets = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getIncludeSecrets()
- {
- return $this->include_secrets;
- }
-
- /**
- * Optional. This flag specifies whether Kubernetes Secret resources should
- * be included when they fall into the scope of Backups.
- * Default: False
- *
- * Generated from protobuf field bool include_secrets = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setIncludeSecrets($var)
- {
- GPBUtil::checkBool($var);
- $this->include_secrets = $var;
-
- return $this;
- }
-
- /**
- * Optional. This defines a customer managed encryption key that will be
- * used to encrypt the "config" portion (the Kubernetes resources) of
- * Backups created via this plan.
- * Default (empty): Config backup artifacts will not be encrypted.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeBackup\V1\EncryptionKey|null
- */
- public function getEncryptionKey()
- {
- return $this->encryption_key;
- }
-
- public function hasEncryptionKey()
- {
- return isset($this->encryption_key);
- }
-
- public function clearEncryptionKey()
- {
- unset($this->encryption_key);
- }
-
- /**
- * Optional. This defines a customer managed encryption key that will be
- * used to encrypt the "config" portion (the Kubernetes resources) of
- * Backups created via this plan.
- * Default (empty): Config backup artifacts will not be encrypted.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.EncryptionKey encryption_key = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeBackup\V1\EncryptionKey $var
- * @return $this
- */
- public function setEncryptionKey($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\EncryptionKey::class);
- $this->encryption_key = $var;
-
- return $this;
- }
-
- /**
- * Optional. If false, Backups will fail when Backup for GKE detects
- * Kubernetes configuration that is non-standard or
- * requires additional setup to restore.
- * Default: False
- *
- * Generated from protobuf field bool permissive_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getPermissiveMode()
- {
- return $this->permissive_mode;
- }
-
- /**
- * Optional. If false, Backups will fail when Backup for GKE detects
- * Kubernetes configuration that is non-standard or
- * requires additional setup to restore.
- * Default: False
- *
- * Generated from protobuf field bool permissive_mode = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setPermissiveMode($var)
- {
- GPBUtil::checkBool($var);
- $this->permissive_mode = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getBackupScope()
- {
- return $this->whichOneof("backup_scope");
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(BackupConfig::class, \Google\Cloud\GkeBackup\V1\BackupPlan_BackupConfig::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan/RetentionPolicy.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan/RetentionPolicy.php
deleted file mode 100644
index 72bfebccc34e..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan/RetentionPolicy.php
+++ /dev/null
@@ -1,246 +0,0 @@
-google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy
- */
-class RetentionPolicy extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Minimum age for Backups created via this BackupPlan (in days).
- * This field MUST be an integer value between 0-90 (inclusive).
- * A Backup created under this BackupPlan will NOT be deletable until it
- * reaches Backup's (create_time + backup_delete_lock_days).
- * Updating this field of a BackupPlan does NOT affect existing Backups
- * under it. Backups created AFTER a successful update will inherit
- * the new value.
- * Default: 0 (no delete blocking)
- *
- * Generated from protobuf field int32 backup_delete_lock_days = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $backup_delete_lock_days = 0;
- /**
- * Optional. The default maximum age of a Backup created via this
- * BackupPlan. This field MUST be an integer value >= 0 and <= 365. If
- * specified, a Backup created under this BackupPlan will be automatically
- * deleted after its age reaches (create_time + backup_retain_days). If not
- * specified, Backups created under this BackupPlan will NOT be subject to
- * automatic deletion. Updating this field does NOT affect existing Backups
- * under it. Backups created AFTER a successful update will automatically
- * pick up the new value. NOTE: backup_retain_days must be >=
- * [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days].
- * If
- * [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule]
- * is defined, then this must be
- * <= 360 * the creation interval. If
- * [rpo_config][google.cloud.gkebackup.v1.BackupPlan.Schedule.rpo_config] is
- * defined, then this must be
- * <= 360 * [target_rpo_minutes][Schedule.rpo_config.target_rpo_minutes] /
- * (1440minutes/day).
- * Default: 0 (no automatic deletion)
- *
- * Generated from protobuf field int32 backup_retain_days = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $backup_retain_days = 0;
- /**
- * Optional. This flag denotes whether the retention policy of this
- * BackupPlan is locked. If set to True, no further update is allowed on
- * this policy, including the `locked` field itself.
- * Default: False
- *
- * Generated from protobuf field bool locked = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $locked = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $backup_delete_lock_days
- * Optional. Minimum age for Backups created via this BackupPlan (in days).
- * This field MUST be an integer value between 0-90 (inclusive).
- * A Backup created under this BackupPlan will NOT be deletable until it
- * reaches Backup's (create_time + backup_delete_lock_days).
- * Updating this field of a BackupPlan does NOT affect existing Backups
- * under it. Backups created AFTER a successful update will inherit
- * the new value.
- * Default: 0 (no delete blocking)
- * @type int $backup_retain_days
- * Optional. The default maximum age of a Backup created via this
- * BackupPlan. This field MUST be an integer value >= 0 and <= 365. If
- * specified, a Backup created under this BackupPlan will be automatically
- * deleted after its age reaches (create_time + backup_retain_days). If not
- * specified, Backups created under this BackupPlan will NOT be subject to
- * automatic deletion. Updating this field does NOT affect existing Backups
- * under it. Backups created AFTER a successful update will automatically
- * pick up the new value. NOTE: backup_retain_days must be >=
- * [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days].
- * If
- * [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule]
- * is defined, then this must be
- * <= 360 * the creation interval. If
- * [rpo_config][google.cloud.gkebackup.v1.BackupPlan.Schedule.rpo_config] is
- * defined, then this must be
- * <= 360 * [target_rpo_minutes][Schedule.rpo_config.target_rpo_minutes] /
- * (1440minutes/day).
- * Default: 0 (no automatic deletion)
- * @type bool $locked
- * Optional. This flag denotes whether the retention policy of this
- * BackupPlan is locked. If set to True, no further update is allowed on
- * this policy, including the `locked` field itself.
- * Default: False
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\BackupPlan::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Minimum age for Backups created via this BackupPlan (in days).
- * This field MUST be an integer value between 0-90 (inclusive).
- * A Backup created under this BackupPlan will NOT be deletable until it
- * reaches Backup's (create_time + backup_delete_lock_days).
- * Updating this field of a BackupPlan does NOT affect existing Backups
- * under it. Backups created AFTER a successful update will inherit
- * the new value.
- * Default: 0 (no delete blocking)
- *
- * Generated from protobuf field int32 backup_delete_lock_days = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getBackupDeleteLockDays()
- {
- return $this->backup_delete_lock_days;
- }
-
- /**
- * Optional. Minimum age for Backups created via this BackupPlan (in days).
- * This field MUST be an integer value between 0-90 (inclusive).
- * A Backup created under this BackupPlan will NOT be deletable until it
- * reaches Backup's (create_time + backup_delete_lock_days).
- * Updating this field of a BackupPlan does NOT affect existing Backups
- * under it. Backups created AFTER a successful update will inherit
- * the new value.
- * Default: 0 (no delete blocking)
- *
- * Generated from protobuf field int32 backup_delete_lock_days = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setBackupDeleteLockDays($var)
- {
- GPBUtil::checkInt32($var);
- $this->backup_delete_lock_days = $var;
-
- return $this;
- }
-
- /**
- * Optional. The default maximum age of a Backup created via this
- * BackupPlan. This field MUST be an integer value >= 0 and <= 365. If
- * specified, a Backup created under this BackupPlan will be automatically
- * deleted after its age reaches (create_time + backup_retain_days). If not
- * specified, Backups created under this BackupPlan will NOT be subject to
- * automatic deletion. Updating this field does NOT affect existing Backups
- * under it. Backups created AFTER a successful update will automatically
- * pick up the new value. NOTE: backup_retain_days must be >=
- * [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days].
- * If
- * [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule]
- * is defined, then this must be
- * <= 360 * the creation interval. If
- * [rpo_config][google.cloud.gkebackup.v1.BackupPlan.Schedule.rpo_config] is
- * defined, then this must be
- * <= 360 * [target_rpo_minutes][Schedule.rpo_config.target_rpo_minutes] /
- * (1440minutes/day).
- * Default: 0 (no automatic deletion)
- *
- * Generated from protobuf field int32 backup_retain_days = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getBackupRetainDays()
- {
- return $this->backup_retain_days;
- }
-
- /**
- * Optional. The default maximum age of a Backup created via this
- * BackupPlan. This field MUST be an integer value >= 0 and <= 365. If
- * specified, a Backup created under this BackupPlan will be automatically
- * deleted after its age reaches (create_time + backup_retain_days). If not
- * specified, Backups created under this BackupPlan will NOT be subject to
- * automatic deletion. Updating this field does NOT affect existing Backups
- * under it. Backups created AFTER a successful update will automatically
- * pick up the new value. NOTE: backup_retain_days must be >=
- * [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days].
- * If
- * [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule]
- * is defined, then this must be
- * <= 360 * the creation interval. If
- * [rpo_config][google.cloud.gkebackup.v1.BackupPlan.Schedule.rpo_config] is
- * defined, then this must be
- * <= 360 * [target_rpo_minutes][Schedule.rpo_config.target_rpo_minutes] /
- * (1440minutes/day).
- * Default: 0 (no automatic deletion)
- *
- * Generated from protobuf field int32 backup_retain_days = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setBackupRetainDays($var)
- {
- GPBUtil::checkInt32($var);
- $this->backup_retain_days = $var;
-
- return $this;
- }
-
- /**
- * Optional. This flag denotes whether the retention policy of this
- * BackupPlan is locked. If set to True, no further update is allowed on
- * this policy, including the `locked` field itself.
- * Default: False
- *
- * Generated from protobuf field bool locked = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getLocked()
- {
- return $this->locked;
- }
-
- /**
- * Optional. This flag denotes whether the retention policy of this
- * BackupPlan is locked. If set to True, no further update is allowed on
- * this policy, including the `locked` field itself.
- * Default: False
- *
- * Generated from protobuf field bool locked = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setLocked($var)
- {
- GPBUtil::checkBool($var);
- $this->locked = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(RetentionPolicy::class, \Google\Cloud\GkeBackup\V1\BackupPlan_RetentionPolicy::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan/Schedule.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan/Schedule.php
deleted file mode 100644
index 27ab971f885f..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan/Schedule.php
+++ /dev/null
@@ -1,265 +0,0 @@
-google.cloud.gkebackup.v1.BackupPlan.Schedule
- */
-class Schedule extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that
- * defines a repeating schedule for creating Backups via this BackupPlan.
- * This is mutually exclusive with the
- * [rpo_config][google.cloud.gkebackup.v1.BackupPlan.Schedule.rpo_config]
- * field since at most one schedule can be defined for a BackupPlan. If this
- * is defined, then
- * [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
- * must also be defined.
- * Default (empty): no automatic backup creation will occur.
- *
- * Generated from protobuf field string cron_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $cron_schedule = '';
- /**
- * Optional. This flag denotes whether automatic Backup creation is paused
- * for this BackupPlan.
- * Default: False
- *
- * Generated from protobuf field bool paused = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $paused = false;
- /**
- * Optional. Defines the RPO schedule configuration for this BackupPlan.
- * This is mutually exclusive with the
- * [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule]
- * field since at most one schedule can be defined for a BackupPLan. If this
- * is defined, then
- * [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
- * must also be defined.
- * Default (empty): no automatic backup creation will occur.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RpoConfig rpo_config = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $rpo_config = null;
- /**
- * Output only. Start time of next scheduled backup under this BackupPlan by
- * either cron_schedule or rpo config.
- *
- * Generated from protobuf field .google.protobuf.Timestamp next_scheduled_backup_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $next_scheduled_backup_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $cron_schedule
- * Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that
- * defines a repeating schedule for creating Backups via this BackupPlan.
- * This is mutually exclusive with the
- * [rpo_config][google.cloud.gkebackup.v1.BackupPlan.Schedule.rpo_config]
- * field since at most one schedule can be defined for a BackupPlan. If this
- * is defined, then
- * [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
- * must also be defined.
- * Default (empty): no automatic backup creation will occur.
- * @type bool $paused
- * Optional. This flag denotes whether automatic Backup creation is paused
- * for this BackupPlan.
- * Default: False
- * @type \Google\Cloud\GkeBackup\V1\RpoConfig $rpo_config
- * Optional. Defines the RPO schedule configuration for this BackupPlan.
- * This is mutually exclusive with the
- * [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule]
- * field since at most one schedule can be defined for a BackupPLan. If this
- * is defined, then
- * [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
- * must also be defined.
- * Default (empty): no automatic backup creation will occur.
- * @type \Google\Protobuf\Timestamp $next_scheduled_backup_time
- * Output only. Start time of next scheduled backup under this BackupPlan by
- * either cron_schedule or rpo config.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\BackupPlan::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that
- * defines a repeating schedule for creating Backups via this BackupPlan.
- * This is mutually exclusive with the
- * [rpo_config][google.cloud.gkebackup.v1.BackupPlan.Schedule.rpo_config]
- * field since at most one schedule can be defined for a BackupPlan. If this
- * is defined, then
- * [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
- * must also be defined.
- * Default (empty): no automatic backup creation will occur.
- *
- * Generated from protobuf field string cron_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getCronSchedule()
- {
- return $this->cron_schedule;
- }
-
- /**
- * Optional. A standard [cron](https://wikipedia.com/wiki/cron) string that
- * defines a repeating schedule for creating Backups via this BackupPlan.
- * This is mutually exclusive with the
- * [rpo_config][google.cloud.gkebackup.v1.BackupPlan.Schedule.rpo_config]
- * field since at most one schedule can be defined for a BackupPlan. If this
- * is defined, then
- * [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
- * must also be defined.
- * Default (empty): no automatic backup creation will occur.
- *
- * Generated from protobuf field string cron_schedule = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setCronSchedule($var)
- {
- GPBUtil::checkString($var, True);
- $this->cron_schedule = $var;
-
- return $this;
- }
-
- /**
- * Optional. This flag denotes whether automatic Backup creation is paused
- * for this BackupPlan.
- * Default: False
- *
- * Generated from protobuf field bool paused = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getPaused()
- {
- return $this->paused;
- }
-
- /**
- * Optional. This flag denotes whether automatic Backup creation is paused
- * for this BackupPlan.
- * Default: False
- *
- * Generated from protobuf field bool paused = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setPaused($var)
- {
- GPBUtil::checkBool($var);
- $this->paused = $var;
-
- return $this;
- }
-
- /**
- * Optional. Defines the RPO schedule configuration for this BackupPlan.
- * This is mutually exclusive with the
- * [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule]
- * field since at most one schedule can be defined for a BackupPLan. If this
- * is defined, then
- * [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
- * must also be defined.
- * Default (empty): no automatic backup creation will occur.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RpoConfig rpo_config = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeBackup\V1\RpoConfig|null
- */
- public function getRpoConfig()
- {
- return $this->rpo_config;
- }
-
- public function hasRpoConfig()
- {
- return isset($this->rpo_config);
- }
-
- public function clearRpoConfig()
- {
- unset($this->rpo_config);
- }
-
- /**
- * Optional. Defines the RPO schedule configuration for this BackupPlan.
- * This is mutually exclusive with the
- * [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule]
- * field since at most one schedule can be defined for a BackupPLan. If this
- * is defined, then
- * [backup_retain_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_retain_days]
- * must also be defined.
- * Default (empty): no automatic backup creation will occur.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RpoConfig rpo_config = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeBackup\V1\RpoConfig $var
- * @return $this
- */
- public function setRpoConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\RpoConfig::class);
- $this->rpo_config = $var;
-
- return $this;
- }
-
- /**
- * Output only. Start time of next scheduled backup under this BackupPlan by
- * either cron_schedule or rpo config.
- *
- * Generated from protobuf field .google.protobuf.Timestamp next_scheduled_backup_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getNextScheduledBackupTime()
- {
- return $this->next_scheduled_backup_time;
- }
-
- public function hasNextScheduledBackupTime()
- {
- return isset($this->next_scheduled_backup_time);
- }
-
- public function clearNextScheduledBackupTime()
- {
- unset($this->next_scheduled_backup_time);
- }
-
- /**
- * Output only. Start time of next scheduled backup under this BackupPlan by
- * either cron_schedule or rpo config.
- *
- * Generated from protobuf field .google.protobuf.Timestamp next_scheduled_backup_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setNextScheduledBackupTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->next_scheduled_backup_time = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(Schedule::class, \Google\Cloud\GkeBackup\V1\BackupPlan_Schedule::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan/State.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan/State.php
deleted file mode 100644
index 6798836e13e5..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/BackupPlan/State.php
+++ /dev/null
@@ -1,92 +0,0 @@
-google.cloud.gkebackup.v1.BackupPlan.State
- */
-class State
-{
- /**
- * Default first value for Enums.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * Waiting for cluster state to be RUNNING.
- *
- * Generated from protobuf enum CLUSTER_PENDING = 1;
- */
- const CLUSTER_PENDING = 1;
- /**
- * The BackupPlan is in the process of being created.
- *
- * Generated from protobuf enum PROVISIONING = 2;
- */
- const PROVISIONING = 2;
- /**
- * The BackupPlan has successfully been created and is ready for Backups.
- *
- * Generated from protobuf enum READY = 3;
- */
- const READY = 3;
- /**
- * BackupPlan creation has failed.
- *
- * Generated from protobuf enum FAILED = 4;
- */
- const FAILED = 4;
- /**
- * The BackupPlan has been deactivated.
- *
- * Generated from protobuf enum DEACTIVATED = 5;
- */
- const DEACTIVATED = 5;
- /**
- * The BackupPlan is in the process of being deleted.
- *
- * Generated from protobuf enum DELETING = 6;
- */
- const DELETING = 6;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::CLUSTER_PENDING => 'CLUSTER_PENDING',
- self::PROVISIONING => 'PROVISIONING',
- self::READY => 'READY',
- self::FAILED => 'FAILED',
- self::DEACTIVATED => 'DEACTIVATED',
- self::DELETING => 'DELETING',
- ];
-
- 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(State::class, \Google\Cloud\GkeBackup\V1\BackupPlan_State::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/CreateBackupPlanRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/CreateBackupPlanRequest.php
deleted file mode 100644
index f73b64d0fb0a..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/CreateBackupPlanRequest.php
+++ /dev/null
@@ -1,199 +0,0 @@
-google.cloud.gkebackup.v1.CreateBackupPlanRequest
- */
-class CreateBackupPlanRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The location within which to create the BackupPlan.
- * Format: `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. The BackupPlan resource object to create.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $backup_plan = null;
- /**
- * Required. The client-provided short name for the BackupPlan resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of BackupPlans in this location
- *
- * Generated from protobuf field string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $backup_plan_id = '';
-
- /**
- * @param string $parent Required. The location within which to create the BackupPlan.
- * Format: `projects/*/locations/*`
- * Please see {@see BackupForGKEClient::locationName()} for help formatting this field.
- * @param \Google\Cloud\GkeBackup\V1\BackupPlan $backupPlan Required. The BackupPlan resource object to create.
- * @param string $backupPlanId Required. The client-provided short name for the BackupPlan resource.
- * This name must:
- *
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of BackupPlans in this location
- *
- * @return \Google\Cloud\GkeBackup\V1\CreateBackupPlanRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\GkeBackup\V1\BackupPlan $backupPlan, string $backupPlanId): self
- {
- return (new self())
- ->setParent($parent)
- ->setBackupPlan($backupPlan)
- ->setBackupPlanId($backupPlanId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The location within which to create the BackupPlan.
- * Format: `projects/*/locations/*`
- * @type \Google\Cloud\GkeBackup\V1\BackupPlan $backup_plan
- * Required. The BackupPlan resource object to create.
- * @type string $backup_plan_id
- * Required. The client-provided short name for the BackupPlan resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of BackupPlans in this location
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The location within which to create the BackupPlan.
- * Format: `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The location within which to create the BackupPlan.
- * Format: `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. The BackupPlan resource object to create.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\GkeBackup\V1\BackupPlan|null
- */
- public function getBackupPlan()
- {
- return $this->backup_plan;
- }
-
- public function hasBackupPlan()
- {
- return isset($this->backup_plan);
- }
-
- public function clearBackupPlan()
- {
- unset($this->backup_plan);
- }
-
- /**
- * Required. The BackupPlan resource object to create.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan backup_plan = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\GkeBackup\V1\BackupPlan $var
- * @return $this
- */
- public function setBackupPlan($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\BackupPlan::class);
- $this->backup_plan = $var;
-
- return $this;
- }
-
- /**
- * Required. The client-provided short name for the BackupPlan resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of BackupPlans in this location
- *
- * Generated from protobuf field string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getBackupPlanId()
- {
- return $this->backup_plan_id;
- }
-
- /**
- * Required. The client-provided short name for the BackupPlan resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of BackupPlans in this location
- *
- * Generated from protobuf field string backup_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setBackupPlanId($var)
- {
- GPBUtil::checkString($var, True);
- $this->backup_plan_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/CreateBackupRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/CreateBackupRequest.php
deleted file mode 100644
index d0bb4a85440f..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/CreateBackupRequest.php
+++ /dev/null
@@ -1,199 +0,0 @@
-google.cloud.gkebackup.v1.CreateBackupRequest
- */
-class CreateBackupRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The BackupPlan within which to create the Backup.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Optional. The Backup resource to create.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Backup backup = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $backup = null;
- /**
- * Optional. The client-provided short name for the Backup resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of Backups in this BackupPlan
- *
- * Generated from protobuf field string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $backup_id = '';
-
- /**
- * @param string $parent Required. The BackupPlan within which to create the Backup.
- * Format: `projects/*/locations/*/backupPlans/*`
- * Please see {@see BackupForGKEClient::backupPlanName()} for help formatting this field.
- * @param \Google\Cloud\GkeBackup\V1\Backup $backup Optional. The Backup resource to create.
- * @param string $backupId Optional. The client-provided short name for the Backup resource.
- * This name must:
- *
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of Backups in this BackupPlan
- *
- * @return \Google\Cloud\GkeBackup\V1\CreateBackupRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\GkeBackup\V1\Backup $backup, string $backupId): self
- {
- return (new self())
- ->setParent($parent)
- ->setBackup($backup)
- ->setBackupId($backupId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The BackupPlan within which to create the Backup.
- * Format: `projects/*/locations/*/backupPlans/*`
- * @type \Google\Cloud\GkeBackup\V1\Backup $backup
- * Optional. The Backup resource to create.
- * @type string $backup_id
- * Optional. The client-provided short name for the Backup resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of Backups in this BackupPlan
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The BackupPlan within which to create the Backup.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The BackupPlan within which to create the Backup.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The Backup resource to create.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Backup backup = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeBackup\V1\Backup|null
- */
- public function getBackup()
- {
- return $this->backup;
- }
-
- public function hasBackup()
- {
- return isset($this->backup);
- }
-
- public function clearBackup()
- {
- unset($this->backup);
- }
-
- /**
- * Optional. The Backup resource to create.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Backup backup = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeBackup\V1\Backup $var
- * @return $this
- */
- public function setBackup($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\Backup::class);
- $this->backup = $var;
-
- return $this;
- }
-
- /**
- * Optional. The client-provided short name for the Backup resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of Backups in this BackupPlan
- *
- * Generated from protobuf field string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getBackupId()
- {
- return $this->backup_id;
- }
-
- /**
- * Optional. The client-provided short name for the Backup resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of Backups in this BackupPlan
- *
- * Generated from protobuf field string backup_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setBackupId($var)
- {
- GPBUtil::checkString($var, True);
- $this->backup_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/CreateRestorePlanRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/CreateRestorePlanRequest.php
deleted file mode 100644
index 8622b9383629..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/CreateRestorePlanRequest.php
+++ /dev/null
@@ -1,199 +0,0 @@
-google.cloud.gkebackup.v1.CreateRestorePlanRequest
- */
-class CreateRestorePlanRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The location within which to create the RestorePlan.
- * Format: `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. The RestorePlan resource object to create.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $restore_plan = null;
- /**
- * Required. The client-provided short name for the RestorePlan resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of RestorePlans in this location
- *
- * Generated from protobuf field string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $restore_plan_id = '';
-
- /**
- * @param string $parent Required. The location within which to create the RestorePlan.
- * Format: `projects/*/locations/*`
- * Please see {@see BackupForGKEClient::locationName()} for help formatting this field.
- * @param \Google\Cloud\GkeBackup\V1\RestorePlan $restorePlan Required. The RestorePlan resource object to create.
- * @param string $restorePlanId Required. The client-provided short name for the RestorePlan resource.
- * This name must:
- *
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of RestorePlans in this location
- *
- * @return \Google\Cloud\GkeBackup\V1\CreateRestorePlanRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\GkeBackup\V1\RestorePlan $restorePlan, string $restorePlanId): self
- {
- return (new self())
- ->setParent($parent)
- ->setRestorePlan($restorePlan)
- ->setRestorePlanId($restorePlanId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The location within which to create the RestorePlan.
- * Format: `projects/*/locations/*`
- * @type \Google\Cloud\GkeBackup\V1\RestorePlan $restore_plan
- * Required. The RestorePlan resource object to create.
- * @type string $restore_plan_id
- * Required. The client-provided short name for the RestorePlan resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of RestorePlans in this location
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The location within which to create the RestorePlan.
- * Format: `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The location within which to create the RestorePlan.
- * Format: `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. The RestorePlan resource object to create.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\GkeBackup\V1\RestorePlan|null
- */
- public function getRestorePlan()
- {
- return $this->restore_plan;
- }
-
- public function hasRestorePlan()
- {
- return isset($this->restore_plan);
- }
-
- public function clearRestorePlan()
- {
- unset($this->restore_plan);
- }
-
- /**
- * Required. The RestorePlan resource object to create.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestorePlan restore_plan = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\GkeBackup\V1\RestorePlan $var
- * @return $this
- */
- public function setRestorePlan($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\RestorePlan::class);
- $this->restore_plan = $var;
-
- return $this;
- }
-
- /**
- * Required. The client-provided short name for the RestorePlan resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of RestorePlans in this location
- *
- * Generated from protobuf field string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getRestorePlanId()
- {
- return $this->restore_plan_id;
- }
-
- /**
- * Required. The client-provided short name for the RestorePlan resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of RestorePlans in this location
- *
- * Generated from protobuf field string restore_plan_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setRestorePlanId($var)
- {
- GPBUtil::checkString($var, True);
- $this->restore_plan_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/CreateRestoreRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/CreateRestoreRequest.php
deleted file mode 100644
index 296f4506ffd7..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/CreateRestoreRequest.php
+++ /dev/null
@@ -1,199 +0,0 @@
-google.cloud.gkebackup.v1.CreateRestoreRequest
- */
-class CreateRestoreRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The RestorePlan within which to create the Restore.
- * Format: `projects/*/locations/*/restorePlans/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. The restore resource to create.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $restore = null;
- /**
- * Required. The client-provided short name for the Restore resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of Restores in this RestorePlan.
- *
- * Generated from protobuf field string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $restore_id = '';
-
- /**
- * @param string $parent Required. The RestorePlan within which to create the Restore.
- * Format: `projects/*/locations/*/restorePlans/*`
- * Please see {@see BackupForGKEClient::restorePlanName()} for help formatting this field.
- * @param \Google\Cloud\GkeBackup\V1\Restore $restore Required. The restore resource to create.
- * @param string $restoreId Required. The client-provided short name for the Restore resource.
- * This name must:
- *
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of Restores in this RestorePlan.
- *
- * @return \Google\Cloud\GkeBackup\V1\CreateRestoreRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\GkeBackup\V1\Restore $restore, string $restoreId): self
- {
- return (new self())
- ->setParent($parent)
- ->setRestore($restore)
- ->setRestoreId($restoreId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The RestorePlan within which to create the Restore.
- * Format: `projects/*/locations/*/restorePlans/*`
- * @type \Google\Cloud\GkeBackup\V1\Restore $restore
- * Required. The restore resource to create.
- * @type string $restore_id
- * Required. The client-provided short name for the Restore resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of Restores in this RestorePlan.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The RestorePlan within which to create the Restore.
- * Format: `projects/*/locations/*/restorePlans/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The RestorePlan within which to create the Restore.
- * Format: `projects/*/locations/*/restorePlans/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. The restore resource to create.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\GkeBackup\V1\Restore|null
- */
- public function getRestore()
- {
- return $this->restore;
- }
-
- public function hasRestore()
- {
- return isset($this->restore);
- }
-
- public function clearRestore()
- {
- unset($this->restore);
- }
-
- /**
- * Required. The restore resource to create.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Restore restore = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\GkeBackup\V1\Restore $var
- * @return $this
- */
- public function setRestore($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\Restore::class);
- $this->restore = $var;
-
- return $this;
- }
-
- /**
- * Required. The client-provided short name for the Restore resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of Restores in this RestorePlan.
- *
- * Generated from protobuf field string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getRestoreId()
- {
- return $this->restore_id;
- }
-
- /**
- * Required. The client-provided short name for the Restore resource.
- * This name must:
- * - be between 1 and 63 characters long (inclusive)
- * - consist of only lower-case ASCII letters, numbers, and dashes
- * - start with a lower-case letter
- * - end with a lower-case letter or number
- * - be unique within the set of Restores in this RestorePlan.
- *
- * Generated from protobuf field string restore_id = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setRestoreId($var)
- {
- GPBUtil::checkString($var, True);
- $this->restore_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/DeleteBackupPlanRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/DeleteBackupPlanRequest.php
deleted file mode 100644
index a57c8c6b240e..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/DeleteBackupPlanRequest.php
+++ /dev/null
@@ -1,128 +0,0 @@
-google.cloud.gkebackup.v1.DeleteBackupPlanRequest
- */
-class DeleteBackupPlanRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Fully qualified BackupPlan name.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Optional. If provided, this value must match the current value of the
- * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field
- * or the request is rejected.
- *
- * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $etag = '';
-
- /**
- * @param string $name Required. Fully qualified BackupPlan name.
- * Format: `projects/*/locations/*/backupPlans/*`
- * Please see {@see BackupForGKEClient::backupPlanName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\DeleteBackupPlanRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Fully qualified BackupPlan name.
- * Format: `projects/*/locations/*/backupPlans/*`
- * @type string $etag
- * Optional. If provided, this value must match the current value of the
- * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field
- * or the request is rejected.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Fully qualified BackupPlan name.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Fully qualified BackupPlan name.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. If provided, this value must match the current value of the
- * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field
- * or the request is rejected.
- *
- * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Optional. If provided, this value must match the current value of the
- * target BackupPlan's [etag][google.cloud.gkebackup.v1.BackupPlan.etag] field
- * or the request is rejected.
- *
- * Generated from protobuf field string etag = 2 [(.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/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/DeleteBackupRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/DeleteBackupRequest.php
deleted file mode 100644
index c6f5067dd84b..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/DeleteBackupRequest.php
+++ /dev/null
@@ -1,170 +0,0 @@
-google.cloud.gkebackup.v1.DeleteBackupRequest
- */
-class DeleteBackupRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the Backup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Optional. If provided, this value must match the current value of the
- * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the
- * request is rejected.
- *
- * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $etag = '';
- /**
- * Optional. If set to true, any VolumeBackups below this Backup will also be
- * deleted. Otherwise, the request will only succeed if the Backup has no
- * VolumeBackups.
- *
- * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $force = false;
-
- /**
- * @param string $name Required. Name of the Backup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- * Please see {@see BackupForGKEClient::backupName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\DeleteBackupRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the Backup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- * @type string $etag
- * Optional. If provided, this value must match the current value of the
- * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the
- * request is rejected.
- * @type bool $force
- * Optional. If set to true, any VolumeBackups below this Backup will also be
- * deleted. Otherwise, the request will only succeed if the Backup has no
- * VolumeBackups.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the Backup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the Backup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. If provided, this value must match the current value of the
- * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the
- * request is rejected.
- *
- * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Optional. If provided, this value must match the current value of the
- * target Backup's [etag][google.cloud.gkebackup.v1.Backup.etag] field or the
- * request is rejected.
- *
- * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, any VolumeBackups below this Backup will also be
- * deleted. Otherwise, the request will only succeed if the Backup has no
- * VolumeBackups.
- *
- * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getForce()
- {
- return $this->force;
- }
-
- /**
- * Optional. If set to true, any VolumeBackups below this Backup will also be
- * deleted. Otherwise, the request will only succeed if the Backup has no
- * VolumeBackups.
- *
- * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setForce($var)
- {
- GPBUtil::checkBool($var);
- $this->force = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/DeleteRestorePlanRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/DeleteRestorePlanRequest.php
deleted file mode 100644
index ffe3f8e7bdcf..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/DeleteRestorePlanRequest.php
+++ /dev/null
@@ -1,170 +0,0 @@
-google.cloud.gkebackup.v1.DeleteRestorePlanRequest
- */
-class DeleteRestorePlanRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Fully qualified RestorePlan name.
- * Format: `projects/*/locations/*/restorePlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Optional. If provided, this value must match the current value of the
- * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag]
- * field or the request is rejected.
- *
- * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $etag = '';
- /**
- * Optional. If set to true, any Restores below this RestorePlan will also be
- * deleted. Otherwise, the request will only succeed if the RestorePlan has no
- * Restores.
- *
- * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $force = false;
-
- /**
- * @param string $name Required. Fully qualified RestorePlan name.
- * Format: `projects/*/locations/*/restorePlans/*`
- * Please see {@see BackupForGKEClient::restorePlanName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\DeleteRestorePlanRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Fully qualified RestorePlan name.
- * Format: `projects/*/locations/*/restorePlans/*`
- * @type string $etag
- * Optional. If provided, this value must match the current value of the
- * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag]
- * field or the request is rejected.
- * @type bool $force
- * Optional. If set to true, any Restores below this RestorePlan will also be
- * deleted. Otherwise, the request will only succeed if the RestorePlan has no
- * Restores.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Fully qualified RestorePlan name.
- * Format: `projects/*/locations/*/restorePlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Fully qualified RestorePlan name.
- * Format: `projects/*/locations/*/restorePlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. If provided, this value must match the current value of the
- * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag]
- * field or the request is rejected.
- *
- * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Optional. If provided, this value must match the current value of the
- * target RestorePlan's [etag][google.cloud.gkebackup.v1.RestorePlan.etag]
- * field or the request is rejected.
- *
- * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, any Restores below this RestorePlan will also be
- * deleted. Otherwise, the request will only succeed if the RestorePlan has no
- * Restores.
- *
- * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getForce()
- {
- return $this->force;
- }
-
- /**
- * Optional. If set to true, any Restores below this RestorePlan will also be
- * deleted. Otherwise, the request will only succeed if the RestorePlan has no
- * Restores.
- *
- * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setForce($var)
- {
- GPBUtil::checkBool($var);
- $this->force = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/DeleteRestoreRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/DeleteRestoreRequest.php
deleted file mode 100644
index e9f68b67a851..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/DeleteRestoreRequest.php
+++ /dev/null
@@ -1,170 +0,0 @@
-google.cloud.gkebackup.v1.DeleteRestoreRequest
- */
-class DeleteRestoreRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Full name of the Restore
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Optional. If provided, this value must match the current value of the
- * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or
- * the request is rejected.
- *
- * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $etag = '';
- /**
- * Optional. If set to true, any VolumeRestores below this restore will also
- * be deleted. Otherwise, the request will only succeed if the restore has no
- * VolumeRestores.
- *
- * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $force = false;
-
- /**
- * @param string $name Required. Full name of the Restore
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- * Please see {@see BackupForGKEClient::restoreName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\DeleteRestoreRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Full name of the Restore
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- * @type string $etag
- * Optional. If provided, this value must match the current value of the
- * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or
- * the request is rejected.
- * @type bool $force
- * Optional. If set to true, any VolumeRestores below this restore will also
- * be deleted. Otherwise, the request will only succeed if the restore has no
- * VolumeRestores.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Full name of the Restore
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Full name of the Restore
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. If provided, this value must match the current value of the
- * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or
- * the request is rejected.
- *
- * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Optional. If provided, this value must match the current value of the
- * target Restore's [etag][google.cloud.gkebackup.v1.Restore.etag] field or
- * the request is rejected.
- *
- * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, any VolumeRestores below this restore will also
- * be deleted. Otherwise, the request will only succeed if the restore has no
- * VolumeRestores.
- *
- * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getForce()
- {
- return $this->force;
- }
-
- /**
- * Optional. If set to true, any VolumeRestores below this restore will also
- * be deleted. Otherwise, the request will only succeed if the restore has no
- * VolumeRestores.
- *
- * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setForce($var)
- {
- GPBUtil::checkBool($var);
- $this->force = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/EncryptionKey.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/EncryptionKey.php
deleted file mode 100644
index 7bf0dfeb4c10..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/EncryptionKey.php
+++ /dev/null
@@ -1,72 +0,0 @@
-google.cloud.gkebackup.v1.EncryptionKey
- */
-class EncryptionKey extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Google Cloud KMS encryption key. Format:
- * `projects/*/locations/*/keyRings/*/cryptoKeys/*`
- *
- * Generated from protobuf field string gcp_kms_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- */
- protected $gcp_kms_encryption_key = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $gcp_kms_encryption_key
- * Optional. Google Cloud KMS encryption key. Format:
- * `projects/*/locations/*/keyRings/*/cryptoKeys/*`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Common::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Google Cloud KMS encryption key. Format:
- * `projects/*/locations/*/keyRings/*/cryptoKeys/*`
- *
- * Generated from protobuf field string gcp_kms_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @return string
- */
- public function getGcpKmsEncryptionKey()
- {
- return $this->gcp_kms_encryption_key;
- }
-
- /**
- * Optional. Google Cloud KMS encryption key. Format:
- * `projects/*/locations/*/keyRings/*/cryptoKeys/*`
- *
- * Generated from protobuf field string gcp_kms_encryption_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setGcpKmsEncryptionKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->gcp_kms_encryption_key = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ExclusionWindow.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ExclusionWindow.php
deleted file mode 100644
index e7289a99ccd6..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ExclusionWindow.php
+++ /dev/null
@@ -1,276 +0,0 @@
-google.cloud.gkebackup.v1.ExclusionWindow
- */
-class ExclusionWindow extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Specifies the start time of the window using time of the day in
- * UTC.
- *
- * Generated from protobuf field .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $start_time = null;
- /**
- * Required. Specifies duration of the window.
- * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
- * Additional restrictions based on the recurrence type to allow some time for
- * backup to happen:
- * - single_occurrence_date: no restriction, but UI may warn about this when
- * duration >= target RPO
- * - daily window: duration < 24 hours
- * - weekly window:
- * - days of week includes all seven days of a week: duration < 24 hours
- * - all other weekly window: duration < 168 hours (i.e., 24 * 7 hours)
- *
- * Generated from protobuf field .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $duration = null;
- protected $recurrence;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Type\TimeOfDay $start_time
- * Required. Specifies the start time of the window using time of the day in
- * UTC.
- * @type \Google\Protobuf\Duration $duration
- * Required. Specifies duration of the window.
- * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
- * Additional restrictions based on the recurrence type to allow some time for
- * backup to happen:
- * - single_occurrence_date: no restriction, but UI may warn about this when
- * duration >= target RPO
- * - daily window: duration < 24 hours
- * - weekly window:
- * - days of week includes all seven days of a week: duration < 24 hours
- * - all other weekly window: duration < 168 hours (i.e., 24 * 7 hours)
- * @type \Google\Type\Date $single_occurrence_date
- * No recurrence. The exclusion window occurs only once and on this
- * date in UTC.
- * @type bool $daily
- * The exclusion window occurs every day if set to "True".
- * Specifying this field to "False" is an error.
- * @type \Google\Cloud\GkeBackup\V1\ExclusionWindow\DayOfWeekList $days_of_week
- * The exclusion window occurs on these days of each week in UTC.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\BackupPlan::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Specifies the start time of the window using time of the day in
- * UTC.
- *
- * Generated from protobuf field .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Type\TimeOfDay|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * Required. Specifies the start time of the window using time of the day in
- * UTC.
- *
- * Generated from protobuf field .google.type.TimeOfDay start_time = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Type\TimeOfDay $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * Required. Specifies duration of the window.
- * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
- * Additional restrictions based on the recurrence type to allow some time for
- * backup to happen:
- * - single_occurrence_date: no restriction, but UI may warn about this when
- * duration >= target RPO
- * - daily window: duration < 24 hours
- * - weekly window:
- * - days of week includes all seven days of a week: duration < 24 hours
- * - all other weekly window: duration < 168 hours (i.e., 24 * 7 hours)
- *
- * Generated from protobuf field .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\Duration|null
- */
- public function getDuration()
- {
- return $this->duration;
- }
-
- public function hasDuration()
- {
- return isset($this->duration);
- }
-
- public function clearDuration()
- {
- unset($this->duration);
- }
-
- /**
- * Required. Specifies duration of the window.
- * Duration must be >= 5 minutes and < (target RPO - 20 minutes).
- * Additional restrictions based on the recurrence type to allow some time for
- * backup to happen:
- * - single_occurrence_date: no restriction, but UI may warn about this when
- * duration >= target RPO
- * - daily window: duration < 24 hours
- * - weekly window:
- * - days of week includes all seven days of a week: duration < 24 hours
- * - all other weekly window: duration < 168 hours (i.e., 24 * 7 hours)
- *
- * Generated from protobuf field .google.protobuf.Duration duration = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setDuration($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->duration = $var;
-
- return $this;
- }
-
- /**
- * No recurrence. The exclusion window occurs only once and on this
- * date in UTC.
- *
- * Generated from protobuf field .google.type.Date single_occurrence_date = 3;
- * @return \Google\Type\Date|null
- */
- public function getSingleOccurrenceDate()
- {
- return $this->readOneof(3);
- }
-
- public function hasSingleOccurrenceDate()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * No recurrence. The exclusion window occurs only once and on this
- * date in UTC.
- *
- * Generated from protobuf field .google.type.Date single_occurrence_date = 3;
- * @param \Google\Type\Date $var
- * @return $this
- */
- public function setSingleOccurrenceDate($var)
- {
- GPBUtil::checkMessage($var, \Google\Type\Date::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * The exclusion window occurs every day if set to "True".
- * Specifying this field to "False" is an error.
- *
- * Generated from protobuf field bool daily = 4;
- * @return bool
- */
- public function getDaily()
- {
- return $this->readOneof(4);
- }
-
- public function hasDaily()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * The exclusion window occurs every day if set to "True".
- * Specifying this field to "False" is an error.
- *
- * Generated from protobuf field bool daily = 4;
- * @param bool $var
- * @return $this
- */
- public function setDaily($var)
- {
- GPBUtil::checkBool($var);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * The exclusion window occurs on these days of each week in UTC.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5;
- * @return \Google\Cloud\GkeBackup\V1\ExclusionWindow\DayOfWeekList|null
- */
- public function getDaysOfWeek()
- {
- return $this->readOneof(5);
- }
-
- public function hasDaysOfWeek()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * The exclusion window occurs on these days of each week in UTC.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList days_of_week = 5;
- * @param \Google\Cloud\GkeBackup\V1\ExclusionWindow\DayOfWeekList $var
- * @return $this
- */
- public function setDaysOfWeek($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\ExclusionWindow\DayOfWeekList::class);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getRecurrence()
- {
- return $this->whichOneof("recurrence");
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ExclusionWindow/DayOfWeekList.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ExclusionWindow/DayOfWeekList.php
deleted file mode 100644
index 5d9ff3ed99f4..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ExclusionWindow/DayOfWeekList.php
+++ /dev/null
@@ -1,70 +0,0 @@
-google.cloud.gkebackup.v1.ExclusionWindow.DayOfWeekList
- */
-class DayOfWeekList extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. A list of days of week.
- *
- * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $days_of_week;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $days_of_week
- * Optional. A list of days of week.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\BackupPlan::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. A list of days of week.
- *
- * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getDaysOfWeek()
- {
- return $this->days_of_week;
- }
-
- /**
- * Optional. A list of days of week.
- *
- * Generated from protobuf field repeated .google.type.DayOfWeek days_of_week = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setDaysOfWeek($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Type\DayOfWeek::class);
- $this->days_of_week = $arr;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(DayOfWeekList::class, \Google\Cloud\GkeBackup\V1\ExclusionWindow_DayOfWeekList::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetBackupIndexDownloadUrlRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetBackupIndexDownloadUrlRequest.php
deleted file mode 100644
index 27cffcaf5909..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetBackupIndexDownloadUrlRequest.php
+++ /dev/null
@@ -1,91 +0,0 @@
-google.cloud.gkebackup.v1.GetBackupIndexDownloadUrlRequest
- */
-class GetBackupIndexDownloadUrlRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Full name of Backup resource.
- * Format:
- * projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}
- *
- * Generated from protobuf field string backup = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $backup = '';
-
- /**
- * @param string $backup Required. Full name of Backup resource.
- * Format:
- * projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}
- * Please see {@see BackupForGKEClient::backupName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\GetBackupIndexDownloadUrlRequest
- *
- * @experimental
- */
- public static function build(string $backup): self
- {
- return (new self())
- ->setBackup($backup);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $backup
- * Required. Full name of Backup resource.
- * Format:
- * projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Full name of Backup resource.
- * Format:
- * projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}
- *
- * Generated from protobuf field string backup = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getBackup()
- {
- return $this->backup;
- }
-
- /**
- * Required. Full name of Backup resource.
- * Format:
- * projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}
- *
- * Generated from protobuf field string backup = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setBackup($var)
- {
- GPBUtil::checkString($var, True);
- $this->backup = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetBackupIndexDownloadUrlResponse.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetBackupIndexDownloadUrlResponse.php
deleted file mode 100644
index 830d8ac27e2b..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetBackupIndexDownloadUrlResponse.php
+++ /dev/null
@@ -1,60 +0,0 @@
-google.cloud.gkebackup.v1.GetBackupIndexDownloadUrlResponse
- */
-class GetBackupIndexDownloadUrlResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string signed_url = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $signed_url = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $signed_url
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string signed_url = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getSignedUrl()
- {
- return $this->signed_url;
- }
-
- /**
- * Generated from protobuf field string signed_url = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setSignedUrl($var)
- {
- GPBUtil::checkString($var, True);
- $this->signed_url = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetBackupPlanRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetBackupPlanRequest.php
deleted file mode 100644
index 03ae67bf4f8d..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetBackupPlanRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.gkebackup.v1.GetBackupPlanRequest
- */
-class GetBackupPlanRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Fully qualified BackupPlan name.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Fully qualified BackupPlan name.
- * Format: `projects/*/locations/*/backupPlans/*`
- * Please see {@see BackupForGKEClient::backupPlanName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\GetBackupPlanRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Fully qualified BackupPlan name.
- * Format: `projects/*/locations/*/backupPlans/*`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Fully qualified BackupPlan name.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Fully qualified BackupPlan name.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetBackupRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetBackupRequest.php
deleted file mode 100644
index 54e5c0220dc0..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetBackupRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.gkebackup.v1.GetBackupRequest
- */
-class GetBackupRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Full name of the Backup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Full name of the Backup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- * Please see {@see BackupForGKEClient::backupName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\GetBackupRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Full name of the Backup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Full name of the Backup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Full name of the Backup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetRestorePlanRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetRestorePlanRequest.php
deleted file mode 100644
index 697db291690f..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetRestorePlanRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.gkebackup.v1.GetRestorePlanRequest
- */
-class GetRestorePlanRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Fully qualified RestorePlan name.
- * Format: `projects/*/locations/*/restorePlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Fully qualified RestorePlan name.
- * Format: `projects/*/locations/*/restorePlans/*`
- * Please see {@see BackupForGKEClient::restorePlanName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\GetRestorePlanRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Fully qualified RestorePlan name.
- * Format: `projects/*/locations/*/restorePlans/*`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Fully qualified RestorePlan name.
- * Format: `projects/*/locations/*/restorePlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Fully qualified RestorePlan name.
- * Format: `projects/*/locations/*/restorePlans/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetRestoreRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetRestoreRequest.php
deleted file mode 100644
index 601b9cf32159..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetRestoreRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.gkebackup.v1.GetRestoreRequest
- */
-class GetRestoreRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Name of the restore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Name of the restore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- * Please see {@see BackupForGKEClient::restoreName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\GetRestoreRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Name of the restore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Name of the restore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Name of the restore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetVolumeBackupRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetVolumeBackupRequest.php
deleted file mode 100644
index 02814a43a479..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetVolumeBackupRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.gkebackup.v1.GetVolumeBackupRequest
- */
-class GetVolumeBackupRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Full name of the VolumeBackup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Full name of the VolumeBackup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`
- * Please see {@see BackupForGKEClient::volumeBackupName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\GetVolumeBackupRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Full name of the VolumeBackup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Full name of the VolumeBackup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Full name of the VolumeBackup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetVolumeRestoreRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetVolumeRestoreRequest.php
deleted file mode 100644
index 6413d24fb02a..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/GetVolumeRestoreRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.gkebackup.v1.GetVolumeRestoreRequest
- */
-class GetVolumeRestoreRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Full name of the VolumeRestore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. Full name of the VolumeRestore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
- * Please see {@see BackupForGKEClient::volumeRestoreName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\GetVolumeRestoreRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. Full name of the VolumeRestore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Full name of the VolumeRestore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. Full name of the VolumeRestore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListBackupPlansRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListBackupPlansRequest.php
deleted file mode 100644
index 9bf1b6dcee01..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListBackupPlansRequest.php
+++ /dev/null
@@ -1,262 +0,0 @@
-google.cloud.gkebackup.v1.ListBackupPlansRequest
- */
-class ListBackupPlansRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The location that contains the BackupPlans to list.
- * Format: `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_size = 0;
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
- * received from a previous `ListBackupPlans` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListBackupPlans` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_token = '';
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $filter = '';
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The location that contains the BackupPlans to list.
- * Format: `projects/*/locations/*`
- * Please see {@see BackupForGKEClient::locationName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\ListBackupPlansRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The location that contains the BackupPlans to list.
- * Format: `projects/*/locations/*`
- * @type int $page_size
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- * @type string $page_token
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
- * received from a previous `ListBackupPlans` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListBackupPlans` must match the call that provided the page token.
- * @type string $filter
- * Optional. Field match expression used to filter the results.
- * @type string $order_by
- * Optional. Field by which to sort the results.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The location that contains the BackupPlans to list.
- * Format: `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The location that contains the BackupPlans to list.
- * Format: `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
- * received from a previous `ListBackupPlans` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListBackupPlans` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupPlansResponse.next_page_token]
- * received from a previous `ListBackupPlans` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListBackupPlans` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListBackupPlansResponse.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListBackupPlansResponse.php
deleted file mode 100644
index 3c1707f46fd8..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListBackupPlansResponse.php
+++ /dev/null
@@ -1,151 +0,0 @@
-google.cloud.gkebackup.v1.ListBackupPlansResponse
- */
-class ListBackupPlansResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The list of BackupPlans matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
- */
- private $backup_plans;
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token]
- * in a subsequent `ListBackupPlans` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GkeBackup\V1\BackupPlan>|\Google\Protobuf\Internal\RepeatedField $backup_plans
- * The list of BackupPlans matching the given criteria.
- * @type string $next_page_token
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token]
- * in a subsequent `ListBackupPlans` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * Locations that could not be reached.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The list of BackupPlans matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getBackupPlans()
- {
- return $this->backup_plans;
- }
-
- /**
- * The list of BackupPlans matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.BackupPlan backup_plans = 1;
- * @param array<\Google\Cloud\GkeBackup\V1\BackupPlan>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setBackupPlans($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\BackupPlan::class);
- $this->backup_plans = $arr;
-
- return $this;
- }
-
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token]
- * in a subsequent `ListBackupPlans` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListBackupPlansRequest.page_token]
- * in a subsequent `ListBackupPlans` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListBackupsRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListBackupsRequest.php
deleted file mode 100644
index 3c0d1c754e7a..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListBackupsRequest.php
+++ /dev/null
@@ -1,262 +0,0 @@
-google.cloud.gkebackup.v1.ListBackupsRequest
- */
-class ListBackupsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The BackupPlan that contains the Backups to list.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_size = 0;
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
- * received from a previous `ListBackups` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListBackups` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_token = '';
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $filter = '';
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The BackupPlan that contains the Backups to list.
- * Format: `projects/*/locations/*/backupPlans/*`
- * Please see {@see BackupForGKEClient::backupPlanName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\ListBackupsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The BackupPlan that contains the Backups to list.
- * Format: `projects/*/locations/*/backupPlans/*`
- * @type int $page_size
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- * @type string $page_token
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
- * received from a previous `ListBackups` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListBackups` must match the call that provided the page token.
- * @type string $filter
- * Optional. Field match expression used to filter the results.
- * @type string $order_by
- * Optional. Field by which to sort the results.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The BackupPlan that contains the Backups to list.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The BackupPlan that contains the Backups to list.
- * Format: `projects/*/locations/*/backupPlans/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
- * received from a previous `ListBackups` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListBackups` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListBackupsResponse.next_page_token]
- * received from a previous `ListBackups` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListBackups` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListBackupsResponse.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListBackupsResponse.php
deleted file mode 100644
index af69b12b2d90..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListBackupsResponse.php
+++ /dev/null
@@ -1,113 +0,0 @@
-google.cloud.gkebackup.v1.ListBackupsResponse
- */
-class ListBackupsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The list of Backups matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.Backup backups = 1;
- */
- private $backups;
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in a
- * subsequent `ListBackups` call to retrieve the next page of results. If this
- * field is omitted or empty, then there are no more results to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GkeBackup\V1\Backup>|\Google\Protobuf\Internal\RepeatedField $backups
- * The list of Backups matching the given criteria.
- * @type string $next_page_token
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in a
- * subsequent `ListBackups` call to retrieve the next page of results. If this
- * field is omitted or empty, then there are no more results to return.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The list of Backups matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.Backup backups = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getBackups()
- {
- return $this->backups;
- }
-
- /**
- * The list of Backups matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.Backup backups = 1;
- * @param array<\Google\Cloud\GkeBackup\V1\Backup>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setBackups($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\Backup::class);
- $this->backups = $arr;
-
- return $this;
- }
-
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in a
- * subsequent `ListBackups` call to retrieve the next page of results. If this
- * field is omitted or empty, then there are no more results to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListBackupsRequest.page_token] in a
- * subsequent `ListBackups` call to retrieve the next page of results. If this
- * field is omitted or empty, then there are no more results to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListRestorePlansRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListRestorePlansRequest.php
deleted file mode 100644
index 232d0124bfa6..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListRestorePlansRequest.php
+++ /dev/null
@@ -1,262 +0,0 @@
-google.cloud.gkebackup.v1.ListRestorePlansRequest
- */
-class ListRestorePlansRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The location that contains the RestorePlans to list.
- * Format: `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_size = 0;
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
- * received from a previous `ListRestorePlans` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListRestorePlans` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_token = '';
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $filter = '';
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The location that contains the RestorePlans to list.
- * Format: `projects/*/locations/*`
- * Please see {@see BackupForGKEClient::locationName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\ListRestorePlansRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The location that contains the RestorePlans to list.
- * Format: `projects/*/locations/*`
- * @type int $page_size
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- * @type string $page_token
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
- * received from a previous `ListRestorePlans` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListRestorePlans` must match the call that provided the page token.
- * @type string $filter
- * Optional. Field match expression used to filter the results.
- * @type string $order_by
- * Optional. Field by which to sort the results.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The location that contains the RestorePlans to list.
- * Format: `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The location that contains the RestorePlans to list.
- * Format: `projects/*/locations/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
- * received from a previous `ListRestorePlans` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListRestorePlans` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListRestorePlansResponse.next_page_token]
- * received from a previous `ListRestorePlans` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListRestorePlans` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListRestorePlansResponse.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListRestorePlansResponse.php
deleted file mode 100644
index 6f2aa3e5a5e7..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListRestorePlansResponse.php
+++ /dev/null
@@ -1,151 +0,0 @@
-google.cloud.gkebackup.v1.ListRestorePlansResponse
- */
-class ListRestorePlansResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The list of RestorePlans matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
- */
- private $restore_plans;
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token]
- * in a subsequent `ListRestorePlans` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GkeBackup\V1\RestorePlan>|\Google\Protobuf\Internal\RepeatedField $restore_plans
- * The list of RestorePlans matching the given criteria.
- * @type string $next_page_token
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token]
- * in a subsequent `ListRestorePlans` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * Locations that could not be reached.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The list of RestorePlans matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRestorePlans()
- {
- return $this->restore_plans;
- }
-
- /**
- * The list of RestorePlans matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestorePlan restore_plans = 1;
- * @param array<\Google\Cloud\GkeBackup\V1\RestorePlan>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRestorePlans($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\RestorePlan::class);
- $this->restore_plans = $arr;
-
- return $this;
- }
-
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token]
- * in a subsequent `ListRestorePlans` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListRestorePlansRequest.page_token]
- * in a subsequent `ListRestorePlans` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListRestoresRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListRestoresRequest.php
deleted file mode 100644
index cabe7916198f..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListRestoresRequest.php
+++ /dev/null
@@ -1,262 +0,0 @@
-google.cloud.gkebackup.v1.ListRestoresRequest
- */
-class ListRestoresRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The RestorePlan that contains the Restores to list.
- * Format: `projects/*/locations/*/restorePlans/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_size = 0;
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
- * received from a previous `ListRestores` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to `ListRestores`
- * must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_token = '';
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $filter = '';
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The RestorePlan that contains the Restores to list.
- * Format: `projects/*/locations/*/restorePlans/*`
- * Please see {@see BackupForGKEClient::restorePlanName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\ListRestoresRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The RestorePlan that contains the Restores to list.
- * Format: `projects/*/locations/*/restorePlans/*`
- * @type int $page_size
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- * @type string $page_token
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
- * received from a previous `ListRestores` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to `ListRestores`
- * must match the call that provided the page token.
- * @type string $filter
- * Optional. Field match expression used to filter the results.
- * @type string $order_by
- * Optional. Field by which to sort the results.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The RestorePlan that contains the Restores to list.
- * Format: `projects/*/locations/*/restorePlans/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The RestorePlan that contains the Restores to list.
- * Format: `projects/*/locations/*/restorePlans/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
- * received from a previous `ListRestores` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to `ListRestores`
- * must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListRestoresResponse.next_page_token]
- * received from a previous `ListRestores` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to `ListRestores`
- * must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListRestoresResponse.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListRestoresResponse.php
deleted file mode 100644
index 03c3d35a9e61..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListRestoresResponse.php
+++ /dev/null
@@ -1,147 +0,0 @@
-google.cloud.gkebackup.v1.ListRestoresResponse
- */
-class ListRestoresResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The list of Restores matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.Restore restores = 1;
- */
- private $restores;
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token] in a
- * subsequent `ListRestores` call to retrieve the next page of results. If
- * this field is omitted or empty, then there are no more results to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GkeBackup\V1\Restore>|\Google\Protobuf\Internal\RepeatedField $restores
- * The list of Restores matching the given criteria.
- * @type string $next_page_token
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token] in a
- * subsequent `ListRestores` call to retrieve the next page of results. If
- * this field is omitted or empty, then there are no more results to return.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * Locations that could not be reached.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The list of Restores matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.Restore restores = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRestores()
- {
- return $this->restores;
- }
-
- /**
- * The list of Restores matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.Restore restores = 1;
- * @param array<\Google\Cloud\GkeBackup\V1\Restore>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRestores($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\Restore::class);
- $this->restores = $arr;
-
- return $this;
- }
-
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token] in a
- * subsequent `ListRestores` call to retrieve the next page of results. If
- * this field is omitted or empty, then there are no more results to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListRestoresRequest.page_token] in a
- * subsequent `ListRestores` call to retrieve the next page of results. If
- * this field is omitted or empty, then there are no more results to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * Locations that could not be reached.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListVolumeBackupsRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListVolumeBackupsRequest.php
deleted file mode 100644
index ad352e4ccd0d..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListVolumeBackupsRequest.php
+++ /dev/null
@@ -1,262 +0,0 @@
-google.cloud.gkebackup.v1.ListVolumeBackupsRequest
- */
-class ListVolumeBackupsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The Backup that contains the VolumeBackups to list.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_size = 0;
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
- * received from a previous `ListVolumeBackups` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListVolumeBackups` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_token = '';
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $filter = '';
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The Backup that contains the VolumeBackups to list.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- * Please see {@see BackupForGKEClient::backupName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\ListVolumeBackupsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The Backup that contains the VolumeBackups to list.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- * @type int $page_size
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- * @type string $page_token
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
- * received from a previous `ListVolumeBackups` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListVolumeBackups` must match the call that provided the page token.
- * @type string $filter
- * Optional. Field match expression used to filter the results.
- * @type string $order_by
- * Optional. Field by which to sort the results.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The Backup that contains the VolumeBackups to list.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The Backup that contains the VolumeBackups to list.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
- * received from a previous `ListVolumeBackups` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListVolumeBackups` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeBackupsResponse.next_page_token]
- * received from a previous `ListVolumeBackups` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListVolumeBackups` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListVolumeBackupsResponse.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListVolumeBackupsResponse.php
deleted file mode 100644
index b8f1edc3cd20..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListVolumeBackupsResponse.php
+++ /dev/null
@@ -1,117 +0,0 @@
-google.cloud.gkebackup.v1.ListVolumeBackupsResponse
- */
-class ListVolumeBackupsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The list of VolumeBackups matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;
- */
- private $volume_backups;
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token]
- * in a subsequent `ListVolumeBackups` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GkeBackup\V1\VolumeBackup>|\Google\Protobuf\Internal\RepeatedField $volume_backups
- * The list of VolumeBackups matching the given criteria.
- * @type string $next_page_token
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token]
- * in a subsequent `ListVolumeBackups` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The list of VolumeBackups matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getVolumeBackups()
- {
- return $this->volume_backups;
- }
-
- /**
- * The list of VolumeBackups matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.VolumeBackup volume_backups = 1;
- * @param array<\Google\Cloud\GkeBackup\V1\VolumeBackup>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setVolumeBackups($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\VolumeBackup::class);
- $this->volume_backups = $arr;
-
- return $this;
- }
-
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token]
- * in a subsequent `ListVolumeBackups` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListVolumeBackupsRequest.page_token]
- * in a subsequent `ListVolumeBackups` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListVolumeRestoresRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListVolumeRestoresRequest.php
deleted file mode 100644
index 3fbbaf0291a3..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListVolumeRestoresRequest.php
+++ /dev/null
@@ -1,262 +0,0 @@
-google.cloud.gkebackup.v1.ListVolumeRestoresRequest
- */
-class ListVolumeRestoresRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The Restore that contains the VolumeRestores to list.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_size = 0;
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
- * received from a previous `ListVolumeRestores` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListVolumeRestores` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_token = '';
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $filter = '';
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The Restore that contains the VolumeRestores to list.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- * Please see {@see BackupForGKEClient::restoreName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeBackup\V1\ListVolumeRestoresRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The Restore that contains the VolumeRestores to list.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- * @type int $page_size
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- * @type string $page_token
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
- * received from a previous `ListVolumeRestores` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListVolumeRestores` must match the call that provided the page token.
- * @type string $filter
- * Optional. Field match expression used to filter the results.
- * @type string $order_by
- * Optional. Field by which to sort the results.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The Restore that contains the VolumeRestores to list.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The Restore that contains the VolumeRestores to list.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Optional. The target number of results to return in a single response.
- * If not specified, a default value will be chosen by the service.
- * Note that the response may include a partial list and a caller should
- * only rely on the response's
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
- * to determine if there are more instances left to be queried.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
- * received from a previous `ListVolumeRestores` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListVolumeRestores` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * Optional. The value of
- * [next_page_token][google.cloud.gkebackup.v1.ListVolumeRestoresResponse.next_page_token]
- * received from a previous `ListVolumeRestores` call.
- * Provide this to retrieve the subsequent page in a multi-page list of
- * results. When paginating, all other parameters provided to
- * `ListVolumeRestores` must match the call that provided the page token.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Optional. Field match expression used to filter the results.
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Optional. Field by which to sort the results.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListVolumeRestoresResponse.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListVolumeRestoresResponse.php
deleted file mode 100644
index 8fc1e433c5e5..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ListVolumeRestoresResponse.php
+++ /dev/null
@@ -1,117 +0,0 @@
-google.cloud.gkebackup.v1.ListVolumeRestoresResponse
- */
-class ListVolumeRestoresResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The list of VolumeRestores matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1;
- */
- private $volume_restores;
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token]
- * in a subsequent `ListVolumeRestores` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GkeBackup\V1\VolumeRestore>|\Google\Protobuf\Internal\RepeatedField $volume_restores
- * The list of VolumeRestores matching the given criteria.
- * @type string $next_page_token
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token]
- * in a subsequent `ListVolumeRestores` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The list of VolumeRestores matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getVolumeRestores()
- {
- return $this->volume_restores;
- }
-
- /**
- * The list of VolumeRestores matching the given criteria.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.VolumeRestore volume_restores = 1;
- * @param array<\Google\Cloud\GkeBackup\V1\VolumeRestore>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setVolumeRestores($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\VolumeRestore::class);
- $this->volume_restores = $arr;
-
- return $this;
- }
-
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token]
- * in a subsequent `ListVolumeRestores` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token which may be sent as
- * [page_token][google.cloud.gkebackup.v1.ListVolumeRestoresRequest.page_token]
- * in a subsequent `ListVolumeRestores` call to retrieve the next page of
- * results. If this field is omitted or empty, then there are no more results
- * to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/NamespacedName.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/NamespacedName.php
deleted file mode 100644
index ede7ff3d8c39..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/NamespacedName.php
+++ /dev/null
@@ -1,101 +0,0 @@
-google.cloud.gkebackup.v1.NamespacedName
- */
-class NamespacedName extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. The Namespace of the Kubernetes resource.
- *
- * Generated from protobuf field string namespace = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $namespace = '';
- /**
- * Optional. The name of the Kubernetes resource.
- *
- * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $name = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * Optional. The Namespace of the Kubernetes resource.
- * @type string $name
- * Optional. The name of the Kubernetes resource.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Common::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. The Namespace of the Kubernetes resource.
- *
- * Generated from protobuf field string namespace = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Optional. The Namespace of the Kubernetes resource.
- *
- * Generated from protobuf field string namespace = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Optional. The name of the Kubernetes resource.
- *
- * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Optional. The name of the Kubernetes resource.
- *
- * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/NamespacedNames.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/NamespacedNames.php
deleted file mode 100644
index ea0494a0e587..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/NamespacedNames.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.cloud.gkebackup.v1.NamespacedNames
- */
-class NamespacedNames extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. A list of namespaced Kubernetes resources.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $namespaced_names;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GkeBackup\V1\NamespacedName>|\Google\Protobuf\Internal\RepeatedField $namespaced_names
- * Optional. A list of namespaced Kubernetes resources.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Common::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. A list of namespaced Kubernetes resources.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getNamespacedNames()
- {
- return $this->namespaced_names;
- }
-
- /**
- * Optional. A list of namespaced Kubernetes resources.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.NamespacedName namespaced_names = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\GkeBackup\V1\NamespacedName>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setNamespacedNames($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\NamespacedName::class);
- $this->namespaced_names = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Namespaces.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Namespaces.php
deleted file mode 100644
index 4b4da96f2ba9..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Namespaces.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.cloud.gkebackup.v1.Namespaces
- */
-class Namespaces extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. A list of Kubernetes Namespaces
- *
- * Generated from protobuf field repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $namespaces;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $namespaces
- * Optional. A list of Kubernetes Namespaces
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Common::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. A list of Kubernetes Namespaces
- *
- * Generated from protobuf field repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getNamespaces()
- {
- return $this->namespaces;
- }
-
- /**
- * Optional. A list of Kubernetes Namespaces
- *
- * Generated from protobuf field repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setNamespaces($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->namespaces = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/OperationMetadata.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/OperationMetadata.php
deleted file mode 100644
index 5137a33b7e8a..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/OperationMetadata.php
+++ /dev/null
@@ -1,307 +0,0 @@
-google.cloud.gkebackup.v1.OperationMetadata
- */
-class OperationMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The time the operation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. The time the operation finished running.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $end_time = null;
- /**
- * Output only. Server-defined resource path for the target of the operation.
- *
- * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $target = '';
- /**
- * Output only. Name of the verb executed by the operation.
- *
- * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $verb = '';
- /**
- * Output only. Human-readable status of the operation, if any.
- *
- * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $status_message = '';
- /**
- * Output only. Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have [Operation.error][] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
- * `Code.CANCELLED`.
- *
- * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $requested_cancellation = false;
- /**
- * Output only. API version used to start the operation.
- *
- * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $api_version = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The time the operation was created.
- * @type \Google\Protobuf\Timestamp $end_time
- * Output only. The time the operation finished running.
- * @type string $target
- * Output only. Server-defined resource path for the target of the operation.
- * @type string $verb
- * Output only. Name of the verb executed by the operation.
- * @type string $status_message
- * Output only. Human-readable status of the operation, if any.
- * @type bool $requested_cancellation
- * Output only. Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have [Operation.error][] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
- * `Code.CANCELLED`.
- * @type string $api_version
- * Output only. API version used to start the operation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The time the operation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The time the operation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The time the operation finished running.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * Output only. The time the operation finished running.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Server-defined resource path for the target of the operation.
- *
- * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getTarget()
- {
- return $this->target;
- }
-
- /**
- * Output only. Server-defined resource path for the target of the operation.
- *
- * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setTarget($var)
- {
- GPBUtil::checkString($var, True);
- $this->target = $var;
-
- return $this;
- }
-
- /**
- * Output only. Name of the verb executed by the operation.
- *
- * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getVerb()
- {
- return $this->verb;
- }
-
- /**
- * Output only. Name of the verb executed by the operation.
- *
- * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setVerb($var)
- {
- GPBUtil::checkString($var, True);
- $this->verb = $var;
-
- return $this;
- }
-
- /**
- * Output only. Human-readable status of the operation, if any.
- *
- * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getStatusMessage()
- {
- return $this->status_message;
- }
-
- /**
- * Output only. Human-readable status of the operation, if any.
- *
- * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setStatusMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->status_message = $var;
-
- return $this;
- }
-
- /**
- * Output only. Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have [Operation.error][] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
- * `Code.CANCELLED`.
- *
- * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool
- */
- public function getRequestedCancellation()
- {
- return $this->requested_cancellation;
- }
-
- /**
- * Output only. Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have [Operation.error][] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to
- * `Code.CANCELLED`.
- *
- * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool $var
- * @return $this
- */
- public function setRequestedCancellation($var)
- {
- GPBUtil::checkBool($var);
- $this->requested_cancellation = $var;
-
- return $this;
- }
-
- /**
- * Output only. API version used to start the operation.
- *
- * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getApiVersion()
- {
- return $this->api_version;
- }
-
- /**
- * Output only. API version used to start the operation.
- *
- * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setApiVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->api_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ResourceSelector.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ResourceSelector.php
deleted file mode 100644
index 8a23e047b719..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/ResourceSelector.php
+++ /dev/null
@@ -1,232 +0,0 @@
-google.cloud.gkebackup.v1.ResourceSelector
- */
-class ResourceSelector extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Selects resources using their Kubernetes GroupKinds. If
- * specified, only resources of provided GroupKind will be selected.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $group_kind = null;
- /**
- * Optional. Selects resources using their resource names. If specified,
- * only resources with the provided name will be selected.
- *
- * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $name = '';
- /**
- * Optional. Selects resources using their namespaces. This only applies to
- * namespace scoped resources and cannot be used for selecting
- * cluster scoped resources. If specified, only resources in the provided
- * namespace will be selected. If not specified, the filter will apply to
- * both cluster scoped and namespace scoped resources (e.g. name or label).
- * The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
- * itself will be restored if and only if any resources within the namespace
- * are restored.
- *
- * Generated from protobuf field string namespace = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $namespace = '';
- /**
- * Optional. Selects resources using Kubernetes
- * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
- * If specified, a resource will be selected if and only if the resource
- * has all of the provided labels and all the label values match.
- *
- * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $labels;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind $group_kind
- * Optional. Selects resources using their Kubernetes GroupKinds. If
- * specified, only resources of provided GroupKind will be selected.
- * @type string $name
- * Optional. Selects resources using their resource names. If specified,
- * only resources with the provided name will be selected.
- * @type string $namespace
- * Optional. Selects resources using their namespaces. This only applies to
- * namespace scoped resources and cannot be used for selecting
- * cluster scoped resources. If specified, only resources in the provided
- * namespace will be selected. If not specified, the filter will apply to
- * both cluster scoped and namespace scoped resources (e.g. name or label).
- * The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
- * itself will be restored if and only if any resources within the namespace
- * are restored.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Optional. Selects resources using Kubernetes
- * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
- * If specified, a resource will be selected if and only if the resource
- * has all of the provided labels and all the label values match.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Selects resources using their Kubernetes GroupKinds. If
- * specified, only resources of provided GroupKind will be selected.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind|null
- */
- public function getGroupKind()
- {
- return $this->group_kind;
- }
-
- public function hasGroupKind()
- {
- return isset($this->group_kind);
- }
-
- public function clearGroupKind()
- {
- unset($this->group_kind);
- }
-
- /**
- * Optional. Selects resources using their Kubernetes GroupKinds. If
- * specified, only resources of provided GroupKind will be selected.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kind = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind $var
- * @return $this
- */
- public function setGroupKind($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind::class);
- $this->group_kind = $var;
-
- return $this;
- }
-
- /**
- * Optional. Selects resources using their resource names. If specified,
- * only resources with the provided name will be selected.
- *
- * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Optional. Selects resources using their resource names. If specified,
- * only resources with the provided name will be selected.
- *
- * Generated from protobuf field string name = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. Selects resources using their namespaces. This only applies to
- * namespace scoped resources and cannot be used for selecting
- * cluster scoped resources. If specified, only resources in the provided
- * namespace will be selected. If not specified, the filter will apply to
- * both cluster scoped and namespace scoped resources (e.g. name or label).
- * The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
- * itself will be restored if and only if any resources within the namespace
- * are restored.
- *
- * Generated from protobuf field string namespace = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Optional. Selects resources using their namespaces. This only applies to
- * namespace scoped resources and cannot be used for selecting
- * cluster scoped resources. If specified, only resources in the provided
- * namespace will be selected. If not specified, the filter will apply to
- * both cluster scoped and namespace scoped resources (e.g. name or label).
- * The [Namespace](https://pkg.go.dev/k8s.io/api/core/v1#Namespace) resource
- * itself will be restored if and only if any resources within the namespace
- * are restored.
- *
- * Generated from protobuf field string namespace = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Optional. Selects resources using Kubernetes
- * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
- * If specified, a resource will be selected if and only if the resource
- * has all of the provided labels and all the label values match.
- *
- * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Optional. Selects resources using Kubernetes
- * [labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
- * If specified, a resource will be selected if and only if the resource
- * has all of the provided labels and all the label values match.
- *
- * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Restore.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Restore.php
deleted file mode 100644
index 4137716b37aa..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Restore.php
+++ /dev/null
@@ -1,858 +0,0 @@
-google.cloud.gkebackup.v1.Restore
- */
-class Restore extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The full name of the Restore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uid = '';
- /**
- * Output only. The timestamp when this Restore resource was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. The timestamp when this Restore resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * User specified descriptive string for this Restore.
- *
- * Generated from protobuf field string description = 5;
- */
- protected $description = '';
- /**
- * Required. Immutable. A reference to the
- * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
- * this Restore will restore. Note that this Backup must be a sub-resource of
- * the RestorePlan's
- * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
- * `projects/*/locations/*/backupPlans/*/backups/*`.
- *
- * Generated from protobuf field string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $backup = '';
- /**
- * Output only. The target cluster into which this Restore will restore data.
- * Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- * Inherited from parent RestorePlan's
- * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
- *
- * Generated from protobuf field string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- protected $cluster = '';
- /**
- * Output only. Configuration of the Restore. Inherited from parent
- * RestorePlan's
- * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $restore_config = null;
- /**
- * A set of custom labels supplied by user.
- *
- * Generated from protobuf field map labels = 9;
- */
- private $labels;
- /**
- * Output only. The current state of the Restore.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. Human-readable description of why the Restore is in its
- * current state.
- *
- * Generated from protobuf field string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state_reason = '';
- /**
- * Output only. Timestamp of when the restore operation completed.
- *
- * Generated from protobuf field .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $complete_time = null;
- /**
- * Output only. Number of resources restored during the restore execution.
- *
- * Generated from protobuf field int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $resources_restored_count = 0;
- /**
- * Output only. Number of resources excluded during the restore execution.
- *
- * Generated from protobuf field int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $resources_excluded_count = 0;
- /**
- * Output only. Number of resources that failed to be restored during the
- * restore execution.
- *
- * Generated from protobuf field int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $resources_failed_count = 0;
- /**
- * Output only. Number of volumes restored during the restore execution.
- *
- * Generated from protobuf field int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $volumes_restored_count = 0;
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a restore from overwriting each other.
- * It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform restore updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetRestore`,
- * and systems are expected to put that etag in the request to
- * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
- * applied to the same version of the resource.
- *
- * Generated from protobuf field string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $etag = '';
- /**
- * Optional. Immutable. Filters resources for `Restore`. If not specified, the
- * scope of the restore will remain the same as defined in the `RestorePlan`.
- * If this is specified, and no resources are matched by the
- * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
- * nothing will be restored. This filter can only be specified if the value of
- * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
- * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
- * `MERGE_REPLACE_ON_CONFLICT`.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
- */
- protected $filter = null;
- /**
- * Optional. Immutable. Overrides the volume data restore policies selected in
- * the Restore Config for override-scoped resources.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
- */
- private $volume_data_restore_policy_overrides;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. The full name of the Restore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- * @type string $uid
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The timestamp when this Restore resource was created.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. The timestamp when this Restore resource was last
- * updated.
- * @type string $description
- * User specified descriptive string for this Restore.
- * @type string $backup
- * Required. Immutable. A reference to the
- * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
- * this Restore will restore. Note that this Backup must be a sub-resource of
- * the RestorePlan's
- * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
- * `projects/*/locations/*/backupPlans/*/backups/*`.
- * @type string $cluster
- * Output only. The target cluster into which this Restore will restore data.
- * Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- * Inherited from parent RestorePlan's
- * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
- * @type \Google\Cloud\GkeBackup\V1\RestoreConfig $restore_config
- * Output only. Configuration of the Restore. Inherited from parent
- * RestorePlan's
- * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * A set of custom labels supplied by user.
- * @type int $state
- * Output only. The current state of the Restore.
- * @type string $state_reason
- * Output only. Human-readable description of why the Restore is in its
- * current state.
- * @type \Google\Protobuf\Timestamp $complete_time
- * Output only. Timestamp of when the restore operation completed.
- * @type int $resources_restored_count
- * Output only. Number of resources restored during the restore execution.
- * @type int $resources_excluded_count
- * Output only. Number of resources excluded during the restore execution.
- * @type int $resources_failed_count
- * Output only. Number of resources that failed to be restored during the
- * restore execution.
- * @type int $volumes_restored_count
- * Output only. Number of volumes restored during the restore execution.
- * @type string $etag
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a restore from overwriting each other.
- * It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform restore updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetRestore`,
- * and systems are expected to put that etag in the request to
- * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
- * applied to the same version of the resource.
- * @type \Google\Cloud\GkeBackup\V1\Restore\Filter $filter
- * Optional. Immutable. Filters resources for `Restore`. If not specified, the
- * scope of the restore will remain the same as defined in the `RestorePlan`.
- * If this is specified, and no resources are matched by the
- * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
- * nothing will be restored. This filter can only be specified if the value of
- * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
- * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
- * `MERGE_REPLACE_ON_CONFLICT`.
- * @type array<\Google\Cloud\GkeBackup\V1\VolumeDataRestorePolicyOverride>|\Google\Protobuf\Internal\RepeatedField $volume_data_restore_policy_overrides
- * Optional. Immutable. Overrides the volume data restore policies selected in
- * the Restore Config for override-scoped resources.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The full name of the Restore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. The full name of the Restore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->uid = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp when this Restore resource was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The timestamp when this Restore resource was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp when this Restore resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. The timestamp when this Restore resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * User specified descriptive string for this Restore.
- *
- * Generated from protobuf field string description = 5;
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * User specified descriptive string for this Restore.
- *
- * Generated from protobuf field string description = 5;
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Required. Immutable. A reference to the
- * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
- * this Restore will restore. Note that this Backup must be a sub-resource of
- * the RestorePlan's
- * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
- * `projects/*/locations/*/backupPlans/*/backups/*`.
- *
- * Generated from protobuf field string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getBackup()
- {
- return $this->backup;
- }
-
- /**
- * Required. Immutable. A reference to the
- * [Backup][google.cloud.gkebackup.v1.Backup] used as the source from which
- * this Restore will restore. Note that this Backup must be a sub-resource of
- * the RestorePlan's
- * [backup_plan][google.cloud.gkebackup.v1.RestorePlan.backup_plan]. Format:
- * `projects/*/locations/*/backupPlans/*/backups/*`.
- *
- * Generated from protobuf field string backup = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setBackup($var)
- {
- GPBUtil::checkString($var, True);
- $this->backup = $var;
-
- return $this;
- }
-
- /**
- * Output only. The target cluster into which this Restore will restore data.
- * Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- * Inherited from parent RestorePlan's
- * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
- *
- * Generated from protobuf field string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return string
- */
- public function getCluster()
- {
- return $this->cluster;
- }
-
- /**
- * Output only. The target cluster into which this Restore will restore data.
- * Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- * Inherited from parent RestorePlan's
- * [cluster][google.cloud.gkebackup.v1.RestorePlan.cluster] value.
- *
- * Generated from protobuf field string cluster = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setCluster($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster = $var;
-
- return $this;
- }
-
- /**
- * Output only. Configuration of the Restore. Inherited from parent
- * RestorePlan's
- * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\GkeBackup\V1\RestoreConfig|null
- */
- public function getRestoreConfig()
- {
- return $this->restore_config;
- }
-
- public function hasRestoreConfig()
- {
- return isset($this->restore_config);
- }
-
- public function clearRestoreConfig()
- {
- unset($this->restore_config);
- }
-
- /**
- * Output only. Configuration of the Restore. Inherited from parent
- * RestorePlan's
- * [restore_config][google.cloud.gkebackup.v1.RestorePlan.restore_config].
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\GkeBackup\V1\RestoreConfig $var
- * @return $this
- */
- public function setRestoreConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\RestoreConfig::class);
- $this->restore_config = $var;
-
- return $this;
- }
-
- /**
- * A set of custom labels supplied by user.
- *
- * Generated from protobuf field map labels = 9;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * A set of custom labels supplied by user.
- *
- * Generated from protobuf field map labels = 9;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Output only. The current state of the Restore.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. The current state of the Restore.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Restore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\Restore\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Human-readable description of why the Restore is in its
- * current state.
- *
- * Generated from protobuf field string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getStateReason()
- {
- return $this->state_reason;
- }
-
- /**
- * Output only. Human-readable description of why the Restore is in its
- * current state.
- *
- * Generated from protobuf field string state_reason = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setStateReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->state_reason = $var;
-
- return $this;
- }
-
- /**
- * Output only. Timestamp of when the restore operation completed.
- *
- * Generated from protobuf field .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCompleteTime()
- {
- return $this->complete_time;
- }
-
- public function hasCompleteTime()
- {
- return isset($this->complete_time);
- }
-
- public function clearCompleteTime()
- {
- unset($this->complete_time);
- }
-
- /**
- * Output only. Timestamp of when the restore operation completed.
- *
- * Generated from protobuf field .google.protobuf.Timestamp complete_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCompleteTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->complete_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Number of resources restored during the restore execution.
- *
- * Generated from protobuf field int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getResourcesRestoredCount()
- {
- return $this->resources_restored_count;
- }
-
- /**
- * Output only. Number of resources restored during the restore execution.
- *
- * Generated from protobuf field int32 resources_restored_count = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setResourcesRestoredCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->resources_restored_count = $var;
-
- return $this;
- }
-
- /**
- * Output only. Number of resources excluded during the restore execution.
- *
- * Generated from protobuf field int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getResourcesExcludedCount()
- {
- return $this->resources_excluded_count;
- }
-
- /**
- * Output only. Number of resources excluded during the restore execution.
- *
- * Generated from protobuf field int32 resources_excluded_count = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setResourcesExcludedCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->resources_excluded_count = $var;
-
- return $this;
- }
-
- /**
- * Output only. Number of resources that failed to be restored during the
- * restore execution.
- *
- * Generated from protobuf field int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getResourcesFailedCount()
- {
- return $this->resources_failed_count;
- }
-
- /**
- * Output only. Number of resources that failed to be restored during the
- * restore execution.
- *
- * Generated from protobuf field int32 resources_failed_count = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setResourcesFailedCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->resources_failed_count = $var;
-
- return $this;
- }
-
- /**
- * Output only. Number of volumes restored during the restore execution.
- *
- * Generated from protobuf field int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getVolumesRestoredCount()
- {
- return $this->volumes_restored_count;
- }
-
- /**
- * Output only. Number of volumes restored during the restore execution.
- *
- * Generated from protobuf field int32 volumes_restored_count = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setVolumesRestoredCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->volumes_restored_count = $var;
-
- return $this;
- }
-
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a restore from overwriting each other.
- * It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform restore updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetRestore`,
- * and systems are expected to put that etag in the request to
- * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
- * applied to the same version of the resource.
- *
- * Generated from protobuf field string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a restore from overwriting each other.
- * It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform restore updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetRestore`,
- * and systems are expected to put that etag in the request to
- * `UpdateRestore` or `DeleteRestore` to ensure that their change will be
- * applied to the same version of the resource.
- *
- * Generated from protobuf field string etag = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * Optional. Immutable. Filters resources for `Restore`. If not specified, the
- * scope of the restore will remain the same as defined in the `RestorePlan`.
- * If this is specified, and no resources are matched by the
- * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
- * nothing will be restored. This filter can only be specified if the value of
- * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
- * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
- * `MERGE_REPLACE_ON_CONFLICT`.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeBackup\V1\Restore\Filter|null
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- public function hasFilter()
- {
- return isset($this->filter);
- }
-
- public function clearFilter()
- {
- unset($this->filter);
- }
-
- /**
- * Optional. Immutable. Filters resources for `Restore`. If not specified, the
- * scope of the restore will remain the same as defined in the `RestorePlan`.
- * If this is specified, and no resources are matched by the
- * `inclusion_filters` or everyting is excluded by the `exclusion_filters`,
- * nothing will be restored. This filter can only be specified if the value of
- * [namespaced_resource_restore_mode][google.cloud.gkebackup.v1.RestoreConfig.namespaced_resource_restore_mode]
- * is set to `MERGE_SKIP_ON_CONFLICT`, `MERGE_REPLACE_VOLUME_ON_CONFLICT` or
- * `MERGE_REPLACE_ON_CONFLICT`.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Restore.Filter filter = 18 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeBackup\V1\Restore\Filter $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\Restore\Filter::class);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Optional. Immutable. Overrides the volume data restore policies selected in
- * the Restore Config for override-scoped resources.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getVolumeDataRestorePolicyOverrides()
- {
- return $this->volume_data_restore_policy_overrides;
- }
-
- /**
- * Optional. Immutable. Overrides the volume data restore policies selected in
- * the Restore Config for override-scoped resources.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride volume_data_restore_policy_overrides = 19 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\GkeBackup\V1\VolumeDataRestorePolicyOverride>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setVolumeDataRestorePolicyOverrides($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\VolumeDataRestorePolicyOverride::class);
- $this->volume_data_restore_policy_overrides = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Restore/Filter.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Restore/Filter.php
deleted file mode 100644
index 35bd91567ba4..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Restore/Filter.php
+++ /dev/null
@@ -1,128 +0,0 @@
-google.cloud.gkebackup.v1.Restore.Filter
- */
-class Filter extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Selects resources for restoration. If specified, only resources
- * which match `inclusion_filters` will be selected for restoration. A
- * resource will be selected if it matches any `ResourceSelector` of the
- * `inclusion_filters`.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $inclusion_filters;
- /**
- * Optional. Excludes resources from restoration. If specified,
- * a resource will not be restored if it matches
- * any `ResourceSelector` of the `exclusion_filters`.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $exclusion_filters;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GkeBackup\V1\ResourceSelector>|\Google\Protobuf\Internal\RepeatedField $inclusion_filters
- * Optional. Selects resources for restoration. If specified, only resources
- * which match `inclusion_filters` will be selected for restoration. A
- * resource will be selected if it matches any `ResourceSelector` of the
- * `inclusion_filters`.
- * @type array<\Google\Cloud\GkeBackup\V1\ResourceSelector>|\Google\Protobuf\Internal\RepeatedField $exclusion_filters
- * Optional. Excludes resources from restoration. If specified,
- * a resource will not be restored if it matches
- * any `ResourceSelector` of the `exclusion_filters`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Selects resources for restoration. If specified, only resources
- * which match `inclusion_filters` will be selected for restoration. A
- * resource will be selected if it matches any `ResourceSelector` of the
- * `inclusion_filters`.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getInclusionFilters()
- {
- return $this->inclusion_filters;
- }
-
- /**
- * Optional. Selects resources for restoration. If specified, only resources
- * which match `inclusion_filters` will be selected for restoration. A
- * resource will be selected if it matches any `ResourceSelector` of the
- * `inclusion_filters`.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.ResourceSelector inclusion_filters = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\GkeBackup\V1\ResourceSelector>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setInclusionFilters($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\ResourceSelector::class);
- $this->inclusion_filters = $arr;
-
- return $this;
- }
-
- /**
- * Optional. Excludes resources from restoration. If specified,
- * a resource will not be restored if it matches
- * any `ResourceSelector` of the `exclusion_filters`.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getExclusionFilters()
- {
- return $this->exclusion_filters;
- }
-
- /**
- * Optional. Excludes resources from restoration. If specified,
- * a resource will not be restored if it matches
- * any `ResourceSelector` of the `exclusion_filters`.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.ResourceSelector exclusion_filters = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\GkeBackup\V1\ResourceSelector>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setExclusionFilters($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\ResourceSelector::class);
- $this->exclusion_filters = $arr;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(Filter::class, \Google\Cloud\GkeBackup\V1\Restore_Filter::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Restore/State.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Restore/State.php
deleted file mode 100644
index 3c28235bc7c4..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/Restore/State.php
+++ /dev/null
@@ -1,88 +0,0 @@
-google.cloud.gkebackup.v1.Restore.State
- */
-class State
-{
- /**
- * The Restore resource is in the process of being created.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * The Restore resource has been created and the associated RestoreJob
- * Kubernetes resource has been injected into target cluster.
- *
- * Generated from protobuf enum CREATING = 1;
- */
- const CREATING = 1;
- /**
- * The gkebackup agent in the cluster has begun executing the restore
- * operation.
- *
- * Generated from protobuf enum IN_PROGRESS = 2;
- */
- const IN_PROGRESS = 2;
- /**
- * The restore operation has completed successfully. Restored workloads may
- * not yet be operational.
- *
- * Generated from protobuf enum SUCCEEDED = 3;
- */
- const SUCCEEDED = 3;
- /**
- * The restore operation has failed.
- *
- * Generated from protobuf enum FAILED = 4;
- */
- const FAILED = 4;
- /**
- * This Restore resource is in the process of being deleted.
- *
- * Generated from protobuf enum DELETING = 5;
- */
- const DELETING = 5;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::CREATING => 'CREATING',
- self::IN_PROGRESS => 'IN_PROGRESS',
- self::SUCCEEDED => 'SUCCEEDED',
- self::FAILED => 'FAILED',
- self::DELETING => 'DELETING',
- ];
-
- 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(State::class, \Google\Cloud\GkeBackup\V1\Restore_State::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig.php
deleted file mode 100644
index 0358c01cb4d4..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig.php
+++ /dev/null
@@ -1,601 +0,0 @@
-google.cloud.gkebackup.v1.RestoreConfig
- */
-class RestoreConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Specifies the mechanism to be used to restore volume data.
- * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
- * NO_VOLUME_DATA_RESTORATION).
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $volume_data_restore_policy = 0;
- /**
- * Optional. Defines the behavior for handling the situation where
- * cluster-scoped resources being restored already exist in the target
- * cluster. This MUST be set to a value other than
- * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
- * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
- * is not empty.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $cluster_resource_conflict_policy = 0;
- /**
- * Optional. Defines the behavior for handling the situation where sets of
- * namespaced resources being restored already exist in the target cluster.
- * This MUST be set to a value other than
- * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $namespaced_resource_restore_mode = 0;
- /**
- * Optional. Identifies the cluster-scoped resources to restore from the
- * Backup. Not specifying it means NO cluster resource will be restored.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $cluster_resource_restore_scope = null;
- /**
- * Optional. A list of transformation rules to be applied against Kubernetes
- * resources as they are selected for restoration from a Backup. Rules are
- * executed in order defined - this order matters, as changes made by a rule
- * may impact the filtering logic of subsequent rules. An empty list means no
- * substitution will occur.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $substitution_rules;
- /**
- * Optional. A list of transformation rules to be applied against Kubernetes
- * resources as they are selected for restoration from a Backup. Rules are
- * executed in order defined - this order matters, as changes made by a rule
- * may impact the filtering logic of subsequent rules. An empty list means no
- * transformation will occur.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $transformation_rules;
- /**
- * Optional. A table that binds volumes by their scope to a restore policy.
- * Bindings must have a unique scope. Any volumes not scoped in the bindings
- * are subject to the policy defined in volume_data_restore_policy.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $volume_data_restore_policy_bindings;
- /**
- * Optional. RestoreOrder contains custom ordering to use on a Restore.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $restore_order = null;
- protected $namespaced_resource_restore_scope;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $volume_data_restore_policy
- * Optional. Specifies the mechanism to be used to restore volume data.
- * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
- * NO_VOLUME_DATA_RESTORATION).
- * @type int $cluster_resource_conflict_policy
- * Optional. Defines the behavior for handling the situation where
- * cluster-scoped resources being restored already exist in the target
- * cluster. This MUST be set to a value other than
- * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
- * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
- * is not empty.
- * @type int $namespaced_resource_restore_mode
- * Optional. Defines the behavior for handling the situation where sets of
- * namespaced resources being restored already exist in the target cluster.
- * This MUST be set to a value other than
- * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
- * @type \Google\Cloud\GkeBackup\V1\RestoreConfig\ClusterResourceRestoreScope $cluster_resource_restore_scope
- * Optional. Identifies the cluster-scoped resources to restore from the
- * Backup. Not specifying it means NO cluster resource will be restored.
- * @type bool $all_namespaces
- * Restore all namespaced resources in the Backup if set to "True".
- * Specifying this field to "False" is an error.
- * @type \Google\Cloud\GkeBackup\V1\Namespaces $selected_namespaces
- * A list of selected Namespaces to restore from the Backup. The listed
- * Namespaces and all resources contained in them will be restored.
- * @type \Google\Cloud\GkeBackup\V1\NamespacedNames $selected_applications
- * A list of selected ProtectedApplications to restore. The listed
- * ProtectedApplications and all the resources to which they refer will be
- * restored.
- * @type bool $no_namespaces
- * Do not restore any namespaced resources if set to "True".
- * Specifying this field to "False" is not allowed.
- * @type \Google\Cloud\GkeBackup\V1\Namespaces $excluded_namespaces
- * A list of selected namespaces excluded from restoration. All
- * namespaces except those in this list will be restored.
- * @type array<\Google\Cloud\GkeBackup\V1\RestoreConfig\SubstitutionRule>|\Google\Protobuf\Internal\RepeatedField $substitution_rules
- * Optional. A list of transformation rules to be applied against Kubernetes
- * resources as they are selected for restoration from a Backup. Rules are
- * executed in order defined - this order matters, as changes made by a rule
- * may impact the filtering logic of subsequent rules. An empty list means no
- * substitution will occur.
- * @type array<\Google\Cloud\GkeBackup\V1\RestoreConfig\TransformationRule>|\Google\Protobuf\Internal\RepeatedField $transformation_rules
- * Optional. A list of transformation rules to be applied against Kubernetes
- * resources as they are selected for restoration from a Backup. Rules are
- * executed in order defined - this order matters, as changes made by a rule
- * may impact the filtering logic of subsequent rules. An empty list means no
- * transformation will occur.
- * @type array<\Google\Cloud\GkeBackup\V1\RestoreConfig\VolumeDataRestorePolicyBinding>|\Google\Protobuf\Internal\RepeatedField $volume_data_restore_policy_bindings
- * Optional. A table that binds volumes by their scope to a restore policy.
- * Bindings must have a unique scope. Any volumes not scoped in the bindings
- * are subject to the policy defined in volume_data_restore_policy.
- * @type \Google\Cloud\GkeBackup\V1\RestoreConfig\RestoreOrder $restore_order
- * Optional. RestoreOrder contains custom ordering to use on a Restore.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Specifies the mechanism to be used to restore volume data.
- * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
- * NO_VOLUME_DATA_RESTORATION).
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getVolumeDataRestorePolicy()
- {
- return $this->volume_data_restore_policy;
- }
-
- /**
- * Optional. Specifies the mechanism to be used to restore volume data.
- * Default: VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED (will be treated as
- * NO_VOLUME_DATA_RESTORATION).
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy volume_data_restore_policy = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setVolumeDataRestorePolicy($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\RestoreConfig\VolumeDataRestorePolicy::class);
- $this->volume_data_restore_policy = $var;
-
- return $this;
- }
-
- /**
- * Optional. Defines the behavior for handling the situation where
- * cluster-scoped resources being restored already exist in the target
- * cluster. This MUST be set to a value other than
- * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
- * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
- * is not empty.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getClusterResourceConflictPolicy()
- {
- return $this->cluster_resource_conflict_policy;
- }
-
- /**
- * Optional. Defines the behavior for handling the situation where
- * cluster-scoped resources being restored already exist in the target
- * cluster. This MUST be set to a value other than
- * CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED if
- * [cluster_resource_restore_scope][google.cloud.gkebackup.v1.RestoreConfig.cluster_resource_restore_scope]
- * is not empty.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy cluster_resource_conflict_policy = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setClusterResourceConflictPolicy($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\RestoreConfig\ClusterResourceConflictPolicy::class);
- $this->cluster_resource_conflict_policy = $var;
-
- return $this;
- }
-
- /**
- * Optional. Defines the behavior for handling the situation where sets of
- * namespaced resources being restored already exist in the target cluster.
- * This MUST be set to a value other than
- * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getNamespacedResourceRestoreMode()
- {
- return $this->namespaced_resource_restore_mode;
- }
-
- /**
- * Optional. Defines the behavior for handling the situation where sets of
- * namespaced resources being restored already exist in the target cluster.
- * This MUST be set to a value other than
- * NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode namespaced_resource_restore_mode = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setNamespacedResourceRestoreMode($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\RestoreConfig\NamespacedResourceRestoreMode::class);
- $this->namespaced_resource_restore_mode = $var;
-
- return $this;
- }
-
- /**
- * Optional. Identifies the cluster-scoped resources to restore from the
- * Backup. Not specifying it means NO cluster resource will be restored.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeBackup\V1\RestoreConfig\ClusterResourceRestoreScope|null
- */
- public function getClusterResourceRestoreScope()
- {
- return $this->cluster_resource_restore_scope;
- }
-
- public function hasClusterResourceRestoreScope()
- {
- return isset($this->cluster_resource_restore_scope);
- }
-
- public function clearClusterResourceRestoreScope()
- {
- unset($this->cluster_resource_restore_scope);
- }
-
- /**
- * Optional. Identifies the cluster-scoped resources to restore from the
- * Backup. Not specifying it means NO cluster resource will be restored.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope cluster_resource_restore_scope = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeBackup\V1\RestoreConfig\ClusterResourceRestoreScope $var
- * @return $this
- */
- public function setClusterResourceRestoreScope($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\RestoreConfig\ClusterResourceRestoreScope::class);
- $this->cluster_resource_restore_scope = $var;
-
- return $this;
- }
-
- /**
- * Restore all namespaced resources in the Backup if set to "True".
- * Specifying this field to "False" is an error.
- *
- * Generated from protobuf field bool all_namespaces = 5;
- * @return bool
- */
- public function getAllNamespaces()
- {
- return $this->readOneof(5);
- }
-
- public function hasAllNamespaces()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Restore all namespaced resources in the Backup if set to "True".
- * Specifying this field to "False" is an error.
- *
- * Generated from protobuf field bool all_namespaces = 5;
- * @param bool $var
- * @return $this
- */
- public function setAllNamespaces($var)
- {
- GPBUtil::checkBool($var);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * A list of selected Namespaces to restore from the Backup. The listed
- * Namespaces and all resources contained in them will be restored.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6;
- * @return \Google\Cloud\GkeBackup\V1\Namespaces|null
- */
- public function getSelectedNamespaces()
- {
- return $this->readOneof(6);
- }
-
- public function hasSelectedNamespaces()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * A list of selected Namespaces to restore from the Backup. The listed
- * Namespaces and all resources contained in them will be restored.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Namespaces selected_namespaces = 6;
- * @param \Google\Cloud\GkeBackup\V1\Namespaces $var
- * @return $this
- */
- public function setSelectedNamespaces($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\Namespaces::class);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * A list of selected ProtectedApplications to restore. The listed
- * ProtectedApplications and all the resources to which they refer will be
- * restored.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7;
- * @return \Google\Cloud\GkeBackup\V1\NamespacedNames|null
- */
- public function getSelectedApplications()
- {
- return $this->readOneof(7);
- }
-
- public function hasSelectedApplications()
- {
- return $this->hasOneof(7);
- }
-
- /**
- * A list of selected ProtectedApplications to restore. The listed
- * ProtectedApplications and all the resources to which they refer will be
- * restored.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.NamespacedNames selected_applications = 7;
- * @param \Google\Cloud\GkeBackup\V1\NamespacedNames $var
- * @return $this
- */
- public function setSelectedApplications($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\NamespacedNames::class);
- $this->writeOneof(7, $var);
-
- return $this;
- }
-
- /**
- * Do not restore any namespaced resources if set to "True".
- * Specifying this field to "False" is not allowed.
- *
- * Generated from protobuf field bool no_namespaces = 9;
- * @return bool
- */
- public function getNoNamespaces()
- {
- return $this->readOneof(9);
- }
-
- public function hasNoNamespaces()
- {
- return $this->hasOneof(9);
- }
-
- /**
- * Do not restore any namespaced resources if set to "True".
- * Specifying this field to "False" is not allowed.
- *
- * Generated from protobuf field bool no_namespaces = 9;
- * @param bool $var
- * @return $this
- */
- public function setNoNamespaces($var)
- {
- GPBUtil::checkBool($var);
- $this->writeOneof(9, $var);
-
- return $this;
- }
-
- /**
- * A list of selected namespaces excluded from restoration. All
- * namespaces except those in this list will be restored.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10;
- * @return \Google\Cloud\GkeBackup\V1\Namespaces|null
- */
- public function getExcludedNamespaces()
- {
- return $this->readOneof(10);
- }
-
- public function hasExcludedNamespaces()
- {
- return $this->hasOneof(10);
- }
-
- /**
- * A list of selected namespaces excluded from restoration. All
- * namespaces except those in this list will be restored.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Namespaces excluded_namespaces = 10;
- * @param \Google\Cloud\GkeBackup\V1\Namespaces $var
- * @return $this
- */
- public function setExcludedNamespaces($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\Namespaces::class);
- $this->writeOneof(10, $var);
-
- return $this;
- }
-
- /**
- * Optional. A list of transformation rules to be applied against Kubernetes
- * resources as they are selected for restoration from a Backup. Rules are
- * executed in order defined - this order matters, as changes made by a rule
- * may impact the filtering logic of subsequent rules. An empty list means no
- * substitution will occur.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getSubstitutionRules()
- {
- return $this->substitution_rules;
- }
-
- /**
- * Optional. A list of transformation rules to be applied against Kubernetes
- * resources as they are selected for restoration from a Backup. Rules are
- * executed in order defined - this order matters, as changes made by a rule
- * may impact the filtering logic of subsequent rules. An empty list means no
- * substitution will occur.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule substitution_rules = 8 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\GkeBackup\V1\RestoreConfig\SubstitutionRule>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setSubstitutionRules($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\RestoreConfig\SubstitutionRule::class);
- $this->substitution_rules = $arr;
-
- return $this;
- }
-
- /**
- * Optional. A list of transformation rules to be applied against Kubernetes
- * resources as they are selected for restoration from a Backup. Rules are
- * executed in order defined - this order matters, as changes made by a rule
- * may impact the filtering logic of subsequent rules. An empty list means no
- * transformation will occur.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTransformationRules()
- {
- return $this->transformation_rules;
- }
-
- /**
- * Optional. A list of transformation rules to be applied against Kubernetes
- * resources as they are selected for restoration from a Backup. Rules are
- * executed in order defined - this order matters, as changes made by a rule
- * may impact the filtering logic of subsequent rules. An empty list means no
- * transformation will occur.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRule transformation_rules = 11 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\GkeBackup\V1\RestoreConfig\TransformationRule>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTransformationRules($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\RestoreConfig\TransformationRule::class);
- $this->transformation_rules = $arr;
-
- return $this;
- }
-
- /**
- * Optional. A table that binds volumes by their scope to a restore policy.
- * Bindings must have a unique scope. Any volumes not scoped in the bindings
- * are subject to the policy defined in volume_data_restore_policy.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getVolumeDataRestorePolicyBindings()
- {
- return $this->volume_data_restore_policy_bindings;
- }
-
- /**
- * Optional. A table that binds volumes by their scope to a restore policy.
- * Bindings must have a unique scope. Any volumes not scoped in the bindings
- * are subject to the policy defined in volume_data_restore_policy.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding volume_data_restore_policy_bindings = 12 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\GkeBackup\V1\RestoreConfig\VolumeDataRestorePolicyBinding>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setVolumeDataRestorePolicyBindings($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\RestoreConfig\VolumeDataRestorePolicyBinding::class);
- $this->volume_data_restore_policy_bindings = $arr;
-
- return $this;
- }
-
- /**
- * Optional. RestoreOrder contains custom ordering to use on a Restore.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeBackup\V1\RestoreConfig\RestoreOrder|null
- */
- public function getRestoreOrder()
- {
- return $this->restore_order;
- }
-
- public function hasRestoreOrder()
- {
- return isset($this->restore_order);
- }
-
- public function clearRestoreOrder()
- {
- unset($this->restore_order);
- }
-
- /**
- * Optional. RestoreOrder contains custom ordering to use on a Restore.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder restore_order = 13 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeBackup\V1\RestoreConfig\RestoreOrder $var
- * @return $this
- */
- public function setRestoreOrder($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\RestoreConfig\RestoreOrder::class);
- $this->restore_order = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getNamespacedResourceRestoreScope()
- {
- return $this->whichOneof("namespaced_resource_restore_scope");
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/ClusterResourceConflictPolicy.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/ClusterResourceConflictPolicy.php
deleted file mode 100644
index e604ecd59aca..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/ClusterResourceConflictPolicy.php
+++ /dev/null
@@ -1,69 +0,0 @@
-google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceConflictPolicy
- */
-class ClusterResourceConflictPolicy
-{
- /**
- * Unspecified. Only allowed if no cluster-scoped resources will be
- * restored.
- *
- * Generated from protobuf enum CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED = 0;
- */
- const CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED = 0;
- /**
- * Do not attempt to restore the conflicting resource.
- *
- * Generated from protobuf enum USE_EXISTING_VERSION = 1;
- */
- const USE_EXISTING_VERSION = 1;
- /**
- * Delete the existing version before re-creating it from the Backup.
- * This is a dangerous option which could cause unintentional
- * data loss if used inappropriately. For example, deleting a CRD will
- * cause Kubernetes to delete all CRs of that type.
- *
- * Generated from protobuf enum USE_BACKUP_VERSION = 2;
- */
- const USE_BACKUP_VERSION = 2;
-
- private static $valueToName = [
- self::CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED => 'CLUSTER_RESOURCE_CONFLICT_POLICY_UNSPECIFIED',
- self::USE_EXISTING_VERSION => 'USE_EXISTING_VERSION',
- self::USE_BACKUP_VERSION => 'USE_BACKUP_VERSION',
- ];
-
- 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(ClusterResourceConflictPolicy::class, \Google\Cloud\GkeBackup\V1\RestoreConfig_ClusterResourceConflictPolicy::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/ClusterResourceRestoreScope.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/ClusterResourceRestoreScope.php
deleted file mode 100644
index 20c239dfbeb2..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/ClusterResourceRestoreScope.php
+++ /dev/null
@@ -1,219 +0,0 @@
-google.cloud.gkebackup.v1.RestoreConfig.ClusterResourceRestoreScope
- */
-class ClusterResourceRestoreScope extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. A list of cluster-scoped resource group kinds to restore from
- * the backup. If specified, only the selected resources will be restored.
- * Mutually exclusive to any other field in the message.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $selected_group_kinds;
- /**
- * Optional. A list of cluster-scoped resource group kinds to NOT restore
- * from the backup. If specified, all valid cluster-scoped resources will be
- * restored except for those specified in the list.
- * Mutually exclusive to any other field in the message.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind excluded_group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $excluded_group_kinds;
- /**
- * Optional. If True, all valid cluster-scoped resources will be restored.
- * Mutually exclusive to any other field in the message.
- *
- * Generated from protobuf field bool all_group_kinds = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $all_group_kinds = false;
- /**
- * Optional. If True, no cluster-scoped resources will be restored.
- * This has the same restore scope as if the message is not defined.
- * Mutually exclusive to any other field in the message.
- *
- * Generated from protobuf field bool no_group_kinds = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $no_group_kinds = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind>|\Google\Protobuf\Internal\RepeatedField $selected_group_kinds
- * Optional. A list of cluster-scoped resource group kinds to restore from
- * the backup. If specified, only the selected resources will be restored.
- * Mutually exclusive to any other field in the message.
- * @type array<\Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind>|\Google\Protobuf\Internal\RepeatedField $excluded_group_kinds
- * Optional. A list of cluster-scoped resource group kinds to NOT restore
- * from the backup. If specified, all valid cluster-scoped resources will be
- * restored except for those specified in the list.
- * Mutually exclusive to any other field in the message.
- * @type bool $all_group_kinds
- * Optional. If True, all valid cluster-scoped resources will be restored.
- * Mutually exclusive to any other field in the message.
- * @type bool $no_group_kinds
- * Optional. If True, no cluster-scoped resources will be restored.
- * This has the same restore scope as if the message is not defined.
- * Mutually exclusive to any other field in the message.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. A list of cluster-scoped resource group kinds to restore from
- * the backup. If specified, only the selected resources will be restored.
- * Mutually exclusive to any other field in the message.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getSelectedGroupKinds()
- {
- return $this->selected_group_kinds;
- }
-
- /**
- * Optional. A list of cluster-scoped resource group kinds to restore from
- * the backup. If specified, only the selected resources will be restored.
- * Mutually exclusive to any other field in the message.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind selected_group_kinds = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setSelectedGroupKinds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind::class);
- $this->selected_group_kinds = $arr;
-
- return $this;
- }
-
- /**
- * Optional. A list of cluster-scoped resource group kinds to NOT restore
- * from the backup. If specified, all valid cluster-scoped resources will be
- * restored except for those specified in the list.
- * Mutually exclusive to any other field in the message.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind excluded_group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getExcludedGroupKinds()
- {
- return $this->excluded_group_kinds;
- }
-
- /**
- * Optional. A list of cluster-scoped resource group kinds to NOT restore
- * from the backup. If specified, all valid cluster-scoped resources will be
- * restored except for those specified in the list.
- * Mutually exclusive to any other field in the message.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind excluded_group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setExcludedGroupKinds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind::class);
- $this->excluded_group_kinds = $arr;
-
- return $this;
- }
-
- /**
- * Optional. If True, all valid cluster-scoped resources will be restored.
- * Mutually exclusive to any other field in the message.
- *
- * Generated from protobuf field bool all_group_kinds = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getAllGroupKinds()
- {
- return $this->all_group_kinds;
- }
-
- /**
- * Optional. If True, all valid cluster-scoped resources will be restored.
- * Mutually exclusive to any other field in the message.
- *
- * Generated from protobuf field bool all_group_kinds = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setAllGroupKinds($var)
- {
- GPBUtil::checkBool($var);
- $this->all_group_kinds = $var;
-
- return $this;
- }
-
- /**
- * Optional. If True, no cluster-scoped resources will be restored.
- * This has the same restore scope as if the message is not defined.
- * Mutually exclusive to any other field in the message.
- *
- * Generated from protobuf field bool no_group_kinds = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getNoGroupKinds()
- {
- return $this->no_group_kinds;
- }
-
- /**
- * Optional. If True, no cluster-scoped resources will be restored.
- * This has the same restore scope as if the message is not defined.
- * Mutually exclusive to any other field in the message.
- *
- * Generated from protobuf field bool no_group_kinds = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setNoGroupKinds($var)
- {
- GPBUtil::checkBool($var);
- $this->no_group_kinds = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(ClusterResourceRestoreScope::class, \Google\Cloud\GkeBackup\V1\RestoreConfig_ClusterResourceRestoreScope::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/GroupKind.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/GroupKind.php
deleted file mode 100644
index 25b59279699e..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/GroupKind.php
+++ /dev/null
@@ -1,122 +0,0 @@
-google.cloud.gkebackup.v1.RestoreConfig.GroupKind
- */
-class GroupKind extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. API group string of a Kubernetes resource, e.g.
- * "apiextensions.k8s.io", "storage.k8s.io", etc.
- * Note: use empty string for core API group
- *
- * Generated from protobuf field string resource_group = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $resource_group = '';
- /**
- * Optional. Kind of a Kubernetes resource, must be in UpperCamelCase
- * (PascalCase) and singular form. E.g. "CustomResourceDefinition",
- * "StorageClass", etc.
- *
- * Generated from protobuf field string resource_kind = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $resource_kind = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $resource_group
- * Optional. API group string of a Kubernetes resource, e.g.
- * "apiextensions.k8s.io", "storage.k8s.io", etc.
- * Note: use empty string for core API group
- * @type string $resource_kind
- * Optional. Kind of a Kubernetes resource, must be in UpperCamelCase
- * (PascalCase) and singular form. E.g. "CustomResourceDefinition",
- * "StorageClass", etc.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. API group string of a Kubernetes resource, e.g.
- * "apiextensions.k8s.io", "storage.k8s.io", etc.
- * Note: use empty string for core API group
- *
- * Generated from protobuf field string resource_group = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getResourceGroup()
- {
- return $this->resource_group;
- }
-
- /**
- * Optional. API group string of a Kubernetes resource, e.g.
- * "apiextensions.k8s.io", "storage.k8s.io", etc.
- * Note: use empty string for core API group
- *
- * Generated from protobuf field string resource_group = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setResourceGroup($var)
- {
- GPBUtil::checkString($var, True);
- $this->resource_group = $var;
-
- return $this;
- }
-
- /**
- * Optional. Kind of a Kubernetes resource, must be in UpperCamelCase
- * (PascalCase) and singular form. E.g. "CustomResourceDefinition",
- * "StorageClass", etc.
- *
- * Generated from protobuf field string resource_kind = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getResourceKind()
- {
- return $this->resource_kind;
- }
-
- /**
- * Optional. Kind of a Kubernetes resource, must be in UpperCamelCase
- * (PascalCase) and singular form. E.g. "CustomResourceDefinition",
- * "StorageClass", etc.
- *
- * Generated from protobuf field string resource_kind = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setResourceKind($var)
- {
- GPBUtil::checkString($var, True);
- $this->resource_kind = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(GroupKind::class, \Google\Cloud\GkeBackup\V1\RestoreConfig_GroupKind::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/NamespacedResourceRestoreMode.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/NamespacedResourceRestoreMode.php
deleted file mode 100644
index dd3b7ea66f8b..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/NamespacedResourceRestoreMode.php
+++ /dev/null
@@ -1,120 +0,0 @@
-google.cloud.gkebackup.v1.RestoreConfig.NamespacedResourceRestoreMode
- */
-class NamespacedResourceRestoreMode
-{
- /**
- * Unspecified (invalid).
- *
- * Generated from protobuf enum NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED = 0;
- */
- const NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED = 0;
- /**
- * When conflicting top-level resources (either Namespaces or
- * ProtectedApplications, depending upon the scope) are encountered, this
- * will first trigger a delete of the conflicting resource AND ALL OF ITS
- * REFERENCED RESOURCES (e.g., all resources in the Namespace or all
- * resources referenced by the ProtectedApplication) before restoring the
- * resources from the Backup. This mode should only be used when you are
- * intending to revert some portion of a cluster to an earlier state.
- *
- * Generated from protobuf enum DELETE_AND_RESTORE = 1;
- */
- const DELETE_AND_RESTORE = 1;
- /**
- * If conflicting top-level resources (either Namespaces or
- * ProtectedApplications, depending upon the scope) are encountered at the
- * beginning of a restore process, the Restore will fail. If a conflict
- * occurs during the restore process itself (e.g., because an out of band
- * process creates conflicting resources), a conflict will be reported.
- *
- * Generated from protobuf enum FAIL_ON_CONFLICT = 2;
- */
- const FAIL_ON_CONFLICT = 2;
- /**
- * This mode merges the backup and the target cluster and skips the
- * conflicting resources. If a single resource to restore exists in the
- * cluster before restoration, the resource will be skipped, otherwise it
- * will be restored.
- *
- * Generated from protobuf enum MERGE_SKIP_ON_CONFLICT = 3;
- */
- const MERGE_SKIP_ON_CONFLICT = 3;
- /**
- * This mode merges the backup and the target cluster and skips the
- * conflicting resources except volume data. If a PVC to restore already
- * exists, this mode will restore/reconnect the volume without overwriting
- * the PVC. It is similar to MERGE_SKIP_ON_CONFLICT except that it will
- * apply the volume data policy for the conflicting PVCs:
- * - RESTORE_VOLUME_DATA_FROM_BACKUP: restore data only and respect the
- * reclaim policy of the original PV;
- * - REUSE_VOLUME_HANDLE_FROM_BACKUP: reconnect and respect the reclaim
- * policy of the original PV;
- * - NO_VOLUME_DATA_RESTORATION: new provision and respect the reclaim
- * policy of the original PV.
- * Note that this mode could cause data loss as the original PV can be
- * retained or deleted depending on its reclaim policy.
- *
- * Generated from protobuf enum MERGE_REPLACE_VOLUME_ON_CONFLICT = 4;
- */
- const MERGE_REPLACE_VOLUME_ON_CONFLICT = 4;
- /**
- * This mode merges the backup and the target cluster and replaces the
- * conflicting resources with the ones in the backup. If a single resource
- * to restore exists in the cluster before restoration, the resource will be
- * replaced with the one from the backup. To replace an existing resource,
- * the first attempt is to update the resource to match the one from the
- * backup; if the update fails, the second attempt is to delete the resource
- * and restore it from the backup.
- * Note that this mode could cause data loss as it replaces the existing
- * resources in the target cluster, and the original PV can be retained or
- * deleted depending on its reclaim policy.
- *
- * Generated from protobuf enum MERGE_REPLACE_ON_CONFLICT = 5;
- */
- const MERGE_REPLACE_ON_CONFLICT = 5;
-
- private static $valueToName = [
- self::NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED => 'NAMESPACED_RESOURCE_RESTORE_MODE_UNSPECIFIED',
- self::DELETE_AND_RESTORE => 'DELETE_AND_RESTORE',
- self::FAIL_ON_CONFLICT => 'FAIL_ON_CONFLICT',
- self::MERGE_SKIP_ON_CONFLICT => 'MERGE_SKIP_ON_CONFLICT',
- self::MERGE_REPLACE_VOLUME_ON_CONFLICT => 'MERGE_REPLACE_VOLUME_ON_CONFLICT',
- self::MERGE_REPLACE_ON_CONFLICT => 'MERGE_REPLACE_ON_CONFLICT',
- ];
-
- 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(NamespacedResourceRestoreMode::class, \Google\Cloud\GkeBackup\V1\RestoreConfig_NamespacedResourceRestoreMode::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/ResourceFilter.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/ResourceFilter.php
deleted file mode 100644
index 6fc12eb700f8..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/ResourceFilter.php
+++ /dev/null
@@ -1,188 +0,0 @@
-google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter
- */
-class ResourceFilter extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. (Filtering parameter) Any resource subject to transformation
- * must be contained within one of the listed Kubernetes Namespace in the
- * Backup. If this field is not provided, no namespace filtering will be
- * performed (all resources in all Namespaces, including all cluster-scoped
- * resources, will be candidates for transformation).
- *
- * Generated from protobuf field repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $namespaces;
- /**
- * Optional. (Filtering parameter) Any resource subject to transformation
- * must belong to one of the listed "types". If this field is not provided,
- * no type filtering will be performed (all resources of all types matching
- * previous filtering parameters will be candidates for transformation).
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $group_kinds;
- /**
- * Optional. This is a [JSONPath]
- * (https://github.com/json-path/JsonPath/blob/master/README.md)
- * expression that matches specific fields of candidate
- * resources and it operates as a filtering parameter (resources that
- * are not matched with this expression will not be candidates for
- * transformation).
- *
- * Generated from protobuf field string json_path = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $json_path = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $namespaces
- * Optional. (Filtering parameter) Any resource subject to transformation
- * must be contained within one of the listed Kubernetes Namespace in the
- * Backup. If this field is not provided, no namespace filtering will be
- * performed (all resources in all Namespaces, including all cluster-scoped
- * resources, will be candidates for transformation).
- * @type array<\Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind>|\Google\Protobuf\Internal\RepeatedField $group_kinds
- * Optional. (Filtering parameter) Any resource subject to transformation
- * must belong to one of the listed "types". If this field is not provided,
- * no type filtering will be performed (all resources of all types matching
- * previous filtering parameters will be candidates for transformation).
- * @type string $json_path
- * Optional. This is a [JSONPath]
- * (https://github.com/json-path/JsonPath/blob/master/README.md)
- * expression that matches specific fields of candidate
- * resources and it operates as a filtering parameter (resources that
- * are not matched with this expression will not be candidates for
- * transformation).
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. (Filtering parameter) Any resource subject to transformation
- * must be contained within one of the listed Kubernetes Namespace in the
- * Backup. If this field is not provided, no namespace filtering will be
- * performed (all resources in all Namespaces, including all cluster-scoped
- * resources, will be candidates for transformation).
- *
- * Generated from protobuf field repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getNamespaces()
- {
- return $this->namespaces;
- }
-
- /**
- * Optional. (Filtering parameter) Any resource subject to transformation
- * must be contained within one of the listed Kubernetes Namespace in the
- * Backup. If this field is not provided, no namespace filtering will be
- * performed (all resources in all Namespaces, including all cluster-scoped
- * resources, will be candidates for transformation).
- *
- * Generated from protobuf field repeated string namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setNamespaces($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->namespaces = $arr;
-
- return $this;
- }
-
- /**
- * Optional. (Filtering parameter) Any resource subject to transformation
- * must belong to one of the listed "types". If this field is not provided,
- * no type filtering will be performed (all resources of all types matching
- * previous filtering parameters will be candidates for transformation).
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getGroupKinds()
- {
- return $this->group_kinds;
- }
-
- /**
- * Optional. (Filtering parameter) Any resource subject to transformation
- * must belong to one of the listed "types". If this field is not provided,
- * no type filtering will be performed (all resources of all types matching
- * previous filtering parameters will be candidates for transformation).
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setGroupKinds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind::class);
- $this->group_kinds = $arr;
-
- return $this;
- }
-
- /**
- * Optional. This is a [JSONPath]
- * (https://github.com/json-path/JsonPath/blob/master/README.md)
- * expression that matches specific fields of candidate
- * resources and it operates as a filtering parameter (resources that
- * are not matched with this expression will not be candidates for
- * transformation).
- *
- * Generated from protobuf field string json_path = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getJsonPath()
- {
- return $this->json_path;
- }
-
- /**
- * Optional. This is a [JSONPath]
- * (https://github.com/json-path/JsonPath/blob/master/README.md)
- * expression that matches specific fields of candidate
- * resources and it operates as a filtering parameter (resources that
- * are not matched with this expression will not be candidates for
- * transformation).
- *
- * Generated from protobuf field string json_path = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setJsonPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->json_path = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(ResourceFilter::class, \Google\Cloud\GkeBackup\V1\RestoreConfig_ResourceFilter::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/RestoreOrder.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/RestoreOrder.php
deleted file mode 100644
index 072bd68e7767..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/RestoreOrder.php
+++ /dev/null
@@ -1,79 +0,0 @@
-google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder
- */
-class RestoreOrder extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. Contains a list of group kind dependency pairs provided
- * by the customer, that is used by Backup for GKE to
- * generate a group kind restore order.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $group_kind_dependencies;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GkeBackup\V1\RestoreConfig\RestoreOrder\GroupKindDependency>|\Google\Protobuf\Internal\RepeatedField $group_kind_dependencies
- * Optional. Contains a list of group kind dependency pairs provided
- * by the customer, that is used by Backup for GKE to
- * generate a group kind restore order.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Contains a list of group kind dependency pairs provided
- * by the customer, that is used by Backup for GKE to
- * generate a group kind restore order.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getGroupKindDependencies()
- {
- return $this->group_kind_dependencies;
- }
-
- /**
- * Optional. Contains a list of group kind dependency pairs provided
- * by the customer, that is used by Backup for GKE to
- * generate a group kind restore order.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency group_kind_dependencies = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\GkeBackup\V1\RestoreConfig\RestoreOrder\GroupKindDependency>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setGroupKindDependencies($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\RestoreConfig\RestoreOrder\GroupKindDependency::class);
- $this->group_kind_dependencies = $arr;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(RestoreOrder::class, \Google\Cloud\GkeBackup\V1\RestoreConfig_RestoreOrder::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/RestoreOrder/GroupKindDependency.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/RestoreOrder/GroupKindDependency.php
deleted file mode 100644
index de9037549886..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/RestoreOrder/GroupKindDependency.php
+++ /dev/null
@@ -1,132 +0,0 @@
-google.cloud.gkebackup.v1.RestoreConfig.RestoreOrder.GroupKindDependency
- */
-class GroupKindDependency extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The satisfying group kind must be restored first
- * in order to satisfy the dependency.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $satisfying = null;
- /**
- * Required. The requiring group kind requires that the other
- * group kind be restored first.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $requiring = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind $satisfying
- * Required. The satisfying group kind must be restored first
- * in order to satisfy the dependency.
- * @type \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind $requiring
- * Required. The requiring group kind requires that the other
- * group kind be restored first.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The satisfying group kind must be restored first
- * in order to satisfy the dependency.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind|null
- */
- public function getSatisfying()
- {
- return $this->satisfying;
- }
-
- public function hasSatisfying()
- {
- return isset($this->satisfying);
- }
-
- public function clearSatisfying()
- {
- unset($this->satisfying);
- }
-
- /**
- * Required. The satisfying group kind must be restored first
- * in order to satisfy the dependency.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.GroupKind satisfying = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind $var
- * @return $this
- */
- public function setSatisfying($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind::class);
- $this->satisfying = $var;
-
- return $this;
- }
-
- /**
- * Required. The requiring group kind requires that the other
- * group kind be restored first.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind|null
- */
- public function getRequiring()
- {
- return $this->requiring;
- }
-
- public function hasRequiring()
- {
- return isset($this->requiring);
- }
-
- public function clearRequiring()
- {
- unset($this->requiring);
- }
-
- /**
- * Required. The requiring group kind requires that the other
- * group kind be restored first.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.GroupKind requiring = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind $var
- * @return $this
- */
- public function setRequiring($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind::class);
- $this->requiring = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(GroupKindDependency::class, \Google\Cloud\GkeBackup\V1\RestoreConfig_RestoreOrder_GroupKindDependency::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/SubstitutionRule.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/SubstitutionRule.php
deleted file mode 100644
index 59c1bf426d5e..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/SubstitutionRule.php
+++ /dev/null
@@ -1,312 +0,0 @@
-google.cloud.gkebackup.v1.RestoreConfig.SubstitutionRule
- */
-class SubstitutionRule extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. (Filtering parameter) Any resource subject to substitution must
- * be contained within one of the listed Kubernetes Namespace in the Backup.
- * If this field is not provided, no namespace filtering will be performed
- * (all resources in all Namespaces, including all cluster-scoped resources,
- * will be candidates for substitution).
- * To mix cluster-scoped and namespaced resources in the same rule, use an
- * empty string ("") as one of the target namespaces.
- *
- * Generated from protobuf field repeated string target_namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $target_namespaces;
- /**
- * Optional. (Filtering parameter) Any resource subject to substitution must
- * belong to one of the listed "types". If this field is not provided, no
- * type filtering will be performed (all resources of all types matching
- * previous filtering parameters will be candidates for substitution).
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $target_group_kinds;
- /**
- * Required. This is a [JSONPath]
- * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
- * expression that matches specific fields of candidate
- * resources and it operates as both a filtering parameter (resources that
- * are not matched with this expression will not be candidates for
- * substitution) as well as a field identifier (identifies exactly which
- * fields out of the candidate resources will be modified).
- *
- * Generated from protobuf field string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $target_json_path = '';
- /**
- * Optional. (Filtering parameter) This is a [regular expression]
- * (https://en.wikipedia.org/wiki/Regular_expression)
- * that is compared against the fields matched by the target_json_path
- * expression (and must also have passed the previous filters).
- * Substitution will not be performed against fields whose
- * value does not match this expression. If this field is NOT specified,
- * then ALL fields matched by the target_json_path expression will undergo
- * substitution. Note that an empty (e.g., "", rather than unspecified)
- * value for this field will only match empty fields.
- *
- * Generated from protobuf field string original_value_pattern = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $original_value_pattern = '';
- /**
- * Optional. This is the new value to set for any fields that pass the
- * filtering and selection criteria. To remove a value from a Kubernetes
- * resource, either leave this field unspecified, or set it to the empty
- * string ("").
- *
- * Generated from protobuf field string new_value = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $new_value = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $target_namespaces
- * Optional. (Filtering parameter) Any resource subject to substitution must
- * be contained within one of the listed Kubernetes Namespace in the Backup.
- * If this field is not provided, no namespace filtering will be performed
- * (all resources in all Namespaces, including all cluster-scoped resources,
- * will be candidates for substitution).
- * To mix cluster-scoped and namespaced resources in the same rule, use an
- * empty string ("") as one of the target namespaces.
- * @type array<\Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind>|\Google\Protobuf\Internal\RepeatedField $target_group_kinds
- * Optional. (Filtering parameter) Any resource subject to substitution must
- * belong to one of the listed "types". If this field is not provided, no
- * type filtering will be performed (all resources of all types matching
- * previous filtering parameters will be candidates for substitution).
- * @type string $target_json_path
- * Required. This is a [JSONPath]
- * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
- * expression that matches specific fields of candidate
- * resources and it operates as both a filtering parameter (resources that
- * are not matched with this expression will not be candidates for
- * substitution) as well as a field identifier (identifies exactly which
- * fields out of the candidate resources will be modified).
- * @type string $original_value_pattern
- * Optional. (Filtering parameter) This is a [regular expression]
- * (https://en.wikipedia.org/wiki/Regular_expression)
- * that is compared against the fields matched by the target_json_path
- * expression (and must also have passed the previous filters).
- * Substitution will not be performed against fields whose
- * value does not match this expression. If this field is NOT specified,
- * then ALL fields matched by the target_json_path expression will undergo
- * substitution. Note that an empty (e.g., "", rather than unspecified)
- * value for this field will only match empty fields.
- * @type string $new_value
- * Optional. This is the new value to set for any fields that pass the
- * filtering and selection criteria. To remove a value from a Kubernetes
- * resource, either leave this field unspecified, or set it to the empty
- * string ("").
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. (Filtering parameter) Any resource subject to substitution must
- * be contained within one of the listed Kubernetes Namespace in the Backup.
- * If this field is not provided, no namespace filtering will be performed
- * (all resources in all Namespaces, including all cluster-scoped resources,
- * will be candidates for substitution).
- * To mix cluster-scoped and namespaced resources in the same rule, use an
- * empty string ("") as one of the target namespaces.
- *
- * Generated from protobuf field repeated string target_namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTargetNamespaces()
- {
- return $this->target_namespaces;
- }
-
- /**
- * Optional. (Filtering parameter) Any resource subject to substitution must
- * be contained within one of the listed Kubernetes Namespace in the Backup.
- * If this field is not provided, no namespace filtering will be performed
- * (all resources in all Namespaces, including all cluster-scoped resources,
- * will be candidates for substitution).
- * To mix cluster-scoped and namespaced resources in the same rule, use an
- * empty string ("") as one of the target namespaces.
- *
- * Generated from protobuf field repeated string target_namespaces = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTargetNamespaces($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->target_namespaces = $arr;
-
- return $this;
- }
-
- /**
- * Optional. (Filtering parameter) Any resource subject to substitution must
- * belong to one of the listed "types". If this field is not provided, no
- * type filtering will be performed (all resources of all types matching
- * previous filtering parameters will be candidates for substitution).
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTargetGroupKinds()
- {
- return $this->target_group_kinds;
- }
-
- /**
- * Optional. (Filtering parameter) Any resource subject to substitution must
- * belong to one of the listed "types". If this field is not provided, no
- * type filtering will be performed (all resources of all types matching
- * previous filtering parameters will be candidates for substitution).
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.GroupKind target_group_kinds = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTargetGroupKinds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\RestoreConfig\GroupKind::class);
- $this->target_group_kinds = $arr;
-
- return $this;
- }
-
- /**
- * Required. This is a [JSONPath]
- * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
- * expression that matches specific fields of candidate
- * resources and it operates as both a filtering parameter (resources that
- * are not matched with this expression will not be candidates for
- * substitution) as well as a field identifier (identifies exactly which
- * fields out of the candidate resources will be modified).
- *
- * Generated from protobuf field string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getTargetJsonPath()
- {
- return $this->target_json_path;
- }
-
- /**
- * Required. This is a [JSONPath]
- * (https://kubernetes.io/docs/reference/kubectl/jsonpath/)
- * expression that matches specific fields of candidate
- * resources and it operates as both a filtering parameter (resources that
- * are not matched with this expression will not be candidates for
- * substitution) as well as a field identifier (identifies exactly which
- * fields out of the candidate resources will be modified).
- *
- * Generated from protobuf field string target_json_path = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setTargetJsonPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->target_json_path = $var;
-
- return $this;
- }
-
- /**
- * Optional. (Filtering parameter) This is a [regular expression]
- * (https://en.wikipedia.org/wiki/Regular_expression)
- * that is compared against the fields matched by the target_json_path
- * expression (and must also have passed the previous filters).
- * Substitution will not be performed against fields whose
- * value does not match this expression. If this field is NOT specified,
- * then ALL fields matched by the target_json_path expression will undergo
- * substitution. Note that an empty (e.g., "", rather than unspecified)
- * value for this field will only match empty fields.
- *
- * Generated from protobuf field string original_value_pattern = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOriginalValuePattern()
- {
- return $this->original_value_pattern;
- }
-
- /**
- * Optional. (Filtering parameter) This is a [regular expression]
- * (https://en.wikipedia.org/wiki/Regular_expression)
- * that is compared against the fields matched by the target_json_path
- * expression (and must also have passed the previous filters).
- * Substitution will not be performed against fields whose
- * value does not match this expression. If this field is NOT specified,
- * then ALL fields matched by the target_json_path expression will undergo
- * substitution. Note that an empty (e.g., "", rather than unspecified)
- * value for this field will only match empty fields.
- *
- * Generated from protobuf field string original_value_pattern = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOriginalValuePattern($var)
- {
- GPBUtil::checkString($var, True);
- $this->original_value_pattern = $var;
-
- return $this;
- }
-
- /**
- * Optional. This is the new value to set for any fields that pass the
- * filtering and selection criteria. To remove a value from a Kubernetes
- * resource, either leave this field unspecified, or set it to the empty
- * string ("").
- *
- * Generated from protobuf field string new_value = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getNewValue()
- {
- return $this->new_value;
- }
-
- /**
- * Optional. This is the new value to set for any fields that pass the
- * filtering and selection criteria. To remove a value from a Kubernetes
- * resource, either leave this field unspecified, or set it to the empty
- * string ("").
- *
- * Generated from protobuf field string new_value = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setNewValue($var)
- {
- GPBUtil::checkString($var, True);
- $this->new_value = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(SubstitutionRule::class, \Google\Cloud\GkeBackup\V1\RestoreConfig_SubstitutionRule::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/TransformationRule.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/TransformationRule.php
deleted file mode 100644
index 1c693f9c1c6a..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/TransformationRule.php
+++ /dev/null
@@ -1,178 +0,0 @@
-google.cloud.gkebackup.v1.RestoreConfig.TransformationRule
- */
-class TransformationRule extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A list of transformation rule actions to take against candidate
- * resources. Actions are executed in order defined - this order matters, as
- * they could potentially interfere with each other and the first operation
- * could affect the outcome of the second operation.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- private $field_actions;
- /**
- * Optional. This field is used to specify a set of fields that should be
- * used to determine which resources in backup should be acted upon by the
- * supplied transformation rule actions, and this will ensure that only
- * specific resources are affected by transformation rule actions.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter resource_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $resource_filter = null;
- /**
- * Optional. The description is a user specified string description of the
- * transformation rule.
- *
- * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $description = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GkeBackup\V1\RestoreConfig\TransformationRuleAction>|\Google\Protobuf\Internal\RepeatedField $field_actions
- * Required. A list of transformation rule actions to take against candidate
- * resources. Actions are executed in order defined - this order matters, as
- * they could potentially interfere with each other and the first operation
- * could affect the outcome of the second operation.
- * @type \Google\Cloud\GkeBackup\V1\RestoreConfig\ResourceFilter $resource_filter
- * Optional. This field is used to specify a set of fields that should be
- * used to determine which resources in backup should be acted upon by the
- * supplied transformation rule actions, and this will ensure that only
- * specific resources are affected by transformation rule actions.
- * @type string $description
- * Optional. The description is a user specified string description of the
- * transformation rule.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A list of transformation rule actions to take against candidate
- * resources. Actions are executed in order defined - this order matters, as
- * they could potentially interfere with each other and the first operation
- * could affect the outcome of the second operation.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFieldActions()
- {
- return $this->field_actions;
- }
-
- /**
- * Required. A list of transformation rule actions to take against candidate
- * resources. Actions are executed in order defined - this order matters, as
- * they could potentially interfere with each other and the first operation
- * could affect the outcome of the second operation.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction field_actions = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param array<\Google\Cloud\GkeBackup\V1\RestoreConfig\TransformationRuleAction>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFieldActions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\RestoreConfig\TransformationRuleAction::class);
- $this->field_actions = $arr;
-
- return $this;
- }
-
- /**
- * Optional. This field is used to specify a set of fields that should be
- * used to determine which resources in backup should be acted upon by the
- * supplied transformation rule actions, and this will ensure that only
- * specific resources are affected by transformation rule actions.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter resource_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeBackup\V1\RestoreConfig\ResourceFilter|null
- */
- public function getResourceFilter()
- {
- return $this->resource_filter;
- }
-
- public function hasResourceFilter()
- {
- return isset($this->resource_filter);
- }
-
- public function clearResourceFilter()
- {
- unset($this->resource_filter);
- }
-
- /**
- * Optional. This field is used to specify a set of fields that should be
- * used to determine which resources in backup should be acted upon by the
- * supplied transformation rule actions, and this will ensure that only
- * specific resources are affected by transformation rule actions.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.ResourceFilter resource_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeBackup\V1\RestoreConfig\ResourceFilter $var
- * @return $this
- */
- public function setResourceFilter($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\RestoreConfig\ResourceFilter::class);
- $this->resource_filter = $var;
-
- return $this;
- }
-
- /**
- * Optional. The description is a user specified string description of the
- * transformation rule.
- *
- * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Optional. The description is a user specified string description of the
- * transformation rule.
- *
- * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(TransformationRule::class, \Google\Cloud\GkeBackup\V1\RestoreConfig_TransformationRule::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/TransformationRuleAction.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/TransformationRuleAction.php
deleted file mode 100644
index 1d98cda0fcf9..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/TransformationRuleAction.php
+++ /dev/null
@@ -1,185 +0,0 @@
-google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction
- */
-class TransformationRuleAction extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. op specifies the operation to perform.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.Op op = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $op = 0;
- /**
- * Optional. A string containing a JSON Pointer value that references the
- * location in the target document to move the value from.
- *
- * Generated from protobuf field string from_path = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $from_path = '';
- /**
- * Optional. A string containing a JSON-Pointer value that references a
- * location within the target document where the operation is performed.
- *
- * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $path = '';
- /**
- * Optional. A string that specifies the desired value in string format to
- * use for transformation.
- *
- * Generated from protobuf field string value = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $value = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $op
- * Required. op specifies the operation to perform.
- * @type string $from_path
- * Optional. A string containing a JSON Pointer value that references the
- * location in the target document to move the value from.
- * @type string $path
- * Optional. A string containing a JSON-Pointer value that references a
- * location within the target document where the operation is performed.
- * @type string $value
- * Optional. A string that specifies the desired value in string format to
- * use for transformation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. op specifies the operation to perform.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.Op op = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getOp()
- {
- return $this->op;
- }
-
- /**
- * Required. op specifies the operation to perform.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.Op op = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setOp($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\RestoreConfig\TransformationRuleAction\Op::class);
- $this->op = $var;
-
- return $this;
- }
-
- /**
- * Optional. A string containing a JSON Pointer value that references the
- * location in the target document to move the value from.
- *
- * Generated from protobuf field string from_path = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getFromPath()
- {
- return $this->from_path;
- }
-
- /**
- * Optional. A string containing a JSON Pointer value that references the
- * location in the target document to move the value from.
- *
- * Generated from protobuf field string from_path = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setFromPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->from_path = $var;
-
- return $this;
- }
-
- /**
- * Optional. A string containing a JSON-Pointer value that references a
- * location within the target document where the operation is performed.
- *
- * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPath()
- {
- return $this->path;
- }
-
- /**
- * Optional. A string containing a JSON-Pointer value that references a
- * location within the target document where the operation is performed.
- *
- * Generated from protobuf field string path = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPath($var)
- {
- GPBUtil::checkString($var, True);
- $this->path = $var;
-
- return $this;
- }
-
- /**
- * Optional. A string that specifies the desired value in string format to
- * use for transformation.
- *
- * Generated from protobuf field string value = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getValue()
- {
- return $this->value;
- }
-
- /**
- * Optional. A string that specifies the desired value in string format to
- * use for transformation.
- *
- * Generated from protobuf field string value = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setValue($var)
- {
- GPBUtil::checkString($var, True);
- $this->value = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(TransformationRuleAction::class, \Google\Cloud\GkeBackup\V1\RestoreConfig_TransformationRuleAction::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/TransformationRuleAction/Op.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/TransformationRuleAction/Op.php
deleted file mode 100644
index fb777eac605f..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/TransformationRuleAction/Op.php
+++ /dev/null
@@ -1,104 +0,0 @@
-google.cloud.gkebackup.v1.RestoreConfig.TransformationRuleAction.Op
- */
-class Op
-{
- /**
- * Unspecified operation
- *
- * Generated from protobuf enum OP_UNSPECIFIED = 0;
- */
- const OP_UNSPECIFIED = 0;
- /**
- * The "remove" operation removes the value at the target location.
- *
- * Generated from protobuf enum REMOVE = 1;
- */
- const REMOVE = 1;
- /**
- * The "move" operation removes the value at a specified location and
- * adds it to the target location.
- *
- * Generated from protobuf enum MOVE = 2;
- */
- const MOVE = 2;
- /**
- * The "copy" operation copies the value at a specified location to the
- * target location.
- *
- * Generated from protobuf enum COPY = 3;
- */
- const COPY = 3;
- /**
- * The "add" operation performs one of the following functions,
- * depending upon what the target location references:
- * 1. If the target location specifies an array index, a new value is
- * inserted into the array at the specified index.
- * 2. If the target location specifies an object member that does not
- * already exist, a new member is added to the object.
- * 3. If the target location specifies an object member that does exist,
- * that member's value is replaced.
- *
- * Generated from protobuf enum ADD = 4;
- */
- const ADD = 4;
- /**
- * The "test" operation tests that a value at the target location is
- * equal to a specified value.
- *
- * Generated from protobuf enum TEST = 5;
- */
- const TEST = 5;
- /**
- * The "replace" operation replaces the value at the target location
- * with a new value. The operation object MUST contain a "value" member
- * whose content specifies the replacement value.
- *
- * Generated from protobuf enum REPLACE = 6;
- */
- const REPLACE = 6;
-
- private static $valueToName = [
- self::OP_UNSPECIFIED => 'OP_UNSPECIFIED',
- self::REMOVE => 'REMOVE',
- self::MOVE => 'MOVE',
- self::COPY => 'COPY',
- self::ADD => 'ADD',
- self::TEST => 'TEST',
- self::REPLACE => 'REPLACE',
- ];
-
- 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(Op::class, \Google\Cloud\GkeBackup\V1\RestoreConfig_TransformationRuleAction_Op::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/VolumeDataRestorePolicy.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/VolumeDataRestorePolicy.php
deleted file mode 100644
index a9cc0fed86ea..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/VolumeDataRestorePolicy.php
+++ /dev/null
@@ -1,77 +0,0 @@
-google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy
- */
-class VolumeDataRestorePolicy
-{
- /**
- * Unspecified (illegal).
- *
- * Generated from protobuf enum VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 0;
- */
- const VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED = 0;
- /**
- * For each PVC to be restored, create a new underlying volume and PV
- * from the corresponding VolumeBackup contained within the Backup.
- *
- * Generated from protobuf enum RESTORE_VOLUME_DATA_FROM_BACKUP = 1;
- */
- const RESTORE_VOLUME_DATA_FROM_BACKUP = 1;
- /**
- * For each PVC to be restored, attempt to reuse the original PV contained
- * in the Backup (with its original underlying volume). This option
- * is likely only usable when restoring a workload to its original cluster.
- *
- * Generated from protobuf enum REUSE_VOLUME_HANDLE_FROM_BACKUP = 2;
- */
- const REUSE_VOLUME_HANDLE_FROM_BACKUP = 2;
- /**
- * For each PVC to be restored, create PVC without any particular
- * action to restore data. In this case, the normal Kubernetes provisioning
- * logic would kick in, and this would likely result in either dynamically
- * provisioning blank PVs or binding to statically provisioned PVs.
- *
- * Generated from protobuf enum NO_VOLUME_DATA_RESTORATION = 3;
- */
- const NO_VOLUME_DATA_RESTORATION = 3;
-
- private static $valueToName = [
- self::VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED => 'VOLUME_DATA_RESTORE_POLICY_UNSPECIFIED',
- self::RESTORE_VOLUME_DATA_FROM_BACKUP => 'RESTORE_VOLUME_DATA_FROM_BACKUP',
- self::REUSE_VOLUME_HANDLE_FROM_BACKUP => 'REUSE_VOLUME_HANDLE_FROM_BACKUP',
- self::NO_VOLUME_DATA_RESTORATION => 'NO_VOLUME_DATA_RESTORATION',
- ];
-
- 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(VolumeDataRestorePolicy::class, \Google\Cloud\GkeBackup\V1\RestoreConfig_VolumeDataRestorePolicy::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/VolumeDataRestorePolicyBinding.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/VolumeDataRestorePolicyBinding.php
deleted file mode 100644
index 63e83c5737fe..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestoreConfig/VolumeDataRestorePolicyBinding.php
+++ /dev/null
@@ -1,119 +0,0 @@
-google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicyBinding
- */
-class VolumeDataRestorePolicyBinding extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
- * scope.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $policy = 0;
- protected $scope;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $policy
- * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
- * scope.
- * @type int $volume_type
- * The volume type, as determined by the PVC's bound PV,
- * to apply the policy to.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
- * scope.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getPolicy()
- {
- return $this->policy;
- }
-
- /**
- * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
- * scope.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setPolicy($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\RestoreConfig\VolumeDataRestorePolicy::class);
- $this->policy = $var;
-
- return $this;
- }
-
- /**
- * The volume type, as determined by the PVC's bound PV,
- * to apply the policy to.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2;
- * @return int
- */
- public function getVolumeType()
- {
- return $this->readOneof(2);
- }
-
- public function hasVolumeType()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * The volume type, as determined by the PVC's bound PV,
- * to apply the policy to.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType volume_type = 2;
- * @param int $var
- * @return $this
- */
- public function setVolumeType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\VolumeTypeEnum\VolumeType::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getScope()
- {
- return $this->whichOneof("scope");
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(VolumeDataRestorePolicyBinding::class, \Google\Cloud\GkeBackup\V1\RestoreConfig_VolumeDataRestorePolicyBinding::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestorePlan.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestorePlan.php
deleted file mode 100644
index 3129811771de..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestorePlan.php
+++ /dev/null
@@ -1,556 +0,0 @@
-google.cloud.gkebackup.v1.RestorePlan
- */
-class RestorePlan extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The full name of the RestorePlan resource.
- * Format: `projects/*/locations/*/restorePlans/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uid = '';
- /**
- * Output only. The timestamp when this RestorePlan resource was
- * created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. The timestamp when this RestorePlan resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * Optional. User specified descriptive string for this RestorePlan.
- *
- * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $description = '';
- /**
- * Required. Immutable. A reference to the
- * [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may
- * be used as the source for Restores created via this RestorePlan. Format:
- * `projects/*/locations/*/backupPlans/*`.
- *
- * Generated from protobuf field string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $backup_plan = '';
- /**
- * Required. Immutable. The target cluster into which Restores created via
- * this RestorePlan will restore data. NOTE: the cluster's region must be the
- * same as the RestorePlan. Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- *
- * Generated from protobuf field string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $cluster = '';
- /**
- * Required. Configuration of Restores created via this RestorePlan.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $restore_config = null;
- /**
- * Optional. A set of custom labels supplied by user.
- *
- * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $labels;
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a restore from overwriting each other.
- * It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform restore updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetRestorePlan`,
- * and systems are expected to put that etag in the request to
- * `UpdateRestorePlan` or `DeleteRestorePlan` to ensure that their change
- * will be applied to the same version of the resource.
- *
- * Generated from protobuf field string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $etag = '';
- /**
- * Output only. State of the RestorePlan. This State field reflects the
- * various stages a RestorePlan can be in
- * during the Create operation.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestorePlan.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. Human-readable description of why RestorePlan is in the
- * current `state`
- *
- * Generated from protobuf field string state_reason = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state_reason = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. The full name of the RestorePlan resource.
- * Format: `projects/*/locations/*/restorePlans/*`.
- * @type string $uid
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The timestamp when this RestorePlan resource was
- * created.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. The timestamp when this RestorePlan resource was last
- * updated.
- * @type string $description
- * Optional. User specified descriptive string for this RestorePlan.
- * @type string $backup_plan
- * Required. Immutable. A reference to the
- * [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may
- * be used as the source for Restores created via this RestorePlan. Format:
- * `projects/*/locations/*/backupPlans/*`.
- * @type string $cluster
- * Required. Immutable. The target cluster into which Restores created via
- * this RestorePlan will restore data. NOTE: the cluster's region must be the
- * same as the RestorePlan. Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- * @type \Google\Cloud\GkeBackup\V1\RestoreConfig $restore_config
- * Required. Configuration of Restores created via this RestorePlan.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Optional. A set of custom labels supplied by user.
- * @type string $etag
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a restore from overwriting each other.
- * It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform restore updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetRestorePlan`,
- * and systems are expected to put that etag in the request to
- * `UpdateRestorePlan` or `DeleteRestorePlan` to ensure that their change
- * will be applied to the same version of the resource.
- * @type int $state
- * Output only. State of the RestorePlan. This State field reflects the
- * various stages a RestorePlan can be in
- * during the Create operation.
- * @type string $state_reason
- * Output only. Human-readable description of why RestorePlan is in the
- * current `state`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\RestorePlan::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The full name of the RestorePlan resource.
- * Format: `projects/*/locations/*/restorePlans/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. The full name of the RestorePlan resource.
- * Format: `projects/*/locations/*/restorePlans/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->uid = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp when this RestorePlan resource was
- * created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The timestamp when this RestorePlan resource was
- * created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp when this RestorePlan resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. The timestamp when this RestorePlan resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * Optional. User specified descriptive string for this RestorePlan.
- *
- * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Optional. User specified descriptive string for this RestorePlan.
- *
- * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Required. Immutable. A reference to the
- * [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may
- * be used as the source for Restores created via this RestorePlan. Format:
- * `projects/*/locations/*/backupPlans/*`.
- *
- * Generated from protobuf field string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getBackupPlan()
- {
- return $this->backup_plan;
- }
-
- /**
- * Required. Immutable. A reference to the
- * [BackupPlan][google.cloud.gkebackup.v1.BackupPlan] from which Backups may
- * be used as the source for Restores created via this RestorePlan. Format:
- * `projects/*/locations/*/backupPlans/*`.
- *
- * Generated from protobuf field string backup_plan = 6 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setBackupPlan($var)
- {
- GPBUtil::checkString($var, True);
- $this->backup_plan = $var;
-
- return $this;
- }
-
- /**
- * Required. Immutable. The target cluster into which Restores created via
- * this RestorePlan will restore data. NOTE: the cluster's region must be the
- * same as the RestorePlan. Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- *
- * Generated from protobuf field string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getCluster()
- {
- return $this->cluster;
- }
-
- /**
- * Required. Immutable. The target cluster into which Restores created via
- * this RestorePlan will restore data. NOTE: the cluster's region must be the
- * same as the RestorePlan. Valid formats:
- * - `projects/*/locations/*/clusters/*`
- * - `projects/*/zones/*/clusters/*`
- *
- * Generated from protobuf field string cluster = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setCluster($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster = $var;
-
- return $this;
- }
-
- /**
- * Required. Configuration of Restores created via this RestorePlan.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\GkeBackup\V1\RestoreConfig|null
- */
- public function getRestoreConfig()
- {
- return $this->restore_config;
- }
-
- public function hasRestoreConfig()
- {
- return isset($this->restore_config);
- }
-
- public function clearRestoreConfig()
- {
- unset($this->restore_config);
- }
-
- /**
- * Required. Configuration of Restores created via this RestorePlan.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig restore_config = 8 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\GkeBackup\V1\RestoreConfig $var
- * @return $this
- */
- public function setRestoreConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\RestoreConfig::class);
- $this->restore_config = $var;
-
- return $this;
- }
-
- /**
- * Optional. A set of custom labels supplied by user.
- *
- * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Optional. A set of custom labels supplied by user.
- *
- * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a restore from overwriting each other.
- * It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform restore updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetRestorePlan`,
- * and systems are expected to put that etag in the request to
- * `UpdateRestorePlan` or `DeleteRestorePlan` to ensure that their change
- * will be applied to the same version of the resource.
- *
- * Generated from protobuf field string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a restore from overwriting each other.
- * It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform restore updates in order to avoid
- * race conditions: An `etag` is returned in the response to `GetRestorePlan`,
- * and systems are expected to put that etag in the request to
- * `UpdateRestorePlan` or `DeleteRestorePlan` to ensure that their change
- * will be applied to the same version of the resource.
- *
- * Generated from protobuf field string etag = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
- /**
- * Output only. State of the RestorePlan. This State field reflects the
- * various stages a RestorePlan can be in
- * during the Create operation.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestorePlan.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. State of the RestorePlan. This State field reflects the
- * various stages a RestorePlan can be in
- * during the Create operation.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestorePlan.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\RestorePlan\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Human-readable description of why RestorePlan is in the
- * current `state`
- *
- * Generated from protobuf field string state_reason = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getStateReason()
- {
- return $this->state_reason;
- }
-
- /**
- * Output only. Human-readable description of why RestorePlan is in the
- * current `state`
- *
- * Generated from protobuf field string state_reason = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setStateReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->state_reason = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestorePlan/State.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestorePlan/State.php
deleted file mode 100644
index 2b40f2c7ba19..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RestorePlan/State.php
+++ /dev/null
@@ -1,78 +0,0 @@
-google.cloud.gkebackup.v1.RestorePlan.State
- */
-class State
-{
- /**
- * Default first value for Enums.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * Waiting for cluster state to be RUNNING.
- *
- * Generated from protobuf enum CLUSTER_PENDING = 1;
- */
- const CLUSTER_PENDING = 1;
- /**
- * The RestorePlan has successfully been created and is ready for Restores.
- *
- * Generated from protobuf enum READY = 2;
- */
- const READY = 2;
- /**
- * RestorePlan creation has failed.
- *
- * Generated from protobuf enum FAILED = 3;
- */
- const FAILED = 3;
- /**
- * The RestorePlan is in the process of being deleted.
- *
- * Generated from protobuf enum DELETING = 4;
- */
- const DELETING = 4;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::CLUSTER_PENDING => 'CLUSTER_PENDING',
- self::READY => 'READY',
- self::FAILED => 'FAILED',
- self::DELETING => 'DELETING',
- ];
-
- 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(State::class, \Google\Cloud\GkeBackup\V1\RestorePlan_State::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RpoConfig.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RpoConfig.php
deleted file mode 100644
index a2e92f1b708a..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/RpoConfig.php
+++ /dev/null
@@ -1,150 +0,0 @@
-google.cloud.gkebackup.v1.RpoConfig
- */
-class RpoConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. Defines the target RPO for the BackupPlan in minutes, which means
- * the target maximum data loss in time that is acceptable for this
- * BackupPlan. This must be at least 60, i.e., 1 hour, and at most 86400,
- * i.e., 60 days.
- *
- * Generated from protobuf field int32 target_rpo_minutes = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $target_rpo_minutes = 0;
- /**
- * Optional. User specified time windows during which backup can NOT happen
- * for this BackupPlan - backups should start and finish outside of any given
- * exclusion window. Note: backup jobs will be scheduled to start and
- * finish outside the duration of the window as much as possible, but
- * running jobs will not get canceled when it runs into the window.
- * All the time and date values in exclusion_windows entry in the API are in
- * UTC.
- * We only allow <=1 recurrence (daily or weekly) exclusion window for a
- * BackupPlan while no restriction on number of single occurrence
- * windows.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $exclusion_windows;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $target_rpo_minutes
- * Required. Defines the target RPO for the BackupPlan in minutes, which means
- * the target maximum data loss in time that is acceptable for this
- * BackupPlan. This must be at least 60, i.e., 1 hour, and at most 86400,
- * i.e., 60 days.
- * @type array<\Google\Cloud\GkeBackup\V1\ExclusionWindow>|\Google\Protobuf\Internal\RepeatedField $exclusion_windows
- * Optional. User specified time windows during which backup can NOT happen
- * for this BackupPlan - backups should start and finish outside of any given
- * exclusion window. Note: backup jobs will be scheduled to start and
- * finish outside the duration of the window as much as possible, but
- * running jobs will not get canceled when it runs into the window.
- * All the time and date values in exclusion_windows entry in the API are in
- * UTC.
- * We only allow <=1 recurrence (daily or weekly) exclusion window for a
- * BackupPlan while no restriction on number of single occurrence
- * windows.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\BackupPlan::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. Defines the target RPO for the BackupPlan in minutes, which means
- * the target maximum data loss in time that is acceptable for this
- * BackupPlan. This must be at least 60, i.e., 1 hour, and at most 86400,
- * i.e., 60 days.
- *
- * Generated from protobuf field int32 target_rpo_minutes = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getTargetRpoMinutes()
- {
- return $this->target_rpo_minutes;
- }
-
- /**
- * Required. Defines the target RPO for the BackupPlan in minutes, which means
- * the target maximum data loss in time that is acceptable for this
- * BackupPlan. This must be at least 60, i.e., 1 hour, and at most 86400,
- * i.e., 60 days.
- *
- * Generated from protobuf field int32 target_rpo_minutes = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setTargetRpoMinutes($var)
- {
- GPBUtil::checkInt32($var);
- $this->target_rpo_minutes = $var;
-
- return $this;
- }
-
- /**
- * Optional. User specified time windows during which backup can NOT happen
- * for this BackupPlan - backups should start and finish outside of any given
- * exclusion window. Note: backup jobs will be scheduled to start and
- * finish outside the duration of the window as much as possible, but
- * running jobs will not get canceled when it runs into the window.
- * All the time and date values in exclusion_windows entry in the API are in
- * UTC.
- * We only allow <=1 recurrence (daily or weekly) exclusion window for a
- * BackupPlan while no restriction on number of single occurrence
- * windows.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getExclusionWindows()
- {
- return $this->exclusion_windows;
- }
-
- /**
- * Optional. User specified time windows during which backup can NOT happen
- * for this BackupPlan - backups should start and finish outside of any given
- * exclusion window. Note: backup jobs will be scheduled to start and
- * finish outside the duration of the window as much as possible, but
- * running jobs will not get canceled when it runs into the window.
- * All the time and date values in exclusion_windows entry in the API are in
- * UTC.
- * We only allow <=1 recurrence (daily or weekly) exclusion window for a
- * BackupPlan while no restriction on number of single occurrence
- * windows.
- *
- * Generated from protobuf field repeated .google.cloud.gkebackup.v1.ExclusionWindow exclusion_windows = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param array<\Google\Cloud\GkeBackup\V1\ExclusionWindow>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setExclusionWindows($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeBackup\V1\ExclusionWindow::class);
- $this->exclusion_windows = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/UpdateBackupPlanRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/UpdateBackupPlanRequest.php
deleted file mode 100644
index 678a625fd548..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/UpdateBackupPlanRequest.php
+++ /dev/null
@@ -1,181 +0,0 @@
-google.cloud.gkebackup.v1.UpdateBackupPlanRequest
- */
-class UpdateBackupPlanRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A new version of the BackupPlan resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $backup_plan = null;
- /**
- * Optional. This is used to specify the fields to be overwritten in the
- * BackupPlan targeted for update. The values for each of these
- * updated fields will be taken from the `backup_plan` provided
- * with this request. Field names are relative to the root of the resource
- * (e.g., `description`, `backup_config.include_volume_data`, etc.)
- * If no `update_mask` is provided, all fields in `backup_plan` will be
- * written to the target BackupPlan resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `backup_plan` are ignored
- * and are not used to update the target BackupPlan.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $update_mask = null;
-
- /**
- * @param \Google\Cloud\GkeBackup\V1\BackupPlan $backupPlan Required. A new version of the BackupPlan resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- * @param \Google\Protobuf\FieldMask $updateMask Optional. This is used to specify the fields to be overwritten in the
- * BackupPlan targeted for update. The values for each of these
- * updated fields will be taken from the `backup_plan` provided
- * with this request. Field names are relative to the root of the resource
- * (e.g., `description`, `backup_config.include_volume_data`, etc.)
- * If no `update_mask` is provided, all fields in `backup_plan` will be
- * written to the target BackupPlan resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `backup_plan` are ignored
- * and are not used to update the target BackupPlan.
- *
- * @return \Google\Cloud\GkeBackup\V1\UpdateBackupPlanRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\GkeBackup\V1\BackupPlan $backupPlan, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setBackupPlan($backupPlan)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeBackup\V1\BackupPlan $backup_plan
- * Required. A new version of the BackupPlan resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- * @type \Google\Protobuf\FieldMask $update_mask
- * Optional. This is used to specify the fields to be overwritten in the
- * BackupPlan targeted for update. The values for each of these
- * updated fields will be taken from the `backup_plan` provided
- * with this request. Field names are relative to the root of the resource
- * (e.g., `description`, `backup_config.include_volume_data`, etc.)
- * If no `update_mask` is provided, all fields in `backup_plan` will be
- * written to the target BackupPlan resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `backup_plan` are ignored
- * and are not used to update the target BackupPlan.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A new version of the BackupPlan resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\GkeBackup\V1\BackupPlan|null
- */
- public function getBackupPlan()
- {
- return $this->backup_plan;
- }
-
- public function hasBackupPlan()
- {
- return isset($this->backup_plan);
- }
-
- public function clearBackupPlan()
- {
- unset($this->backup_plan);
- }
-
- /**
- * Required. A new version of the BackupPlan resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.BackupPlan backup_plan = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\GkeBackup\V1\BackupPlan $var
- * @return $this
- */
- public function setBackupPlan($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\BackupPlan::class);
- $this->backup_plan = $var;
-
- return $this;
- }
-
- /**
- * Optional. This is used to specify the fields to be overwritten in the
- * BackupPlan targeted for update. The values for each of these
- * updated fields will be taken from the `backup_plan` provided
- * with this request. Field names are relative to the root of the resource
- * (e.g., `description`, `backup_config.include_volume_data`, etc.)
- * If no `update_mask` is provided, all fields in `backup_plan` will be
- * written to the target BackupPlan resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `backup_plan` are ignored
- * and are not used to update the target BackupPlan.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * Optional. This is used to specify the fields to be overwritten in the
- * BackupPlan targeted for update. The values for each of these
- * updated fields will be taken from the `backup_plan` provided
- * with this request. Field names are relative to the root of the resource
- * (e.g., `description`, `backup_config.include_volume_data`, etc.)
- * If no `update_mask` is provided, all fields in `backup_plan` will be
- * written to the target BackupPlan resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `backup_plan` are ignored
- * and are not used to update the target BackupPlan.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/UpdateBackupRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/UpdateBackupRequest.php
deleted file mode 100644
index e35fc6c00f98..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/UpdateBackupRequest.php
+++ /dev/null
@@ -1,176 +0,0 @@
-google.cloud.gkebackup.v1.UpdateBackupRequest
- */
-class UpdateBackupRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A new version of the Backup resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $backup = null;
- /**
- * Optional. This is used to specify the fields to be overwritten in the
- * Backup targeted for update. The values for each of these
- * updated fields will be taken from the `backup_plan` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `backup` will be
- * written to the target Backup resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `backup` are ignored
- * and are not used to update the target Backup.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $update_mask = null;
-
- /**
- * @param \Google\Cloud\GkeBackup\V1\Backup $backup Required. A new version of the Backup resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- * @param \Google\Protobuf\FieldMask $updateMask Optional. This is used to specify the fields to be overwritten in the
- * Backup targeted for update. The values for each of these
- * updated fields will be taken from the `backup_plan` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `backup` will be
- * written to the target Backup resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `backup` are ignored
- * and are not used to update the target Backup.
- *
- * @return \Google\Cloud\GkeBackup\V1\UpdateBackupRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\GkeBackup\V1\Backup $backup, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setBackup($backup)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeBackup\V1\Backup $backup
- * Required. A new version of the Backup resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- * @type \Google\Protobuf\FieldMask $update_mask
- * Optional. This is used to specify the fields to be overwritten in the
- * Backup targeted for update. The values for each of these
- * updated fields will be taken from the `backup_plan` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `backup` will be
- * written to the target Backup resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `backup` are ignored
- * and are not used to update the target Backup.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A new version of the Backup resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\GkeBackup\V1\Backup|null
- */
- public function getBackup()
- {
- return $this->backup;
- }
-
- public function hasBackup()
- {
- return isset($this->backup);
- }
-
- public function clearBackup()
- {
- unset($this->backup);
- }
-
- /**
- * Required. A new version of the Backup resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Backup backup = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\GkeBackup\V1\Backup $var
- * @return $this
- */
- public function setBackup($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\Backup::class);
- $this->backup = $var;
-
- return $this;
- }
-
- /**
- * Optional. This is used to specify the fields to be overwritten in the
- * Backup targeted for update. The values for each of these
- * updated fields will be taken from the `backup_plan` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `backup` will be
- * written to the target Backup resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `backup` are ignored
- * and are not used to update the target Backup.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * Optional. This is used to specify the fields to be overwritten in the
- * Backup targeted for update. The values for each of these
- * updated fields will be taken from the `backup_plan` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `backup` will be
- * written to the target Backup resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `backup` are ignored
- * and are not used to update the target Backup.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/UpdateRestorePlanRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/UpdateRestorePlanRequest.php
deleted file mode 100644
index ae81d68b2089..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/UpdateRestorePlanRequest.php
+++ /dev/null
@@ -1,176 +0,0 @@
-google.cloud.gkebackup.v1.UpdateRestorePlanRequest
- */
-class UpdateRestorePlanRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A new version of the RestorePlan resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $restore_plan = null;
- /**
- * Optional. This is used to specify the fields to be overwritten in the
- * RestorePlan targeted for update. The values for each of these
- * updated fields will be taken from the `restore_plan` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `restore_plan` will be
- * written to the target RestorePlan resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `restore_plan` are ignored
- * and are not used to update the target RestorePlan.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $update_mask = null;
-
- /**
- * @param \Google\Cloud\GkeBackup\V1\RestorePlan $restorePlan Required. A new version of the RestorePlan resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- * @param \Google\Protobuf\FieldMask $updateMask Optional. This is used to specify the fields to be overwritten in the
- * RestorePlan targeted for update. The values for each of these
- * updated fields will be taken from the `restore_plan` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `restore_plan` will be
- * written to the target RestorePlan resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `restore_plan` are ignored
- * and are not used to update the target RestorePlan.
- *
- * @return \Google\Cloud\GkeBackup\V1\UpdateRestorePlanRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\GkeBackup\V1\RestorePlan $restorePlan, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setRestorePlan($restorePlan)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeBackup\V1\RestorePlan $restore_plan
- * Required. A new version of the RestorePlan resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- * @type \Google\Protobuf\FieldMask $update_mask
- * Optional. This is used to specify the fields to be overwritten in the
- * RestorePlan targeted for update. The values for each of these
- * updated fields will be taken from the `restore_plan` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `restore_plan` will be
- * written to the target RestorePlan resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `restore_plan` are ignored
- * and are not used to update the target RestorePlan.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A new version of the RestorePlan resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\GkeBackup\V1\RestorePlan|null
- */
- public function getRestorePlan()
- {
- return $this->restore_plan;
- }
-
- public function hasRestorePlan()
- {
- return isset($this->restore_plan);
- }
-
- public function clearRestorePlan()
- {
- unset($this->restore_plan);
- }
-
- /**
- * Required. A new version of the RestorePlan resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestorePlan restore_plan = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\GkeBackup\V1\RestorePlan $var
- * @return $this
- */
- public function setRestorePlan($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\RestorePlan::class);
- $this->restore_plan = $var;
-
- return $this;
- }
-
- /**
- * Optional. This is used to specify the fields to be overwritten in the
- * RestorePlan targeted for update. The values for each of these
- * updated fields will be taken from the `restore_plan` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `restore_plan` will be
- * written to the target RestorePlan resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `restore_plan` are ignored
- * and are not used to update the target RestorePlan.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * Optional. This is used to specify the fields to be overwritten in the
- * RestorePlan targeted for update. The values for each of these
- * updated fields will be taken from the `restore_plan` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `restore_plan` will be
- * written to the target RestorePlan resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `restore_plan` are ignored
- * and are not used to update the target RestorePlan.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/UpdateRestoreRequest.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/UpdateRestoreRequest.php
deleted file mode 100644
index aa0a7b210a0b..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/UpdateRestoreRequest.php
+++ /dev/null
@@ -1,176 +0,0 @@
-google.cloud.gkebackup.v1.UpdateRestoreRequest
- */
-class UpdateRestoreRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. A new version of the Restore resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $restore = null;
- /**
- * Optional. This is used to specify the fields to be overwritten in the
- * Restore targeted for update. The values for each of these
- * updated fields will be taken from the `restore` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `restore` will be
- * written to the target Restore resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
- * and are not used to update the target Restore.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $update_mask = null;
-
- /**
- * @param \Google\Cloud\GkeBackup\V1\Restore $restore Required. A new version of the Restore resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- * @param \Google\Protobuf\FieldMask $updateMask Optional. This is used to specify the fields to be overwritten in the
- * Restore targeted for update. The values for each of these
- * updated fields will be taken from the `restore` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `restore` will be
- * written to the target Restore resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
- * and are not used to update the target Restore.
- *
- * @return \Google\Cloud\GkeBackup\V1\UpdateRestoreRequest
- *
- * @experimental
- */
- public static function build(\Google\Cloud\GkeBackup\V1\Restore $restore, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setRestore($restore)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeBackup\V1\Restore $restore
- * Required. A new version of the Restore resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- * @type \Google\Protobuf\FieldMask $update_mask
- * Optional. This is used to specify the fields to be overwritten in the
- * Restore targeted for update. The values for each of these
- * updated fields will be taken from the `restore` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `restore` will be
- * written to the target Restore resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
- * and are not used to update the target Restore.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Gkebackup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. A new version of the Restore resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\GkeBackup\V1\Restore|null
- */
- public function getRestore()
- {
- return $this->restore;
- }
-
- public function hasRestore()
- {
- return isset($this->restore);
- }
-
- public function clearRestore()
- {
- unset($this->restore);
- }
-
- /**
- * Required. A new version of the Restore resource that contains updated
- * fields. This may be sparsely populated if an `update_mask` is provided.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.Restore restore = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\GkeBackup\V1\Restore $var
- * @return $this
- */
- public function setRestore($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\Restore::class);
- $this->restore = $var;
-
- return $this;
- }
-
- /**
- * Optional. This is used to specify the fields to be overwritten in the
- * Restore targeted for update. The values for each of these
- * updated fields will be taken from the `restore` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `restore` will be
- * written to the target Restore resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
- * and are not used to update the target Restore.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * Optional. This is used to specify the fields to be overwritten in the
- * Restore targeted for update. The values for each of these
- * updated fields will be taken from the `restore` provided
- * with this request. Field names are relative to the root of the resource.
- * If no `update_mask` is provided, all fields in `restore` will be
- * written to the target Restore resource.
- * Note that OUTPUT_ONLY and IMMUTABLE fields in `restore` are ignored
- * and are not used to update the target Restore.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeBackup.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeBackup.php
deleted file mode 100644
index 04c10734b60b..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeBackup.php
+++ /dev/null
@@ -1,585 +0,0 @@
-google.cloud.gkebackup.v1.VolumeBackup
- */
-class VolumeBackup extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The full name of the VolumeBackup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uid = '';
- /**
- * Output only. The timestamp when this VolumeBackup resource was
- * created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. The timestamp when this VolumeBackup resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * Output only. A reference to the source Kubernetes PVC from which this
- * VolumeBackup was created.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $source_pvc = null;
- /**
- * Output only. A storage system-specific opaque handle to the underlying
- * volume backup.
- *
- * Generated from protobuf field string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $volume_backup_handle = '';
- /**
- * Output only. The format used for the volume backup.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $format = 0;
- /**
- * Output only. The aggregate size of the underlying artifacts associated with
- * this VolumeBackup in the backup storage. This may change over time when
- * multiple backups of the same volume share the same backup storage
- * location. In particular, this is likely to increase in size when
- * the immediately preceding backup of the same volume is deleted.
- *
- * Generated from protobuf field int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $storage_bytes = 0;
- /**
- * Output only. The minimum size of the disk to which this VolumeBackup can be
- * restored.
- *
- * Generated from protobuf field int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $disk_size_bytes = 0;
- /**
- * Output only. The timestamp when the associated underlying volume backup
- * operation completed.
- *
- * Generated from protobuf field .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $complete_time = null;
- /**
- * Output only. The current state of this VolumeBackup.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. A human readable message explaining why the VolumeBackup is in
- * its current state.
- *
- * Generated from protobuf field string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state_message = '';
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a volume backup from overwriting each
- * other. It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform volume backup updates in order to avoid
- * race conditions.
- *
- * Generated from protobuf field string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $etag = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. The full name of the VolumeBackup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
- * @type string $uid
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The timestamp when this VolumeBackup resource was
- * created.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. The timestamp when this VolumeBackup resource was last
- * updated.
- * @type \Google\Cloud\GkeBackup\V1\NamespacedName $source_pvc
- * Output only. A reference to the source Kubernetes PVC from which this
- * VolumeBackup was created.
- * @type string $volume_backup_handle
- * Output only. A storage system-specific opaque handle to the underlying
- * volume backup.
- * @type int $format
- * Output only. The format used for the volume backup.
- * @type int|string $storage_bytes
- * Output only. The aggregate size of the underlying artifacts associated with
- * this VolumeBackup in the backup storage. This may change over time when
- * multiple backups of the same volume share the same backup storage
- * location. In particular, this is likely to increase in size when
- * the immediately preceding backup of the same volume is deleted.
- * @type int|string $disk_size_bytes
- * Output only. The minimum size of the disk to which this VolumeBackup can be
- * restored.
- * @type \Google\Protobuf\Timestamp $complete_time
- * Output only. The timestamp when the associated underlying volume backup
- * operation completed.
- * @type int $state
- * Output only. The current state of this VolumeBackup.
- * @type string $state_message
- * Output only. A human readable message explaining why the VolumeBackup is in
- * its current state.
- * @type string $etag
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a volume backup from overwriting each
- * other. It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform volume backup updates in order to avoid
- * race conditions.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Volume::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The full name of the VolumeBackup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. The full name of the VolumeBackup resource.
- * Format: `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->uid = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp when this VolumeBackup resource was
- * created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The timestamp when this VolumeBackup resource was
- * created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp when this VolumeBackup resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. The timestamp when this VolumeBackup resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. A reference to the source Kubernetes PVC from which this
- * VolumeBackup was created.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\GkeBackup\V1\NamespacedName|null
- */
- public function getSourcePvc()
- {
- return $this->source_pvc;
- }
-
- public function hasSourcePvc()
- {
- return isset($this->source_pvc);
- }
-
- public function clearSourcePvc()
- {
- unset($this->source_pvc);
- }
-
- /**
- * Output only. A reference to the source Kubernetes PVC from which this
- * VolumeBackup was created.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.NamespacedName source_pvc = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\GkeBackup\V1\NamespacedName $var
- * @return $this
- */
- public function setSourcePvc($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\NamespacedName::class);
- $this->source_pvc = $var;
-
- return $this;
- }
-
- /**
- * Output only. A storage system-specific opaque handle to the underlying
- * volume backup.
- *
- * Generated from protobuf field string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getVolumeBackupHandle()
- {
- return $this->volume_backup_handle;
- }
-
- /**
- * Output only. A storage system-specific opaque handle to the underlying
- * volume backup.
- *
- * Generated from protobuf field string volume_backup_handle = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setVolumeBackupHandle($var)
- {
- GPBUtil::checkString($var, True);
- $this->volume_backup_handle = $var;
-
- return $this;
- }
-
- /**
- * Output only. The format used for the volume backup.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getFormat()
- {
- return $this->format;
- }
-
- /**
- * Output only. The format used for the volume backup.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat format = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setFormat($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\VolumeBackup\VolumeBackupFormat::class);
- $this->format = $var;
-
- return $this;
- }
-
- /**
- * Output only. The aggregate size of the underlying artifacts associated with
- * this VolumeBackup in the backup storage. This may change over time when
- * multiple backups of the same volume share the same backup storage
- * location. In particular, this is likely to increase in size when
- * the immediately preceding backup of the same volume is deleted.
- *
- * Generated from protobuf field int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getStorageBytes()
- {
- return $this->storage_bytes;
- }
-
- /**
- * Output only. The aggregate size of the underlying artifacts associated with
- * this VolumeBackup in the backup storage. This may change over time when
- * multiple backups of the same volume share the same backup storage
- * location. In particular, this is likely to increase in size when
- * the immediately preceding backup of the same volume is deleted.
- *
- * Generated from protobuf field int64 storage_bytes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setStorageBytes($var)
- {
- GPBUtil::checkInt64($var);
- $this->storage_bytes = $var;
-
- return $this;
- }
-
- /**
- * Output only. The minimum size of the disk to which this VolumeBackup can be
- * restored.
- *
- * Generated from protobuf field int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getDiskSizeBytes()
- {
- return $this->disk_size_bytes;
- }
-
- /**
- * Output only. The minimum size of the disk to which this VolumeBackup can be
- * restored.
- *
- * Generated from protobuf field int64 disk_size_bytes = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setDiskSizeBytes($var)
- {
- GPBUtil::checkInt64($var);
- $this->disk_size_bytes = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp when the associated underlying volume backup
- * operation completed.
- *
- * Generated from protobuf field .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCompleteTime()
- {
- return $this->complete_time;
- }
-
- public function hasCompleteTime()
- {
- return isset($this->complete_time);
- }
-
- public function clearCompleteTime()
- {
- unset($this->complete_time);
- }
-
- /**
- * Output only. The timestamp when the associated underlying volume backup
- * operation completed.
- *
- * Generated from protobuf field .google.protobuf.Timestamp complete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCompleteTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->complete_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The current state of this VolumeBackup.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. The current state of this VolumeBackup.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.VolumeBackup.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\VolumeBackup\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. A human readable message explaining why the VolumeBackup is in
- * its current state.
- *
- * Generated from protobuf field string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getStateMessage()
- {
- return $this->state_message;
- }
-
- /**
- * Output only. A human readable message explaining why the VolumeBackup is in
- * its current state.
- *
- * Generated from protobuf field string state_message = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setStateMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->state_message = $var;
-
- return $this;
- }
-
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a volume backup from overwriting each
- * other. It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform volume backup updates in order to avoid
- * race conditions.
- *
- * Generated from protobuf field string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a volume backup from overwriting each
- * other. It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform volume backup updates in order to avoid
- * race conditions.
- *
- * Generated from protobuf field string etag = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeBackup/State.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeBackup/State.php
deleted file mode 100644
index fbe20d6856c2..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeBackup/State.php
+++ /dev/null
@@ -1,98 +0,0 @@
-google.cloud.gkebackup.v1.VolumeBackup.State
- */
-class State
-{
- /**
- * This is an illegal state and should not be encountered.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * A volume for the backup was identified and backup process is about to
- * start.
- *
- * Generated from protobuf enum CREATING = 1;
- */
- const CREATING = 1;
- /**
- * The volume backup operation has begun and is in the initial "snapshot"
- * phase of the process. Any defined ProtectedApplication "pre" hooks will
- * be executed before entering this state and "post" hooks will be executed
- * upon leaving this state.
- *
- * Generated from protobuf enum SNAPSHOTTING = 2;
- */
- const SNAPSHOTTING = 2;
- /**
- * The snapshot phase of the volume backup operation has completed and
- * the snapshot is now being uploaded to backup storage.
- *
- * Generated from protobuf enum UPLOADING = 3;
- */
- const UPLOADING = 3;
- /**
- * The volume backup operation has completed successfully.
- *
- * Generated from protobuf enum SUCCEEDED = 4;
- */
- const SUCCEEDED = 4;
- /**
- * The volume backup operation has failed.
- *
- * Generated from protobuf enum FAILED = 5;
- */
- const FAILED = 5;
- /**
- * This VolumeBackup resource (and its associated artifacts) is in the
- * process of being deleted.
- *
- * Generated from protobuf enum DELETING = 6;
- */
- const DELETING = 6;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::CREATING => 'CREATING',
- self::SNAPSHOTTING => 'SNAPSHOTTING',
- self::UPLOADING => 'UPLOADING',
- self::SUCCEEDED => 'SUCCEEDED',
- self::FAILED => 'FAILED',
- self::DELETING => 'DELETING',
- ];
-
- 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(State::class, \Google\Cloud\GkeBackup\V1\VolumeBackup_State::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeBackup/VolumeBackupFormat.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeBackup/VolumeBackupFormat.php
deleted file mode 100644
index de6484fc4519..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeBackup/VolumeBackupFormat.php
+++ /dev/null
@@ -1,57 +0,0 @@
-google.cloud.gkebackup.v1.VolumeBackup.VolumeBackupFormat
- */
-class VolumeBackupFormat
-{
- /**
- * Default value, not specified.
- *
- * Generated from protobuf enum VOLUME_BACKUP_FORMAT_UNSPECIFIED = 0;
- */
- const VOLUME_BACKUP_FORMAT_UNSPECIFIED = 0;
- /**
- * Compute Engine Persistent Disk snapshot based volume backup.
- *
- * Generated from protobuf enum GCE_PERSISTENT_DISK = 1;
- */
- const GCE_PERSISTENT_DISK = 1;
-
- private static $valueToName = [
- self::VOLUME_BACKUP_FORMAT_UNSPECIFIED => 'VOLUME_BACKUP_FORMAT_UNSPECIFIED',
- self::GCE_PERSISTENT_DISK => 'GCE_PERSISTENT_DISK',
- ];
-
- 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(VolumeBackupFormat::class, \Google\Cloud\GkeBackup\V1\VolumeBackup_VolumeBackupFormat::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeDataRestorePolicyOverride.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeDataRestorePolicyOverride.php
deleted file mode 100644
index d75e5e1d6add..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeDataRestorePolicyOverride.php
+++ /dev/null
@@ -1,113 +0,0 @@
-google.cloud.gkebackup.v1.VolumeDataRestorePolicyOverride
- */
-class VolumeDataRestorePolicyOverride extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
- * scope.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $policy = 0;
- protected $scope;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $policy
- * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
- * scope.
- * @type \Google\Cloud\GkeBackup\V1\NamespacedNames $selected_pvcs
- * A list of PVCs to apply the policy override to.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Restore::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
- * scope.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getPolicy()
- {
- return $this->policy;
- }
-
- /**
- * Required. The VolumeDataRestorePolicy to apply when restoring volumes in
- * scope.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.RestoreConfig.VolumeDataRestorePolicy policy = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setPolicy($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\RestoreConfig\VolumeDataRestorePolicy::class);
- $this->policy = $var;
-
- return $this;
- }
-
- /**
- * A list of PVCs to apply the policy override to.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2;
- * @return \Google\Cloud\GkeBackup\V1\NamespacedNames|null
- */
- public function getSelectedPvcs()
- {
- return $this->readOneof(2);
- }
-
- public function hasSelectedPvcs()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * A list of PVCs to apply the policy override to.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.NamespacedNames selected_pvcs = 2;
- * @param \Google\Cloud\GkeBackup\V1\NamespacedNames $var
- * @return $this
- */
- public function setSelectedPvcs($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\NamespacedNames::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getScope()
- {
- return $this->whichOneof("scope");
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeRestore.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeRestore.php
deleted file mode 100644
index b62ab5c93c4d..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeRestore.php
+++ /dev/null
@@ -1,533 +0,0 @@
-google.cloud.gkebackup.v1.VolumeRestore
- */
-class VolumeRestore extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. Full name of the VolumeRestore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $uid = '';
- /**
- * Output only. The timestamp when this VolumeRestore resource was
- * created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. The timestamp when this VolumeRestore resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * Output only. The full name of the VolumeBackup from which the volume will
- * be restored. Format:
- * `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
- *
- * Generated from protobuf field string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $volume_backup = '';
- /**
- * Output only. The reference to the target Kubernetes PVC to be restored.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $target_pvc = null;
- /**
- * Output only. A storage system-specific opaque handler to the underlying
- * volume created for the target PVC from the volume backup.
- *
- * Generated from protobuf field string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $volume_handle = '';
- /**
- * Output only. The type of volume provisioned
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $volume_type = 0;
- /**
- * Output only. The timestamp when the associated underlying volume
- * restoration completed.
- *
- * Generated from protobuf field .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $complete_time = null;
- /**
- * Output only. The current state of this VolumeRestore.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. A human readable message explaining why the VolumeRestore is
- * in its current state.
- *
- * Generated from protobuf field string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state_message = '';
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a volume restore from overwriting each
- * other. It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform volume restore updates in order to avoid
- * race conditions.
- *
- * Generated from protobuf field string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $etag = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. Full name of the VolumeRestore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
- * @type string $uid
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The timestamp when this VolumeRestore resource was
- * created.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. The timestamp when this VolumeRestore resource was last
- * updated.
- * @type string $volume_backup
- * Output only. The full name of the VolumeBackup from which the volume will
- * be restored. Format:
- * `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
- * @type \Google\Cloud\GkeBackup\V1\NamespacedName $target_pvc
- * Output only. The reference to the target Kubernetes PVC to be restored.
- * @type string $volume_handle
- * Output only. A storage system-specific opaque handler to the underlying
- * volume created for the target PVC from the volume backup.
- * @type int $volume_type
- * Output only. The type of volume provisioned
- * @type \Google\Protobuf\Timestamp $complete_time
- * Output only. The timestamp when the associated underlying volume
- * restoration completed.
- * @type int $state
- * Output only. The current state of this VolumeRestore.
- * @type string $state_message
- * Output only. A human readable message explaining why the VolumeRestore is
- * in its current state.
- * @type string $etag
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a volume restore from overwriting each
- * other. It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform volume restore updates in order to avoid
- * race conditions.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Volume::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. Full name of the VolumeRestore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. Full name of the VolumeRestore resource.
- * Format: `projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUid()
- {
- return $this->uid;
- }
-
- /**
- * Output only. Server generated global unique identifier of
- * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier) format.
- *
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUid($var)
- {
- GPBUtil::checkString($var, True);
- $this->uid = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp when this VolumeRestore resource was
- * created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The timestamp when this VolumeRestore resource was
- * created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp when this VolumeRestore resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. The timestamp when this VolumeRestore resource was last
- * updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The full name of the VolumeBackup from which the volume will
- * be restored. Format:
- * `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
- *
- * Generated from protobuf field string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getVolumeBackup()
- {
- return $this->volume_backup;
- }
-
- /**
- * Output only. The full name of the VolumeBackup from which the volume will
- * be restored. Format:
- * `projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*`.
- *
- * Generated from protobuf field string volume_backup = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setVolumeBackup($var)
- {
- GPBUtil::checkString($var, True);
- $this->volume_backup = $var;
-
- return $this;
- }
-
- /**
- * Output only. The reference to the target Kubernetes PVC to be restored.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\GkeBackup\V1\NamespacedName|null
- */
- public function getTargetPvc()
- {
- return $this->target_pvc;
- }
-
- public function hasTargetPvc()
- {
- return isset($this->target_pvc);
- }
-
- public function clearTargetPvc()
- {
- unset($this->target_pvc);
- }
-
- /**
- * Output only. The reference to the target Kubernetes PVC to be restored.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.NamespacedName target_pvc = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\GkeBackup\V1\NamespacedName $var
- * @return $this
- */
- public function setTargetPvc($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeBackup\V1\NamespacedName::class);
- $this->target_pvc = $var;
-
- return $this;
- }
-
- /**
- * Output only. A storage system-specific opaque handler to the underlying
- * volume created for the target PVC from the volume backup.
- *
- * Generated from protobuf field string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getVolumeHandle()
- {
- return $this->volume_handle;
- }
-
- /**
- * Output only. A storage system-specific opaque handler to the underlying
- * volume created for the target PVC from the volume backup.
- *
- * Generated from protobuf field string volume_handle = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setVolumeHandle($var)
- {
- GPBUtil::checkString($var, True);
- $this->volume_handle = $var;
-
- return $this;
- }
-
- /**
- * Output only. The type of volume provisioned
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getVolumeType()
- {
- return $this->volume_type;
- }
-
- /**
- * Output only. The type of volume provisioned
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.VolumeRestore.VolumeType volume_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setVolumeType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\VolumeRestore\VolumeType::class);
- $this->volume_type = $var;
-
- return $this;
- }
-
- /**
- * Output only. The timestamp when the associated underlying volume
- * restoration completed.
- *
- * Generated from protobuf field .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCompleteTime()
- {
- return $this->complete_time;
- }
-
- public function hasCompleteTime()
- {
- return isset($this->complete_time);
- }
-
- public function clearCompleteTime()
- {
- unset($this->complete_time);
- }
-
- /**
- * Output only. The timestamp when the associated underlying volume
- * restoration completed.
- *
- * Generated from protobuf field .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCompleteTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->complete_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The current state of this VolumeRestore.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Output only. The current state of this VolumeRestore.
- *
- * Generated from protobuf field .google.cloud.gkebackup.v1.VolumeRestore.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeBackup\V1\VolumeRestore\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. A human readable message explaining why the VolumeRestore is
- * in its current state.
- *
- * Generated from protobuf field string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getStateMessage()
- {
- return $this->state_message;
- }
-
- /**
- * Output only. A human readable message explaining why the VolumeRestore is
- * in its current state.
- *
- * Generated from protobuf field string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setStateMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->state_message = $var;
-
- return $this;
- }
-
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a volume restore from overwriting each
- * other. It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform volume restore updates in order to avoid
- * race conditions.
- *
- * Generated from protobuf field string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getEtag()
- {
- return $this->etag;
- }
-
- /**
- * Output only. `etag` is used for optimistic concurrency control as a way to
- * help prevent simultaneous updates of a volume restore from overwriting each
- * other. It is strongly suggested that systems make use of the `etag` in the
- * read-modify-write cycle to perform volume restore updates in order to avoid
- * race conditions.
- *
- * Generated from protobuf field string etag = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setEtag($var)
- {
- GPBUtil::checkString($var, True);
- $this->etag = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeRestore/State.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeRestore/State.php
deleted file mode 100644
index 2528f29c845a..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeRestore/State.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.gkebackup.v1.VolumeRestore.State
- */
-class State
-{
- /**
- * This is an illegal state and should not be encountered.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * A volume for the restore was identified and restore process is about to
- * start.
- *
- * Generated from protobuf enum CREATING = 1;
- */
- const CREATING = 1;
- /**
- * The volume is currently being restored.
- *
- * Generated from protobuf enum RESTORING = 2;
- */
- const RESTORING = 2;
- /**
- * The volume has been successfully restored.
- *
- * Generated from protobuf enum SUCCEEDED = 3;
- */
- const SUCCEEDED = 3;
- /**
- * The volume restoration process failed.
- *
- * Generated from protobuf enum FAILED = 4;
- */
- const FAILED = 4;
- /**
- * This VolumeRestore resource is in the process of being deleted.
- *
- * Generated from protobuf enum DELETING = 5;
- */
- const DELETING = 5;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::CREATING => 'CREATING',
- self::RESTORING => 'RESTORING',
- self::SUCCEEDED => 'SUCCEEDED',
- self::FAILED => 'FAILED',
- self::DELETING => 'DELETING',
- ];
-
- 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(State::class, \Google\Cloud\GkeBackup\V1\VolumeRestore_State::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeRestore/VolumeType.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeRestore/VolumeType.php
deleted file mode 100644
index 460afb38ce7f..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeRestore/VolumeType.php
+++ /dev/null
@@ -1,57 +0,0 @@
-google.cloud.gkebackup.v1.VolumeRestore.VolumeType
- */
-class VolumeType
-{
- /**
- * Default
- *
- * Generated from protobuf enum VOLUME_TYPE_UNSPECIFIED = 0;
- */
- const VOLUME_TYPE_UNSPECIFIED = 0;
- /**
- * Compute Engine Persistent Disk volume
- *
- * Generated from protobuf enum GCE_PERSISTENT_DISK = 1;
- */
- const GCE_PERSISTENT_DISK = 1;
-
- private static $valueToName = [
- self::VOLUME_TYPE_UNSPECIFIED => 'VOLUME_TYPE_UNSPECIFIED',
- self::GCE_PERSISTENT_DISK => 'GCE_PERSISTENT_DISK',
- ];
-
- 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(VolumeType::class, \Google\Cloud\GkeBackup\V1\VolumeRestore_VolumeType::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeTypeEnum.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeTypeEnum.php
deleted file mode 100644
index 2ca64f837a78..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeTypeEnum.php
+++ /dev/null
@@ -1,33 +0,0 @@
-google.cloud.gkebackup.v1.VolumeTypeEnum
- */
-class VolumeTypeEnum extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkebackup\V1\Common::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeTypeEnum/VolumeType.php b/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeTypeEnum/VolumeType.php
deleted file mode 100644
index 0fa3089f64e3..000000000000
--- a/owl-bot-staging/GkeBackup/v1/proto/src/Google/Cloud/GkeBackup/V1/VolumeTypeEnum/VolumeType.php
+++ /dev/null
@@ -1,57 +0,0 @@
-google.cloud.gkebackup.v1.VolumeTypeEnum.VolumeType
- */
-class VolumeType
-{
- /**
- * Default
- *
- * Generated from protobuf enum VOLUME_TYPE_UNSPECIFIED = 0;
- */
- const VOLUME_TYPE_UNSPECIFIED = 0;
- /**
- * Compute Engine Persistent Disk volume
- *
- * Generated from protobuf enum GCE_PERSISTENT_DISK = 1;
- */
- const GCE_PERSISTENT_DISK = 1;
-
- private static $valueToName = [
- self::VOLUME_TYPE_UNSPECIFIED => 'VOLUME_TYPE_UNSPECIFIED',
- self::GCE_PERSISTENT_DISK => 'GCE_PERSISTENT_DISK',
- ];
-
- 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(VolumeType::class, \Google\Cloud\GkeBackup\V1\VolumeTypeEnum_VolumeType::class);
-
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/create_backup.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/create_backup.php
deleted file mode 100644
index 24983218fe9a..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/create_backup.php
+++ /dev/null
@@ -1,84 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $backupForGKEClient->createBackup($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Backup $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = BackupForGKEClient::backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
-
- create_backup_sample($formattedParent);
-}
-// [END gkebackup_v1_generated_BackupForGKE_CreateBackup_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/create_backup_plan.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/create_backup_plan.php
deleted file mode 100644
index 0e71af3a4d71..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/create_backup_plan.php
+++ /dev/null
@@ -1,111 +0,0 @@
-setCluster($formattedBackupPlanCluster);
- $request = (new CreateBackupPlanRequest())
- ->setParent($formattedParent)
- ->setBackupPlan($backupPlan)
- ->setBackupPlanId($backupPlanId);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $backupForGKEClient->createBackupPlan($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var BackupPlan $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = BackupForGKEClient::locationName('[PROJECT]', '[LOCATION]');
- $formattedBackupPlanCluster = BackupForGKEClient::clusterName(
- '[PROJECT]',
- '[LOCATION]',
- '[CLUSTER]'
- );
- $backupPlanId = '[BACKUP_PLAN_ID]';
-
- create_backup_plan_sample($formattedParent, $formattedBackupPlanCluster, $backupPlanId);
-}
-// [END gkebackup_v1_generated_BackupForGKE_CreateBackupPlan_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/create_restore.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/create_restore.php
deleted file mode 100644
index 4bd11761187f..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/create_restore.php
+++ /dev/null
@@ -1,113 +0,0 @@
-setBackup($formattedRestoreBackup);
- $request = (new CreateRestoreRequest())
- ->setParent($formattedParent)
- ->setRestore($restore)
- ->setRestoreId($restoreId);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $backupForGKEClient->createRestore($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Restore $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = BackupForGKEClient::restorePlanName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]');
- $formattedRestoreBackup = BackupForGKEClient::backupName(
- '[PROJECT]',
- '[LOCATION]',
- '[BACKUP_PLAN]',
- '[BACKUP]'
- );
- $restoreId = '[RESTORE_ID]';
-
- create_restore_sample($formattedParent, $formattedRestoreBackup, $restoreId);
-}
-// [END gkebackup_v1_generated_BackupForGKE_CreateRestore_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/create_restore_plan.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/create_restore_plan.php
deleted file mode 100644
index 2c174640976f..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/create_restore_plan.php
+++ /dev/null
@@ -1,132 +0,0 @@
-setBackupPlan($formattedRestorePlanBackupPlan)
- ->setCluster($formattedRestorePlanCluster)
- ->setRestoreConfig($restorePlanRestoreConfig);
- $request = (new CreateRestorePlanRequest())
- ->setParent($formattedParent)
- ->setRestorePlan($restorePlan)
- ->setRestorePlanId($restorePlanId);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $backupForGKEClient->createRestorePlan($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var RestorePlan $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = BackupForGKEClient::locationName('[PROJECT]', '[LOCATION]');
- $formattedRestorePlanBackupPlan = BackupForGKEClient::backupPlanName(
- '[PROJECT]',
- '[LOCATION]',
- '[BACKUP_PLAN]'
- );
- $formattedRestorePlanCluster = BackupForGKEClient::clusterName(
- '[PROJECT]',
- '[LOCATION]',
- '[CLUSTER]'
- );
- $restorePlanId = '[RESTORE_PLAN_ID]';
-
- create_restore_plan_sample(
- $formattedParent,
- $formattedRestorePlanBackupPlan,
- $formattedRestorePlanCluster,
- $restorePlanId
- );
-}
-// [END gkebackup_v1_generated_BackupForGKE_CreateRestorePlan_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/delete_backup.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/delete_backup.php
deleted file mode 100644
index 85788bbc4deb..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/delete_backup.php
+++ /dev/null
@@ -1,86 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $backupForGKEClient->deleteBackup($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = BackupForGKEClient::backupName(
- '[PROJECT]',
- '[LOCATION]',
- '[BACKUP_PLAN]',
- '[BACKUP]'
- );
-
- delete_backup_sample($formattedName);
-}
-// [END gkebackup_v1_generated_BackupForGKE_DeleteBackup_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/delete_backup_plan.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/delete_backup_plan.php
deleted file mode 100644
index 3d18b947af2b..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/delete_backup_plan.php
+++ /dev/null
@@ -1,81 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $backupForGKEClient->deleteBackupPlan($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = BackupForGKEClient::backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
-
- delete_backup_plan_sample($formattedName);
-}
-// [END gkebackup_v1_generated_BackupForGKE_DeleteBackupPlan_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/delete_restore.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/delete_restore.php
deleted file mode 100644
index 62e104407aca..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/delete_restore.php
+++ /dev/null
@@ -1,86 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $backupForGKEClient->deleteRestore($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = BackupForGKEClient::restoreName(
- '[PROJECT]',
- '[LOCATION]',
- '[RESTORE_PLAN]',
- '[RESTORE]'
- );
-
- delete_restore_sample($formattedName);
-}
-// [END gkebackup_v1_generated_BackupForGKE_DeleteRestore_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/delete_restore_plan.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/delete_restore_plan.php
deleted file mode 100644
index 6f12bb20e252..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/delete_restore_plan.php
+++ /dev/null
@@ -1,81 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $backupForGKEClient->deleteRestorePlan($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = BackupForGKEClient::restorePlanName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]');
-
- delete_restore_plan_sample($formattedName);
-}
-// [END gkebackup_v1_generated_BackupForGKE_DeleteRestorePlan_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_backup.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_backup.php
deleted file mode 100644
index 31cf6805fc0a..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_backup.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Backup $response */
- $response = $backupForGKEClient->getBackup($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = BackupForGKEClient::backupName(
- '[PROJECT]',
- '[LOCATION]',
- '[BACKUP_PLAN]',
- '[BACKUP]'
- );
-
- get_backup_sample($formattedName);
-}
-// [END gkebackup_v1_generated_BackupForGKE_GetBackup_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_backup_index_download_url.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_backup_index_download_url.php
deleted file mode 100644
index 9e8dd874dec3..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_backup_index_download_url.php
+++ /dev/null
@@ -1,78 +0,0 @@
-setBackup($formattedBackup);
-
- // Call the API and handle any network failures.
- try {
- /** @var GetBackupIndexDownloadUrlResponse $response */
- $response = $backupForGKEClient->getBackupIndexDownloadUrl($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedBackup = BackupForGKEClient::backupName(
- '[PROJECT]',
- '[LOCATION]',
- '[BACKUP_PLAN]',
- '[BACKUP]'
- );
-
- get_backup_index_download_url_sample($formattedBackup);
-}
-// [END gkebackup_v1_generated_BackupForGKE_GetBackupIndexDownloadUrl_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_backup_plan.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_backup_plan.php
deleted file mode 100644
index 0cf5f4d682a6..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_backup_plan.php
+++ /dev/null
@@ -1,72 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var BackupPlan $response */
- $response = $backupForGKEClient->getBackupPlan($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = BackupForGKEClient::backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
-
- get_backup_plan_sample($formattedName);
-}
-// [END gkebackup_v1_generated_BackupForGKE_GetBackupPlan_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_iam_policy.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_iam_policy.php
deleted file mode 100644
index 5a532e53454c..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_iam_policy.php
+++ /dev/null
@@ -1,72 +0,0 @@
-setResource($resource);
-
- // Call the API and handle any network failures.
- try {
- /** @var Policy $response */
- $response = $backupForGKEClient->getIamPolicy($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $resource = '[RESOURCE]';
-
- get_iam_policy_sample($resource);
-}
-// [END gkebackup_v1_generated_BackupForGKE_GetIamPolicy_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_location.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_location.php
deleted file mode 100644
index 75fb8baf24ed..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_location.php
+++ /dev/null
@@ -1,57 +0,0 @@
-getLocation($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END gkebackup_v1_generated_BackupForGKE_GetLocation_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_restore.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_restore.php
deleted file mode 100644
index 79ac06b01322..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_restore.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Restore $response */
- $response = $backupForGKEClient->getRestore($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = BackupForGKEClient::restoreName(
- '[PROJECT]',
- '[LOCATION]',
- '[RESTORE_PLAN]',
- '[RESTORE]'
- );
-
- get_restore_sample($formattedName);
-}
-// [END gkebackup_v1_generated_BackupForGKE_GetRestore_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_restore_plan.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_restore_plan.php
deleted file mode 100644
index 4f94e2baca88..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_restore_plan.php
+++ /dev/null
@@ -1,72 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var RestorePlan $response */
- $response = $backupForGKEClient->getRestorePlan($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = BackupForGKEClient::restorePlanName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]');
-
- get_restore_plan_sample($formattedName);
-}
-// [END gkebackup_v1_generated_BackupForGKE_GetRestorePlan_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_volume_backup.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_volume_backup.php
deleted file mode 100644
index f7483267e157..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_volume_backup.php
+++ /dev/null
@@ -1,78 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var VolumeBackup $response */
- $response = $backupForGKEClient->getVolumeBackup($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = BackupForGKEClient::volumeBackupName(
- '[PROJECT]',
- '[LOCATION]',
- '[BACKUP_PLAN]',
- '[BACKUP]',
- '[VOLUME_BACKUP]'
- );
-
- get_volume_backup_sample($formattedName);
-}
-// [END gkebackup_v1_generated_BackupForGKE_GetVolumeBackup_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_volume_restore.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_volume_restore.php
deleted file mode 100644
index e4ef66b4e78b..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/get_volume_restore.php
+++ /dev/null
@@ -1,78 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var VolumeRestore $response */
- $response = $backupForGKEClient->getVolumeRestore($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = BackupForGKEClient::volumeRestoreName(
- '[PROJECT]',
- '[LOCATION]',
- '[RESTORE_PLAN]',
- '[RESTORE]',
- '[VOLUME_RESTORE]'
- );
-
- get_volume_restore_sample($formattedName);
-}
-// [END gkebackup_v1_generated_BackupForGKE_GetVolumeRestore_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_backup_plans.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_backup_plans.php
deleted file mode 100644
index fdec972daa39..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_backup_plans.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $backupForGKEClient->listBackupPlans($request);
-
- /** @var BackupPlan $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = BackupForGKEClient::locationName('[PROJECT]', '[LOCATION]');
-
- list_backup_plans_sample($formattedParent);
-}
-// [END gkebackup_v1_generated_BackupForGKE_ListBackupPlans_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_backups.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_backups.php
deleted file mode 100644
index 78743fc2ab0b..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_backups.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $backupForGKEClient->listBackups($request);
-
- /** @var Backup $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = BackupForGKEClient::backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
-
- list_backups_sample($formattedParent);
-}
-// [END gkebackup_v1_generated_BackupForGKE_ListBackups_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_locations.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_locations.php
deleted file mode 100644
index fb8a2c64b8fa..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_locations.php
+++ /dev/null
@@ -1,62 +0,0 @@
-listLocations($request);
-
- /** @var Location $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END gkebackup_v1_generated_BackupForGKE_ListLocations_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_restore_plans.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_restore_plans.php
deleted file mode 100644
index b21754de7722..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_restore_plans.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $backupForGKEClient->listRestorePlans($request);
-
- /** @var RestorePlan $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = BackupForGKEClient::locationName('[PROJECT]', '[LOCATION]');
-
- list_restore_plans_sample($formattedParent);
-}
-// [END gkebackup_v1_generated_BackupForGKE_ListRestorePlans_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_restores.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_restores.php
deleted file mode 100644
index b9bc24fca4ca..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_restores.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $backupForGKEClient->listRestores($request);
-
- /** @var Restore $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = BackupForGKEClient::restorePlanName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]');
-
- list_restores_sample($formattedParent);
-}
-// [END gkebackup_v1_generated_BackupForGKE_ListRestores_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_volume_backups.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_volume_backups.php
deleted file mode 100644
index b24d4de0a9aa..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_volume_backups.php
+++ /dev/null
@@ -1,82 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $backupForGKEClient->listVolumeBackups($request);
-
- /** @var VolumeBackup $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = BackupForGKEClient::backupName(
- '[PROJECT]',
- '[LOCATION]',
- '[BACKUP_PLAN]',
- '[BACKUP]'
- );
-
- list_volume_backups_sample($formattedParent);
-}
-// [END gkebackup_v1_generated_BackupForGKE_ListVolumeBackups_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_volume_restores.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_volume_restores.php
deleted file mode 100644
index 6e4fb18e5826..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/list_volume_restores.php
+++ /dev/null
@@ -1,82 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $backupForGKEClient->listVolumeRestores($request);
-
- /** @var VolumeRestore $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = BackupForGKEClient::restoreName(
- '[PROJECT]',
- '[LOCATION]',
- '[RESTORE_PLAN]',
- '[RESTORE]'
- );
-
- list_volume_restores_sample($formattedParent);
-}
-// [END gkebackup_v1_generated_BackupForGKE_ListVolumeRestores_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/set_iam_policy.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/set_iam_policy.php
deleted file mode 100644
index 793684f17ec5..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/set_iam_policy.php
+++ /dev/null
@@ -1,77 +0,0 @@
-setResource($resource)
- ->setPolicy($policy);
-
- // Call the API and handle any network failures.
- try {
- /** @var Policy $response */
- $response = $backupForGKEClient->setIamPolicy($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $resource = '[RESOURCE]';
-
- set_iam_policy_sample($resource);
-}
-// [END gkebackup_v1_generated_BackupForGKE_SetIamPolicy_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/test_iam_permissions.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/test_iam_permissions.php
deleted file mode 100644
index 340bcbbb0a86..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/test_iam_permissions.php
+++ /dev/null
@@ -1,84 +0,0 @@
-setResource($resource)
- ->setPermissions($permissions);
-
- // Call the API and handle any network failures.
- try {
- /** @var TestIamPermissionsResponse $response */
- $response = $backupForGKEClient->testIamPermissions($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $resource = '[RESOURCE]';
- $permissionsElement = '[PERMISSIONS]';
-
- test_iam_permissions_sample($resource, $permissionsElement);
-}
-// [END gkebackup_v1_generated_BackupForGKE_TestIamPermissions_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/update_backup.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/update_backup.php
deleted file mode 100644
index e83e41bb0605..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/update_backup.php
+++ /dev/null
@@ -1,71 +0,0 @@
-setBackup($backup);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $backupForGKEClient->updateBackup($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Backup $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END gkebackup_v1_generated_BackupForGKE_UpdateBackup_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/update_backup_plan.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/update_backup_plan.php
deleted file mode 100644
index 6ba79b2ba95e..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/update_backup_plan.php
+++ /dev/null
@@ -1,93 +0,0 @@
-setCluster($formattedBackupPlanCluster);
- $request = (new UpdateBackupPlanRequest())
- ->setBackupPlan($backupPlan);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $backupForGKEClient->updateBackupPlan($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var BackupPlan $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedBackupPlanCluster = BackupForGKEClient::clusterName(
- '[PROJECT]',
- '[LOCATION]',
- '[CLUSTER]'
- );
-
- update_backup_plan_sample($formattedBackupPlanCluster);
-}
-// [END gkebackup_v1_generated_BackupForGKE_UpdateBackupPlan_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/update_restore.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/update_restore.php
deleted file mode 100644
index 9fdd60697b1c..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/update_restore.php
+++ /dev/null
@@ -1,95 +0,0 @@
-setBackup($formattedRestoreBackup);
- $request = (new UpdateRestoreRequest())
- ->setRestore($restore);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $backupForGKEClient->updateRestore($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Restore $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedRestoreBackup = BackupForGKEClient::backupName(
- '[PROJECT]',
- '[LOCATION]',
- '[BACKUP_PLAN]',
- '[BACKUP]'
- );
-
- update_restore_sample($formattedRestoreBackup);
-}
-// [END gkebackup_v1_generated_BackupForGKE_UpdateRestore_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/update_restore_plan.php b/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/update_restore_plan.php
deleted file mode 100644
index ae45a109e7c2..000000000000
--- a/owl-bot-staging/GkeBackup/v1/samples/V1/BackupForGKEClient/update_restore_plan.php
+++ /dev/null
@@ -1,110 +0,0 @@
-setBackupPlan($formattedRestorePlanBackupPlan)
- ->setCluster($formattedRestorePlanCluster)
- ->setRestoreConfig($restorePlanRestoreConfig);
- $request = (new UpdateRestorePlanRequest())
- ->setRestorePlan($restorePlan);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $backupForGKEClient->updateRestorePlan($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var RestorePlan $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedRestorePlanBackupPlan = BackupForGKEClient::backupPlanName(
- '[PROJECT]',
- '[LOCATION]',
- '[BACKUP_PLAN]'
- );
- $formattedRestorePlanCluster = BackupForGKEClient::clusterName(
- '[PROJECT]',
- '[LOCATION]',
- '[CLUSTER]'
- );
-
- update_restore_plan_sample($formattedRestorePlanBackupPlan, $formattedRestorePlanCluster);
-}
-// [END gkebackup_v1_generated_BackupForGKE_UpdateRestorePlan_sync]
diff --git a/owl-bot-staging/GkeBackup/v1/src/V1/Client/BackupForGKEClient.php b/owl-bot-staging/GkeBackup/v1/src/V1/Client/BackupForGKEClient.php
deleted file mode 100644
index 3a9c16026103..000000000000
--- a/owl-bot-staging/GkeBackup/v1/src/V1/Client/BackupForGKEClient.php
+++ /dev/null
@@ -1,1304 +0,0 @@
- createBackupAsync(CreateBackupRequest $request, array $optionalArgs = [])
- * @method PromiseInterface createBackupPlanAsync(CreateBackupPlanRequest $request, array $optionalArgs = [])
- * @method PromiseInterface createRestoreAsync(CreateRestoreRequest $request, array $optionalArgs = [])
- * @method PromiseInterface createRestorePlanAsync(CreateRestorePlanRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteBackupPlanAsync(DeleteBackupPlanRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteRestoreAsync(DeleteRestoreRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteRestorePlanAsync(DeleteRestorePlanRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getBackupIndexDownloadUrlAsync(GetBackupIndexDownloadUrlRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getBackupPlanAsync(GetBackupPlanRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getRestoreAsync(GetRestoreRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getRestorePlanAsync(GetRestorePlanRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getVolumeBackupAsync(GetVolumeBackupRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getVolumeRestoreAsync(GetVolumeRestoreRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listBackupPlansAsync(ListBackupPlansRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listRestorePlansAsync(ListRestorePlansRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listRestoresAsync(ListRestoresRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listVolumeBackupsAsync(ListVolumeBackupsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listVolumeRestoresAsync(ListVolumeRestoresRequest $request, array $optionalArgs = [])
- * @method PromiseInterface updateBackupAsync(UpdateBackupRequest $request, array $optionalArgs = [])
- * @method PromiseInterface updateBackupPlanAsync(UpdateBackupPlanRequest $request, array $optionalArgs = [])
- * @method PromiseInterface updateRestoreAsync(UpdateRestoreRequest $request, array $optionalArgs = [])
- * @method PromiseInterface updateRestorePlanAsync(UpdateRestorePlanRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = [])
- * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = [])
- * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = [])
- * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = [])
- * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = [])
- */
-final class BackupForGKEClient
-{
- use GapicClientTrait;
- use ResourceHelperTrait;
-
- /** The name of the service. */
- private const SERVICE_NAME = 'google.cloud.gkebackup.v1.BackupForGKE';
-
- /**
- * The default address of the service.
- *
- * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
- */
- private const SERVICE_ADDRESS = 'gkebackup.googleapis.com';
-
- /** The address template of the service. */
- private const SERVICE_ADDRESS_TEMPLATE = 'gkebackup.UNIVERSE_DOMAIN';
-
- /** The default port of the service. */
- private const DEFAULT_SERVICE_PORT = 443;
-
- /** The name of the code generator, to be included in the agent header. */
- private const CODEGEN_NAME = 'gapic';
-
- /** The default scopes required by the service. */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- ];
-
- private $operationsClient;
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/backup_for_gke_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/backup_for_gke_descriptor_config.php',
- 'gcpApiConfigPath' => __DIR__ . '/../resources/backup_for_gke_grpc_config.json',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/backup_for_gke_rest_client_config.php',
- ],
- ],
- ];
- }
-
- /**
- * Return an OperationsClient object with the same endpoint as $this.
- *
- * @return OperationsClient
- */
- public function getOperationsClient()
- {
- return $this->operationsClient;
- }
-
- /**
- * Resume an existing long running operation that was previously started by a long
- * running API method. If $methodName is not provided, or does not match a long
- * running API method, then the operation can still be resumed, but the
- * OperationResponse object will not deserialize the final response.
- *
- * @param string $operationName The name of the long running operation
- * @param string $methodName The name of the method used to start the operation
- *
- * @return OperationResponse
- */
- public function resumeOperation($operationName, $methodName = null)
- {
- $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : [];
- $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options);
- $operation->reload();
- return $operation;
- }
-
- /**
- * Create the default operation client for the service.
- *
- * @param array $options ClientOptions for the client.
- *
- * @return OperationsClient
- */
- private function createOperationsClient(array $options)
- {
- // Unset client-specific configuration options
- unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']);
-
- if (isset($options['operationsClient'])) {
- return $options['operationsClient'];
- }
-
- return new OperationsClient($options);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a backup
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $backupPlan
- * @param string $backup
- *
- * @return string The formatted backup resource.
- */
- public static function backupName(string $project, string $location, string $backupPlan, string $backup): string
- {
- return self::getPathTemplate('backup')->render([
- 'project' => $project,
- 'location' => $location,
- 'backup_plan' => $backupPlan,
- 'backup' => $backup,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a backup_plan
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $backupPlan
- *
- * @return string The formatted backup_plan resource.
- */
- public static function backupPlanName(string $project, string $location, string $backupPlan): string
- {
- return self::getPathTemplate('backupPlan')->render([
- 'project' => $project,
- 'location' => $location,
- 'backup_plan' => $backupPlan,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a cluster
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $cluster
- *
- * @return string The formatted cluster resource.
- */
- public static function clusterName(string $project, string $location, string $cluster): string
- {
- return self::getPathTemplate('cluster')->render([
- 'project' => $project,
- 'location' => $location,
- 'cluster' => $cluster,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a crypto_key
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $keyRing
- * @param string $cryptoKey
- *
- * @return string The formatted crypto_key resource.
- */
- public static function cryptoKeyName(string $project, string $location, string $keyRing, string $cryptoKey): string
- {
- return self::getPathTemplate('cryptoKey')->render([
- 'project' => $project,
- 'location' => $location,
- 'key_ring' => $keyRing,
- 'crypto_key' => $cryptoKey,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a location
- * resource.
- *
- * @param string $project
- * @param string $location
- *
- * @return string The formatted location resource.
- */
- public static function locationName(string $project, string $location): string
- {
- return self::getPathTemplate('location')->render([
- 'project' => $project,
- 'location' => $location,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a restore
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $restorePlan
- * @param string $restore
- *
- * @return string The formatted restore resource.
- */
- public static function restoreName(string $project, string $location, string $restorePlan, string $restore): string
- {
- return self::getPathTemplate('restore')->render([
- 'project' => $project,
- 'location' => $location,
- 'restore_plan' => $restorePlan,
- 'restore' => $restore,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a restore_plan
- * resource.
- *
- * @param string $project
- * @param string $location
- * @param string $restorePlan
- *
- * @return string The formatted restore_plan resource.
- */
- public static function restorePlanName(string $project, string $location, string $restorePlan): string
- {
- return self::getPathTemplate('restorePlan')->render([
- 'project' => $project,
- 'location' => $location,
- 'restore_plan' => $restorePlan,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a
- * volume_backup resource.
- *
- * @param string $project
- * @param string $location
- * @param string $backupPlan
- * @param string $backup
- * @param string $volumeBackup
- *
- * @return string The formatted volume_backup resource.
- */
- public static function volumeBackupName(string $project, string $location, string $backupPlan, string $backup, string $volumeBackup): string
- {
- return self::getPathTemplate('volumeBackup')->render([
- 'project' => $project,
- 'location' => $location,
- 'backup_plan' => $backupPlan,
- 'backup' => $backup,
- 'volume_backup' => $volumeBackup,
- ]);
- }
-
- /**
- * Formats a string containing the fully-qualified path to represent a
- * volume_restore resource.
- *
- * @param string $project
- * @param string $location
- * @param string $restorePlan
- * @param string $restore
- * @param string $volumeRestore
- *
- * @return string The formatted volume_restore resource.
- */
- public static function volumeRestoreName(string $project, string $location, string $restorePlan, string $restore, string $volumeRestore): string
- {
- return self::getPathTemplate('volumeRestore')->render([
- 'project' => $project,
- 'location' => $location,
- 'restore_plan' => $restorePlan,
- 'restore' => $restore,
- 'volume_restore' => $volumeRestore,
- ]);
- }
-
- /**
- * Parses a formatted name string and returns an associative array of the components in the name.
- * The following name formats are supported:
- * Template: Pattern
- * - backup: projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}
- * - backupPlan: projects/{project}/locations/{location}/backupPlans/{backup_plan}
- * - cluster: projects/{project}/locations/{location}/clusters/{cluster}
- * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
- * - location: projects/{project}/locations/{location}
- * - restore: projects/{project}/locations/{location}/restorePlans/{restore_plan}/restores/{restore}
- * - restorePlan: projects/{project}/locations/{location}/restorePlans/{restore_plan}
- * - volumeBackup: projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}
- * - volumeRestore: projects/{project}/locations/{location}/restorePlans/{restore_plan}/restores/{restore}/volumeRestores/{volume_restore}
- *
- * The optional $template argument can be supplied to specify a particular pattern,
- * and must match one of the templates listed above. If no $template argument is
- * provided, or if the $template argument does not match one of the templates
- * listed, then parseName will check each of the supported templates, and return
- * the first match.
- *
- * @param string $formattedName The formatted name string
- * @param ?string $template Optional name of template to match
- *
- * @return array An associative array from name component IDs to component values.
- *
- * @throws ValidationException If $formattedName could not be matched.
- */
- public static function parseName(string $formattedName, ?string $template = null): array
- {
- return self::parseFormattedName($formattedName, $template);
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'gkebackup.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. May be either the string
- * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system.
- * *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'grpc' => [...],
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and
- * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * @type false|LoggerInterface $logger
- * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
- * 'GOOGLE_SDK_PHP_LOGGING' environment flag
- * }
- *
- * @throws ValidationException
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- $this->operationsClient = $this->createOperationsClient($clientOptions);
- }
-
- /** Handles execution of the async variants for each documented method. */
- public function __call($method, $args)
- {
- if (substr($method, -5) !== 'Async') {
- trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR);
- }
-
- array_unshift($args, substr($method, 0, -5));
- return call_user_func_array([$this, 'startAsyncCall'], $args);
- }
-
- /**
- * Creates a Backup for the given BackupPlan.
- *
- * The async variant is {@see BackupForGKEClient::createBackupAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/create_backup.php
- *
- * @param CreateBackupRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createBackup(CreateBackupRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateBackup', $request, $callOptions)->wait();
- }
-
- /**
- * Creates a new BackupPlan in a given location.
- *
- * The async variant is {@see BackupForGKEClient::createBackupPlanAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/create_backup_plan.php
- *
- * @param CreateBackupPlanRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createBackupPlan(CreateBackupPlanRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateBackupPlan', $request, $callOptions)->wait();
- }
-
- /**
- * Creates a new Restore for the given RestorePlan.
- *
- * The async variant is {@see BackupForGKEClient::createRestoreAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/create_restore.php
- *
- * @param CreateRestoreRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createRestore(CreateRestoreRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateRestore', $request, $callOptions)->wait();
- }
-
- /**
- * Creates a new RestorePlan in a given location.
- *
- * The async variant is {@see BackupForGKEClient::createRestorePlanAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/create_restore_plan.php
- *
- * @param CreateRestorePlanRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function createRestorePlan(CreateRestorePlanRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('CreateRestorePlan', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes an existing Backup.
- *
- * The async variant is {@see BackupForGKEClient::deleteBackupAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/delete_backup.php
- *
- * @param DeleteBackupRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function deleteBackup(DeleteBackupRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('DeleteBackup', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes an existing BackupPlan.
- *
- * The async variant is {@see BackupForGKEClient::deleteBackupPlanAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/delete_backup_plan.php
- *
- * @param DeleteBackupPlanRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function deleteBackupPlan(DeleteBackupPlanRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('DeleteBackupPlan', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes an existing Restore.
- *
- * The async variant is {@see BackupForGKEClient::deleteRestoreAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/delete_restore.php
- *
- * @param DeleteRestoreRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function deleteRestore(DeleteRestoreRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('DeleteRestore', $request, $callOptions)->wait();
- }
-
- /**
- * Deletes an existing RestorePlan.
- *
- * The async variant is {@see BackupForGKEClient::deleteRestorePlanAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/delete_restore_plan.php
- *
- * @param DeleteRestorePlanRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function deleteRestorePlan(DeleteRestorePlanRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('DeleteRestorePlan', $request, $callOptions)->wait();
- }
-
- /**
- * Retrieve the details of a single Backup.
- *
- * The async variant is {@see BackupForGKEClient::getBackupAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/get_backup.php
- *
- * @param GetBackupRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Backup
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getBackup(GetBackupRequest $request, array $callOptions = []): Backup
- {
- return $this->startApiCall('GetBackup', $request, $callOptions)->wait();
- }
-
- /**
- * Retrieve the link to the backupIndex.
- *
- * The async variant is {@see BackupForGKEClient::getBackupIndexDownloadUrlAsync()}
- * .
- *
- * @example samples/V1/BackupForGKEClient/get_backup_index_download_url.php
- *
- * @param GetBackupIndexDownloadUrlRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 GetBackupIndexDownloadUrlResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getBackupIndexDownloadUrl(GetBackupIndexDownloadUrlRequest $request, array $callOptions = []): GetBackupIndexDownloadUrlResponse
- {
- return $this->startApiCall('GetBackupIndexDownloadUrl', $request, $callOptions)->wait();
- }
-
- /**
- * Retrieve the details of a single BackupPlan.
- *
- * The async variant is {@see BackupForGKEClient::getBackupPlanAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/get_backup_plan.php
- *
- * @param GetBackupPlanRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 BackupPlan
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getBackupPlan(GetBackupPlanRequest $request, array $callOptions = []): BackupPlan
- {
- return $this->startApiCall('GetBackupPlan', $request, $callOptions)->wait();
- }
-
- /**
- * Retrieves the details of a single Restore.
- *
- * The async variant is {@see BackupForGKEClient::getRestoreAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/get_restore.php
- *
- * @param GetRestoreRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Restore
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getRestore(GetRestoreRequest $request, array $callOptions = []): Restore
- {
- return $this->startApiCall('GetRestore', $request, $callOptions)->wait();
- }
-
- /**
- * Retrieve the details of a single RestorePlan.
- *
- * The async variant is {@see BackupForGKEClient::getRestorePlanAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/get_restore_plan.php
- *
- * @param GetRestorePlanRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 RestorePlan
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getRestorePlan(GetRestorePlanRequest $request, array $callOptions = []): RestorePlan
- {
- return $this->startApiCall('GetRestorePlan', $request, $callOptions)->wait();
- }
-
- /**
- * Retrieve the details of a single VolumeBackup.
- *
- * The async variant is {@see BackupForGKEClient::getVolumeBackupAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/get_volume_backup.php
- *
- * @param GetVolumeBackupRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 VolumeBackup
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getVolumeBackup(GetVolumeBackupRequest $request, array $callOptions = []): VolumeBackup
- {
- return $this->startApiCall('GetVolumeBackup', $request, $callOptions)->wait();
- }
-
- /**
- * Retrieve the details of a single VolumeRestore.
- *
- * The async variant is {@see BackupForGKEClient::getVolumeRestoreAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/get_volume_restore.php
- *
- * @param GetVolumeRestoreRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 VolumeRestore
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getVolumeRestore(GetVolumeRestoreRequest $request, array $callOptions = []): VolumeRestore
- {
- return $this->startApiCall('GetVolumeRestore', $request, $callOptions)->wait();
- }
-
- /**
- * Lists BackupPlans in a given location.
- *
- * The async variant is {@see BackupForGKEClient::listBackupPlansAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/list_backup_plans.php
- *
- * @param ListBackupPlansRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listBackupPlans(ListBackupPlansRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListBackupPlans', $request, $callOptions);
- }
-
- /**
- * Lists the Backups for a given BackupPlan.
- *
- * The async variant is {@see BackupForGKEClient::listBackupsAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/list_backups.php
- *
- * @param ListBackupsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listBackups(ListBackupsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListBackups', $request, $callOptions);
- }
-
- /**
- * Lists RestorePlans in a given location.
- *
- * The async variant is {@see BackupForGKEClient::listRestorePlansAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/list_restore_plans.php
- *
- * @param ListRestorePlansRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listRestorePlans(ListRestorePlansRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListRestorePlans', $request, $callOptions);
- }
-
- /**
- * Lists the Restores for a given RestorePlan.
- *
- * The async variant is {@see BackupForGKEClient::listRestoresAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/list_restores.php
- *
- * @param ListRestoresRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listRestores(ListRestoresRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListRestores', $request, $callOptions);
- }
-
- /**
- * Lists the VolumeBackups for a given Backup.
- *
- * The async variant is {@see BackupForGKEClient::listVolumeBackupsAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/list_volume_backups.php
- *
- * @param ListVolumeBackupsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listVolumeBackups(ListVolumeBackupsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListVolumeBackups', $request, $callOptions);
- }
-
- /**
- * Lists the VolumeRestores for a given Restore.
- *
- * The async variant is {@see BackupForGKEClient::listVolumeRestoresAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/list_volume_restores.php
- *
- * @param ListVolumeRestoresRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listVolumeRestores(ListVolumeRestoresRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListVolumeRestores', $request, $callOptions);
- }
-
- /**
- * Update a Backup.
- *
- * The async variant is {@see BackupForGKEClient::updateBackupAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/update_backup.php
- *
- * @param UpdateBackupRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateBackup(UpdateBackupRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('UpdateBackup', $request, $callOptions)->wait();
- }
-
- /**
- * Update a BackupPlan.
- *
- * The async variant is {@see BackupForGKEClient::updateBackupPlanAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/update_backup_plan.php
- *
- * @param UpdateBackupPlanRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateBackupPlan(UpdateBackupPlanRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('UpdateBackupPlan', $request, $callOptions)->wait();
- }
-
- /**
- * Update a Restore.
- *
- * The async variant is {@see BackupForGKEClient::updateRestoreAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/update_restore.php
- *
- * @param UpdateRestoreRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateRestore(UpdateRestoreRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('UpdateRestore', $request, $callOptions)->wait();
- }
-
- /**
- * Update a RestorePlan.
- *
- * The async variant is {@see BackupForGKEClient::updateRestorePlanAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/update_restore_plan.php
- *
- * @param UpdateRestorePlanRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 OperationResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function updateRestorePlan(UpdateRestorePlanRequest $request, array $callOptions = []): OperationResponse
- {
- return $this->startApiCall('UpdateRestorePlan', $request, $callOptions)->wait();
- }
-
- /**
- * Gets information about a location.
- *
- * The async variant is {@see BackupForGKEClient::getLocationAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/get_location.php
- *
- * @param GetLocationRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Location
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getLocation(GetLocationRequest $request, array $callOptions = []): Location
- {
- return $this->startApiCall('GetLocation', $request, $callOptions)->wait();
- }
-
- /**
- * Lists information about the supported locations for this service.
- *
- * The async variant is {@see BackupForGKEClient::listLocationsAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/list_locations.php
- *
- * @param ListLocationsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 PagedListResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function listLocations(ListLocationsRequest $request, array $callOptions = []): PagedListResponse
- {
- return $this->startApiCall('ListLocations', $request, $callOptions);
- }
-
- /**
- * Gets the access control policy for a resource. Returns an empty policy
- if the resource exists and does not have a policy set.
- *
- * The async variant is {@see BackupForGKEClient::getIamPolicyAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/get_iam_policy.php
- *
- * @param GetIamPolicyRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Policy
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function getIamPolicy(GetIamPolicyRequest $request, array $callOptions = []): Policy
- {
- return $this->startApiCall('GetIamPolicy', $request, $callOptions)->wait();
- }
-
- /**
- * Sets the access control policy on the specified resource. Replaces
- any existing policy.
-
- Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
- errors.
- *
- * The async variant is {@see BackupForGKEClient::setIamPolicyAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/set_iam_policy.php
- *
- * @param SetIamPolicyRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 Policy
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function setIamPolicy(SetIamPolicyRequest $request, array $callOptions = []): Policy
- {
- return $this->startApiCall('SetIamPolicy', $request, $callOptions)->wait();
- }
-
- /**
- * Returns permissions that a caller has on the specified resource. If the
- resource does not exist, this will return an empty set of
- permissions, not a `NOT_FOUND` error.
-
- Note: This operation is designed to be used for building
- permission-aware UIs and command-line tools, not for authorization
- checking. This operation may "fail open" without warning.
- *
- * The async variant is {@see BackupForGKEClient::testIamPermissionsAsync()} .
- *
- * @example samples/V1/BackupForGKEClient/test_iam_permissions.php
- *
- * @param TestIamPermissionsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 TestIamPermissionsResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse
- {
- return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait();
- }
-}
diff --git a/owl-bot-staging/GkeBackup/v1/src/V1/gapic_metadata.json b/owl-bot-staging/GkeBackup/v1/src/V1/gapic_metadata.json
deleted file mode 100644
index 6f12478d150e..000000000000
--- a/owl-bot-staging/GkeBackup/v1/src/V1/gapic_metadata.json
+++ /dev/null
@@ -1,168 +0,0 @@
-{
- "schema": "1.0",
- "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods",
- "language": "php",
- "protoPackage": "google.cloud.gkebackup.v1",
- "libraryPackage": "Google\\Cloud\\GkeBackup\\V1",
- "services": {
- "BackupForGKE": {
- "clients": {
- "grpc": {
- "libraryClient": "BackupForGKEGapicClient",
- "rpcs": {
- "CreateBackup": {
- "methods": [
- "createBackup"
- ]
- },
- "CreateBackupPlan": {
- "methods": [
- "createBackupPlan"
- ]
- },
- "CreateRestore": {
- "methods": [
- "createRestore"
- ]
- },
- "CreateRestorePlan": {
- "methods": [
- "createRestorePlan"
- ]
- },
- "DeleteBackup": {
- "methods": [
- "deleteBackup"
- ]
- },
- "DeleteBackupPlan": {
- "methods": [
- "deleteBackupPlan"
- ]
- },
- "DeleteRestore": {
- "methods": [
- "deleteRestore"
- ]
- },
- "DeleteRestorePlan": {
- "methods": [
- "deleteRestorePlan"
- ]
- },
- "GetBackup": {
- "methods": [
- "getBackup"
- ]
- },
- "GetBackupIndexDownloadUrl": {
- "methods": [
- "getBackupIndexDownloadUrl"
- ]
- },
- "GetBackupPlan": {
- "methods": [
- "getBackupPlan"
- ]
- },
- "GetRestore": {
- "methods": [
- "getRestore"
- ]
- },
- "GetRestorePlan": {
- "methods": [
- "getRestorePlan"
- ]
- },
- "GetVolumeBackup": {
- "methods": [
- "getVolumeBackup"
- ]
- },
- "GetVolumeRestore": {
- "methods": [
- "getVolumeRestore"
- ]
- },
- "ListBackupPlans": {
- "methods": [
- "listBackupPlans"
- ]
- },
- "ListBackups": {
- "methods": [
- "listBackups"
- ]
- },
- "ListRestorePlans": {
- "methods": [
- "listRestorePlans"
- ]
- },
- "ListRestores": {
- "methods": [
- "listRestores"
- ]
- },
- "ListVolumeBackups": {
- "methods": [
- "listVolumeBackups"
- ]
- },
- "ListVolumeRestores": {
- "methods": [
- "listVolumeRestores"
- ]
- },
- "UpdateBackup": {
- "methods": [
- "updateBackup"
- ]
- },
- "UpdateBackupPlan": {
- "methods": [
- "updateBackupPlan"
- ]
- },
- "UpdateRestore": {
- "methods": [
- "updateRestore"
- ]
- },
- "UpdateRestorePlan": {
- "methods": [
- "updateRestorePlan"
- ]
- },
- "GetLocation": {
- "methods": [
- "getLocation"
- ]
- },
- "ListLocations": {
- "methods": [
- "listLocations"
- ]
- },
- "GetIamPolicy": {
- "methods": [
- "getIamPolicy"
- ]
- },
- "SetIamPolicy": {
- "methods": [
- "setIamPolicy"
- ]
- },
- "TestIamPermissions": {
- "methods": [
- "testIamPermissions"
- ]
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/owl-bot-staging/GkeBackup/v1/src/V1/resources/backup_for_gke_client_config.json b/owl-bot-staging/GkeBackup/v1/src/V1/resources/backup_for_gke_client_config.json
deleted file mode 100644
index 3e02520d4f8c..000000000000
--- a/owl-bot-staging/GkeBackup/v1/src/V1/resources/backup_for_gke_client_config.json
+++ /dev/null
@@ -1,214 +0,0 @@
-{
- "interfaces": {
- "google.cloud.gkebackup.v1.BackupForGKE": {
- "retry_codes": {
- "no_retry_codes": [],
- "retry_policy_1_codes": [
- "UNAVAILABLE"
- ],
- "no_retry_1_codes": [],
- "no_retry_2_codes": [],
- "no_retry_3_codes": []
- },
- "retry_params": {
- "no_retry_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 0,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 0,
- "total_timeout_millis": 0
- },
- "retry_policy_1_params": {
- "initial_retry_delay_millis": 1000,
- "retry_delay_multiplier": 1.3,
- "max_retry_delay_millis": 60000,
- "initial_rpc_timeout_millis": 60000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000,
- "total_timeout_millis": 60000
- },
- "no_retry_1_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 60000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000,
- "total_timeout_millis": 60000
- },
- "no_retry_2_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 120000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 120000,
- "total_timeout_millis": 120000
- },
- "no_retry_3_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 300000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 300000,
- "total_timeout_millis": 300000
- }
- },
- "methods": {
- "CreateBackup": {
- "timeout_millis": 120000,
- "retry_codes_name": "no_retry_2_codes",
- "retry_params_name": "no_retry_2_params"
- },
- "CreateBackupPlan": {
- "timeout_millis": 300000,
- "retry_codes_name": "no_retry_3_codes",
- "retry_params_name": "no_retry_3_params"
- },
- "CreateRestore": {
- "timeout_millis": 120000,
- "retry_codes_name": "no_retry_2_codes",
- "retry_params_name": "no_retry_2_params"
- },
- "CreateRestorePlan": {
- "timeout_millis": 120000,
- "retry_codes_name": "no_retry_2_codes",
- "retry_params_name": "no_retry_2_params"
- },
- "DeleteBackup": {
- "timeout_millis": 300000,
- "retry_codes_name": "no_retry_3_codes",
- "retry_params_name": "no_retry_3_params"
- },
- "DeleteBackupPlan": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "DeleteRestore": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "DeleteRestorePlan": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "GetBackup": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetBackupIndexDownloadUrl": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetBackupPlan": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetRestore": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetRestorePlan": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetVolumeBackup": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "GetVolumeRestore": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListBackupPlans": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListBackups": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListRestorePlans": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListRestores": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListVolumeBackups": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "ListVolumeRestores": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- },
- "UpdateBackup": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "UpdateBackupPlan": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "UpdateRestore": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "UpdateRestorePlan": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_1_codes",
- "retry_params_name": "no_retry_1_params"
- },
- "GetLocation": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "ListLocations": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "GetIamPolicy": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "SetIamPolicy": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- },
- "TestIamPermissions": {
- "timeout_millis": 60000,
- "retry_codes_name": "no_retry_codes",
- "retry_params_name": "no_retry_params"
- }
- }
- }
- }
-}
diff --git a/owl-bot-staging/GkeBackup/v1/src/V1/resources/backup_for_gke_descriptor_config.php b/owl-bot-staging/GkeBackup/v1/src/V1/resources/backup_for_gke_descriptor_config.php
deleted file mode 100644
index 8b4932b4baf8..000000000000
--- a/owl-bot-staging/GkeBackup/v1/src/V1/resources/backup_for_gke_descriptor_config.php
+++ /dev/null
@@ -1,548 +0,0 @@
- [
- 'google.cloud.gkebackup.v1.BackupForGKE' => [
- 'CreateBackup' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\GkeBackup\V1\Backup',
- 'metadataReturnType' => '\Google\Cloud\GkeBackup\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'CreateBackupPlan' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\GkeBackup\V1\BackupPlan',
- 'metadataReturnType' => '\Google\Cloud\GkeBackup\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'CreateRestore' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\GkeBackup\V1\Restore',
- 'metadataReturnType' => '\Google\Cloud\GkeBackup\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'CreateRestorePlan' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\GkeBackup\V1\RestorePlan',
- 'metadataReturnType' => '\Google\Cloud\GkeBackup\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'DeleteBackup' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Protobuf\GPBEmpty',
- 'metadataReturnType' => '\Google\Cloud\GkeBackup\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteBackupPlan' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Protobuf\GPBEmpty',
- 'metadataReturnType' => '\Google\Cloud\GkeBackup\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteRestore' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Protobuf\GPBEmpty',
- 'metadataReturnType' => '\Google\Cloud\GkeBackup\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteRestorePlan' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Protobuf\GPBEmpty',
- 'metadataReturnType' => '\Google\Cloud\GkeBackup\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateBackup' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\GkeBackup\V1\Backup',
- 'metadataReturnType' => '\Google\Cloud\GkeBackup\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'backup.name',
- 'fieldAccessors' => [
- 'getBackup',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateBackupPlan' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\GkeBackup\V1\BackupPlan',
- 'metadataReturnType' => '\Google\Cloud\GkeBackup\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'backup_plan.name',
- 'fieldAccessors' => [
- 'getBackupPlan',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateRestore' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\GkeBackup\V1\Restore',
- 'metadataReturnType' => '\Google\Cloud\GkeBackup\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'restore.name',
- 'fieldAccessors' => [
- 'getRestore',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateRestorePlan' => [
- 'longRunning' => [
- 'operationReturnType' => '\Google\Cloud\GkeBackup\V1\RestorePlan',
- 'metadataReturnType' => '\Google\Cloud\GkeBackup\V1\OperationMetadata',
- 'initialPollDelayMillis' => '500',
- 'pollDelayMultiplier' => '1.5',
- 'maxPollDelayMillis' => '5000',
- 'totalPollTimeoutMillis' => '300000',
- ],
- 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL,
- 'headerParams' => [
- [
- 'keyName' => 'restore_plan.name',
- 'fieldAccessors' => [
- 'getRestorePlan',
- 'getName',
- ],
- ],
- ],
- ],
- 'GetBackup' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\GkeBackup\V1\Backup',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetBackupIndexDownloadUrl' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\GkeBackup\V1\GetBackupIndexDownloadUrlResponse',
- 'headerParams' => [
- [
- 'keyName' => 'backup',
- 'fieldAccessors' => [
- 'getBackup',
- ],
- ],
- ],
- ],
- 'GetBackupPlan' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\GkeBackup\V1\BackupPlan',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetRestore' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\GkeBackup\V1\Restore',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetRestorePlan' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\GkeBackup\V1\RestorePlan',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetVolumeBackup' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\GkeBackup\V1\VolumeBackup',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetVolumeRestore' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\GkeBackup\V1\VolumeRestore',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListBackupPlans' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getBackupPlans',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\GkeBackup\V1\ListBackupPlansResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListBackups' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getBackups',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\GkeBackup\V1\ListBackupsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListRestorePlans' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getRestorePlans',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\GkeBackup\V1\ListRestorePlansResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListRestores' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getRestores',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\GkeBackup\V1\ListRestoresResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListVolumeBackups' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getVolumeBackups',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\GkeBackup\V1\ListVolumeBackupsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListVolumeRestores' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getVolumeRestores',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\GkeBackup\V1\ListVolumeRestoresResponse',
- 'headerParams' => [
- [
- 'keyName' => 'parent',
- 'fieldAccessors' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'GetLocation' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Location\Location',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- 'interfaceOverride' => 'google.cloud.location.Locations',
- ],
- 'ListLocations' => [
- 'pageStreaming' => [
- 'requestPageTokenGetMethod' => 'getPageToken',
- 'requestPageTokenSetMethod' => 'setPageToken',
- 'requestPageSizeGetMethod' => 'getPageSize',
- 'requestPageSizeSetMethod' => 'setPageSize',
- 'responsePageTokenGetMethod' => 'getNextPageToken',
- 'resourcesGetMethod' => 'getLocations',
- ],
- 'callType' => \Google\ApiCore\Call::PAGINATED_CALL,
- 'responseType' => 'Google\Cloud\Location\ListLocationsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- 'interfaceOverride' => 'google.cloud.location.Locations',
- ],
- 'GetIamPolicy' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Iam\V1\Policy',
- 'headerParams' => [
- [
- 'keyName' => 'resource',
- 'fieldAccessors' => [
- 'getResource',
- ],
- ],
- ],
- 'interfaceOverride' => 'google.iam.v1.IAMPolicy',
- ],
- 'SetIamPolicy' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Iam\V1\Policy',
- 'headerParams' => [
- [
- 'keyName' => 'resource',
- 'fieldAccessors' => [
- 'getResource',
- ],
- ],
- ],
- 'interfaceOverride' => 'google.iam.v1.IAMPolicy',
- ],
- 'TestIamPermissions' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'resource',
- 'fieldAccessors' => [
- 'getResource',
- ],
- ],
- ],
- 'interfaceOverride' => 'google.iam.v1.IAMPolicy',
- ],
- 'templateMap' => [
- 'backup' => 'projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}',
- 'backupPlan' => 'projects/{project}/locations/{location}/backupPlans/{backup_plan}',
- 'cluster' => 'projects/{project}/locations/{location}/clusters/{cluster}',
- 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}',
- 'location' => 'projects/{project}/locations/{location}',
- 'restore' => 'projects/{project}/locations/{location}/restorePlans/{restore_plan}/restores/{restore}',
- 'restorePlan' => 'projects/{project}/locations/{location}/restorePlans/{restore_plan}',
- 'volumeBackup' => 'projects/{project}/locations/{location}/backupPlans/{backup_plan}/backups/{backup}/volumeBackups/{volume_backup}',
- 'volumeRestore' => 'projects/{project}/locations/{location}/restorePlans/{restore_plan}/restores/{restore}/volumeRestores/{volume_restore}',
- ],
- ],
- ],
-];
diff --git a/owl-bot-staging/GkeBackup/v1/src/V1/resources/backup_for_gke_rest_client_config.php b/owl-bot-staging/GkeBackup/v1/src/V1/resources/backup_for_gke_rest_client_config.php
deleted file mode 100644
index 2da9a805e611..000000000000
--- a/owl-bot-staging/GkeBackup/v1/src/V1/resources/backup_for_gke_rest_client_config.php
+++ /dev/null
@@ -1,509 +0,0 @@
- [
- 'google.cloud.gkebackup.v1.BackupForGKE' => [
- 'CreateBackup' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/backupPlans/*}/backups',
- 'body' => 'backup',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'CreateBackupPlan' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/backupPlans',
- 'body' => 'backup_plan',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'backup_plan_id',
- ],
- ],
- 'CreateRestore' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/restorePlans/*}/restores',
- 'body' => 'restore',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'restore_id',
- ],
- ],
- 'CreateRestorePlan' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/restorePlans',
- 'body' => 'restore_plan',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- 'queryParams' => [
- 'restore_plan_id',
- ],
- ],
- 'DeleteBackup' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupPlans/*/backups/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteBackupPlan' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupPlans/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteRestore' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/restorePlans/*/restores/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteRestorePlan' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/restorePlans/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetBackup' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupPlans/*/backups/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetBackupIndexDownloadUrl' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{backup=projects/*/locations/*/backupPlans/*/backups/*}:getBackupIndexDownloadUrl',
- 'placeholders' => [
- 'backup' => [
- 'getters' => [
- 'getBackup',
- ],
- ],
- ],
- ],
- 'GetBackupPlan' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupPlans/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetRestore' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/restorePlans/*/restores/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetRestorePlan' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/restorePlans/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetVolumeBackup' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetVolumeRestore' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListBackupPlans' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/backupPlans',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListBackups' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/backupPlans/*}/backups',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListRestorePlans' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/restorePlans',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListRestores' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/restorePlans/*}/restores',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListVolumeBackups' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/backupPlans/*/backups/*}/volumeBackups',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'ListVolumeRestores' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{parent=projects/*/locations/*/restorePlans/*/restores/*}/volumeRestores',
- 'placeholders' => [
- 'parent' => [
- 'getters' => [
- 'getParent',
- ],
- ],
- ],
- ],
- 'UpdateBackup' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{backup.name=projects/*/locations/*/backupPlans/*/backups/*}',
- 'body' => 'backup',
- 'placeholders' => [
- 'backup.name' => [
- 'getters' => [
- 'getBackup',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateBackupPlan' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{backup_plan.name=projects/*/locations/*/backupPlans/*}',
- 'body' => 'backup_plan',
- 'placeholders' => [
- 'backup_plan.name' => [
- 'getters' => [
- 'getBackupPlan',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateRestore' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{restore.name=projects/*/locations/*/restorePlans/*/restores/*}',
- 'body' => 'restore',
- 'placeholders' => [
- 'restore.name' => [
- 'getters' => [
- 'getRestore',
- 'getName',
- ],
- ],
- ],
- ],
- 'UpdateRestorePlan' => [
- 'method' => 'patch',
- 'uriTemplate' => '/v1/{restore_plan.name=projects/*/locations/*/restorePlans/*}',
- 'body' => 'restore_plan',
- 'placeholders' => [
- 'restore_plan.name' => [
- 'getters' => [
- 'getRestorePlan',
- 'getName',
- ],
- ],
- ],
- ],
- ],
- 'google.cloud.location.Locations' => [
- 'GetLocation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListLocations' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*}/locations',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- 'google.iam.v1.IAMPolicy' => [
- 'GetIamPolicy' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/backupPlans/*}:getIamPolicy',
- 'additionalBindings' => [
- [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/backupPlans/*/backups/*}:getIamPolicy',
- ],
- [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*}:getIamPolicy',
- ],
- [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/restorePlans/*}:getIamPolicy',
- ],
- [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/restorePlans/*/restores/*}:getIamPolicy',
- ],
- [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*}:getIamPolicy',
- ],
- ],
- 'placeholders' => [
- 'resource' => [
- 'getters' => [
- 'getResource',
- ],
- ],
- ],
- ],
- 'SetIamPolicy' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/backupPlans/*}:setIamPolicy',
- 'body' => '*',
- 'additionalBindings' => [
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/backupPlans/*/backups/*}:setIamPolicy',
- 'body' => '*',
- ],
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*}:setIamPolicy',
- 'body' => '*',
- ],
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/restorePlans/*}:setIamPolicy',
- 'body' => '*',
- ],
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/restorePlans/*/restores/*}:setIamPolicy',
- 'body' => '*',
- ],
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*}:setIamPolicy',
- 'body' => '*',
- ],
- ],
- 'placeholders' => [
- 'resource' => [
- 'getters' => [
- 'getResource',
- ],
- ],
- ],
- ],
- 'TestIamPermissions' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/backupPlans/*}:testIamPermissions',
- 'body' => '*',
- 'additionalBindings' => [
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/backupPlans/*/backups/*}:testIamPermissions',
- 'body' => '*',
- ],
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/backupPlans/*/backups/*/volumeBackups/*}:testIamPermissions',
- 'body' => '*',
- ],
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/restorePlans/*}:testIamPermissions',
- 'body' => '*',
- ],
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/restorePlans/*/restores/*}:testIamPermissions',
- 'body' => '*',
- ],
- [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{resource=projects/*/locations/*/restorePlans/*/restores/*/volumeRestores/*}:testIamPermissions',
- 'body' => '*',
- ],
- ],
- 'placeholders' => [
- 'resource' => [
- 'getters' => [
- 'getResource',
- ],
- ],
- ],
- ],
- ],
- 'google.longrunning.Operations' => [
- 'CancelOperation' => [
- 'method' => 'post',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel',
- 'body' => '*',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'DeleteOperation' => [
- 'method' => 'delete',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'GetOperation' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- 'ListOperations' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- ],
- 'numericEnums' => true,
-];
diff --git a/owl-bot-staging/GkeBackup/v1/tests/Unit/V1/Client/BackupForGKEClientTest.php b/owl-bot-staging/GkeBackup/v1/tests/Unit/V1/Client/BackupForGKEClientTest.php
deleted file mode 100644
index fe61e21a7468..000000000000
--- a/owl-bot-staging/GkeBackup/v1/tests/Unit/V1/Client/BackupForGKEClientTest.php
+++ /dev/null
@@ -1,3233 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return BackupForGKEClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new BackupForGKEClient($options);
- }
-
- /** @test */
- public function createBackupTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createBackupTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $manual = true;
- $deleteLockDays = 1638724265;
- $retainDays = 1380805807;
- $allNamespaces = true;
- $containsVolumeData = false;
- $containsSecrets = false;
- $stateReason = 'stateReason282113458';
- $resourceCount = 287552926;
- $volumeCount = 1362665558;
- $sizeBytes = 1796325715;
- $etag = 'etag3123477';
- $description = 'description-1724546052';
- $podCount = 977657493;
- $configBackupSizeBytes = 606785139;
- $permissiveMode = false;
- $expectedResponse = new Backup();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setManual($manual);
- $expectedResponse->setDeleteLockDays($deleteLockDays);
- $expectedResponse->setRetainDays($retainDays);
- $expectedResponse->setAllNamespaces($allNamespaces);
- $expectedResponse->setContainsVolumeData($containsVolumeData);
- $expectedResponse->setContainsSecrets($containsSecrets);
- $expectedResponse->setStateReason($stateReason);
- $expectedResponse->setResourceCount($resourceCount);
- $expectedResponse->setVolumeCount($volumeCount);
- $expectedResponse->setSizeBytes($sizeBytes);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setDescription($description);
- $expectedResponse->setPodCount($podCount);
- $expectedResponse->setConfigBackupSizeBytes($configBackupSizeBytes);
- $expectedResponse->setPermissiveMode($permissiveMode);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createBackupTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
- $request = (new CreateBackupRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->createBackup($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/CreateBackup', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createBackupTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createBackupExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createBackupTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
- $request = (new CreateBackupRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->createBackup($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createBackupTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createBackupPlanTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createBackupPlanTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $cluster = 'cluster872092154';
- $etag = 'etag3123477';
- $deactivated = true;
- $protectedPodCount = 1494678716;
- $stateReason = 'stateReason282113458';
- $rpoRiskLevel = 1939768030;
- $rpoRiskReason = 'rpoRiskReason167896166';
- $expectedResponse = new BackupPlan();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setCluster($cluster);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setDeactivated($deactivated);
- $expectedResponse->setProtectedPodCount($protectedPodCount);
- $expectedResponse->setStateReason($stateReason);
- $expectedResponse->setRpoRiskLevel($rpoRiskLevel);
- $expectedResponse->setRpoRiskReason($rpoRiskReason);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createBackupPlanTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $backupPlan = new BackupPlan();
- $backupPlanCluster = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]');
- $backupPlan->setCluster($backupPlanCluster);
- $backupPlanId = 'backupPlanId-25762700';
- $request = (new CreateBackupPlanRequest())
- ->setParent($formattedParent)
- ->setBackupPlan($backupPlan)
- ->setBackupPlanId($backupPlanId);
- $response = $gapicClient->createBackupPlan($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/CreateBackupPlan', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getBackupPlan();
- $this->assertProtobufEquals($backupPlan, $actualValue);
- $actualValue = $actualApiRequestObject->getBackupPlanId();
- $this->assertProtobufEquals($backupPlanId, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createBackupPlanTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createBackupPlanExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createBackupPlanTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $backupPlan = new BackupPlan();
- $backupPlanCluster = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]');
- $backupPlan->setCluster($backupPlanCluster);
- $backupPlanId = 'backupPlanId-25762700';
- $request = (new CreateBackupPlanRequest())
- ->setParent($formattedParent)
- ->setBackupPlan($backupPlan)
- ->setBackupPlanId($backupPlanId);
- $response = $gapicClient->createBackupPlan($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createBackupPlanTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createRestoreTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createRestoreTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $backup = 'backup-1396673086';
- $cluster = 'cluster872092154';
- $stateReason = 'stateReason282113458';
- $resourcesRestoredCount = 882879616;
- $resourcesExcludedCount = 338652236;
- $resourcesFailedCount = 217904743;
- $volumesRestoredCount = 1005533068;
- $etag = 'etag3123477';
- $expectedResponse = new Restore();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setBackup($backup);
- $expectedResponse->setCluster($cluster);
- $expectedResponse->setStateReason($stateReason);
- $expectedResponse->setResourcesRestoredCount($resourcesRestoredCount);
- $expectedResponse->setResourcesExcludedCount($resourcesExcludedCount);
- $expectedResponse->setResourcesFailedCount($resourcesFailedCount);
- $expectedResponse->setVolumesRestoredCount($volumesRestoredCount);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createRestoreTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->restorePlanName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]');
- $restore = new Restore();
- $restoreBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]', '[BACKUP]');
- $restore->setBackup($restoreBackup);
- $restoreId = 'restoreId-1374819220';
- $request = (new CreateRestoreRequest())
- ->setParent($formattedParent)
- ->setRestore($restore)
- ->setRestoreId($restoreId);
- $response = $gapicClient->createRestore($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/CreateRestore', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getRestore();
- $this->assertProtobufEquals($restore, $actualValue);
- $actualValue = $actualApiRequestObject->getRestoreId();
- $this->assertProtobufEquals($restoreId, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createRestoreTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createRestoreExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createRestoreTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->restorePlanName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]');
- $restore = new Restore();
- $restoreBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]', '[BACKUP]');
- $restore->setBackup($restoreBackup);
- $restoreId = 'restoreId-1374819220';
- $request = (new CreateRestoreRequest())
- ->setParent($formattedParent)
- ->setRestore($restore)
- ->setRestoreId($restoreId);
- $response = $gapicClient->createRestore($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createRestoreTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createRestorePlanTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createRestorePlanTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $backupPlan = 'backupPlan1119623046';
- $cluster = 'cluster872092154';
- $etag = 'etag3123477';
- $stateReason = 'stateReason282113458';
- $expectedResponse = new RestorePlan();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setBackupPlan($backupPlan);
- $expectedResponse->setCluster($cluster);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setStateReason($stateReason);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createRestorePlanTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $restorePlan = new RestorePlan();
- $restorePlanBackupPlan = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
- $restorePlan->setBackupPlan($restorePlanBackupPlan);
- $restorePlanCluster = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]');
- $restorePlan->setCluster($restorePlanCluster);
- $restorePlanRestoreConfig = new RestoreConfig();
- $restorePlan->setRestoreConfig($restorePlanRestoreConfig);
- $restorePlanId = 'restorePlanId126727488';
- $request = (new CreateRestorePlanRequest())
- ->setParent($formattedParent)
- ->setRestorePlan($restorePlan)
- ->setRestorePlanId($restorePlanId);
- $response = $gapicClient->createRestorePlan($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/CreateRestorePlan', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $actualValue = $actualApiRequestObject->getRestorePlan();
- $this->assertProtobufEquals($restorePlan, $actualValue);
- $actualValue = $actualApiRequestObject->getRestorePlanId();
- $this->assertProtobufEquals($restorePlanId, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createRestorePlanTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function createRestorePlanExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createRestorePlanTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $restorePlan = new RestorePlan();
- $restorePlanBackupPlan = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
- $restorePlan->setBackupPlan($restorePlanBackupPlan);
- $restorePlanCluster = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]');
- $restorePlan->setCluster($restorePlanCluster);
- $restorePlanRestoreConfig = new RestoreConfig();
- $restorePlan->setRestoreConfig($restorePlanRestoreConfig);
- $restorePlanId = 'restorePlanId126727488';
- $request = (new CreateRestorePlanRequest())
- ->setParent($formattedParent)
- ->setRestorePlan($restorePlan)
- ->setRestorePlanId($restorePlanId);
- $response = $gapicClient->createRestorePlan($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createRestorePlanTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteBackupTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteBackupTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteBackupTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]', '[BACKUP]');
- $request = (new DeleteBackupRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteBackup($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/DeleteBackup', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteBackupTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteBackupExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteBackupTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]', '[BACKUP]');
- $request = (new DeleteBackupRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteBackup($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteBackupTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteBackupPlanTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteBackupPlanTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteBackupPlanTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
- $request = (new DeleteBackupPlanRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteBackupPlan($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/DeleteBackupPlan', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteBackupPlanTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteBackupPlanExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteBackupPlanTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
- $request = (new DeleteBackupPlanRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteBackupPlan($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteBackupPlanTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteRestoreTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteRestoreTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteRestoreTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->restoreName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]', '[RESTORE]');
- $request = (new DeleteRestoreRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteRestore($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/DeleteRestore', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteRestoreTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteRestoreExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteRestoreTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->restoreName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]', '[RESTORE]');
- $request = (new DeleteRestoreRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteRestore($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteRestoreTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteRestorePlanTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteRestorePlanTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $expectedResponse = new GPBEmpty();
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/deleteRestorePlanTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedName = $gapicClient->restorePlanName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]');
- $request = (new DeleteRestorePlanRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteRestorePlan($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/DeleteRestorePlan', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteRestorePlanTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function deleteRestorePlanExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/deleteRestorePlanTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->restorePlanName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]');
- $request = (new DeleteRestorePlanRequest())
- ->setName($formattedName);
- $response = $gapicClient->deleteRestorePlan($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/deleteRestorePlanTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function getBackupTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $manual = true;
- $deleteLockDays = 1638724265;
- $retainDays = 1380805807;
- $allNamespaces = true;
- $containsVolumeData = false;
- $containsSecrets = false;
- $stateReason = 'stateReason282113458';
- $resourceCount = 287552926;
- $volumeCount = 1362665558;
- $sizeBytes = 1796325715;
- $etag = 'etag3123477';
- $description = 'description-1724546052';
- $podCount = 977657493;
- $configBackupSizeBytes = 606785139;
- $permissiveMode = false;
- $expectedResponse = new Backup();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setManual($manual);
- $expectedResponse->setDeleteLockDays($deleteLockDays);
- $expectedResponse->setRetainDays($retainDays);
- $expectedResponse->setAllNamespaces($allNamespaces);
- $expectedResponse->setContainsVolumeData($containsVolumeData);
- $expectedResponse->setContainsSecrets($containsSecrets);
- $expectedResponse->setStateReason($stateReason);
- $expectedResponse->setResourceCount($resourceCount);
- $expectedResponse->setVolumeCount($volumeCount);
- $expectedResponse->setSizeBytes($sizeBytes);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setDescription($description);
- $expectedResponse->setPodCount($podCount);
- $expectedResponse->setConfigBackupSizeBytes($configBackupSizeBytes);
- $expectedResponse->setPermissiveMode($permissiveMode);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]', '[BACKUP]');
- $request = (new GetBackupRequest())
- ->setName($formattedName);
- $response = $gapicClient->getBackup($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/GetBackup', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getBackupExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]', '[BACKUP]');
- $request = (new GetBackupRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getBackup($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getBackupIndexDownloadUrlTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $signedUrl = 'signedUrl-979536436';
- $expectedResponse = new GetBackupIndexDownloadUrlResponse();
- $expectedResponse->setSignedUrl($signedUrl);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]', '[BACKUP]');
- $request = (new GetBackupIndexDownloadUrlRequest())
- ->setBackup($formattedBackup);
- $response = $gapicClient->getBackupIndexDownloadUrl($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/GetBackupIndexDownloadUrl', $actualFuncCall);
- $actualValue = $actualRequestObject->getBackup();
- $this->assertProtobufEquals($formattedBackup, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getBackupIndexDownloadUrlExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]', '[BACKUP]');
- $request = (new GetBackupIndexDownloadUrlRequest())
- ->setBackup($formattedBackup);
- try {
- $gapicClient->getBackupIndexDownloadUrl($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getBackupPlanTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $cluster = 'cluster872092154';
- $etag = 'etag3123477';
- $deactivated = true;
- $protectedPodCount = 1494678716;
- $stateReason = 'stateReason282113458';
- $rpoRiskLevel = 1939768030;
- $rpoRiskReason = 'rpoRiskReason167896166';
- $expectedResponse = new BackupPlan();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setCluster($cluster);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setDeactivated($deactivated);
- $expectedResponse->setProtectedPodCount($protectedPodCount);
- $expectedResponse->setStateReason($stateReason);
- $expectedResponse->setRpoRiskLevel($rpoRiskLevel);
- $expectedResponse->setRpoRiskReason($rpoRiskReason);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
- $request = (new GetBackupPlanRequest())
- ->setName($formattedName);
- $response = $gapicClient->getBackupPlan($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/GetBackupPlan', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getBackupPlanExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
- $request = (new GetBackupPlanRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getBackupPlan($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getRestoreTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $backup = 'backup-1396673086';
- $cluster = 'cluster872092154';
- $stateReason = 'stateReason282113458';
- $resourcesRestoredCount = 882879616;
- $resourcesExcludedCount = 338652236;
- $resourcesFailedCount = 217904743;
- $volumesRestoredCount = 1005533068;
- $etag = 'etag3123477';
- $expectedResponse = new Restore();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setBackup($backup);
- $expectedResponse->setCluster($cluster);
- $expectedResponse->setStateReason($stateReason);
- $expectedResponse->setResourcesRestoredCount($resourcesRestoredCount);
- $expectedResponse->setResourcesExcludedCount($resourcesExcludedCount);
- $expectedResponse->setResourcesFailedCount($resourcesFailedCount);
- $expectedResponse->setVolumesRestoredCount($volumesRestoredCount);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->restoreName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]', '[RESTORE]');
- $request = (new GetRestoreRequest())
- ->setName($formattedName);
- $response = $gapicClient->getRestore($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/GetRestore', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getRestoreExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->restoreName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]', '[RESTORE]');
- $request = (new GetRestoreRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getRestore($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getRestorePlanTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $backupPlan = 'backupPlan1119623046';
- $cluster = 'cluster872092154';
- $etag = 'etag3123477';
- $stateReason = 'stateReason282113458';
- $expectedResponse = new RestorePlan();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setBackupPlan($backupPlan);
- $expectedResponse->setCluster($cluster);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setStateReason($stateReason);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->restorePlanName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]');
- $request = (new GetRestorePlanRequest())
- ->setName($formattedName);
- $response = $gapicClient->getRestorePlan($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/GetRestorePlan', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getRestorePlanExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->restorePlanName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]');
- $request = (new GetRestorePlanRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getRestorePlan($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getVolumeBackupTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $volumeBackupHandle = 'volumeBackupHandle-2105959712';
- $storageBytes = 2035244455;
- $diskSizeBytes = 275393905;
- $stateMessage = 'stateMessage29641305';
- $etag = 'etag3123477';
- $expectedResponse = new VolumeBackup();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setVolumeBackupHandle($volumeBackupHandle);
- $expectedResponse->setStorageBytes($storageBytes);
- $expectedResponse->setDiskSizeBytes($diskSizeBytes);
- $expectedResponse->setStateMessage($stateMessage);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->volumeBackupName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]', '[BACKUP]', '[VOLUME_BACKUP]');
- $request = (new GetVolumeBackupRequest())
- ->setName($formattedName);
- $response = $gapicClient->getVolumeBackup($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/GetVolumeBackup', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getVolumeBackupExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->volumeBackupName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]', '[BACKUP]', '[VOLUME_BACKUP]');
- $request = (new GetVolumeBackupRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getVolumeBackup($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getVolumeRestoreTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $uid = 'uid115792';
- $volumeBackup = 'volumeBackup664943239';
- $volumeHandle = 'volumeHandle837038829';
- $stateMessage = 'stateMessage29641305';
- $etag = 'etag3123477';
- $expectedResponse = new VolumeRestore();
- $expectedResponse->setName($name2);
- $expectedResponse->setUid($uid);
- $expectedResponse->setVolumeBackup($volumeBackup);
- $expectedResponse->setVolumeHandle($volumeHandle);
- $expectedResponse->setStateMessage($stateMessage);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedName = $gapicClient->volumeRestoreName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]', '[RESTORE]', '[VOLUME_RESTORE]');
- $request = (new GetVolumeRestoreRequest())
- ->setName($formattedName);
- $response = $gapicClient->getVolumeRestore($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/GetVolumeRestore', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($formattedName, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getVolumeRestoreExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedName = $gapicClient->volumeRestoreName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]', '[RESTORE]', '[VOLUME_RESTORE]');
- $request = (new GetVolumeRestoreRequest())
- ->setName($formattedName);
- try {
- $gapicClient->getVolumeRestore($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listBackupPlansTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $backupPlansElement = new BackupPlan();
- $backupPlans = [
- $backupPlansElement,
- ];
- $expectedResponse = new ListBackupPlansResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setBackupPlans($backupPlans);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListBackupPlansRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listBackupPlans($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getBackupPlans()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/ListBackupPlans', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listBackupPlansExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListBackupPlansRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listBackupPlans($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listBackupsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $backupsElement = new Backup();
- $backups = [
- $backupsElement,
- ];
- $expectedResponse = new ListBackupsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setBackups($backups);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
- $request = (new ListBackupsRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listBackups($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getBackups()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/ListBackups', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listBackupsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
- $request = (new ListBackupsRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listBackups($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listRestorePlansTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $restorePlansElement = new RestorePlan();
- $restorePlans = [
- $restorePlansElement,
- ];
- $expectedResponse = new ListRestorePlansResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setRestorePlans($restorePlans);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListRestorePlansRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listRestorePlans($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getRestorePlans()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/ListRestorePlans', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listRestorePlansExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]');
- $request = (new ListRestorePlansRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listRestorePlans($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listRestoresTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $restoresElement = new Restore();
- $restores = [
- $restoresElement,
- ];
- $expectedResponse = new ListRestoresResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setRestores($restores);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->restorePlanName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]');
- $request = (new ListRestoresRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listRestores($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getRestores()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/ListRestores', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listRestoresExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->restorePlanName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]');
- $request = (new ListRestoresRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listRestores($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listVolumeBackupsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $volumeBackupsElement = new VolumeBackup();
- $volumeBackups = [
- $volumeBackupsElement,
- ];
- $expectedResponse = new ListVolumeBackupsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setVolumeBackups($volumeBackups);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]', '[BACKUP]');
- $request = (new ListVolumeBackupsRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listVolumeBackups($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getVolumeBackups()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/ListVolumeBackups', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listVolumeBackupsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]', '[BACKUP]');
- $request = (new ListVolumeBackupsRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listVolumeBackups($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listVolumeRestoresTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $volumeRestoresElement = new VolumeRestore();
- $volumeRestores = [
- $volumeRestoresElement,
- ];
- $expectedResponse = new ListVolumeRestoresResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setVolumeRestores($volumeRestores);
- $transport->addResponse($expectedResponse);
- // Mock request
- $formattedParent = $gapicClient->restoreName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]', '[RESTORE]');
- $request = (new ListVolumeRestoresRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->listVolumeRestores($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getVolumeRestores()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/ListVolumeRestores', $actualFuncCall);
- $actualValue = $actualRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listVolumeRestoresExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $formattedParent = $gapicClient->restoreName('[PROJECT]', '[LOCATION]', '[RESTORE_PLAN]', '[RESTORE]');
- $request = (new ListVolumeRestoresRequest())
- ->setParent($formattedParent);
- try {
- $gapicClient->listVolumeRestores($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function updateBackupTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateBackupTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $manual = true;
- $deleteLockDays = 1638724265;
- $retainDays = 1380805807;
- $allNamespaces = true;
- $containsVolumeData = false;
- $containsSecrets = false;
- $stateReason = 'stateReason282113458';
- $resourceCount = 287552926;
- $volumeCount = 1362665558;
- $sizeBytes = 1796325715;
- $etag = 'etag3123477';
- $description = 'description-1724546052';
- $podCount = 977657493;
- $configBackupSizeBytes = 606785139;
- $permissiveMode = false;
- $expectedResponse = new Backup();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setManual($manual);
- $expectedResponse->setDeleteLockDays($deleteLockDays);
- $expectedResponse->setRetainDays($retainDays);
- $expectedResponse->setAllNamespaces($allNamespaces);
- $expectedResponse->setContainsVolumeData($containsVolumeData);
- $expectedResponse->setContainsSecrets($containsSecrets);
- $expectedResponse->setStateReason($stateReason);
- $expectedResponse->setResourceCount($resourceCount);
- $expectedResponse->setVolumeCount($volumeCount);
- $expectedResponse->setSizeBytes($sizeBytes);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setDescription($description);
- $expectedResponse->setPodCount($podCount);
- $expectedResponse->setConfigBackupSizeBytes($configBackupSizeBytes);
- $expectedResponse->setPermissiveMode($permissiveMode);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateBackupTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $backup = new Backup();
- $request = (new UpdateBackupRequest())
- ->setBackup($backup);
- $response = $gapicClient->updateBackup($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/UpdateBackup', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getBackup();
- $this->assertProtobufEquals($backup, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateBackupTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateBackupExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateBackupTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $backup = new Backup();
- $request = (new UpdateBackupRequest())
- ->setBackup($backup);
- $response = $gapicClient->updateBackup($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateBackupTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateBackupPlanTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateBackupPlanTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $cluster = 'cluster872092154';
- $etag = 'etag3123477';
- $deactivated = true;
- $protectedPodCount = 1494678716;
- $stateReason = 'stateReason282113458';
- $rpoRiskLevel = 1939768030;
- $rpoRiskReason = 'rpoRiskReason167896166';
- $expectedResponse = new BackupPlan();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setCluster($cluster);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setDeactivated($deactivated);
- $expectedResponse->setProtectedPodCount($protectedPodCount);
- $expectedResponse->setStateReason($stateReason);
- $expectedResponse->setRpoRiskLevel($rpoRiskLevel);
- $expectedResponse->setRpoRiskReason($rpoRiskReason);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateBackupPlanTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $backupPlan = new BackupPlan();
- $backupPlanCluster = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]');
- $backupPlan->setCluster($backupPlanCluster);
- $request = (new UpdateBackupPlanRequest())
- ->setBackupPlan($backupPlan);
- $response = $gapicClient->updateBackupPlan($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/UpdateBackupPlan', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getBackupPlan();
- $this->assertProtobufEquals($backupPlan, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateBackupPlanTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateBackupPlanExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateBackupPlanTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $backupPlan = new BackupPlan();
- $backupPlanCluster = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]');
- $backupPlan->setCluster($backupPlanCluster);
- $request = (new UpdateBackupPlanRequest())
- ->setBackupPlan($backupPlan);
- $response = $gapicClient->updateBackupPlan($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateBackupPlanTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateRestoreTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateRestoreTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $backup = 'backup-1396673086';
- $cluster = 'cluster872092154';
- $stateReason = 'stateReason282113458';
- $resourcesRestoredCount = 882879616;
- $resourcesExcludedCount = 338652236;
- $resourcesFailedCount = 217904743;
- $volumesRestoredCount = 1005533068;
- $etag = 'etag3123477';
- $expectedResponse = new Restore();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setBackup($backup);
- $expectedResponse->setCluster($cluster);
- $expectedResponse->setStateReason($stateReason);
- $expectedResponse->setResourcesRestoredCount($resourcesRestoredCount);
- $expectedResponse->setResourcesExcludedCount($resourcesExcludedCount);
- $expectedResponse->setResourcesFailedCount($resourcesFailedCount);
- $expectedResponse->setVolumesRestoredCount($volumesRestoredCount);
- $expectedResponse->setEtag($etag);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateRestoreTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $restore = new Restore();
- $restoreBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]', '[BACKUP]');
- $restore->setBackup($restoreBackup);
- $request = (new UpdateRestoreRequest())
- ->setRestore($restore);
- $response = $gapicClient->updateRestore($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/UpdateRestore', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getRestore();
- $this->assertProtobufEquals($restore, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateRestoreTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateRestoreExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateRestoreTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $restore = new Restore();
- $restoreBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]', '[BACKUP]');
- $restore->setBackup($restoreBackup);
- $request = (new UpdateRestoreRequest())
- ->setRestore($restore);
- $response = $gapicClient->updateRestore($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateRestoreTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateRestorePlanTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateRestorePlanTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $description = 'description-1724546052';
- $backupPlan = 'backupPlan1119623046';
- $cluster = 'cluster872092154';
- $etag = 'etag3123477';
- $stateReason = 'stateReason282113458';
- $expectedResponse = new RestorePlan();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setDescription($description);
- $expectedResponse->setBackupPlan($backupPlan);
- $expectedResponse->setCluster($cluster);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setStateReason($stateReason);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/updateRestorePlanTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $restorePlan = new RestorePlan();
- $restorePlanBackupPlan = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
- $restorePlan->setBackupPlan($restorePlanBackupPlan);
- $restorePlanCluster = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]');
- $restorePlan->setCluster($restorePlanCluster);
- $restorePlanRestoreConfig = new RestoreConfig();
- $restorePlan->setRestoreConfig($restorePlanRestoreConfig);
- $request = (new UpdateRestorePlanRequest())
- ->setRestorePlan($restorePlan);
- $response = $gapicClient->updateRestorePlan($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/UpdateRestorePlan', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getRestorePlan();
- $this->assertProtobufEquals($restorePlan, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateRestorePlanTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function updateRestorePlanExceptionTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/updateRestorePlanTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $operationsTransport->addResponse(null, $status);
- // Mock request
- $restorePlan = new RestorePlan();
- $restorePlanBackupPlan = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
- $restorePlan->setBackupPlan($restorePlanBackupPlan);
- $restorePlanCluster = $gapicClient->clusterName('[PROJECT]', '[LOCATION]', '[CLUSTER]');
- $restorePlan->setCluster($restorePlanCluster);
- $restorePlanRestoreConfig = new RestoreConfig();
- $restorePlan->setRestoreConfig($restorePlanRestoreConfig);
- $request = (new UpdateRestorePlanRequest())
- ->setRestorePlan($restorePlan);
- $response = $gapicClient->updateRestorePlan($request);
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/updateRestorePlanTest');
- try {
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- // If the pollUntilComplete() 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stubs are exhausted
- $transport->popReceivedCalls();
- $operationsTransport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-
- /** @test */
- public function getLocationTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $name2 = 'name2-1052831874';
- $locationId = 'locationId552319461';
- $displayName = 'displayName1615086568';
- $expectedResponse = new Location();
- $expectedResponse->setName($name2);
- $expectedResponse->setLocationId($locationId);
- $expectedResponse->setDisplayName($displayName);
- $transport->addResponse($expectedResponse);
- $request = new GetLocationRequest();
- $response = $gapicClient->getLocation($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getLocationExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- $request = new GetLocationRequest();
- try {
- $gapicClient->getLocation($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listLocationsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $nextPageToken = '';
- $locationsElement = new Location();
- $locations = [
- $locationsElement,
- ];
- $expectedResponse = new ListLocationsResponse();
- $expectedResponse->setNextPageToken($nextPageToken);
- $expectedResponse->setLocations($locations);
- $transport->addResponse($expectedResponse);
- $request = new ListLocationsRequest();
- $response = $gapicClient->listLocations($request);
- $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject());
- $resources = iterator_to_array($response->iterateAllElements());
- $this->assertSame(1, count($resources));
- $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function listLocationsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- $request = new ListLocationsRequest();
- try {
- $gapicClient->listLocations($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getIamPolicyTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $version = 351608024;
- $etag = '21';
- $expectedResponse = new Policy();
- $expectedResponse->setVersion($version);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $resource = 'resource-341064690';
- $request = (new GetIamPolicyRequest())
- ->setResource($resource);
- $response = $gapicClient->getIamPolicy($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.iam.v1.IAMPolicy/GetIamPolicy', $actualFuncCall);
- $actualValue = $actualRequestObject->getResource();
- $this->assertProtobufEquals($resource, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function getIamPolicyExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $resource = 'resource-341064690';
- $request = (new GetIamPolicyRequest())
- ->setResource($resource);
- try {
- $gapicClient->getIamPolicy($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function setIamPolicyTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $version = 351608024;
- $etag = '21';
- $expectedResponse = new Policy();
- $expectedResponse->setVersion($version);
- $expectedResponse->setEtag($etag);
- $transport->addResponse($expectedResponse);
- // Mock request
- $resource = 'resource-341064690';
- $policy = new Policy();
- $request = (new SetIamPolicyRequest())
- ->setResource($resource)
- ->setPolicy($policy);
- $response = $gapicClient->setIamPolicy($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.iam.v1.IAMPolicy/SetIamPolicy', $actualFuncCall);
- $actualValue = $actualRequestObject->getResource();
- $this->assertProtobufEquals($resource, $actualValue);
- $actualValue = $actualRequestObject->getPolicy();
- $this->assertProtobufEquals($policy, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function setIamPolicyExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $resource = 'resource-341064690';
- $policy = new Policy();
- $request = (new SetIamPolicyRequest())
- ->setResource($resource)
- ->setPolicy($policy);
- try {
- $gapicClient->setIamPolicy($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function testIamPermissionsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $expectedResponse = new TestIamPermissionsResponse();
- $transport->addResponse($expectedResponse);
- // Mock request
- $resource = 'resource-341064690';
- $permissions = [];
- $request = (new TestIamPermissionsRequest())
- ->setResource($resource)
- ->setPermissions($permissions);
- $response = $gapicClient->testIamPermissions($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.iam.v1.IAMPolicy/TestIamPermissions', $actualFuncCall);
- $actualValue = $actualRequestObject->getResource();
- $this->assertProtobufEquals($resource, $actualValue);
- $actualValue = $actualRequestObject->getPermissions();
- $this->assertProtobufEquals($permissions, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function testIamPermissionsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $resource = 'resource-341064690';
- $permissions = [];
- $request = (new TestIamPermissionsRequest())
- ->setResource($resource)
- ->setPermissions($permissions);
- try {
- $gapicClient->testIamPermissions($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function createBackupAsyncTest()
- {
- $operationsTransport = $this->createTransport();
- $operationsClient = new OperationsClient([
- 'apiEndpoint' => '',
- 'transport' => $operationsTransport,
- 'credentials' => $this->createCredentials(),
- ]);
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- 'operationsClient' => $operationsClient,
- ]);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- // Mock response
- $incompleteOperation = new Operation();
- $incompleteOperation->setName('operations/createBackupTest');
- $incompleteOperation->setDone(false);
- $transport->addResponse($incompleteOperation);
- $name = 'name3373707';
- $uid = 'uid115792';
- $manual = true;
- $deleteLockDays = 1638724265;
- $retainDays = 1380805807;
- $allNamespaces = true;
- $containsVolumeData = false;
- $containsSecrets = false;
- $stateReason = 'stateReason282113458';
- $resourceCount = 287552926;
- $volumeCount = 1362665558;
- $sizeBytes = 1796325715;
- $etag = 'etag3123477';
- $description = 'description-1724546052';
- $podCount = 977657493;
- $configBackupSizeBytes = 606785139;
- $permissiveMode = false;
- $expectedResponse = new Backup();
- $expectedResponse->setName($name);
- $expectedResponse->setUid($uid);
- $expectedResponse->setManual($manual);
- $expectedResponse->setDeleteLockDays($deleteLockDays);
- $expectedResponse->setRetainDays($retainDays);
- $expectedResponse->setAllNamespaces($allNamespaces);
- $expectedResponse->setContainsVolumeData($containsVolumeData);
- $expectedResponse->setContainsSecrets($containsSecrets);
- $expectedResponse->setStateReason($stateReason);
- $expectedResponse->setResourceCount($resourceCount);
- $expectedResponse->setVolumeCount($volumeCount);
- $expectedResponse->setSizeBytes($sizeBytes);
- $expectedResponse->setEtag($etag);
- $expectedResponse->setDescription($description);
- $expectedResponse->setPodCount($podCount);
- $expectedResponse->setConfigBackupSizeBytes($configBackupSizeBytes);
- $expectedResponse->setPermissiveMode($permissiveMode);
- $anyResponse = new Any();
- $anyResponse->setValue($expectedResponse->serializeToString());
- $completeOperation = new Operation();
- $completeOperation->setName('operations/createBackupTest');
- $completeOperation->setDone(true);
- $completeOperation->setResponse($anyResponse);
- $operationsTransport->addResponse($completeOperation);
- // Mock request
- $formattedParent = $gapicClient->backupPlanName('[PROJECT]', '[LOCATION]', '[BACKUP_PLAN]');
- $request = (new CreateBackupRequest())
- ->setParent($formattedParent);
- $response = $gapicClient->createBackupAsync($request)->wait();
- $this->assertFalse($response->isDone());
- $this->assertNull($response->getResult());
- $apiRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($apiRequests));
- $operationsRequestsEmpty = $operationsTransport->popReceivedCalls();
- $this->assertSame(0, count($operationsRequestsEmpty));
- $actualApiFuncCall = $apiRequests[0]->getFuncCall();
- $actualApiRequestObject = $apiRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkebackup.v1.BackupForGKE/CreateBackup', $actualApiFuncCall);
- $actualValue = $actualApiRequestObject->getParent();
- $this->assertProtobufEquals($formattedParent, $actualValue);
- $expectedOperationsRequestObject = new GetOperationRequest();
- $expectedOperationsRequestObject->setName('operations/createBackupTest');
- $response->pollUntilComplete([
- 'initialPollDelayMillis' => 1,
- ]);
- $this->assertTrue($response->isDone());
- $this->assertEquals($expectedResponse, $response->getResult());
- $apiRequestsEmpty = $transport->popReceivedCalls();
- $this->assertSame(0, count($apiRequestsEmpty));
- $operationsRequests = $operationsTransport->popReceivedCalls();
- $this->assertSame(1, count($operationsRequests));
- $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall();
- $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject();
- $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall);
- $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject);
- $this->assertTrue($transport->isExhausted());
- $this->assertTrue($operationsTransport->isExhausted());
- }
-}
diff --git a/owl-bot-staging/GkeConnectGateway/v1/proto/src/GPBMetadata/Google/Cloud/Gkeconnect/Gateway/V1/Control.php b/owl-bot-staging/GkeConnectGateway/v1/proto/src/GPBMetadata/Google/Cloud/Gkeconnect/Gateway/V1/Control.php
deleted file mode 100644
index eef8ed0cbee0..000000000000
Binary files a/owl-bot-staging/GkeConnectGateway/v1/proto/src/GPBMetadata/Google/Cloud/Gkeconnect/Gateway/V1/Control.php and /dev/null differ
diff --git a/owl-bot-staging/GkeConnectGateway/v1/proto/src/Google/Cloud/GkeConnect/Gateway/V1/GenerateCredentialsRequest.php b/owl-bot-staging/GkeConnectGateway/v1/proto/src/Google/Cloud/GkeConnect/Gateway/V1/GenerateCredentialsRequest.php
deleted file mode 100644
index ff63067fdfdb..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1/proto/src/Google/Cloud/GkeConnect/Gateway/V1/GenerateCredentialsRequest.php
+++ /dev/null
@@ -1,235 +0,0 @@
-google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest
- */
-class GenerateCredentialsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The Fleet membership resource.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $name = '';
- /**
- * Optional. Whether to force the use of Connect Agent-based transport.
- * This will return a configuration that uses Connect Agent as the underlying
- * transport mechanism for cluster types that would otherwise have used a
- * different transport. Requires that Connect Agent be installed on the
- * cluster. Setting this field to false is equivalent to not setting it.
- *
- * Generated from protobuf field bool force_use_agent = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $force_use_agent = false;
- /**
- * Optional. The Connect Gateway version to be used in the resulting
- * configuration.
- * Leave this field blank to let the server choose the version (recommended).
- *
- * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $version = '';
- /**
- * Optional. The namespace to use in the kubeconfig context.
- * If this field is specified, the server will set the `namespace` field in
- * kubeconfig context. If not specified, the `namespace` field is omitted.
- *
- * Generated from protobuf field string kubernetes_namespace = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $kubernetes_namespace = '';
- /**
- * Optional. The operating system where the kubeconfig will be used.
- *
- * Generated from protobuf field .google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest.OperatingSystem operating_system = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $operating_system = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The Fleet membership resource.
- * @type bool $force_use_agent
- * Optional. Whether to force the use of Connect Agent-based transport.
- * This will return a configuration that uses Connect Agent as the underlying
- * transport mechanism for cluster types that would otherwise have used a
- * different transport. Requires that Connect Agent be installed on the
- * cluster. Setting this field to false is equivalent to not setting it.
- * @type string $version
- * Optional. The Connect Gateway version to be used in the resulting
- * configuration.
- * Leave this field blank to let the server choose the version (recommended).
- * @type string $kubernetes_namespace
- * Optional. The namespace to use in the kubeconfig context.
- * If this field is specified, the server will set the `namespace` field in
- * kubeconfig context. If not specified, the `namespace` field is omitted.
- * @type int $operating_system
- * Optional. The operating system where the kubeconfig will be used.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkeconnect\Gateway\V1\Control::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The Fleet membership resource.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The Fleet membership resource.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. Whether to force the use of Connect Agent-based transport.
- * This will return a configuration that uses Connect Agent as the underlying
- * transport mechanism for cluster types that would otherwise have used a
- * different transport. Requires that Connect Agent be installed on the
- * cluster. Setting this field to false is equivalent to not setting it.
- *
- * Generated from protobuf field bool force_use_agent = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getForceUseAgent()
- {
- return $this->force_use_agent;
- }
-
- /**
- * Optional. Whether to force the use of Connect Agent-based transport.
- * This will return a configuration that uses Connect Agent as the underlying
- * transport mechanism for cluster types that would otherwise have used a
- * different transport. Requires that Connect Agent be installed on the
- * cluster. Setting this field to false is equivalent to not setting it.
- *
- * Generated from protobuf field bool force_use_agent = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setForceUseAgent($var)
- {
- GPBUtil::checkBool($var);
- $this->force_use_agent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The Connect Gateway version to be used in the resulting
- * configuration.
- * Leave this field blank to let the server choose the version (recommended).
- *
- * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * Optional. The Connect Gateway version to be used in the resulting
- * configuration.
- * Leave this field blank to let the server choose the version (recommended).
- *
- * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->version = $var;
-
- return $this;
- }
-
- /**
- * Optional. The namespace to use in the kubeconfig context.
- * If this field is specified, the server will set the `namespace` field in
- * kubeconfig context. If not specified, the `namespace` field is omitted.
- *
- * Generated from protobuf field string kubernetes_namespace = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getKubernetesNamespace()
- {
- return $this->kubernetes_namespace;
- }
-
- /**
- * Optional. The namespace to use in the kubeconfig context.
- * If this field is specified, the server will set the `namespace` field in
- * kubeconfig context. If not specified, the `namespace` field is omitted.
- *
- * Generated from protobuf field string kubernetes_namespace = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setKubernetesNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->kubernetes_namespace = $var;
-
- return $this;
- }
-
- /**
- * Optional. The operating system where the kubeconfig will be used.
- *
- * Generated from protobuf field .google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest.OperatingSystem operating_system = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getOperatingSystem()
- {
- return $this->operating_system;
- }
-
- /**
- * Optional. The operating system where the kubeconfig will be used.
- *
- * Generated from protobuf field .google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest.OperatingSystem operating_system = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setOperatingSystem($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeConnect\Gateway\V1\GenerateCredentialsRequest\OperatingSystem::class);
- $this->operating_system = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeConnectGateway/v1/proto/src/Google/Cloud/GkeConnect/Gateway/V1/GenerateCredentialsRequest/OperatingSystem.php b/owl-bot-staging/GkeConnectGateway/v1/proto/src/Google/Cloud/GkeConnect/Gateway/V1/GenerateCredentialsRequest/OperatingSystem.php
deleted file mode 100644
index 3cd4fd313777..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1/proto/src/Google/Cloud/GkeConnect/Gateway/V1/GenerateCredentialsRequest/OperatingSystem.php
+++ /dev/null
@@ -1,59 +0,0 @@
-google.cloud.gkeconnect.gateway.v1.GenerateCredentialsRequest.OperatingSystem
- */
-class OperatingSystem
-{
- /**
- * Generates a kubeconfig that works for all operating systems not defined
- * below.
- *
- * Generated from protobuf enum OPERATING_SYSTEM_UNSPECIFIED = 0;
- */
- const OPERATING_SYSTEM_UNSPECIFIED = 0;
- /**
- * Generates a kubeconfig that is specifically designed to work with
- * Windows.
- *
- * Generated from protobuf enum OPERATING_SYSTEM_WINDOWS = 1;
- */
- const OPERATING_SYSTEM_WINDOWS = 1;
-
- private static $valueToName = [
- self::OPERATING_SYSTEM_UNSPECIFIED => 'OPERATING_SYSTEM_UNSPECIFIED',
- self::OPERATING_SYSTEM_WINDOWS => 'OPERATING_SYSTEM_WINDOWS',
- ];
-
- 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(OperatingSystem::class, \Google\Cloud\GkeConnect\Gateway\V1\GenerateCredentialsRequest_OperatingSystem::class);
-
diff --git a/owl-bot-staging/GkeConnectGateway/v1/proto/src/Google/Cloud/GkeConnect/Gateway/V1/GenerateCredentialsResponse.php b/owl-bot-staging/GkeConnectGateway/v1/proto/src/Google/Cloud/GkeConnect/Gateway/V1/GenerateCredentialsResponse.php
deleted file mode 100644
index b828cc93beae..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1/proto/src/Google/Cloud/GkeConnect/Gateway/V1/GenerateCredentialsResponse.php
+++ /dev/null
@@ -1,105 +0,0 @@
-google.cloud.gkeconnect.gateway.v1.GenerateCredentialsResponse
- */
-class GenerateCredentialsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * A full YAML kubeconfig in serialized format.
- *
- * Generated from protobuf field bytes kubeconfig = 1;
- */
- protected $kubeconfig = '';
- /**
- * The generated URI of the cluster as accessed through the Connect Gateway
- * API.
- *
- * Generated from protobuf field string endpoint = 2;
- */
- protected $endpoint = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $kubeconfig
- * A full YAML kubeconfig in serialized format.
- * @type string $endpoint
- * The generated URI of the cluster as accessed through the Connect Gateway
- * API.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkeconnect\Gateway\V1\Control::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A full YAML kubeconfig in serialized format.
- *
- * Generated from protobuf field bytes kubeconfig = 1;
- * @return string
- */
- public function getKubeconfig()
- {
- return $this->kubeconfig;
- }
-
- /**
- * A full YAML kubeconfig in serialized format.
- *
- * Generated from protobuf field bytes kubeconfig = 1;
- * @param string $var
- * @return $this
- */
- public function setKubeconfig($var)
- {
- GPBUtil::checkString($var, False);
- $this->kubeconfig = $var;
-
- return $this;
- }
-
- /**
- * The generated URI of the cluster as accessed through the Connect Gateway
- * API.
- *
- * Generated from protobuf field string endpoint = 2;
- * @return string
- */
- public function getEndpoint()
- {
- return $this->endpoint;
- }
-
- /**
- * The generated URI of the cluster as accessed through the Connect Gateway
- * API.
- *
- * Generated from protobuf field string endpoint = 2;
- * @param string $var
- * @return $this
- */
- public function setEndpoint($var)
- {
- GPBUtil::checkString($var, True);
- $this->endpoint = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeConnectGateway/v1/samples/V1/GatewayControlClient/generate_credentials.php b/owl-bot-staging/GkeConnectGateway/v1/samples/V1/GatewayControlClient/generate_credentials.php
deleted file mode 100644
index 12e5deebb089..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1/samples/V1/GatewayControlClient/generate_credentials.php
+++ /dev/null
@@ -1,71 +0,0 @@
-setName($name);
-
- // Call the API and handle any network failures.
- try {
- /** @var GenerateCredentialsResponse $response */
- $response = $gatewayControlClient->generateCredentials($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $name = '[NAME]';
-
- generate_credentials_sample($name);
-}
-// [END connectgateway_v1_generated_GatewayControl_GenerateCredentials_sync]
diff --git a/owl-bot-staging/GkeConnectGateway/v1/src/V1/Client/GatewayControlClient.php b/owl-bot-staging/GkeConnectGateway/v1/src/V1/Client/GatewayControlClient.php
deleted file mode 100644
index 6ac0651528f7..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1/src/V1/Client/GatewayControlClient.php
+++ /dev/null
@@ -1,205 +0,0 @@
- generateCredentialsAsync(GenerateCredentialsRequest $request, array $optionalArgs = [])
- */
-final class GatewayControlClient
-{
- use GapicClientTrait;
-
- /** The name of the service. */
- private const SERVICE_NAME = 'google.cloud.gkeconnect.gateway.v1.GatewayControl';
-
- /**
- * The default address of the service.
- *
- * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
- */
- private const SERVICE_ADDRESS = 'connectgateway.googleapis.com';
-
- /** The address template of the service. */
- private const SERVICE_ADDRESS_TEMPLATE = 'connectgateway.UNIVERSE_DOMAIN';
-
- /** The default port of the service. */
- private const DEFAULT_SERVICE_PORT = 443;
-
- /** The name of the code generator, to be included in the agent header. */
- private const CODEGEN_NAME = 'gapic';
-
- /** The default scopes required by the service. */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- ];
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/gateway_control_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/gateway_control_descriptor_config.php',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- 'useJwtAccessWithScope' => false,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/gateway_control_rest_client_config.php',
- ],
- ],
- ];
- }
-
- /** Implements GapicClientTrait::defaultTransport. */
- private static function defaultTransport()
- {
- return 'rest';
- }
-
- /** Implements ClientOptionsTrait::supportedTransports. */
- private static function supportedTransports()
- {
- return [
- 'rest',
- ];
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'connectgateway.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. At the moment, supports only
- * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * @type false|LoggerInterface $logger
- * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
- * 'GOOGLE_SDK_PHP_LOGGING' environment flag
- * }
- *
- * @throws ValidationException
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- }
-
- /** Handles execution of the async variants for each documented method. */
- public function __call($method, $args)
- {
- if (substr($method, -5) !== 'Async') {
- trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR);
- }
-
- array_unshift($args, substr($method, 0, -5));
- return call_user_func_array([$this, 'startAsyncCall'], $args);
- }
-
- /**
- * GenerateCredentials provides connection information that allows a user to
- * access the specified membership using Connect Gateway.
- *
- * The async variant is {@see GatewayControlClient::generateCredentialsAsync()} .
- *
- * @example samples/V1/GatewayControlClient/generate_credentials.php
- *
- * @param GenerateCredentialsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 GenerateCredentialsResponse
- *
- * @throws ApiException Thrown if the API call fails.
- */
- public function generateCredentials(GenerateCredentialsRequest $request, array $callOptions = []): GenerateCredentialsResponse
- {
- return $this->startApiCall('GenerateCredentials', $request, $callOptions)->wait();
- }
-}
diff --git a/owl-bot-staging/GkeConnectGateway/v1/src/V1/gapic_metadata.json b/owl-bot-staging/GkeConnectGateway/v1/src/V1/gapic_metadata.json
deleted file mode 100644
index 20c8ae43a70f..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1/src/V1/gapic_metadata.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "schema": "1.0",
- "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods",
- "language": "php",
- "protoPackage": "google.cloud.gkeconnect.gateway.v1",
- "libraryPackage": "Google\\Cloud\\GkeConnect\\Gateway\\V1",
- "services": {
- "GatewayControl": {
- "clients": {
- "grpc": {
- "libraryClient": "GatewayControlGapicClient",
- "rpcs": {
- "GenerateCredentials": {
- "methods": [
- "generateCredentials"
- ]
- }
- }
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/owl-bot-staging/GkeConnectGateway/v1/src/V1/resources/gateway_control_client_config.json b/owl-bot-staging/GkeConnectGateway/v1/src/V1/resources/gateway_control_client_config.json
deleted file mode 100644
index b44b85d1de3f..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1/src/V1/resources/gateway_control_client_config.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "interfaces": {
- "google.cloud.gkeconnect.gateway.v1.GatewayControl": {
- "retry_codes": {
- "no_retry_codes": [],
- "retry_policy_1_codes": [
- "UNAVAILABLE"
- ]
- },
- "retry_params": {
- "no_retry_params": {
- "initial_retry_delay_millis": 0,
- "retry_delay_multiplier": 0.0,
- "max_retry_delay_millis": 0,
- "initial_rpc_timeout_millis": 0,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 0,
- "total_timeout_millis": 0
- },
- "retry_policy_1_params": {
- "initial_retry_delay_millis": 1000,
- "retry_delay_multiplier": 1.3,
- "max_retry_delay_millis": 10000,
- "initial_rpc_timeout_millis": 60000,
- "rpc_timeout_multiplier": 1.0,
- "max_rpc_timeout_millis": 60000,
- "total_timeout_millis": 60000
- }
- },
- "methods": {
- "GenerateCredentials": {
- "timeout_millis": 60000,
- "retry_codes_name": "retry_policy_1_codes",
- "retry_params_name": "retry_policy_1_params"
- }
- }
- }
- }
-}
diff --git a/owl-bot-staging/GkeConnectGateway/v1/src/V1/resources/gateway_control_descriptor_config.php b/owl-bot-staging/GkeConnectGateway/v1/src/V1/resources/gateway_control_descriptor_config.php
deleted file mode 100644
index 451015d18a21..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1/src/V1/resources/gateway_control_descriptor_config.php
+++ /dev/null
@@ -1,40 +0,0 @@
- [
- 'google.cloud.gkeconnect.gateway.v1.GatewayControl' => [
- 'GenerateCredentials' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\GkeConnect\Gateway\V1\GenerateCredentialsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- ],
-];
diff --git a/owl-bot-staging/GkeConnectGateway/v1/src/V1/resources/gateway_control_rest_client_config.php b/owl-bot-staging/GkeConnectGateway/v1/src/V1/resources/gateway_control_rest_client_config.php
deleted file mode 100644
index 22f11b39b0bf..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1/src/V1/resources/gateway_control_rest_client_config.php
+++ /dev/null
@@ -1,40 +0,0 @@
- [
- 'google.cloud.gkeconnect.gateway.v1.GatewayControl' => [
- 'GenerateCredentials' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1/{name=projects/*/locations/*/memberships/*}:generateCredentials',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- ],
- 'numericEnums' => true,
-];
diff --git a/owl-bot-staging/GkeConnectGateway/v1/tests/Unit/V1/Client/GatewayControlClientTest.php b/owl-bot-staging/GkeConnectGateway/v1/tests/Unit/V1/Client/GatewayControlClientTest.php
deleted file mode 100644
index e61a2b6b9720..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1/tests/Unit/V1/Client/GatewayControlClientTest.php
+++ /dev/null
@@ -1,159 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return GatewayControlClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new GatewayControlClient($options);
- }
-
- /** @test */
- public function generateCredentialsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $kubeconfig = '-81';
- $endpoint = 'endpoint1741102485';
- $expectedResponse = new GenerateCredentialsResponse();
- $expectedResponse->setKubeconfig($kubeconfig);
- $expectedResponse->setEndpoint($endpoint);
- $transport->addResponse($expectedResponse);
- // Mock request
- $name = 'name3373707';
- $request = (new GenerateCredentialsRequest())
- ->setName($name);
- $response = $gapicClient->generateCredentials($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkeconnect.gateway.v1.GatewayControl/GenerateCredentials', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($name, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function generateCredentialsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $name = 'name3373707';
- $request = (new GenerateCredentialsRequest())
- ->setName($name);
- try {
- $gapicClient->generateCredentials($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function generateCredentialsAsyncTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $kubeconfig = '-81';
- $endpoint = 'endpoint1741102485';
- $expectedResponse = new GenerateCredentialsResponse();
- $expectedResponse->setKubeconfig($kubeconfig);
- $expectedResponse->setEndpoint($endpoint);
- $transport->addResponse($expectedResponse);
- // Mock request
- $name = 'name3373707';
- $request = (new GenerateCredentialsRequest())
- ->setName($name);
- $response = $gapicClient->generateCredentialsAsync($request)->wait();
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkeconnect.gateway.v1.GatewayControl/GenerateCredentials', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($name, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-}
diff --git a/owl-bot-staging/GkeConnectGateway/v1beta1/proto/src/GPBMetadata/Google/Cloud/Gkeconnect/Gateway/V1Beta1/Control.php b/owl-bot-staging/GkeConnectGateway/v1beta1/proto/src/GPBMetadata/Google/Cloud/Gkeconnect/Gateway/V1Beta1/Control.php
deleted file mode 100644
index 297fc3e5193d..000000000000
Binary files a/owl-bot-staging/GkeConnectGateway/v1beta1/proto/src/GPBMetadata/Google/Cloud/Gkeconnect/Gateway/V1Beta1/Control.php and /dev/null differ
diff --git a/owl-bot-staging/GkeConnectGateway/v1beta1/proto/src/Google/Cloud/GkeConnect/Gateway/V1beta1/GenerateCredentialsRequest.php b/owl-bot-staging/GkeConnectGateway/v1beta1/proto/src/Google/Cloud/GkeConnect/Gateway/V1beta1/GenerateCredentialsRequest.php
deleted file mode 100644
index 9f500f5955a9..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1beta1/proto/src/Google/Cloud/GkeConnect/Gateway/V1beta1/GenerateCredentialsRequest.php
+++ /dev/null
@@ -1,235 +0,0 @@
-google.cloud.gkeconnect.gateway.v1beta1.GenerateCredentialsRequest
- */
-class GenerateCredentialsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The Fleet membership resource.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $name = '';
- /**
- * Optional. Whether to force the use of Connect Agent-based transport.
- * This will return a configuration that uses Connect Agent as the underlying
- * transport mechanism for cluster types that would otherwise have used a
- * different transport. Requires that Connect Agent be installed on the
- * cluster. Setting this field to false is equivalent to not setting it.
- *
- * Generated from protobuf field bool force_use_agent = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $force_use_agent = false;
- /**
- * Optional. The Connect Gateway version to be used in the resulting
- * configuration.
- * Leave this field blank to let the server choose the version (recommended).
- *
- * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $version = '';
- /**
- * Optional. The namespace to use in the kubeconfig context.
- * If this field is specified, the server will set the `namespace` field in
- * kubeconfig context. If not specified, the `namespace` field is omitted.
- *
- * Generated from protobuf field string kubernetes_namespace = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $kubernetes_namespace = '';
- /**
- * Optional. The operating system where the kubeconfig will be used.
- *
- * Generated from protobuf field .google.cloud.gkeconnect.gateway.v1beta1.GenerateCredentialsRequest.OperatingSystem operating_system = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $operating_system = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The Fleet membership resource.
- * @type bool $force_use_agent
- * Optional. Whether to force the use of Connect Agent-based transport.
- * This will return a configuration that uses Connect Agent as the underlying
- * transport mechanism for cluster types that would otherwise have used a
- * different transport. Requires that Connect Agent be installed on the
- * cluster. Setting this field to false is equivalent to not setting it.
- * @type string $version
- * Optional. The Connect Gateway version to be used in the resulting
- * configuration.
- * Leave this field blank to let the server choose the version (recommended).
- * @type string $kubernetes_namespace
- * Optional. The namespace to use in the kubeconfig context.
- * If this field is specified, the server will set the `namespace` field in
- * kubeconfig context. If not specified, the `namespace` field is omitted.
- * @type int $operating_system
- * Optional. The operating system where the kubeconfig will be used.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkeconnect\Gateway\V1Beta1\Control::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The Fleet membership resource.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The Fleet membership resource.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. Whether to force the use of Connect Agent-based transport.
- * This will return a configuration that uses Connect Agent as the underlying
- * transport mechanism for cluster types that would otherwise have used a
- * different transport. Requires that Connect Agent be installed on the
- * cluster. Setting this field to false is equivalent to not setting it.
- *
- * Generated from protobuf field bool force_use_agent = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getForceUseAgent()
- {
- return $this->force_use_agent;
- }
-
- /**
- * Optional. Whether to force the use of Connect Agent-based transport.
- * This will return a configuration that uses Connect Agent as the underlying
- * transport mechanism for cluster types that would otherwise have used a
- * different transport. Requires that Connect Agent be installed on the
- * cluster. Setting this field to false is equivalent to not setting it.
- *
- * Generated from protobuf field bool force_use_agent = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setForceUseAgent($var)
- {
- GPBUtil::checkBool($var);
- $this->force_use_agent = $var;
-
- return $this;
- }
-
- /**
- * Optional. The Connect Gateway version to be used in the resulting
- * configuration.
- * Leave this field blank to let the server choose the version (recommended).
- *
- * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * Optional. The Connect Gateway version to be used in the resulting
- * configuration.
- * Leave this field blank to let the server choose the version (recommended).
- *
- * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->version = $var;
-
- return $this;
- }
-
- /**
- * Optional. The namespace to use in the kubeconfig context.
- * If this field is specified, the server will set the `namespace` field in
- * kubeconfig context. If not specified, the `namespace` field is omitted.
- *
- * Generated from protobuf field string kubernetes_namespace = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getKubernetesNamespace()
- {
- return $this->kubernetes_namespace;
- }
-
- /**
- * Optional. The namespace to use in the kubeconfig context.
- * If this field is specified, the server will set the `namespace` field in
- * kubeconfig context. If not specified, the `namespace` field is omitted.
- *
- * Generated from protobuf field string kubernetes_namespace = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setKubernetesNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->kubernetes_namespace = $var;
-
- return $this;
- }
-
- /**
- * Optional. The operating system where the kubeconfig will be used.
- *
- * Generated from protobuf field .google.cloud.gkeconnect.gateway.v1beta1.GenerateCredentialsRequest.OperatingSystem operating_system = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getOperatingSystem()
- {
- return $this->operating_system;
- }
-
- /**
- * Optional. The operating system where the kubeconfig will be used.
- *
- * Generated from protobuf field .google.cloud.gkeconnect.gateway.v1beta1.GenerateCredentialsRequest.OperatingSystem operating_system = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setOperatingSystem($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeConnect\Gateway\V1beta1\GenerateCredentialsRequest\OperatingSystem::class);
- $this->operating_system = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeConnectGateway/v1beta1/proto/src/Google/Cloud/GkeConnect/Gateway/V1beta1/GenerateCredentialsRequest/OperatingSystem.php b/owl-bot-staging/GkeConnectGateway/v1beta1/proto/src/Google/Cloud/GkeConnect/Gateway/V1beta1/GenerateCredentialsRequest/OperatingSystem.php
deleted file mode 100644
index 4ab5e2b2180c..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1beta1/proto/src/Google/Cloud/GkeConnect/Gateway/V1beta1/GenerateCredentialsRequest/OperatingSystem.php
+++ /dev/null
@@ -1,59 +0,0 @@
-google.cloud.gkeconnect.gateway.v1beta1.GenerateCredentialsRequest.OperatingSystem
- */
-class OperatingSystem
-{
- /**
- * Generates a kubeconfig that works for all operating systems not defined
- * below.
- *
- * Generated from protobuf enum OPERATING_SYSTEM_UNSPECIFIED = 0;
- */
- const OPERATING_SYSTEM_UNSPECIFIED = 0;
- /**
- * Generates a kubeconfig that is specifically designed to work with
- * Windows.
- *
- * Generated from protobuf enum OPERATING_SYSTEM_WINDOWS = 1;
- */
- const OPERATING_SYSTEM_WINDOWS = 1;
-
- private static $valueToName = [
- self::OPERATING_SYSTEM_UNSPECIFIED => 'OPERATING_SYSTEM_UNSPECIFIED',
- self::OPERATING_SYSTEM_WINDOWS => 'OPERATING_SYSTEM_WINDOWS',
- ];
-
- 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(OperatingSystem::class, \Google\Cloud\GkeConnect\Gateway\V1beta1\GenerateCredentialsRequest_OperatingSystem::class);
-
diff --git a/owl-bot-staging/GkeConnectGateway/v1beta1/proto/src/Google/Cloud/GkeConnect/Gateway/V1beta1/GenerateCredentialsResponse.php b/owl-bot-staging/GkeConnectGateway/v1beta1/proto/src/Google/Cloud/GkeConnect/Gateway/V1beta1/GenerateCredentialsResponse.php
deleted file mode 100644
index 327f1fe485c9..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1beta1/proto/src/Google/Cloud/GkeConnect/Gateway/V1beta1/GenerateCredentialsResponse.php
+++ /dev/null
@@ -1,105 +0,0 @@
-google.cloud.gkeconnect.gateway.v1beta1.GenerateCredentialsResponse
- */
-class GenerateCredentialsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * A full YAML kubeconfig in serialized format.
- *
- * Generated from protobuf field bytes kubeconfig = 1;
- */
- protected $kubeconfig = '';
- /**
- * The generated URI of the cluster as accessed through the Connect Gateway
- * API.
- *
- * Generated from protobuf field string endpoint = 2;
- */
- protected $endpoint = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $kubeconfig
- * A full YAML kubeconfig in serialized format.
- * @type string $endpoint
- * The generated URI of the cluster as accessed through the Connect Gateway
- * API.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkeconnect\Gateway\V1Beta1\Control::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A full YAML kubeconfig in serialized format.
- *
- * Generated from protobuf field bytes kubeconfig = 1;
- * @return string
- */
- public function getKubeconfig()
- {
- return $this->kubeconfig;
- }
-
- /**
- * A full YAML kubeconfig in serialized format.
- *
- * Generated from protobuf field bytes kubeconfig = 1;
- * @param string $var
- * @return $this
- */
- public function setKubeconfig($var)
- {
- GPBUtil::checkString($var, False);
- $this->kubeconfig = $var;
-
- return $this;
- }
-
- /**
- * The generated URI of the cluster as accessed through the Connect Gateway
- * API.
- *
- * Generated from protobuf field string endpoint = 2;
- * @return string
- */
- public function getEndpoint()
- {
- return $this->endpoint;
- }
-
- /**
- * The generated URI of the cluster as accessed through the Connect Gateway
- * API.
- *
- * Generated from protobuf field string endpoint = 2;
- * @param string $var
- * @return $this
- */
- public function setEndpoint($var)
- {
- GPBUtil::checkString($var, True);
- $this->endpoint = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeConnectGateway/v1beta1/samples/V1beta1/GatewayControlClient/generate_credentials.php b/owl-bot-staging/GkeConnectGateway/v1beta1/samples/V1beta1/GatewayControlClient/generate_credentials.php
deleted file mode 100644
index cb70c4c5132c..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1beta1/samples/V1beta1/GatewayControlClient/generate_credentials.php
+++ /dev/null
@@ -1,71 +0,0 @@
-setName($name);
-
- // Call the API and handle any network failures.
- try {
- /** @var GenerateCredentialsResponse $response */
- $response = $gatewayControlClient->generateCredentials($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $name = '[NAME]';
-
- generate_credentials_sample($name);
-}
-// [END connectgateway_v1beta1_generated_GatewayControl_GenerateCredentials_sync]
diff --git a/owl-bot-staging/GkeConnectGateway/v1beta1/src/V1beta1/Client/GatewayControlClient.php b/owl-bot-staging/GkeConnectGateway/v1beta1/src/V1beta1/Client/GatewayControlClient.php
deleted file mode 100644
index 6234da984ceb..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1beta1/src/V1beta1/Client/GatewayControlClient.php
+++ /dev/null
@@ -1,213 +0,0 @@
- generateCredentialsAsync(GenerateCredentialsRequest $request, array $optionalArgs = [])
- */
-final class GatewayControlClient
-{
- use GapicClientTrait;
-
- /** The name of the service. */
- private const SERVICE_NAME = 'google.cloud.gkeconnect.gateway.v1beta1.GatewayControl';
-
- /**
- * The default address of the service.
- *
- * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
- */
- private const SERVICE_ADDRESS = 'connectgateway.googleapis.com';
-
- /** The address template of the service. */
- private const SERVICE_ADDRESS_TEMPLATE = 'connectgateway.UNIVERSE_DOMAIN';
-
- /** The default port of the service. */
- private const DEFAULT_SERVICE_PORT = 443;
-
- /** The name of the code generator, to be included in the agent header. */
- private const CODEGEN_NAME = 'gapic';
-
- /** The default scopes required by the service. */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- ];
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/gateway_control_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/gateway_control_descriptor_config.php',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- 'useJwtAccessWithScope' => false,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/gateway_control_rest_client_config.php',
- ],
- ],
- ];
- }
-
- /** Implements GapicClientTrait::defaultTransport. */
- private static function defaultTransport()
- {
- return 'rest';
- }
-
- /** Implements ClientOptionsTrait::supportedTransports. */
- private static function supportedTransports()
- {
- return [
- 'rest',
- ];
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'connectgateway.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. At the moment, supports only
- * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * @type false|LoggerInterface $logger
- * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the
- * 'GOOGLE_SDK_PHP_LOGGING' environment flag
- * }
- *
- * @throws ValidationException
- *
- * @experimental
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- }
-
- /** Handles execution of the async variants for each documented method. */
- public function __call($method, $args)
- {
- if (substr($method, -5) !== 'Async') {
- trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR);
- }
-
- array_unshift($args, substr($method, 0, -5));
- return call_user_func_array([$this, 'startAsyncCall'], $args);
- }
-
- /**
- * GenerateCredentials provides connection information that allows a user to
- * access the specified membership using Connect Gateway.
- *
- * The async variant is {@see GatewayControlClient::generateCredentialsAsync()} .
- *
- * @example samples/V1beta1/GatewayControlClient/generate_credentials.php
- *
- * @param GenerateCredentialsRequest $request A request to house fields associated with the call.
- * @param array $callOptions {
- * Optional.
- *
- * @type RetrySettings|array $retrySettings
- * 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 GenerateCredentialsResponse
- *
- * @throws ApiException Thrown if the API call fails.
- *
- * @experimental
- */
- public function generateCredentials(GenerateCredentialsRequest $request, array $callOptions = []): GenerateCredentialsResponse
- {
- return $this->startApiCall('GenerateCredentials', $request, $callOptions)->wait();
- }
-}
diff --git a/owl-bot-staging/GkeConnectGateway/v1beta1/src/V1beta1/Enums/GenerateCredentialsRequest/OperatingSystem.php b/owl-bot-staging/GkeConnectGateway/v1beta1/src/V1beta1/Enums/GenerateCredentialsRequest/OperatingSystem.php
deleted file mode 100644
index f4c035aa6a07..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1beta1/src/V1beta1/Enums/GenerateCredentialsRequest/OperatingSystem.php
+++ /dev/null
@@ -1,38 +0,0 @@
-generateCredentials($name);
- * } finally {
- * $gatewayControlClient->close();
- * }
- * ```
- *
- * @experimental
- *
- * @deprecated Please use the new service client {@see \Google\Cloud\GkeConnect\Gateway\V1beta1\Client\GatewayControlClient}.
- */
-class GatewayControlGapicClient
-{
- use GapicClientTrait;
-
- /** The name of the service. */
- const SERVICE_NAME = 'google.cloud.gkeconnect.gateway.v1beta1.GatewayControl';
-
- /**
- * The default address of the service.
- *
- * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead.
- */
- const SERVICE_ADDRESS = 'connectgateway.googleapis.com';
-
- /** The address template of the service. */
- private const SERVICE_ADDRESS_TEMPLATE = 'connectgateway.UNIVERSE_DOMAIN';
-
- /** The default port of the service. */
- const DEFAULT_SERVICE_PORT = 443;
-
- /** The name of the code generator, to be included in the agent header. */
- const CODEGEN_NAME = 'gapic';
-
- /** The default scopes required by the service. */
- public static $serviceScopes = [
- 'https://www.googleapis.com/auth/cloud-platform',
- ];
-
- private static function getClientDefaults()
- {
- return [
- 'serviceName' => self::SERVICE_NAME,
- 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT,
- 'clientConfig' => __DIR__ . '/../resources/gateway_control_client_config.json',
- 'descriptorsConfigPath' => __DIR__ . '/../resources/gateway_control_descriptor_config.php',
- 'credentialsConfig' => [
- 'defaultScopes' => self::$serviceScopes,
- 'useJwtAccessWithScope' => false,
- ],
- 'transportConfig' => [
- 'rest' => [
- 'restClientConfigPath' => __DIR__ . '/../resources/gateway_control_rest_client_config.php',
- ],
- ],
- ];
- }
-
- /** Implements GapicClientTrait::defaultTransport. */
- private static function defaultTransport()
- {
- return 'rest';
- }
-
- /** Implements GapicClientTrait::supportedTransports. */
- private static function supportedTransports()
- {
- return [
- 'rest',
- ];
- }
-
- /**
- * Constructor.
- *
- * @param array $options {
- * Optional. Options for configuring the service API wrapper.
- *
- * @type string $apiEndpoint
- * The address of the API remote host. May optionally include the port, formatted
- * as ":". Default 'connectgateway.googleapis.com:443'.
- * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials
- * The credentials to be used by the client to authorize API calls. This option
- * accepts either a path to a credentials file, or a decoded credentials file as a
- * PHP array.
- * *Advanced usage*: In addition, this option can also accept a pre-constructed
- * {@see \Google\Auth\FetchAuthTokenInterface} object or
- * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these
- * objects are provided, any settings in $credentialsConfig will be ignored.
- * @type array $credentialsConfig
- * Options used to configure credentials, including auth token caching, for the
- * client. For a full list of supporting configuration options, see
- * {@see \Google\ApiCore\CredentialsWrapper::build()} .
- * @type bool $disableRetries
- * Determines whether or not retries defined by the client configuration should be
- * disabled. Defaults to `false`.
- * @type string|array $clientConfig
- * Client method configuration, including retry settings. This option can be either
- * a path to a JSON file, or a PHP array containing the decoded JSON data. By
- * default this settings points to the default client config file, which is
- * provided in the resources folder.
- * @type string|TransportInterface $transport
- * The transport used for executing network requests. At the moment, supports only
- * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already
- * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note
- * that when this object is provided, any settings in $transportConfig, and any
- * $apiEndpoint setting, will be ignored.
- * @type array $transportConfig
- * Configuration options that will be used to construct the transport. Options for
- * each supported transport type should be passed in a key for that transport. For
- * example:
- * $transportConfig = [
- * 'rest' => [...],
- * ];
- * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the
- * supported options.
- * @type callable $clientCertSource
- * A callable which returns the client cert as a string. This can be used to
- * provide a certificate and private key to the transport layer for mTLS.
- * }
- *
- * @throws ValidationException
- *
- * @experimental
- */
- public function __construct(array $options = [])
- {
- $clientOptions = $this->buildClientOptions($options);
- $this->setClientOptions($clientOptions);
- }
-
- /**
- * GenerateCredentials provides connection information that allows a user to
- * access the specified membership using Connect Gateway.
- *
- * Sample code:
- * ```
- * $gatewayControlClient = new GatewayControlClient();
- * try {
- * $name = 'name';
- * $response = $gatewayControlClient->generateCredentials($name);
- * } finally {
- * $gatewayControlClient->close();
- * }
- * ```
- *
- * @param string $name Required. The Fleet membership resource.
- * @param array $optionalArgs {
- * Optional.
- *
- * @type bool $forceUseAgent
- * Optional. Whether to force the use of Connect Agent-based transport.
- *
- * This will return a configuration that uses Connect Agent as the underlying
- * transport mechanism for cluster types that would otherwise have used a
- * different transport. Requires that Connect Agent be installed on the
- * cluster. Setting this field to false is equivalent to not setting it.
- * @type string $version
- * Optional. The Connect Gateway version to be used in the resulting
- * configuration.
- *
- * Leave this field blank to let the server choose the version (recommended).
- * @type string $kubernetesNamespace
- * Optional. The namespace to use in the kubeconfig context.
- *
- * If this field is specified, the server will set the `namespace` field in
- * kubeconfig context. If not specified, the `namespace` field is omitted.
- * @type int $operatingSystem
- * Optional. The operating system where the kubeconfig will be used.
- * For allowed values, use constants defined on {@see \Google\Cloud\GkeConnect\Gateway\V1beta1\GenerateCredentialsRequest\OperatingSystem}
- * @type RetrySettings|array $retrySettings
- * 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\GkeConnect\Gateway\V1beta1\GenerateCredentialsResponse
- *
- * @throws ApiException if the remote call fails
- *
- * @experimental
- */
- public function generateCredentials($name, array $optionalArgs = [])
- {
- $request = new GenerateCredentialsRequest();
- $requestParamHeaders = [];
- $request->setName($name);
- $requestParamHeaders['name'] = $name;
- if (isset($optionalArgs['forceUseAgent'])) {
- $request->setForceUseAgent($optionalArgs['forceUseAgent']);
- }
-
- if (isset($optionalArgs['version'])) {
- $request->setVersion($optionalArgs['version']);
- }
-
- if (isset($optionalArgs['kubernetesNamespace'])) {
- $request->setKubernetesNamespace($optionalArgs['kubernetesNamespace']);
- }
-
- if (isset($optionalArgs['operatingSystem'])) {
- $request->setOperatingSystem($optionalArgs['operatingSystem']);
- }
-
- $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders);
- $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader();
- return $this->startCall('GenerateCredentials', GenerateCredentialsResponse::class, $optionalArgs, $request)->wait();
- }
-}
diff --git a/owl-bot-staging/GkeConnectGateway/v1beta1/src/V1beta1/GatewayControlClient.php b/owl-bot-staging/GkeConnectGateway/v1beta1/src/V1beta1/GatewayControlClient.php
deleted file mode 100644
index afb71d1a3ffa..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1beta1/src/V1beta1/GatewayControlClient.php
+++ /dev/null
@@ -1,36 +0,0 @@
- [
- 'google.cloud.gkeconnect.gateway.v1beta1.GatewayControl' => [
- 'GenerateCredentials' => [
- 'callType' => \Google\ApiCore\Call::UNARY_CALL,
- 'responseType' => 'Google\Cloud\GkeConnect\Gateway\V1beta1\GenerateCredentialsResponse',
- 'headerParams' => [
- [
- 'keyName' => 'name',
- 'fieldAccessors' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- ],
-];
diff --git a/owl-bot-staging/GkeConnectGateway/v1beta1/src/V1beta1/resources/gateway_control_rest_client_config.php b/owl-bot-staging/GkeConnectGateway/v1beta1/src/V1beta1/resources/gateway_control_rest_client_config.php
deleted file mode 100644
index 117fdbbbea9e..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1beta1/src/V1beta1/resources/gateway_control_rest_client_config.php
+++ /dev/null
@@ -1,39 +0,0 @@
- [
- 'google.cloud.gkeconnect.gateway.v1beta1.GatewayControl' => [
- 'GenerateCredentials' => [
- 'method' => 'get',
- 'uriTemplate' => '/v1beta1/{name=projects/*/locations/*/memberships/*}:generateCredentials',
- 'placeholders' => [
- 'name' => [
- 'getters' => [
- 'getName',
- ],
- ],
- ],
- ],
- ],
- ],
-];
diff --git a/owl-bot-staging/GkeConnectGateway/v1beta1/tests/Unit/V1beta1/Client/GatewayControlClientTest.php b/owl-bot-staging/GkeConnectGateway/v1beta1/tests/Unit/V1beta1/Client/GatewayControlClientTest.php
deleted file mode 100644
index 812cae3d34cb..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1beta1/tests/Unit/V1beta1/Client/GatewayControlClientTest.php
+++ /dev/null
@@ -1,159 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return GatewayControlClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new GatewayControlClient($options);
- }
-
- /** @test */
- public function generateCredentialsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $kubeconfig = '-81';
- $endpoint = 'endpoint1741102485';
- $expectedResponse = new GenerateCredentialsResponse();
- $expectedResponse->setKubeconfig($kubeconfig);
- $expectedResponse->setEndpoint($endpoint);
- $transport->addResponse($expectedResponse);
- // Mock request
- $name = 'name3373707';
- $request = (new GenerateCredentialsRequest())
- ->setName($name);
- $response = $gapicClient->generateCredentials($request);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkeconnect.gateway.v1beta1.GatewayControl/GenerateCredentials', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($name, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function generateCredentialsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $name = 'name3373707';
- $request = (new GenerateCredentialsRequest())
- ->setName($name);
- try {
- $gapicClient->generateCredentials($request);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function generateCredentialsAsyncTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $kubeconfig = '-81';
- $endpoint = 'endpoint1741102485';
- $expectedResponse = new GenerateCredentialsResponse();
- $expectedResponse->setKubeconfig($kubeconfig);
- $expectedResponse->setEndpoint($endpoint);
- $transport->addResponse($expectedResponse);
- // Mock request
- $name = 'name3373707';
- $request = (new GenerateCredentialsRequest())
- ->setName($name);
- $response = $gapicClient->generateCredentialsAsync($request)->wait();
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkeconnect.gateway.v1beta1.GatewayControl/GenerateCredentials', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($name, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-}
diff --git a/owl-bot-staging/GkeConnectGateway/v1beta1/tests/Unit/V1beta1/GatewayControlClientTest.php b/owl-bot-staging/GkeConnectGateway/v1beta1/tests/Unit/V1beta1/GatewayControlClientTest.php
deleted file mode 100644
index 33ddb8083932..000000000000
--- a/owl-bot-staging/GkeConnectGateway/v1beta1/tests/Unit/V1beta1/GatewayControlClientTest.php
+++ /dev/null
@@ -1,123 +0,0 @@
-getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock();
- }
-
- /** @return GatewayControlClient */
- private function createClient(array $options = [])
- {
- $options += [
- 'credentials' => $this->createCredentials(),
- ];
- return new GatewayControlClient($options);
- }
-
- /** @test */
- public function generateCredentialsTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- // Mock response
- $kubeconfig = '-81';
- $endpoint = 'endpoint1741102485';
- $expectedResponse = new GenerateCredentialsResponse();
- $expectedResponse->setKubeconfig($kubeconfig);
- $expectedResponse->setEndpoint($endpoint);
- $transport->addResponse($expectedResponse);
- // Mock request
- $name = 'name3373707';
- $response = $gapicClient->generateCredentials($name);
- $this->assertEquals($expectedResponse, $response);
- $actualRequests = $transport->popReceivedCalls();
- $this->assertSame(1, count($actualRequests));
- $actualFuncCall = $actualRequests[0]->getFuncCall();
- $actualRequestObject = $actualRequests[0]->getRequestObject();
- $this->assertSame('/google.cloud.gkeconnect.gateway.v1beta1.GatewayControl/GenerateCredentials', $actualFuncCall);
- $actualValue = $actualRequestObject->getName();
- $this->assertProtobufEquals($name, $actualValue);
- $this->assertTrue($transport->isExhausted());
- }
-
- /** @test */
- public function generateCredentialsExceptionTest()
- {
- $transport = $this->createTransport();
- $gapicClient = $this->createClient([
- 'transport' => $transport,
- ]);
- $this->assertTrue($transport->isExhausted());
- $status = new stdClass();
- $status->code = Code::DATA_LOSS;
- $status->details = 'internal error';
- $expectedExceptionMessage = json_encode([
- 'message' => 'internal error',
- 'code' => Code::DATA_LOSS,
- 'status' => 'DATA_LOSS',
- 'details' => [],
- ], JSON_PRETTY_PRINT);
- $transport->addResponse(null, $status);
- // Mock request
- $name = 'name3373707';
- try {
- $gapicClient->generateCredentials($name);
- // 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());
- $this->assertEquals($expectedExceptionMessage, $ex->getMessage());
- }
- // Call popReceivedCalls to ensure the stub is exhausted
- $transport->popReceivedCalls();
- $this->assertTrue($transport->isExhausted());
- }
-}
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Configmanagement/Configmanagement.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Configmanagement/Configmanagement.php
deleted file mode 100644
index 871dfa00a5ed..000000000000
Binary files a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Configmanagement/Configmanagement.php and /dev/null differ
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Feature.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Feature.php
deleted file mode 100644
index d26e5f8ddeaa..000000000000
Binary files a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Feature.php and /dev/null differ
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Membership.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Membership.php
deleted file mode 100644
index ea4840e791dc..000000000000
Binary files a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Membership.php and /dev/null differ
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Multiclusteringress/Multiclusteringress.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Multiclusteringress/Multiclusteringress.php
deleted file mode 100644
index e48863d0ce20..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Multiclusteringress/Multiclusteringress.php
+++ /dev/null
@@ -1,29 +0,0 @@
-internalAddGeneratedFile(
- '
-à
-Dgoogle/cloud/gkehub/v1/multiclusteringress/multiclusteringress.proto*google.cloud.gkehub.multiclusteringress.v1"(
-FeatureSpec
-config_membership ( B¹
-.com.google.cloud.gkehub.multiclusteringress.v1BMultiClusterIngressProtoPZ`cloud.google.com/go/gkehub/multiclusteringress/apiv1/multiclusteringresspb;multiclusteringresspbª*Google.Cloud.GkeHub.MultiClusterIngress.V1Ê*Google\\Cloud\\GkeHub\\MultiClusterIngress\\V1ê.Google::Cloud::GkeHub::MultiClusterIngress::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Service.php b/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Service.php
deleted file mode 100644
index b7547bb0b1fd..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/GPBMetadata/Google/Cloud/Gkehub/V1/Service.php
+++ /dev/null
@@ -1,150 +0,0 @@
-internalAddGeneratedFile(
- '
-´)
-$google/cloud/gkehub/v1/service.protogoogle.cloud.gkehub.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto$google/cloud/gkehub/v1/feature.proto\'google/cloud/gkehub/v1/membership.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"¯
-ListMembershipsRequest8
-parent ( B(àAúA" gkehub.googleapis.com/Membership
- page_size (BàA
-
-page_token ( BàA
-filter ( BàA
-order_by ( BàA"~
-ListMembershipsResponse5
- resources (2".google.cloud.gkehub.v1.Membership
-next_page_token (
-unreachable ( "N
-GetMembershipRequest6
-name ( B(àAúA"
- gkehub.googleapis.com/Membership"Ã
-CreateMembershipRequest8
-parent ( B(àAúA" gkehub.googleapis.com/Membership
-
membership_id ( BàA9
-resource (2".google.cloud.gkehub.v1.MembershipBàA
-
-request_id ( BàA"~
-DeleteMembershipRequest6
-name ( B(àAúA"
- gkehub.googleapis.com/Membership
-
-request_id ( BàA
-force (BàA"Û
-UpdateMembershipRequest6
-name ( B(àAúA"
- gkehub.googleapis.com/Membership4
-update_mask (2.google.protobuf.FieldMaskBàA9
-resource (2".google.cloud.gkehub.v1.MembershipBàA
-
-request_id ( BàA"ò
-GenerateConnectManifestRequest6
-name ( B(àAúA"
- gkehub.googleapis.com/Membership
- namespace ( BàA
-proxy (BàA
-version ( BàA
-
-is_upgrade (BàA
-registry ( BàA&
-image_pull_secret_content (BàA"a
-GenerateConnectManifestResponse>
-manifest (2,.google.cloud.gkehub.v1.ConnectAgentResource"X
-ConnectAgentResource.
-type (2 .google.cloud.gkehub.v1.TypeMeta
-manifest ( "-
-TypeMeta
-kind (
-api_version ( "’
-ListFeaturesRequest2
-parent ( B"úAgkehub.googleapis.com/Feature
- page_size (
-
-page_token (
-filter (
-order_by ( "c
-ListFeaturesResponse2
- resources (2.google.cloud.gkehub.v1.Feature
-next_page_token ( "E
-GetFeatureRequest0
-name ( B"úA
-gkehub.googleapis.com/Feature"¥
-CreateFeatureRequest2
-parent ( B"úAgkehub.googleapis.com/Feature
-
-feature_id ( 1
-resource (2.google.cloud.gkehub.v1.Feature
-
-request_id ( "p
-DeleteFeatureRequest0
-name ( B"úA
-gkehub.googleapis.com/Feature
-force (
-
-request_id ( BàA"À
-UpdateFeatureRequest0
-name ( B"úA
-gkehub.googleapis.com/Feature/
-update_mask (2.google.protobuf.FieldMask1
-resource (2.google.cloud.gkehub.v1.Feature
-
-request_id ( "ù
-OperationMetadata4
-create_time (2.google.protobuf.TimestampBàA1
-end_time (2.google.protobuf.TimestampBàA
-target ( BàA
-verb ( BàA
-
status_detail ( BàA
-cancel_requested (BàA
-api_version ( BàA2ð
-GkeHub´
-ListMemberships..google.cloud.gkehub.v1.ListMembershipsRequest/.google.cloud.gkehub.v1.ListMembershipsResponse"@ÚAparent‚Óä“1//v1/{parent=projects/*/locations/*}/memberships¨
-ListFeatures+.google.cloud.gkehub.v1.ListFeaturesRequest,.google.cloud.gkehub.v1.ListFeaturesResponse"=ÚAparent‚Óä“.,/v1/{parent=projects/*/locations/*}/features¡
-
GetMembership,.google.cloud.gkehub.v1.GetMembershipRequest".google.cloud.gkehub.v1.Membership">ÚAname‚Óä“1//v1/{name=projects/*/locations/*/memberships/*}•
-
-GetFeature).google.cloud.gkehub.v1.GetFeatureRequest.google.cloud.gkehub.v1.Feature";ÚAname‚Óä“.,/v1/{name=projects/*/locations/*/features/*}è
-CreateMembership/.google.cloud.gkehub.v1.CreateMembershipRequest.google.longrunning.Operation"ƒÊA
-
-MembershipOperationMetadataÚAparent,resource,membership_id‚Óä“;"//v1/{parent=projects/*/locations/*}/memberships:resourceØ
-
CreateFeature,.google.cloud.gkehub.v1.CreateFeatureRequest.google.longrunning.Operation"zÊA
-FeatureOperationMetadataÚAparent,resource,feature_id‚Óä“8",/v1/{parent=projects/*/locations/*}/features:resourceÏ
-DeleteMembership/.google.cloud.gkehub.v1.DeleteMembershipRequest.google.longrunning.Operation"kÊA*
-google.protobuf.EmptyOperationMetadataÚAname‚Óä“1*//v1/{name=projects/*/locations/*/memberships/*}Æ
-
DeleteFeature,.google.cloud.gkehub.v1.DeleteFeatureRequest.google.longrunning.Operation"hÊA*
-google.protobuf.EmptyOperationMetadataÚAname‚Óä“.*,/v1/{name=projects/*/locations/*/features/*}ã
-UpdateMembership/.google.cloud.gkehub.v1.UpdateMembershipRequest.google.longrunning.Operation"ÊA
-
-MembershipOperationMetadataÚAname,resource,update_mask‚Óä“;2//v1/{name=projects/*/locations/*/memberships/*}:resource×
-
UpdateFeature,.google.cloud.gkehub.v1.UpdateFeatureRequest.google.longrunning.Operation"yÊA
-FeatureOperationMetadataÚAname,resource,update_mask‚Óä“82,/v1/{name=projects/*/locations/*/features/*}:resourceÛ
-GenerateConnectManifest6.google.cloud.gkehub.v1.GenerateConnectManifestRequest7.google.cloud.gkehub.v1.GenerateConnectManifestResponse"O‚Óä“IG/v1/{name=projects/*/locations/*/memberships/*}:generateConnectManifestIÊAgkehub.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB®
-com.google.cloud.gkehub.v1BServiceProtoPZ2cloud.google.com/go/gkehub/apiv1/gkehubpb;gkehubpbªGoogle.Cloud.GkeHub.V1ÊGoogle\\Cloud\\GkeHub\\V1êGoogle::Cloud::GkeHub::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSync.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSync.php
deleted file mode 100644
index eba4ae705143..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSync.php
+++ /dev/null
@@ -1,323 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.ConfigSync
- */
-class ConfigSync extends \Google\Protobuf\Internal\Message
-{
- /**
- * Git repo configuration for the cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;
- */
- protected $git = null;
- /**
- * Specifies whether the Config Sync Repo is
- * in "hierarchical" or "unstructured" mode.
- *
- * Generated from protobuf field string source_format = 8;
- */
- protected $source_format = '';
- /**
- * Enables the installation of ConfigSync.
- * If set to true, ConfigSync resources will be created and the other
- * ConfigSync fields will be applied if exist.
- * If set to false, all other ConfigSync fields will be ignored, ConfigSync
- * resources will be deleted.
- * If omitted, ConfigSync resources will be managed depends on the presence
- * of the git or oci field.
- *
- * Generated from protobuf field optional bool enabled = 10;
- */
- protected $enabled = null;
- /**
- * Set to true to enable the Config Sync admission webhook to prevent drifts.
- * If set to `false`, disables the Config Sync admission webhook and does not
- * prevent drifts.
- *
- * Generated from protobuf field bool prevent_drift = 11;
- */
- protected $prevent_drift = false;
- /**
- * OCI repo configuration for the cluster
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;
- */
- protected $oci = null;
- /**
- * The Email of the Google Cloud Service Account (GSA) used for exporting
- * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.
- * The GSA should have the Monitoring Metric Writer
- * (roles/monitoring.metricWriter) IAM role.
- * The Kubernetes ServiceAccount `default` in the namespace
- * `config-management-monitoring` should be bound to the GSA.
- *
- * Generated from protobuf field string metrics_gcp_service_account_email = 15;
- */
- protected $metrics_gcp_service_account_email = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig $git
- * Git repo configuration for the cluster.
- * @type string $source_format
- * Specifies whether the Config Sync Repo is
- * in "hierarchical" or "unstructured" mode.
- * @type bool $enabled
- * Enables the installation of ConfigSync.
- * If set to true, ConfigSync resources will be created and the other
- * ConfigSync fields will be applied if exist.
- * If set to false, all other ConfigSync fields will be ignored, ConfigSync
- * resources will be deleted.
- * If omitted, ConfigSync resources will be managed depends on the presence
- * of the git or oci field.
- * @type bool $prevent_drift
- * Set to true to enable the Config Sync admission webhook to prevent drifts.
- * If set to `false`, disables the Config Sync admission webhook and does not
- * prevent drifts.
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\OciConfig $oci
- * OCI repo configuration for the cluster
- * @type string $metrics_gcp_service_account_email
- * The Email of the Google Cloud Service Account (GSA) used for exporting
- * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.
- * The GSA should have the Monitoring Metric Writer
- * (roles/monitoring.metricWriter) IAM role.
- * The Kubernetes ServiceAccount `default` in the namespace
- * `config-management-monitoring` should be bound to the GSA.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Git repo configuration for the cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig|null
- */
- public function getGit()
- {
- return $this->git;
- }
-
- public function hasGit()
- {
- return isset($this->git);
- }
-
- public function clearGit()
- {
- unset($this->git);
- }
-
- /**
- * Git repo configuration for the cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GitConfig git = 7;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig $var
- * @return $this
- */
- public function setGit($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\GitConfig::class);
- $this->git = $var;
-
- return $this;
- }
-
- /**
- * Specifies whether the Config Sync Repo is
- * in "hierarchical" or "unstructured" mode.
- *
- * Generated from protobuf field string source_format = 8;
- * @return string
- */
- public function getSourceFormat()
- {
- return $this->source_format;
- }
-
- /**
- * Specifies whether the Config Sync Repo is
- * in "hierarchical" or "unstructured" mode.
- *
- * Generated from protobuf field string source_format = 8;
- * @param string $var
- * @return $this
- */
- public function setSourceFormat($var)
- {
- GPBUtil::checkString($var, True);
- $this->source_format = $var;
-
- return $this;
- }
-
- /**
- * Enables the installation of ConfigSync.
- * If set to true, ConfigSync resources will be created and the other
- * ConfigSync fields will be applied if exist.
- * If set to false, all other ConfigSync fields will be ignored, ConfigSync
- * resources will be deleted.
- * If omitted, ConfigSync resources will be managed depends on the presence
- * of the git or oci field.
- *
- * Generated from protobuf field optional bool enabled = 10;
- * @return bool
- */
- public function getEnabled()
- {
- return isset($this->enabled) ? $this->enabled : false;
- }
-
- public function hasEnabled()
- {
- return isset($this->enabled);
- }
-
- public function clearEnabled()
- {
- unset($this->enabled);
- }
-
- /**
- * Enables the installation of ConfigSync.
- * If set to true, ConfigSync resources will be created and the other
- * ConfigSync fields will be applied if exist.
- * If set to false, all other ConfigSync fields will be ignored, ConfigSync
- * resources will be deleted.
- * If omitted, ConfigSync resources will be managed depends on the presence
- * of the git or oci field.
- *
- * Generated from protobuf field optional bool enabled = 10;
- * @param bool $var
- * @return $this
- */
- public function setEnabled($var)
- {
- GPBUtil::checkBool($var);
- $this->enabled = $var;
-
- return $this;
- }
-
- /**
- * Set to true to enable the Config Sync admission webhook to prevent drifts.
- * If set to `false`, disables the Config Sync admission webhook and does not
- * prevent drifts.
- *
- * Generated from protobuf field bool prevent_drift = 11;
- * @return bool
- */
- public function getPreventDrift()
- {
- return $this->prevent_drift;
- }
-
- /**
- * Set to true to enable the Config Sync admission webhook to prevent drifts.
- * If set to `false`, disables the Config Sync admission webhook and does not
- * prevent drifts.
- *
- * Generated from protobuf field bool prevent_drift = 11;
- * @param bool $var
- * @return $this
- */
- public function setPreventDrift($var)
- {
- GPBUtil::checkBool($var);
- $this->prevent_drift = $var;
-
- return $this;
- }
-
- /**
- * OCI repo configuration for the cluster
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\OciConfig|null
- */
- public function getOci()
- {
- return $this->oci;
- }
-
- public function hasOci()
- {
- return isset($this->oci);
- }
-
- public function clearOci()
- {
- unset($this->oci);
- }
-
- /**
- * OCI repo configuration for the cluster
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OciConfig oci = 12;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\OciConfig $var
- * @return $this
- */
- public function setOci($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\OciConfig::class);
- $this->oci = $var;
-
- return $this;
- }
-
- /**
- * The Email of the Google Cloud Service Account (GSA) used for exporting
- * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.
- * The GSA should have the Monitoring Metric Writer
- * (roles/monitoring.metricWriter) IAM role.
- * The Kubernetes ServiceAccount `default` in the namespace
- * `config-management-monitoring` should be bound to the GSA.
- *
- * Generated from protobuf field string metrics_gcp_service_account_email = 15;
- * @return string
- */
- public function getMetricsGcpServiceAccountEmail()
- {
- return $this->metrics_gcp_service_account_email;
- }
-
- /**
- * The Email of the Google Cloud Service Account (GSA) used for exporting
- * Config Sync metrics to Cloud Monitoring when Workload Identity is enabled.
- * The GSA should have the Monitoring Metric Writer
- * (roles/monitoring.metricWriter) IAM role.
- * The Kubernetes ServiceAccount `default` in the namespace
- * `config-management-monitoring` should be bound to the GSA.
- *
- * Generated from protobuf field string metrics_gcp_service_account_email = 15;
- * @param string $var
- * @return $this
- */
- public function setMetricsGcpServiceAccountEmail($var)
- {
- GPBUtil::checkString($var, True);
- $this->metrics_gcp_service_account_email = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncDeploymentState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncDeploymentState.php
deleted file mode 100644
index 828c82a203d3..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncDeploymentState.php
+++ /dev/null
@@ -1,271 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState
- */
-class ConfigSyncDeploymentState extends \Google\Protobuf\Internal\Message
-{
- /**
- * Deployment state of the importer pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1;
- */
- protected $importer = 0;
- /**
- * Deployment state of the syncer pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2;
- */
- protected $syncer = 0;
- /**
- * Deployment state of the git-sync pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3;
- */
- protected $git_sync = 0;
- /**
- * Deployment state of the monitor pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4;
- */
- protected $monitor = 0;
- /**
- * Deployment state of reconciler-manager pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5;
- */
- protected $reconciler_manager = 0;
- /**
- * Deployment state of root-reconciler
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6;
- */
- protected $root_reconciler = 0;
- /**
- * Deployment state of admission-webhook
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7;
- */
- protected $admission_webhook = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $importer
- * Deployment state of the importer pod
- * @type int $syncer
- * Deployment state of the syncer pod
- * @type int $git_sync
- * Deployment state of the git-sync pod
- * @type int $monitor
- * Deployment state of the monitor pod
- * @type int $reconciler_manager
- * Deployment state of reconciler-manager pod
- * @type int $root_reconciler
- * Deployment state of root-reconciler
- * @type int $admission_webhook
- * Deployment state of admission-webhook
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Deployment state of the importer pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1;
- * @return int
- */
- public function getImporter()
- {
- return $this->importer;
- }
-
- /**
- * Deployment state of the importer pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState importer = 1;
- * @param int $var
- * @return $this
- */
- public function setImporter($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class);
- $this->importer = $var;
-
- return $this;
- }
-
- /**
- * Deployment state of the syncer pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2;
- * @return int
- */
- public function getSyncer()
- {
- return $this->syncer;
- }
-
- /**
- * Deployment state of the syncer pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState syncer = 2;
- * @param int $var
- * @return $this
- */
- public function setSyncer($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class);
- $this->syncer = $var;
-
- return $this;
- }
-
- /**
- * Deployment state of the git-sync pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3;
- * @return int
- */
- public function getGitSync()
- {
- return $this->git_sync;
- }
-
- /**
- * Deployment state of the git-sync pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState git_sync = 3;
- * @param int $var
- * @return $this
- */
- public function setGitSync($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class);
- $this->git_sync = $var;
-
- return $this;
- }
-
- /**
- * Deployment state of the monitor pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4;
- * @return int
- */
- public function getMonitor()
- {
- return $this->monitor;
- }
-
- /**
- * Deployment state of the monitor pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState monitor = 4;
- * @param int $var
- * @return $this
- */
- public function setMonitor($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class);
- $this->monitor = $var;
-
- return $this;
- }
-
- /**
- * Deployment state of reconciler-manager pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5;
- * @return int
- */
- public function getReconcilerManager()
- {
- return $this->reconciler_manager;
- }
-
- /**
- * Deployment state of reconciler-manager pod
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState reconciler_manager = 5;
- * @param int $var
- * @return $this
- */
- public function setReconcilerManager($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class);
- $this->reconciler_manager = $var;
-
- return $this;
- }
-
- /**
- * Deployment state of root-reconciler
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6;
- * @return int
- */
- public function getRootReconciler()
- {
- return $this->root_reconciler;
- }
-
- /**
- * Deployment state of root-reconciler
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState root_reconciler = 6;
- * @param int $var
- * @return $this
- */
- public function setRootReconciler($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class);
- $this->root_reconciler = $var;
-
- return $this;
- }
-
- /**
- * Deployment state of admission-webhook
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7;
- * @return int
- */
- public function getAdmissionWebhook()
- {
- return $this->admission_webhook;
- }
-
- /**
- * Deployment state of admission-webhook
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState admission_webhook = 7;
- * @param int $var
- * @return $this
- */
- public function setAdmissionWebhook($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class);
- $this->admission_webhook = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncError.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncError.php
deleted file mode 100644
index 2aefa6086d1e..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncError.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.ConfigSyncError
- */
-class ConfigSyncError extends \Google\Protobuf\Internal\Message
-{
- /**
- * A string representing the user facing error message
- *
- * Generated from protobuf field string error_message = 1;
- */
- protected $error_message = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $error_message
- * A string representing the user facing error message
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A string representing the user facing error message
- *
- * Generated from protobuf field string error_message = 1;
- * @return string
- */
- public function getErrorMessage()
- {
- return $this->error_message;
- }
-
- /**
- * A string representing the user facing error message
- *
- * Generated from protobuf field string error_message = 1;
- * @param string $var
- * @return $this
- */
- public function setErrorMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->error_message = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState.php
deleted file mode 100644
index d2fb6690daf1..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState.php
+++ /dev/null
@@ -1,309 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.ConfigSyncState
- */
-class ConfigSyncState extends \Google\Protobuf\Internal\Message
-{
- /**
- * The version of ConfigSync deployed
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1;
- */
- protected $version = null;
- /**
- * Information about the deployment of ConfigSync, including the version
- * of the various Pods deployed
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2;
- */
- protected $deployment_state = null;
- /**
- * The state of ConfigSync's process to sync configs to a cluster
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3;
- */
- protected $sync_state = null;
- /**
- * Errors pertaining to the installation of Config Sync.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
- */
- private $errors;
- /**
- * The state of the RootSync CRD
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5;
- */
- protected $rootsync_crd = 0;
- /**
- * The state of the Reposync CRD
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6;
- */
- protected $reposync_crd = 0;
- /**
- * The state of CS
- * This field summarizes the other fields in this message.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7;
- */
- protected $state = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion $version
- * The version of ConfigSync deployed
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState $deployment_state
- * Information about the deployment of ConfigSync, including the version
- * of the various Pods deployed
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState $sync_state
- * The state of ConfigSync's process to sync configs to a cluster
- * @type array<\Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncError>|\Google\Protobuf\Internal\RepeatedField $errors
- * Errors pertaining to the installation of Config Sync.
- * @type int $rootsync_crd
- * The state of the RootSync CRD
- * @type int $reposync_crd
- * The state of the Reposync CRD
- * @type int $state
- * The state of CS
- * This field summarizes the other fields in this message.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The version of ConfigSync deployed
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion|null
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- public function hasVersion()
- {
- return isset($this->version);
- }
-
- public function clearVersion()
- {
- unset($this->version);
- }
-
- /**
- * The version of ConfigSync deployed
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion version = 1;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncVersion::class);
- $this->version = $var;
-
- return $this;
- }
-
- /**
- * Information about the deployment of ConfigSync, including the version
- * of the various Pods deployed
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState|null
- */
- public function getDeploymentState()
- {
- return $this->deployment_state;
- }
-
- public function hasDeploymentState()
- {
- return isset($this->deployment_state);
- }
-
- public function clearDeploymentState()
- {
- unset($this->deployment_state);
- }
-
- /**
- * Information about the deployment of ConfigSync, including the version
- * of the various Pods deployed
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncDeploymentState deployment_state = 2;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState $var
- * @return $this
- */
- public function setDeploymentState($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncDeploymentState::class);
- $this->deployment_state = $var;
-
- return $this;
- }
-
- /**
- * The state of ConfigSync's process to sync configs to a cluster
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState|null
- */
- public function getSyncState()
- {
- return $this->sync_state;
- }
-
- public function hasSyncState()
- {
- return isset($this->sync_state);
- }
-
- public function clearSyncState()
- {
- unset($this->sync_state);
- }
-
- /**
- * The state of ConfigSync's process to sync configs to a cluster
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState sync_state = 3;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState $var
- * @return $this
- */
- public function setSyncState($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState::class);
- $this->sync_state = $var;
-
- return $this;
- }
-
- /**
- * Errors pertaining to the installation of Config Sync.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getErrors()
- {
- return $this->errors;
- }
-
- /**
- * Errors pertaining to the installation of Config Sync.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ConfigSyncError errors = 4;
- * @param array<\Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncError>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setErrors($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncError::class);
- $this->errors = $arr;
-
- return $this;
- }
-
- /**
- * The state of the RootSync CRD
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5;
- * @return int
- */
- public function getRootsyncCrd()
- {
- return $this->rootsync_crd;
- }
-
- /**
- * The state of the RootSync CRD
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState rootsync_crd = 5;
- * @param int $var
- * @return $this
- */
- public function setRootsyncCrd($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState\CRDState::class);
- $this->rootsync_crd = $var;
-
- return $this;
- }
-
- /**
- * The state of the Reposync CRD
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6;
- * @return int
- */
- public function getReposyncCrd()
- {
- return $this->reposync_crd;
- }
-
- /**
- * The state of the Reposync CRD
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState reposync_crd = 6;
- * @param int $var
- * @return $this
- */
- public function setReposyncCrd($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState\CRDState::class);
- $this->reposync_crd = $var;
-
- return $this;
- }
-
- /**
- * The state of CS
- * This field summarizes the other fields in this message.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7;
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * The state of CS
- * This field summarizes the other fields in this message.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State state = 7;
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState\State::class);
- $this->state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/CRDState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/CRDState.php
deleted file mode 100644
index 2876176a286e..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/CRDState.php
+++ /dev/null
@@ -1,78 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.ConfigSyncState.CRDState
- */
-class CRDState
-{
- /**
- * CRD's state cannot be determined
- *
- * Generated from protobuf enum CRD_STATE_UNSPECIFIED = 0;
- */
- const CRD_STATE_UNSPECIFIED = 0;
- /**
- * CRD is not installed
- *
- * Generated from protobuf enum NOT_INSTALLED = 1;
- */
- const NOT_INSTALLED = 1;
- /**
- * CRD is installed
- *
- * Generated from protobuf enum INSTALLED = 2;
- */
- const INSTALLED = 2;
- /**
- * CRD is terminating (i.e., it has been deleted and is cleaning up)
- *
- * Generated from protobuf enum TERMINATING = 3;
- */
- const TERMINATING = 3;
- /**
- * CRD is installing
- *
- * Generated from protobuf enum INSTALLING = 4;
- */
- const INSTALLING = 4;
-
- private static $valueToName = [
- self::CRD_STATE_UNSPECIFIED => 'CRD_STATE_UNSPECIFIED',
- self::NOT_INSTALLED => 'NOT_INSTALLED',
- self::INSTALLED => 'INSTALLED',
- self::TERMINATING => 'TERMINATING',
- self::INSTALLING => 'INSTALLING',
- ];
-
- 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(CRDState::class, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState_CRDState::class);
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/State.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/State.php
deleted file mode 100644
index 090be33ad0df..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncState/State.php
+++ /dev/null
@@ -1,76 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.ConfigSyncState.State
- */
-class State
-{
- /**
- * CS's state cannot be determined.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * CS is not installed.
- *
- * Generated from protobuf enum CONFIG_SYNC_NOT_INSTALLED = 1;
- */
- const CONFIG_SYNC_NOT_INSTALLED = 1;
- /**
- * The expected CS version is installed successfully.
- *
- * Generated from protobuf enum CONFIG_SYNC_INSTALLED = 2;
- */
- const CONFIG_SYNC_INSTALLED = 2;
- /**
- * CS encounters errors.
- *
- * Generated from protobuf enum CONFIG_SYNC_ERROR = 3;
- */
- const CONFIG_SYNC_ERROR = 3;
- /**
- * CS is installing or terminating.
- *
- * Generated from protobuf enum CONFIG_SYNC_PENDING = 4;
- */
- const CONFIG_SYNC_PENDING = 4;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::CONFIG_SYNC_NOT_INSTALLED => 'CONFIG_SYNC_NOT_INSTALLED',
- self::CONFIG_SYNC_INSTALLED => 'CONFIG_SYNC_INSTALLED',
- self::CONFIG_SYNC_ERROR => 'CONFIG_SYNC_ERROR',
- self::CONFIG_SYNC_PENDING => 'CONFIG_SYNC_PENDING',
- ];
-
- 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(State::class, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState_State::class);
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncVersion.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncVersion.php
deleted file mode 100644
index b89d0a14f997..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ConfigSyncVersion.php
+++ /dev/null
@@ -1,271 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.ConfigSyncVersion
- */
-class ConfigSyncVersion extends \Google\Protobuf\Internal\Message
-{
- /**
- * Version of the deployed importer pod
- *
- * Generated from protobuf field string importer = 1;
- */
- protected $importer = '';
- /**
- * Version of the deployed syncer pod
- *
- * Generated from protobuf field string syncer = 2;
- */
- protected $syncer = '';
- /**
- * Version of the deployed git-sync pod
- *
- * Generated from protobuf field string git_sync = 3;
- */
- protected $git_sync = '';
- /**
- * Version of the deployed monitor pod
- *
- * Generated from protobuf field string monitor = 4;
- */
- protected $monitor = '';
- /**
- * Version of the deployed reconciler-manager pod
- *
- * Generated from protobuf field string reconciler_manager = 5;
- */
- protected $reconciler_manager = '';
- /**
- * Version of the deployed reconciler container in root-reconciler pod
- *
- * Generated from protobuf field string root_reconciler = 6;
- */
- protected $root_reconciler = '';
- /**
- * Version of the deployed admission_webhook pod
- *
- * Generated from protobuf field string admission_webhook = 7;
- */
- protected $admission_webhook = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $importer
- * Version of the deployed importer pod
- * @type string $syncer
- * Version of the deployed syncer pod
- * @type string $git_sync
- * Version of the deployed git-sync pod
- * @type string $monitor
- * Version of the deployed monitor pod
- * @type string $reconciler_manager
- * Version of the deployed reconciler-manager pod
- * @type string $root_reconciler
- * Version of the deployed reconciler container in root-reconciler pod
- * @type string $admission_webhook
- * Version of the deployed admission_webhook pod
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Version of the deployed importer pod
- *
- * Generated from protobuf field string importer = 1;
- * @return string
- */
- public function getImporter()
- {
- return $this->importer;
- }
-
- /**
- * Version of the deployed importer pod
- *
- * Generated from protobuf field string importer = 1;
- * @param string $var
- * @return $this
- */
- public function setImporter($var)
- {
- GPBUtil::checkString($var, True);
- $this->importer = $var;
-
- return $this;
- }
-
- /**
- * Version of the deployed syncer pod
- *
- * Generated from protobuf field string syncer = 2;
- * @return string
- */
- public function getSyncer()
- {
- return $this->syncer;
- }
-
- /**
- * Version of the deployed syncer pod
- *
- * Generated from protobuf field string syncer = 2;
- * @param string $var
- * @return $this
- */
- public function setSyncer($var)
- {
- GPBUtil::checkString($var, True);
- $this->syncer = $var;
-
- return $this;
- }
-
- /**
- * Version of the deployed git-sync pod
- *
- * Generated from protobuf field string git_sync = 3;
- * @return string
- */
- public function getGitSync()
- {
- return $this->git_sync;
- }
-
- /**
- * Version of the deployed git-sync pod
- *
- * Generated from protobuf field string git_sync = 3;
- * @param string $var
- * @return $this
- */
- public function setGitSync($var)
- {
- GPBUtil::checkString($var, True);
- $this->git_sync = $var;
-
- return $this;
- }
-
- /**
- * Version of the deployed monitor pod
- *
- * Generated from protobuf field string monitor = 4;
- * @return string
- */
- public function getMonitor()
- {
- return $this->monitor;
- }
-
- /**
- * Version of the deployed monitor pod
- *
- * Generated from protobuf field string monitor = 4;
- * @param string $var
- * @return $this
- */
- public function setMonitor($var)
- {
- GPBUtil::checkString($var, True);
- $this->monitor = $var;
-
- return $this;
- }
-
- /**
- * Version of the deployed reconciler-manager pod
- *
- * Generated from protobuf field string reconciler_manager = 5;
- * @return string
- */
- public function getReconcilerManager()
- {
- return $this->reconciler_manager;
- }
-
- /**
- * Version of the deployed reconciler-manager pod
- *
- * Generated from protobuf field string reconciler_manager = 5;
- * @param string $var
- * @return $this
- */
- public function setReconcilerManager($var)
- {
- GPBUtil::checkString($var, True);
- $this->reconciler_manager = $var;
-
- return $this;
- }
-
- /**
- * Version of the deployed reconciler container in root-reconciler pod
- *
- * Generated from protobuf field string root_reconciler = 6;
- * @return string
- */
- public function getRootReconciler()
- {
- return $this->root_reconciler;
- }
-
- /**
- * Version of the deployed reconciler container in root-reconciler pod
- *
- * Generated from protobuf field string root_reconciler = 6;
- * @param string $var
- * @return $this
- */
- public function setRootReconciler($var)
- {
- GPBUtil::checkString($var, True);
- $this->root_reconciler = $var;
-
- return $this;
- }
-
- /**
- * Version of the deployed admission_webhook pod
- *
- * Generated from protobuf field string admission_webhook = 7;
- * @return string
- */
- public function getAdmissionWebhook()
- {
- return $this->admission_webhook;
- }
-
- /**
- * Version of the deployed admission_webhook pod
- *
- * Generated from protobuf field string admission_webhook = 7;
- * @param string $var
- * @return $this
- */
- public function setAdmissionWebhook($var)
- {
- GPBUtil::checkString($var, True);
- $this->admission_webhook = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/DeploymentState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/DeploymentState.php
deleted file mode 100644
index 802546aeafdd..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/DeploymentState.php
+++ /dev/null
@@ -1,75 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.DeploymentState
- */
-class DeploymentState
-{
- /**
- * Deployment's state cannot be determined
- *
- * Generated from protobuf enum DEPLOYMENT_STATE_UNSPECIFIED = 0;
- */
- const DEPLOYMENT_STATE_UNSPECIFIED = 0;
- /**
- * Deployment is not installed
- *
- * Generated from protobuf enum NOT_INSTALLED = 1;
- */
- const NOT_INSTALLED = 1;
- /**
- * Deployment is installed
- *
- * Generated from protobuf enum INSTALLED = 2;
- */
- const INSTALLED = 2;
- /**
- * Deployment was attempted to be installed, but has errors
- *
- * Generated from protobuf enum ERROR = 3;
- */
- const ERROR = 3;
- /**
- * Deployment is installing or terminating
- *
- * Generated from protobuf enum PENDING = 4;
- */
- const PENDING = 4;
-
- private static $valueToName = [
- self::DEPLOYMENT_STATE_UNSPECIFIED => 'DEPLOYMENT_STATE_UNSPECIFIED',
- self::NOT_INSTALLED => 'NOT_INSTALLED',
- self::INSTALLED => 'INSTALLED',
- self::ERROR => 'ERROR',
- self::PENDING => 'PENDING',
- ];
-
- 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);
- }
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ErrorResource.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ErrorResource.php
deleted file mode 100644
index 2eccf955ae58..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/ErrorResource.php
+++ /dev/null
@@ -1,179 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.ErrorResource
- */
-class ErrorResource extends \Google\Protobuf\Internal\Message
-{
- /**
- * Path in the git repo of the erroneous config
- *
- * Generated from protobuf field string source_path = 1;
- */
- protected $source_path = '';
- /**
- * Metadata name of the resource that is causing an error
- *
- * Generated from protobuf field string resource_name = 2;
- */
- protected $resource_name = '';
- /**
- * Namespace of the resource that is causing an error
- *
- * Generated from protobuf field string resource_namespace = 3;
- */
- protected $resource_namespace = '';
- /**
- * Group/version/kind of the resource that is causing an error
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4;
- */
- protected $resource_gvk = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $source_path
- * Path in the git repo of the erroneous config
- * @type string $resource_name
- * Metadata name of the resource that is causing an error
- * @type string $resource_namespace
- * Namespace of the resource that is causing an error
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind $resource_gvk
- * Group/version/kind of the resource that is causing an error
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Path in the git repo of the erroneous config
- *
- * Generated from protobuf field string source_path = 1;
- * @return string
- */
- public function getSourcePath()
- {
- return $this->source_path;
- }
-
- /**
- * Path in the git repo of the erroneous config
- *
- * Generated from protobuf field string source_path = 1;
- * @param string $var
- * @return $this
- */
- public function setSourcePath($var)
- {
- GPBUtil::checkString($var, True);
- $this->source_path = $var;
-
- return $this;
- }
-
- /**
- * Metadata name of the resource that is causing an error
- *
- * Generated from protobuf field string resource_name = 2;
- * @return string
- */
- public function getResourceName()
- {
- return $this->resource_name;
- }
-
- /**
- * Metadata name of the resource that is causing an error
- *
- * Generated from protobuf field string resource_name = 2;
- * @param string $var
- * @return $this
- */
- public function setResourceName($var)
- {
- GPBUtil::checkString($var, True);
- $this->resource_name = $var;
-
- return $this;
- }
-
- /**
- * Namespace of the resource that is causing an error
- *
- * Generated from protobuf field string resource_namespace = 3;
- * @return string
- */
- public function getResourceNamespace()
- {
- return $this->resource_namespace;
- }
-
- /**
- * Namespace of the resource that is causing an error
- *
- * Generated from protobuf field string resource_namespace = 3;
- * @param string $var
- * @return $this
- */
- public function setResourceNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->resource_namespace = $var;
-
- return $this;
- }
-
- /**
- * Group/version/kind of the resource that is causing an error
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind|null
- */
- public function getResourceGvk()
- {
- return $this->resource_gvk;
- }
-
- public function hasResourceGvk()
- {
- return isset($this->resource_gvk);
- }
-
- public function clearResourceGvk()
- {
- unset($this->resource_gvk);
- }
-
- /**
- * Group/version/kind of the resource that is causing an error
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GroupVersionKind resource_gvk = 4;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind $var
- * @return $this
- */
- public function setResourceGvk($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\GroupVersionKind::class);
- $this->resource_gvk = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GatekeeperDeploymentState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GatekeeperDeploymentState.php
deleted file mode 100644
index 711ded4041be..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GatekeeperDeploymentState.php
+++ /dev/null
@@ -1,101 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState
- */
-class GatekeeperDeploymentState extends \Google\Protobuf\Internal\Message
-{
- /**
- * Status of gatekeeper-controller-manager pod.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1;
- */
- protected $gatekeeper_controller_manager_state = 0;
- /**
- * Status of gatekeeper-audit deployment.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2;
- */
- protected $gatekeeper_audit = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $gatekeeper_controller_manager_state
- * Status of gatekeeper-controller-manager pod.
- * @type int $gatekeeper_audit
- * Status of gatekeeper-audit deployment.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Status of gatekeeper-controller-manager pod.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1;
- * @return int
- */
- public function getGatekeeperControllerManagerState()
- {
- return $this->gatekeeper_controller_manager_state;
- }
-
- /**
- * Status of gatekeeper-controller-manager pod.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_controller_manager_state = 1;
- * @param int $var
- * @return $this
- */
- public function setGatekeeperControllerManagerState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class);
- $this->gatekeeper_controller_manager_state = $var;
-
- return $this;
- }
-
- /**
- * Status of gatekeeper-audit deployment.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2;
- * @return int
- */
- public function getGatekeeperAudit()
- {
- return $this->gatekeeper_audit;
- }
-
- /**
- * Status of gatekeeper-audit deployment.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState gatekeeper_audit = 2;
- * @param int $var
- * @return $this
- */
- public function setGatekeeperAudit($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class);
- $this->gatekeeper_audit = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GitConfig.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GitConfig.php
deleted file mode 100644
index e31ce65e990b..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GitConfig.php
+++ /dev/null
@@ -1,321 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.GitConfig
- */
-class GitConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * The URL of the Git repository to use as the source of truth.
- *
- * Generated from protobuf field string sync_repo = 1;
- */
- protected $sync_repo = '';
- /**
- * The branch of the repository to sync from. Default: master.
- *
- * Generated from protobuf field string sync_branch = 2;
- */
- protected $sync_branch = '';
- /**
- * The path within the Git repository that represents the top level of the
- * repo to sync. Default: the root directory of the repository.
- *
- * Generated from protobuf field string policy_dir = 3;
- */
- protected $policy_dir = '';
- /**
- * Period in seconds between consecutive syncs. Default: 15.
- *
- * Generated from protobuf field int64 sync_wait_secs = 4;
- */
- protected $sync_wait_secs = 0;
- /**
- * Git revision (tag or hash) to check out. Default HEAD.
- *
- * Generated from protobuf field string sync_rev = 5;
- */
- protected $sync_rev = '';
- /**
- * Type of secret configured for access to the Git repo. Must be one of ssh,
- * cookiefile, gcenode, token, gcpserviceaccount or none. The
- * validation of this is case-sensitive. Required.
- *
- * Generated from protobuf field string secret_type = 6;
- */
- protected $secret_type = '';
- /**
- * URL for the HTTPS proxy to be used when communicating with the Git repo.
- *
- * Generated from protobuf field string https_proxy = 7;
- */
- protected $https_proxy = '';
- /**
- * The Google Cloud Service Account Email used for auth when secret_type is
- * gcpServiceAccount.
- *
- * Generated from protobuf field string gcp_service_account_email = 8;
- */
- protected $gcp_service_account_email = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $sync_repo
- * The URL of the Git repository to use as the source of truth.
- * @type string $sync_branch
- * The branch of the repository to sync from. Default: master.
- * @type string $policy_dir
- * The path within the Git repository that represents the top level of the
- * repo to sync. Default: the root directory of the repository.
- * @type int|string $sync_wait_secs
- * Period in seconds between consecutive syncs. Default: 15.
- * @type string $sync_rev
- * Git revision (tag or hash) to check out. Default HEAD.
- * @type string $secret_type
- * Type of secret configured for access to the Git repo. Must be one of ssh,
- * cookiefile, gcenode, token, gcpserviceaccount or none. The
- * validation of this is case-sensitive. Required.
- * @type string $https_proxy
- * URL for the HTTPS proxy to be used when communicating with the Git repo.
- * @type string $gcp_service_account_email
- * The Google Cloud Service Account Email used for auth when secret_type is
- * gcpServiceAccount.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The URL of the Git repository to use as the source of truth.
- *
- * Generated from protobuf field string sync_repo = 1;
- * @return string
- */
- public function getSyncRepo()
- {
- return $this->sync_repo;
- }
-
- /**
- * The URL of the Git repository to use as the source of truth.
- *
- * Generated from protobuf field string sync_repo = 1;
- * @param string $var
- * @return $this
- */
- public function setSyncRepo($var)
- {
- GPBUtil::checkString($var, True);
- $this->sync_repo = $var;
-
- return $this;
- }
-
- /**
- * The branch of the repository to sync from. Default: master.
- *
- * Generated from protobuf field string sync_branch = 2;
- * @return string
- */
- public function getSyncBranch()
- {
- return $this->sync_branch;
- }
-
- /**
- * The branch of the repository to sync from. Default: master.
- *
- * Generated from protobuf field string sync_branch = 2;
- * @param string $var
- * @return $this
- */
- public function setSyncBranch($var)
- {
- GPBUtil::checkString($var, True);
- $this->sync_branch = $var;
-
- return $this;
- }
-
- /**
- * The path within the Git repository that represents the top level of the
- * repo to sync. Default: the root directory of the repository.
- *
- * Generated from protobuf field string policy_dir = 3;
- * @return string
- */
- public function getPolicyDir()
- {
- return $this->policy_dir;
- }
-
- /**
- * The path within the Git repository that represents the top level of the
- * repo to sync. Default: the root directory of the repository.
- *
- * Generated from protobuf field string policy_dir = 3;
- * @param string $var
- * @return $this
- */
- public function setPolicyDir($var)
- {
- GPBUtil::checkString($var, True);
- $this->policy_dir = $var;
-
- return $this;
- }
-
- /**
- * Period in seconds between consecutive syncs. Default: 15.
- *
- * Generated from protobuf field int64 sync_wait_secs = 4;
- * @return int|string
- */
- public function getSyncWaitSecs()
- {
- return $this->sync_wait_secs;
- }
-
- /**
- * Period in seconds between consecutive syncs. Default: 15.
- *
- * Generated from protobuf field int64 sync_wait_secs = 4;
- * @param int|string $var
- * @return $this
- */
- public function setSyncWaitSecs($var)
- {
- GPBUtil::checkInt64($var);
- $this->sync_wait_secs = $var;
-
- return $this;
- }
-
- /**
- * Git revision (tag or hash) to check out. Default HEAD.
- *
- * Generated from protobuf field string sync_rev = 5;
- * @return string
- */
- public function getSyncRev()
- {
- return $this->sync_rev;
- }
-
- /**
- * Git revision (tag or hash) to check out. Default HEAD.
- *
- * Generated from protobuf field string sync_rev = 5;
- * @param string $var
- * @return $this
- */
- public function setSyncRev($var)
- {
- GPBUtil::checkString($var, True);
- $this->sync_rev = $var;
-
- return $this;
- }
-
- /**
- * Type of secret configured for access to the Git repo. Must be one of ssh,
- * cookiefile, gcenode, token, gcpserviceaccount or none. The
- * validation of this is case-sensitive. Required.
- *
- * Generated from protobuf field string secret_type = 6;
- * @return string
- */
- public function getSecretType()
- {
- return $this->secret_type;
- }
-
- /**
- * Type of secret configured for access to the Git repo. Must be one of ssh,
- * cookiefile, gcenode, token, gcpserviceaccount or none. The
- * validation of this is case-sensitive. Required.
- *
- * Generated from protobuf field string secret_type = 6;
- * @param string $var
- * @return $this
- */
- public function setSecretType($var)
- {
- GPBUtil::checkString($var, True);
- $this->secret_type = $var;
-
- return $this;
- }
-
- /**
- * URL for the HTTPS proxy to be used when communicating with the Git repo.
- *
- * Generated from protobuf field string https_proxy = 7;
- * @return string
- */
- public function getHttpsProxy()
- {
- return $this->https_proxy;
- }
-
- /**
- * URL for the HTTPS proxy to be used when communicating with the Git repo.
- *
- * Generated from protobuf field string https_proxy = 7;
- * @param string $var
- * @return $this
- */
- public function setHttpsProxy($var)
- {
- GPBUtil::checkString($var, True);
- $this->https_proxy = $var;
-
- return $this;
- }
-
- /**
- * The Google Cloud Service Account Email used for auth when secret_type is
- * gcpServiceAccount.
- *
- * Generated from protobuf field string gcp_service_account_email = 8;
- * @return string
- */
- public function getGcpServiceAccountEmail()
- {
- return $this->gcp_service_account_email;
- }
-
- /**
- * The Google Cloud Service Account Email used for auth when secret_type is
- * gcpServiceAccount.
- *
- * Generated from protobuf field string gcp_service_account_email = 8;
- * @param string $var
- * @return $this
- */
- public function setGcpServiceAccountEmail($var)
- {
- GPBUtil::checkString($var, True);
- $this->gcp_service_account_email = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GroupVersionKind.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GroupVersionKind.php
deleted file mode 100644
index bea54d39e71d..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/GroupVersionKind.php
+++ /dev/null
@@ -1,135 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.GroupVersionKind
- */
-class GroupVersionKind extends \Google\Protobuf\Internal\Message
-{
- /**
- * Kubernetes Group
- *
- * Generated from protobuf field string group = 1;
- */
- protected $group = '';
- /**
- * Kubernetes Version
- *
- * Generated from protobuf field string version = 2;
- */
- protected $version = '';
- /**
- * Kubernetes Kind
- *
- * Generated from protobuf field string kind = 3;
- */
- protected $kind = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $group
- * Kubernetes Group
- * @type string $version
- * Kubernetes Version
- * @type string $kind
- * Kubernetes Kind
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Kubernetes Group
- *
- * Generated from protobuf field string group = 1;
- * @return string
- */
- public function getGroup()
- {
- return $this->group;
- }
-
- /**
- * Kubernetes Group
- *
- * Generated from protobuf field string group = 1;
- * @param string $var
- * @return $this
- */
- public function setGroup($var)
- {
- GPBUtil::checkString($var, True);
- $this->group = $var;
-
- return $this;
- }
-
- /**
- * Kubernetes Version
- *
- * Generated from protobuf field string version = 2;
- * @return string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * Kubernetes Version
- *
- * Generated from protobuf field string version = 2;
- * @param string $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->version = $var;
-
- return $this;
- }
-
- /**
- * Kubernetes Kind
- *
- * Generated from protobuf field string kind = 3;
- * @return string
- */
- public function getKind()
- {
- return $this->kind;
- }
-
- /**
- * Kubernetes Kind
- *
- * Generated from protobuf field string kind = 3;
- * @param string $var
- * @return $this
- */
- public function setKind($var)
- {
- GPBUtil::checkString($var, True);
- $this->kind = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerConfig.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerConfig.php
deleted file mode 100644
index 0f5c352c5b10..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerConfig.php
+++ /dev/null
@@ -1,135 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig
- */
-class HierarchyControllerConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Whether Hierarchy Controller is enabled in this cluster.
- *
- * Generated from protobuf field bool enabled = 1;
- */
- protected $enabled = false;
- /**
- * Whether pod tree labels are enabled in this cluster.
- *
- * Generated from protobuf field bool enable_pod_tree_labels = 2;
- */
- protected $enable_pod_tree_labels = false;
- /**
- * Whether hierarchical resource quota is enabled in this cluster.
- *
- * Generated from protobuf field bool enable_hierarchical_resource_quota = 3;
- */
- protected $enable_hierarchical_resource_quota = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $enabled
- * Whether Hierarchy Controller is enabled in this cluster.
- * @type bool $enable_pod_tree_labels
- * Whether pod tree labels are enabled in this cluster.
- * @type bool $enable_hierarchical_resource_quota
- * Whether hierarchical resource quota is enabled in this cluster.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Whether Hierarchy Controller is enabled in this cluster.
- *
- * Generated from protobuf field bool enabled = 1;
- * @return bool
- */
- public function getEnabled()
- {
- return $this->enabled;
- }
-
- /**
- * Whether Hierarchy Controller is enabled in this cluster.
- *
- * Generated from protobuf field bool enabled = 1;
- * @param bool $var
- * @return $this
- */
- public function setEnabled($var)
- {
- GPBUtil::checkBool($var);
- $this->enabled = $var;
-
- return $this;
- }
-
- /**
- * Whether pod tree labels are enabled in this cluster.
- *
- * Generated from protobuf field bool enable_pod_tree_labels = 2;
- * @return bool
- */
- public function getEnablePodTreeLabels()
- {
- return $this->enable_pod_tree_labels;
- }
-
- /**
- * Whether pod tree labels are enabled in this cluster.
- *
- * Generated from protobuf field bool enable_pod_tree_labels = 2;
- * @param bool $var
- * @return $this
- */
- public function setEnablePodTreeLabels($var)
- {
- GPBUtil::checkBool($var);
- $this->enable_pod_tree_labels = $var;
-
- return $this;
- }
-
- /**
- * Whether hierarchical resource quota is enabled in this cluster.
- *
- * Generated from protobuf field bool enable_hierarchical_resource_quota = 3;
- * @return bool
- */
- public function getEnableHierarchicalResourceQuota()
- {
- return $this->enable_hierarchical_resource_quota;
- }
-
- /**
- * Whether hierarchical resource quota is enabled in this cluster.
- *
- * Generated from protobuf field bool enable_hierarchical_resource_quota = 3;
- * @param bool $var
- * @return $this
- */
- public function setEnableHierarchicalResourceQuota($var)
- {
- GPBUtil::checkBool($var);
- $this->enable_hierarchical_resource_quota = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerDeploymentState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerDeploymentState.php
deleted file mode 100644
index d348a6ff5617..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerDeploymentState.php
+++ /dev/null
@@ -1,101 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState
- */
-class HierarchyControllerDeploymentState extends \Google\Protobuf\Internal\Message
-{
- /**
- * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1;
- */
- protected $hnc = 0;
- /**
- * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2;
- */
- protected $extension = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $hnc
- * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
- * @type int $extension
- * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1;
- * @return int
- */
- public function getHnc()
- {
- return $this->hnc;
- }
-
- /**
- * The deployment state for open source HNC (e.g. v0.7.0-hc.0)
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState hnc = 1;
- * @param int $var
- * @return $this
- */
- public function setHnc($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class);
- $this->hnc = $var;
-
- return $this;
- }
-
- /**
- * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2;
- * @return int
- */
- public function getExtension()
- {
- return $this->extension;
- }
-
- /**
- * The deployment state for Hierarchy Controller extension (e.g. v0.7.0-hc.1)
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState extension = 2;
- * @param int $var
- * @return $this
- */
- public function setExtension($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class);
- $this->extension = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerState.php
deleted file mode 100644
index 0fa804532730..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerState.php
+++ /dev/null
@@ -1,121 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.HierarchyControllerState
- */
-class HierarchyControllerState extends \Google\Protobuf\Internal\Message
-{
- /**
- * The version for Hierarchy Controller
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1;
- */
- protected $version = null;
- /**
- * The deployment state for Hierarchy Controller
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2;
- */
- protected $state = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerVersion $version
- * The version for Hierarchy Controller
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerDeploymentState $state
- * The deployment state for Hierarchy Controller
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The version for Hierarchy Controller
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerVersion|null
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- public function hasVersion()
- {
- return isset($this->version);
- }
-
- public function clearVersion()
- {
- unset($this->version);
- }
-
- /**
- * The version for Hierarchy Controller
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion version = 1;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerVersion $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerVersion::class);
- $this->version = $var;
-
- return $this;
- }
-
- /**
- * The deployment state for Hierarchy Controller
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerDeploymentState|null
- */
- public function getState()
- {
- return $this->state;
- }
-
- public function hasState()
- {
- return isset($this->state);
- }
-
- public function clearState()
- {
- unset($this->state);
- }
-
- /**
- * The deployment state for Hierarchy Controller
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerDeploymentState state = 2;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerDeploymentState $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerDeploymentState::class);
- $this->state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerVersion.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerVersion.php
deleted file mode 100644
index 7a29821ab300..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/HierarchyControllerVersion.php
+++ /dev/null
@@ -1,101 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.HierarchyControllerVersion
- */
-class HierarchyControllerVersion extends \Google\Protobuf\Internal\Message
-{
- /**
- * Version for open source HNC
- *
- * Generated from protobuf field string hnc = 1;
- */
- protected $hnc = '';
- /**
- * Version for Hierarchy Controller extension
- *
- * Generated from protobuf field string extension = 2;
- */
- protected $extension = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $hnc
- * Version for open source HNC
- * @type string $extension
- * Version for Hierarchy Controller extension
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Version for open source HNC
- *
- * Generated from protobuf field string hnc = 1;
- * @return string
- */
- public function getHnc()
- {
- return $this->hnc;
- }
-
- /**
- * Version for open source HNC
- *
- * Generated from protobuf field string hnc = 1;
- * @param string $var
- * @return $this
- */
- public function setHnc($var)
- {
- GPBUtil::checkString($var, True);
- $this->hnc = $var;
-
- return $this;
- }
-
- /**
- * Version for Hierarchy Controller extension
- *
- * Generated from protobuf field string extension = 2;
- * @return string
- */
- public function getExtension()
- {
- return $this->extension;
- }
-
- /**
- * Version for Hierarchy Controller extension
- *
- * Generated from protobuf field string extension = 2;
- * @param string $var
- * @return $this
- */
- public function setExtension($var)
- {
- GPBUtil::checkString($var, True);
- $this->extension = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/InstallError.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/InstallError.php
deleted file mode 100644
index 5616df50e468..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/InstallError.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.InstallError
- */
-class InstallError extends \Google\Protobuf\Internal\Message
-{
- /**
- * A string representing the user facing error message
- *
- * Generated from protobuf field string error_message = 1;
- */
- protected $error_message = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $error_message
- * A string representing the user facing error message
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A string representing the user facing error message
- *
- * Generated from protobuf field string error_message = 1;
- * @return string
- */
- public function getErrorMessage()
- {
- return $this->error_message;
- }
-
- /**
- * A string representing the user facing error message
- *
- * Generated from protobuf field string error_message = 1;
- * @param string $var
- * @return $this
- */
- public function setErrorMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->error_message = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec.php
deleted file mode 100644
index e785153b26a9..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec.php
+++ /dev/null
@@ -1,292 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.MembershipSpec
- */
-class MembershipSpec extends \Google\Protobuf\Internal\Message
-{
- /**
- * Config Sync configuration for the cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1;
- */
- protected $config_sync = null;
- /**
- * Policy Controller configuration for the cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2;
- */
- protected $policy_controller = null;
- /**
- * Hierarchy Controller configuration for the cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4;
- */
- protected $hierarchy_controller = null;
- /**
- * Version of ACM installed.
- *
- * Generated from protobuf field string version = 10;
- */
- protected $version = '';
- /**
- * The user-specified cluster name used by Config Sync cluster-name-selector
- * annotation or ClusterSelector, for applying configs to only a subset
- * of clusters.
- * Omit this field if the cluster's fleet membership name is used by Config
- * Sync cluster-name-selector annotation or ClusterSelector.
- * Set this field if a name different from the cluster's fleet membership name
- * is used by Config Sync cluster-name-selector annotation or ClusterSelector.
- *
- * Generated from protobuf field string cluster = 11;
- */
- protected $cluster = '';
- /**
- * Enables automatic Feature management.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12;
- */
- protected $management = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSync $config_sync
- * Config Sync configuration for the cluster.
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyController $policy_controller
- * Policy Controller configuration for the cluster.
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerConfig $hierarchy_controller
- * Hierarchy Controller configuration for the cluster.
- * @type string $version
- * Version of ACM installed.
- * @type string $cluster
- * The user-specified cluster name used by Config Sync cluster-name-selector
- * annotation or ClusterSelector, for applying configs to only a subset
- * of clusters.
- * Omit this field if the cluster's fleet membership name is used by Config
- * Sync cluster-name-selector annotation or ClusterSelector.
- * Set this field if a name different from the cluster's fleet membership name
- * is used by Config Sync cluster-name-selector annotation or ClusterSelector.
- * @type int $management
- * Enables automatic Feature management.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Config Sync configuration for the cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSync|null
- */
- public function getConfigSync()
- {
- return $this->config_sync;
- }
-
- public function hasConfigSync()
- {
- return isset($this->config_sync);
- }
-
- public function clearConfigSync()
- {
- unset($this->config_sync);
- }
-
- /**
- * Config Sync configuration for the cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSync config_sync = 1;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSync $var
- * @return $this
- */
- public function setConfigSync($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSync::class);
- $this->config_sync = $var;
-
- return $this;
- }
-
- /**
- * Policy Controller configuration for the cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyController|null
- */
- public function getPolicyController()
- {
- return $this->policy_controller;
- }
-
- public function hasPolicyController()
- {
- return isset($this->policy_controller);
- }
-
- public function clearPolicyController()
- {
- unset($this->policy_controller);
- }
-
- /**
- * Policy Controller configuration for the cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyController policy_controller = 2;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyController $var
- * @return $this
- */
- public function setPolicyController($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyController::class);
- $this->policy_controller = $var;
-
- return $this;
- }
-
- /**
- * Hierarchy Controller configuration for the cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerConfig|null
- */
- public function getHierarchyController()
- {
- return $this->hierarchy_controller;
- }
-
- public function hasHierarchyController()
- {
- return isset($this->hierarchy_controller);
- }
-
- public function clearHierarchyController()
- {
- unset($this->hierarchy_controller);
- }
-
- /**
- * Hierarchy Controller configuration for the cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerConfig hierarchy_controller = 4;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerConfig $var
- * @return $this
- */
- public function setHierarchyController($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerConfig::class);
- $this->hierarchy_controller = $var;
-
- return $this;
- }
-
- /**
- * Version of ACM installed.
- *
- * Generated from protobuf field string version = 10;
- * @return string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * Version of ACM installed.
- *
- * Generated from protobuf field string version = 10;
- * @param string $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->version = $var;
-
- return $this;
- }
-
- /**
- * The user-specified cluster name used by Config Sync cluster-name-selector
- * annotation or ClusterSelector, for applying configs to only a subset
- * of clusters.
- * Omit this field if the cluster's fleet membership name is used by Config
- * Sync cluster-name-selector annotation or ClusterSelector.
- * Set this field if a name different from the cluster's fleet membership name
- * is used by Config Sync cluster-name-selector annotation or ClusterSelector.
- *
- * Generated from protobuf field string cluster = 11;
- * @return string
- */
- public function getCluster()
- {
- return $this->cluster;
- }
-
- /**
- * The user-specified cluster name used by Config Sync cluster-name-selector
- * annotation or ClusterSelector, for applying configs to only a subset
- * of clusters.
- * Omit this field if the cluster's fleet membership name is used by Config
- * Sync cluster-name-selector annotation or ClusterSelector.
- * Set this field if a name different from the cluster's fleet membership name
- * is used by Config Sync cluster-name-selector annotation or ClusterSelector.
- *
- * Generated from protobuf field string cluster = 11;
- * @param string $var
- * @return $this
- */
- public function setCluster($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster = $var;
-
- return $this;
- }
-
- /**
- * Enables automatic Feature management.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12;
- * @return int
- */
- public function getManagement()
- {
- return $this->management;
- }
-
- /**
- * Enables automatic Feature management.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management management = 12;
- * @param int $var
- * @return $this
- */
- public function setManagement($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec\Management::class);
- $this->management = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec/Management.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec/Management.php
deleted file mode 100644
index a7e4823ee480..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipSpec/Management.php
+++ /dev/null
@@ -1,64 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.MembershipSpec.Management
- */
-class Management
-{
- /**
- * Unspecified
- *
- * Generated from protobuf enum MANAGEMENT_UNSPECIFIED = 0;
- */
- const MANAGEMENT_UNSPECIFIED = 0;
- /**
- * Google will manage the Feature for the cluster.
- *
- * Generated from protobuf enum MANAGEMENT_AUTOMATIC = 1;
- */
- const MANAGEMENT_AUTOMATIC = 1;
- /**
- * User will manually manage the Feature for the cluster.
- *
- * Generated from protobuf enum MANAGEMENT_MANUAL = 2;
- */
- const MANAGEMENT_MANUAL = 2;
-
- private static $valueToName = [
- self::MANAGEMENT_UNSPECIFIED => 'MANAGEMENT_UNSPECIFIED',
- self::MANAGEMENT_AUTOMATIC => 'MANAGEMENT_AUTOMATIC',
- self::MANAGEMENT_MANUAL => 'MANAGEMENT_MANUAL',
- ];
-
- 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(Management::class, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec_Management::class);
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipState.php
deleted file mode 100644
index f9539fae394b..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/MembershipState.php
+++ /dev/null
@@ -1,299 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.MembershipState
- */
-class MembershipState extends \Google\Protobuf\Internal\Message
-{
- /**
- * This field is set to the `cluster_name` field of the Membership Spec if it
- * is not empty. Otherwise, it is set to the cluster's fleet membership name.
- *
- * Generated from protobuf field string cluster_name = 1;
- */
- protected $cluster_name = '';
- /**
- * Membership configuration in the cluster. This represents the actual state
- * in the cluster, while the MembershipSpec in the FeatureSpec represents
- * the intended state
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
- */
- protected $membership_spec = null;
- /**
- * Current install status of ACM's Operator
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3;
- */
- protected $operator_state = null;
- /**
- * Current sync status
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4;
- */
- protected $config_sync_state = null;
- /**
- * PolicyController status
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5;
- */
- protected $policy_controller_state = null;
- /**
- * Hierarchy Controller status
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7;
- */
- protected $hierarchy_controller_state = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $cluster_name
- * This field is set to the `cluster_name` field of the Membership Spec if it
- * is not empty. Otherwise, it is set to the cluster's fleet membership name.
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec $membership_spec
- * Membership configuration in the cluster. This represents the actual state
- * in the cluster, while the MembershipSpec in the FeatureSpec represents
- * the intended state
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState $operator_state
- * Current install status of ACM's Operator
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState $config_sync_state
- * Current sync status
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState $policy_controller_state
- * PolicyController status
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState $hierarchy_controller_state
- * Hierarchy Controller status
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * This field is set to the `cluster_name` field of the Membership Spec if it
- * is not empty. Otherwise, it is set to the cluster's fleet membership name.
- *
- * Generated from protobuf field string cluster_name = 1;
- * @return string
- */
- public function getClusterName()
- {
- return $this->cluster_name;
- }
-
- /**
- * This field is set to the `cluster_name` field of the Membership Spec if it
- * is not empty. Otherwise, it is set to the cluster's fleet membership name.
- *
- * Generated from protobuf field string cluster_name = 1;
- * @param string $var
- * @return $this
- */
- public function setClusterName($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster_name = $var;
-
- return $this;
- }
-
- /**
- * Membership configuration in the cluster. This represents the actual state
- * in the cluster, while the MembershipSpec in the FeatureSpec represents
- * the intended state
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec|null
- */
- public function getMembershipSpec()
- {
- return $this->membership_spec;
- }
-
- public function hasMembershipSpec()
- {
- return isset($this->membership_spec);
- }
-
- public function clearMembershipSpec()
- {
- unset($this->membership_spec);
- }
-
- /**
- * Membership configuration in the cluster. This represents the actual state
- * in the cluster, while the MembershipSpec in the FeatureSpec represents
- * the intended state
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec membership_spec = 2;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec $var
- * @return $this
- */
- public function setMembershipSpec($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec::class);
- $this->membership_spec = $var;
-
- return $this;
- }
-
- /**
- * Current install status of ACM's Operator
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState|null
- */
- public function getOperatorState()
- {
- return $this->operator_state;
- }
-
- public function hasOperatorState()
- {
- return isset($this->operator_state);
- }
-
- public function clearOperatorState()
- {
- unset($this->operator_state);
- }
-
- /**
- * Current install status of ACM's Operator
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.OperatorState operator_state = 3;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState $var
- * @return $this
- */
- public function setOperatorState($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\OperatorState::class);
- $this->operator_state = $var;
-
- return $this;
- }
-
- /**
- * Current sync status
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState|null
- */
- public function getConfigSyncState()
- {
- return $this->config_sync_state;
- }
-
- public function hasConfigSyncState()
- {
- return isset($this->config_sync_state);
- }
-
- public function clearConfigSyncState()
- {
- unset($this->config_sync_state);
- }
-
- /**
- * Current sync status
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.ConfigSyncState config_sync_state = 4;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState $var
- * @return $this
- */
- public function setConfigSyncState($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\ConfigSyncState::class);
- $this->config_sync_state = $var;
-
- return $this;
- }
-
- /**
- * PolicyController status
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState|null
- */
- public function getPolicyControllerState()
- {
- return $this->policy_controller_state;
- }
-
- public function hasPolicyControllerState()
- {
- return isset($this->policy_controller_state);
- }
-
- public function clearPolicyControllerState()
- {
- unset($this->policy_controller_state);
- }
-
- /**
- * PolicyController status
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerState policy_controller_state = 5;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState $var
- * @return $this
- */
- public function setPolicyControllerState($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerState::class);
- $this->policy_controller_state = $var;
-
- return $this;
- }
-
- /**
- * Hierarchy Controller status
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState|null
- */
- public function getHierarchyControllerState()
- {
- return $this->hierarchy_controller_state;
- }
-
- public function hasHierarchyControllerState()
- {
- return isset($this->hierarchy_controller_state);
- }
-
- public function clearHierarchyControllerState()
- {
- unset($this->hierarchy_controller_state);
- }
-
- /**
- * Hierarchy Controller status
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.HierarchyControllerState hierarchy_controller_state = 7;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState $var
- * @return $this
- */
- public function setHierarchyControllerState($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\HierarchyControllerState::class);
- $this->hierarchy_controller_state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OciConfig.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OciConfig.php
deleted file mode 100644
index b2b91e6ea01b..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OciConfig.php
+++ /dev/null
@@ -1,215 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.OciConfig
- */
-class OciConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * The OCI image repository URL for the package to sync from.
- * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
- *
- * Generated from protobuf field string sync_repo = 1;
- */
- protected $sync_repo = '';
- /**
- * The absolute path of the directory that contains
- * the local resources. Default: the root directory of the image.
- *
- * Generated from protobuf field string policy_dir = 2;
- */
- protected $policy_dir = '';
- /**
- * Period in seconds between consecutive syncs. Default: 15.
- *
- * Generated from protobuf field int64 sync_wait_secs = 3;
- */
- protected $sync_wait_secs = 0;
- /**
- * Type of secret configured for access to the Git repo.
- *
- * Generated from protobuf field string secret_type = 4;
- */
- protected $secret_type = '';
- /**
- * The Google Cloud Service Account Email used for auth when secret_type is
- * gcpServiceAccount.
- *
- * Generated from protobuf field string gcp_service_account_email = 5;
- */
- protected $gcp_service_account_email = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $sync_repo
- * The OCI image repository URL for the package to sync from.
- * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
- * @type string $policy_dir
- * The absolute path of the directory that contains
- * the local resources. Default: the root directory of the image.
- * @type int|string $sync_wait_secs
- * Period in seconds between consecutive syncs. Default: 15.
- * @type string $secret_type
- * Type of secret configured for access to the Git repo.
- * @type string $gcp_service_account_email
- * The Google Cloud Service Account Email used for auth when secret_type is
- * gcpServiceAccount.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The OCI image repository URL for the package to sync from.
- * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
- *
- * Generated from protobuf field string sync_repo = 1;
- * @return string
- */
- public function getSyncRepo()
- {
- return $this->sync_repo;
- }
-
- /**
- * The OCI image repository URL for the package to sync from.
- * e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
- *
- * Generated from protobuf field string sync_repo = 1;
- * @param string $var
- * @return $this
- */
- public function setSyncRepo($var)
- {
- GPBUtil::checkString($var, True);
- $this->sync_repo = $var;
-
- return $this;
- }
-
- /**
- * The absolute path of the directory that contains
- * the local resources. Default: the root directory of the image.
- *
- * Generated from protobuf field string policy_dir = 2;
- * @return string
- */
- public function getPolicyDir()
- {
- return $this->policy_dir;
- }
-
- /**
- * The absolute path of the directory that contains
- * the local resources. Default: the root directory of the image.
- *
- * Generated from protobuf field string policy_dir = 2;
- * @param string $var
- * @return $this
- */
- public function setPolicyDir($var)
- {
- GPBUtil::checkString($var, True);
- $this->policy_dir = $var;
-
- return $this;
- }
-
- /**
- * Period in seconds between consecutive syncs. Default: 15.
- *
- * Generated from protobuf field int64 sync_wait_secs = 3;
- * @return int|string
- */
- public function getSyncWaitSecs()
- {
- return $this->sync_wait_secs;
- }
-
- /**
- * Period in seconds between consecutive syncs. Default: 15.
- *
- * Generated from protobuf field int64 sync_wait_secs = 3;
- * @param int|string $var
- * @return $this
- */
- public function setSyncWaitSecs($var)
- {
- GPBUtil::checkInt64($var);
- $this->sync_wait_secs = $var;
-
- return $this;
- }
-
- /**
- * Type of secret configured for access to the Git repo.
- *
- * Generated from protobuf field string secret_type = 4;
- * @return string
- */
- public function getSecretType()
- {
- return $this->secret_type;
- }
-
- /**
- * Type of secret configured for access to the Git repo.
- *
- * Generated from protobuf field string secret_type = 4;
- * @param string $var
- * @return $this
- */
- public function setSecretType($var)
- {
- GPBUtil::checkString($var, True);
- $this->secret_type = $var;
-
- return $this;
- }
-
- /**
- * The Google Cloud Service Account Email used for auth when secret_type is
- * gcpServiceAccount.
- *
- * Generated from protobuf field string gcp_service_account_email = 5;
- * @return string
- */
- public function getGcpServiceAccountEmail()
- {
- return $this->gcp_service_account_email;
- }
-
- /**
- * The Google Cloud Service Account Email used for auth when secret_type is
- * gcpServiceAccount.
- *
- * Generated from protobuf field string gcp_service_account_email = 5;
- * @param string $var
- * @return $this
- */
- public function setGcpServiceAccountEmail($var)
- {
- GPBUtil::checkString($var, True);
- $this->gcp_service_account_email = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OperatorState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OperatorState.php
deleted file mode 100644
index 8b91ffdf0006..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/OperatorState.php
+++ /dev/null
@@ -1,135 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.OperatorState
- */
-class OperatorState extends \Google\Protobuf\Internal\Message
-{
- /**
- * The semenatic version number of the operator
- *
- * Generated from protobuf field string version = 1;
- */
- protected $version = '';
- /**
- * The state of the Operator's deployment
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2;
- */
- protected $deployment_state = 0;
- /**
- * Install errors.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;
- */
- private $errors;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $version
- * The semenatic version number of the operator
- * @type int $deployment_state
- * The state of the Operator's deployment
- * @type array<\Google\Cloud\GkeHub\ConfigManagement\V1\InstallError>|\Google\Protobuf\Internal\RepeatedField $errors
- * Install errors.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The semenatic version number of the operator
- *
- * Generated from protobuf field string version = 1;
- * @return string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * The semenatic version number of the operator
- *
- * Generated from protobuf field string version = 1;
- * @param string $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->version = $var;
-
- return $this;
- }
-
- /**
- * The state of the Operator's deployment
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2;
- * @return int
- */
- public function getDeploymentState()
- {
- return $this->deployment_state;
- }
-
- /**
- * The state of the Operator's deployment
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.DeploymentState deployment_state = 2;
- * @param int $var
- * @return $this
- */
- public function setDeploymentState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\DeploymentState::class);
- $this->deployment_state = $var;
-
- return $this;
- }
-
- /**
- * Install errors.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getErrors()
- {
- return $this->errors;
- }
-
- /**
- * Install errors.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.InstallError errors = 3;
- * @param array<\Google\Cloud\GkeHub\ConfigManagement\V1\InstallError>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setErrors($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\ConfigManagement\V1\InstallError::class);
- $this->errors = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyController.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyController.php
deleted file mode 100644
index eafd7df91446..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyController.php
+++ /dev/null
@@ -1,277 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.PolicyController
- */
-class PolicyController extends \Google\Protobuf\Internal\Message
-{
- /**
- * Enables the installation of Policy Controller.
- * If false, the rest of PolicyController fields take no
- * effect.
- *
- * Generated from protobuf field bool enabled = 1;
- */
- protected $enabled = false;
- /**
- * Installs the default template library along with Policy Controller.
- *
- * Generated from protobuf field optional bool template_library_installed = 2;
- */
- protected $template_library_installed = null;
- /**
- * Sets the interval for Policy Controller Audit Scans (in seconds).
- * When set to 0, this disables audit functionality altogether.
- *
- * Generated from protobuf field optional int64 audit_interval_seconds = 3;
- */
- protected $audit_interval_seconds = null;
- /**
- * The set of namespaces that are excluded from Policy Controller checks.
- * Namespaces do not need to currently exist on the cluster.
- *
- * Generated from protobuf field repeated string exemptable_namespaces = 4;
- */
- private $exemptable_namespaces;
- /**
- * Enables the ability to use Constraint Templates that reference to objects
- * other than the object currently being evaluated.
- *
- * Generated from protobuf field bool referential_rules_enabled = 5;
- */
- protected $referential_rules_enabled = false;
- /**
- * Logs all denies and dry run failures.
- *
- * Generated from protobuf field bool log_denies_enabled = 6;
- */
- protected $log_denies_enabled = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $enabled
- * Enables the installation of Policy Controller.
- * If false, the rest of PolicyController fields take no
- * effect.
- * @type bool $template_library_installed
- * Installs the default template library along with Policy Controller.
- * @type int|string $audit_interval_seconds
- * Sets the interval for Policy Controller Audit Scans (in seconds).
- * When set to 0, this disables audit functionality altogether.
- * @type array|\Google\Protobuf\Internal\RepeatedField $exemptable_namespaces
- * The set of namespaces that are excluded from Policy Controller checks.
- * Namespaces do not need to currently exist on the cluster.
- * @type bool $referential_rules_enabled
- * Enables the ability to use Constraint Templates that reference to objects
- * other than the object currently being evaluated.
- * @type bool $log_denies_enabled
- * Logs all denies and dry run failures.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Enables the installation of Policy Controller.
- * If false, the rest of PolicyController fields take no
- * effect.
- *
- * Generated from protobuf field bool enabled = 1;
- * @return bool
- */
- public function getEnabled()
- {
- return $this->enabled;
- }
-
- /**
- * Enables the installation of Policy Controller.
- * If false, the rest of PolicyController fields take no
- * effect.
- *
- * Generated from protobuf field bool enabled = 1;
- * @param bool $var
- * @return $this
- */
- public function setEnabled($var)
- {
- GPBUtil::checkBool($var);
- $this->enabled = $var;
-
- return $this;
- }
-
- /**
- * Installs the default template library along with Policy Controller.
- *
- * Generated from protobuf field optional bool template_library_installed = 2;
- * @return bool
- */
- public function getTemplateLibraryInstalled()
- {
- return isset($this->template_library_installed) ? $this->template_library_installed : false;
- }
-
- public function hasTemplateLibraryInstalled()
- {
- return isset($this->template_library_installed);
- }
-
- public function clearTemplateLibraryInstalled()
- {
- unset($this->template_library_installed);
- }
-
- /**
- * Installs the default template library along with Policy Controller.
- *
- * Generated from protobuf field optional bool template_library_installed = 2;
- * @param bool $var
- * @return $this
- */
- public function setTemplateLibraryInstalled($var)
- {
- GPBUtil::checkBool($var);
- $this->template_library_installed = $var;
-
- return $this;
- }
-
- /**
- * Sets the interval for Policy Controller Audit Scans (in seconds).
- * When set to 0, this disables audit functionality altogether.
- *
- * Generated from protobuf field optional int64 audit_interval_seconds = 3;
- * @return int|string
- */
- public function getAuditIntervalSeconds()
- {
- return isset($this->audit_interval_seconds) ? $this->audit_interval_seconds : 0;
- }
-
- public function hasAuditIntervalSeconds()
- {
- return isset($this->audit_interval_seconds);
- }
-
- public function clearAuditIntervalSeconds()
- {
- unset($this->audit_interval_seconds);
- }
-
- /**
- * Sets the interval for Policy Controller Audit Scans (in seconds).
- * When set to 0, this disables audit functionality altogether.
- *
- * Generated from protobuf field optional int64 audit_interval_seconds = 3;
- * @param int|string $var
- * @return $this
- */
- public function setAuditIntervalSeconds($var)
- {
- GPBUtil::checkInt64($var);
- $this->audit_interval_seconds = $var;
-
- return $this;
- }
-
- /**
- * The set of namespaces that are excluded from Policy Controller checks.
- * Namespaces do not need to currently exist on the cluster.
- *
- * Generated from protobuf field repeated string exemptable_namespaces = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getExemptableNamespaces()
- {
- return $this->exemptable_namespaces;
- }
-
- /**
- * The set of namespaces that are excluded from Policy Controller checks.
- * Namespaces do not need to currently exist on the cluster.
- *
- * Generated from protobuf field repeated string exemptable_namespaces = 4;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setExemptableNamespaces($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->exemptable_namespaces = $arr;
-
- return $this;
- }
-
- /**
- * Enables the ability to use Constraint Templates that reference to objects
- * other than the object currently being evaluated.
- *
- * Generated from protobuf field bool referential_rules_enabled = 5;
- * @return bool
- */
- public function getReferentialRulesEnabled()
- {
- return $this->referential_rules_enabled;
- }
-
- /**
- * Enables the ability to use Constraint Templates that reference to objects
- * other than the object currently being evaluated.
- *
- * Generated from protobuf field bool referential_rules_enabled = 5;
- * @param bool $var
- * @return $this
- */
- public function setReferentialRulesEnabled($var)
- {
- GPBUtil::checkBool($var);
- $this->referential_rules_enabled = $var;
-
- return $this;
- }
-
- /**
- * Logs all denies and dry run failures.
- *
- * Generated from protobuf field bool log_denies_enabled = 6;
- * @return bool
- */
- public function getLogDeniesEnabled()
- {
- return $this->log_denies_enabled;
- }
-
- /**
- * Logs all denies and dry run failures.
- *
- * Generated from protobuf field bool log_denies_enabled = 6;
- * @param bool $var
- * @return $this
- */
- public function setLogDeniesEnabled($var)
- {
- GPBUtil::checkBool($var);
- $this->log_denies_enabled = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerState.php
deleted file mode 100644
index e0ba94d19999..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerState.php
+++ /dev/null
@@ -1,121 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.PolicyControllerState
- */
-class PolicyControllerState extends \Google\Protobuf\Internal\Message
-{
- /**
- * The version of Gatekeeper Policy Controller deployed.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1;
- */
- protected $version = null;
- /**
- * The state about the policy controller installation.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2;
- */
- protected $deployment_state = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerVersion $version
- * The version of Gatekeeper Policy Controller deployed.
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\GatekeeperDeploymentState $deployment_state
- * The state about the policy controller installation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The version of Gatekeeper Policy Controller deployed.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerVersion|null
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- public function hasVersion()
- {
- return isset($this->version);
- }
-
- public function clearVersion()
- {
- unset($this->version);
- }
-
- /**
- * The version of Gatekeeper Policy Controller deployed.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion version = 1;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerVersion $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\PolicyControllerVersion::class);
- $this->version = $var;
-
- return $this;
- }
-
- /**
- * The state about the policy controller installation.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\GatekeeperDeploymentState|null
- */
- public function getDeploymentState()
- {
- return $this->deployment_state;
- }
-
- public function hasDeploymentState()
- {
- return isset($this->deployment_state);
- }
-
- public function clearDeploymentState()
- {
- unset($this->deployment_state);
- }
-
- /**
- * The state about the policy controller installation.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.GatekeeperDeploymentState deployment_state = 2;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\GatekeeperDeploymentState $var
- * @return $this
- */
- public function setDeploymentState($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\GatekeeperDeploymentState::class);
- $this->deployment_state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerVersion.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerVersion.php
deleted file mode 100644
index fb70a7bffb04..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/PolicyControllerVersion.php
+++ /dev/null
@@ -1,71 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.PolicyControllerVersion
- */
-class PolicyControllerVersion extends \Google\Protobuf\Internal\Message
-{
- /**
- * The gatekeeper image tag that is composed of ACM version, git tag, build
- * number.
- *
- * Generated from protobuf field string version = 1;
- */
- protected $version = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $version
- * The gatekeeper image tag that is composed of ACM version, git tag, build
- * number.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The gatekeeper image tag that is composed of ACM version, git tag, build
- * number.
- *
- * Generated from protobuf field string version = 1;
- * @return string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * The gatekeeper image tag that is composed of ACM version, git tag, build
- * number.
- *
- * Generated from protobuf field string version = 1;
- * @param string $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncError.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncError.php
deleted file mode 100644
index f9a32a75047d..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncError.php
+++ /dev/null
@@ -1,135 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.SyncError
- */
-class SyncError extends \Google\Protobuf\Internal\Message
-{
- /**
- * An ACM defined error code
- *
- * Generated from protobuf field string code = 1;
- */
- protected $code = '';
- /**
- * A description of the error
- *
- * Generated from protobuf field string error_message = 2;
- */
- protected $error_message = '';
- /**
- * A list of config(s) associated with the error, if any
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;
- */
- private $error_resources;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $code
- * An ACM defined error code
- * @type string $error_message
- * A description of the error
- * @type array<\Google\Cloud\GkeHub\ConfigManagement\V1\ErrorResource>|\Google\Protobuf\Internal\RepeatedField $error_resources
- * A list of config(s) associated with the error, if any
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * An ACM defined error code
- *
- * Generated from protobuf field string code = 1;
- * @return string
- */
- public function getCode()
- {
- return $this->code;
- }
-
- /**
- * An ACM defined error code
- *
- * Generated from protobuf field string code = 1;
- * @param string $var
- * @return $this
- */
- public function setCode($var)
- {
- GPBUtil::checkString($var, True);
- $this->code = $var;
-
- return $this;
- }
-
- /**
- * A description of the error
- *
- * Generated from protobuf field string error_message = 2;
- * @return string
- */
- public function getErrorMessage()
- {
- return $this->error_message;
- }
-
- /**
- * A description of the error
- *
- * Generated from protobuf field string error_message = 2;
- * @param string $var
- * @return $this
- */
- public function setErrorMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->error_message = $var;
-
- return $this;
- }
-
- /**
- * A list of config(s) associated with the error, if any
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getErrorResources()
- {
- return $this->error_resources;
- }
-
- /**
- * A list of config(s) associated with the error, if any
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.ErrorResource error_resources = 3;
- * @param array<\Google\Cloud\GkeHub\ConfigManagement\V1\ErrorResource>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setErrorResources($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\ConfigManagement\V1\ErrorResource::class);
- $this->error_resources = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState.php
deleted file mode 100644
index 46dd803be42b..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState.php
+++ /dev/null
@@ -1,302 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.SyncState
- */
-class SyncState extends \Google\Protobuf\Internal\Message
-{
- /**
- * Token indicating the state of the repo.
- *
- * Generated from protobuf field string source_token = 1;
- */
- protected $source_token = '';
- /**
- * Token indicating the state of the importer.
- *
- * Generated from protobuf field string import_token = 2;
- */
- protected $import_token = '';
- /**
- * Token indicating the state of the syncer.
- *
- * Generated from protobuf field string sync_token = 3;
- */
- protected $sync_token = '';
- /**
- * Deprecated: use last_sync_time instead.
- * Timestamp of when ACM last successfully synced the repo
- * The time format is specified in https://golang.org/pkg/time/#Time.String
- *
- * Generated from protobuf field string last_sync = 4 [deprecated = true];
- * @deprecated
- */
- protected $last_sync = '';
- /**
- * Timestamp type of when ACM last successfully synced the repo
- *
- * Generated from protobuf field .google.protobuf.Timestamp last_sync_time = 7;
- */
- protected $last_sync_time = null;
- /**
- * Sync status code
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5;
- */
- protected $code = 0;
- /**
- * A list of errors resulting from problematic configs.
- * This list will be truncated after 100 errors, although it is
- * unlikely for that many errors to simultaneously exist.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
- */
- private $errors;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $source_token
- * Token indicating the state of the repo.
- * @type string $import_token
- * Token indicating the state of the importer.
- * @type string $sync_token
- * Token indicating the state of the syncer.
- * @type string $last_sync
- * Deprecated: use last_sync_time instead.
- * Timestamp of when ACM last successfully synced the repo
- * The time format is specified in https://golang.org/pkg/time/#Time.String
- * @type \Google\Protobuf\Timestamp $last_sync_time
- * Timestamp type of when ACM last successfully synced the repo
- * @type int $code
- * Sync status code
- * @type array<\Google\Cloud\GkeHub\ConfigManagement\V1\SyncError>|\Google\Protobuf\Internal\RepeatedField $errors
- * A list of errors resulting from problematic configs.
- * This list will be truncated after 100 errors, although it is
- * unlikely for that many errors to simultaneously exist.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Configmanagement\Configmanagement::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Token indicating the state of the repo.
- *
- * Generated from protobuf field string source_token = 1;
- * @return string
- */
- public function getSourceToken()
- {
- return $this->source_token;
- }
-
- /**
- * Token indicating the state of the repo.
- *
- * Generated from protobuf field string source_token = 1;
- * @param string $var
- * @return $this
- */
- public function setSourceToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->source_token = $var;
-
- return $this;
- }
-
- /**
- * Token indicating the state of the importer.
- *
- * Generated from protobuf field string import_token = 2;
- * @return string
- */
- public function getImportToken()
- {
- return $this->import_token;
- }
-
- /**
- * Token indicating the state of the importer.
- *
- * Generated from protobuf field string import_token = 2;
- * @param string $var
- * @return $this
- */
- public function setImportToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->import_token = $var;
-
- return $this;
- }
-
- /**
- * Token indicating the state of the syncer.
- *
- * Generated from protobuf field string sync_token = 3;
- * @return string
- */
- public function getSyncToken()
- {
- return $this->sync_token;
- }
-
- /**
- * Token indicating the state of the syncer.
- *
- * Generated from protobuf field string sync_token = 3;
- * @param string $var
- * @return $this
- */
- public function setSyncToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->sync_token = $var;
-
- return $this;
- }
-
- /**
- * Deprecated: use last_sync_time instead.
- * Timestamp of when ACM last successfully synced the repo
- * The time format is specified in https://golang.org/pkg/time/#Time.String
- *
- * Generated from protobuf field string last_sync = 4 [deprecated = true];
- * @return string
- * @deprecated
- */
- public function getLastSync()
- {
- @trigger_error('last_sync is deprecated.', E_USER_DEPRECATED);
- return $this->last_sync;
- }
-
- /**
- * Deprecated: use last_sync_time instead.
- * Timestamp of when ACM last successfully synced the repo
- * The time format is specified in https://golang.org/pkg/time/#Time.String
- *
- * Generated from protobuf field string last_sync = 4 [deprecated = true];
- * @param string $var
- * @return $this
- * @deprecated
- */
- public function setLastSync($var)
- {
- @trigger_error('last_sync is deprecated.', E_USER_DEPRECATED);
- GPBUtil::checkString($var, True);
- $this->last_sync = $var;
-
- return $this;
- }
-
- /**
- * Timestamp type of when ACM last successfully synced the repo
- *
- * Generated from protobuf field .google.protobuf.Timestamp last_sync_time = 7;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getLastSyncTime()
- {
- return $this->last_sync_time;
- }
-
- public function hasLastSyncTime()
- {
- return isset($this->last_sync_time);
- }
-
- public function clearLastSyncTime()
- {
- unset($this->last_sync_time);
- }
-
- /**
- * Timestamp type of when ACM last successfully synced the repo
- *
- * Generated from protobuf field .google.protobuf.Timestamp last_sync_time = 7;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setLastSyncTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->last_sync_time = $var;
-
- return $this;
- }
-
- /**
- * Sync status code
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5;
- * @return int
- */
- public function getCode()
- {
- return $this->code;
- }
-
- /**
- * Sync status code
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode code = 5;
- * @param int $var
- * @return $this
- */
- public function setCode($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState\SyncCode::class);
- $this->code = $var;
-
- return $this;
- }
-
- /**
- * A list of errors resulting from problematic configs.
- * This list will be truncated after 100 errors, although it is
- * unlikely for that many errors to simultaneously exist.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getErrors()
- {
- return $this->errors;
- }
-
- /**
- * A list of errors resulting from problematic configs.
- * This list will be truncated after 100 errors, although it is
- * unlikely for that many errors to simultaneously exist.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.configmanagement.v1.SyncError errors = 6;
- * @param array<\Google\Cloud\GkeHub\ConfigManagement\V1\SyncError>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setErrors($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\ConfigManagement\V1\SyncError::class);
- $this->errors = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState/SyncCode.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState/SyncCode.php
deleted file mode 100644
index 79c8f38a8fd7..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/ConfigManagement/V1/SyncState/SyncCode.php
+++ /dev/null
@@ -1,99 +0,0 @@
-google.cloud.gkehub.configmanagement.v1.SyncState.SyncCode
- */
-class SyncCode
-{
- /**
- * Config Sync cannot determine a sync code
- *
- * Generated from protobuf enum SYNC_CODE_UNSPECIFIED = 0;
- */
- const SYNC_CODE_UNSPECIFIED = 0;
- /**
- * Config Sync successfully synced the git Repo with the cluster
- *
- * Generated from protobuf enum SYNCED = 1;
- */
- const SYNCED = 1;
- /**
- * Config Sync is in the progress of syncing a new change
- *
- * Generated from protobuf enum PENDING = 2;
- */
- const PENDING = 2;
- /**
- * Indicates an error configuring Config Sync, and user action is required
- *
- * Generated from protobuf enum ERROR = 3;
- */
- const ERROR = 3;
- /**
- * Config Sync has been installed but not configured
- *
- * Generated from protobuf enum NOT_CONFIGURED = 4;
- */
- const NOT_CONFIGURED = 4;
- /**
- * Config Sync has not been installed
- *
- * Generated from protobuf enum NOT_INSTALLED = 5;
- */
- const NOT_INSTALLED = 5;
- /**
- * Error authorizing with the cluster
- *
- * Generated from protobuf enum UNAUTHORIZED = 6;
- */
- const UNAUTHORIZED = 6;
- /**
- * Cluster could not be reached
- *
- * Generated from protobuf enum UNREACHABLE = 7;
- */
- const UNREACHABLE = 7;
-
- private static $valueToName = [
- self::SYNC_CODE_UNSPECIFIED => 'SYNC_CODE_UNSPECIFIED',
- self::SYNCED => 'SYNCED',
- self::PENDING => 'PENDING',
- self::ERROR => 'ERROR',
- self::NOT_CONFIGURED => 'NOT_CONFIGURED',
- self::NOT_INSTALLED => 'NOT_INSTALLED',
- self::UNAUTHORIZED => 'UNAUTHORIZED',
- self::UNREACHABLE => 'UNREACHABLE',
- ];
-
- 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(SyncCode::class, \Google\Cloud\GkeHub\ConfigManagement\V1\SyncState_SyncCode::class);
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/MultiClusterIngress/V1/FeatureSpec.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/MultiClusterIngress/V1/FeatureSpec.php
deleted file mode 100644
index 1031f8479b15..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/MultiClusterIngress/V1/FeatureSpec.php
+++ /dev/null
@@ -1,72 +0,0 @@
-google.cloud.gkehub.multiclusteringress.v1.FeatureSpec
- */
-class FeatureSpec extends \Google\Protobuf\Internal\Message
-{
- /**
- * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
- * Example: `projects/foo-proj/locations/global/memberships/bar`
- *
- * Generated from protobuf field string config_membership = 1;
- */
- protected $config_membership = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $config_membership
- * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
- * Example: `projects/foo-proj/locations/global/memberships/bar`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Multiclusteringress\Multiclusteringress::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
- * Example: `projects/foo-proj/locations/global/memberships/bar`
- *
- * Generated from protobuf field string config_membership = 1;
- * @return string
- */
- public function getConfigMembership()
- {
- return $this->config_membership;
- }
-
- /**
- * Fully-qualified Membership name which hosts the MultiClusterIngress CRD.
- * Example: `projects/foo-proj/locations/global/memberships/bar`
- *
- * Generated from protobuf field string config_membership = 1;
- * @param string $var
- * @return $this
- */
- public function setConfigMembership($var)
- {
- GPBUtil::checkString($var, True);
- $this->config_membership = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Authority.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Authority.php
deleted file mode 100644
index 7a7413afa5cd..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Authority.php
+++ /dev/null
@@ -1,235 +0,0 @@
-google.cloud.gkehub.v1.Authority
- */
-class Authority extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with
- * `https://` and be a valid URL with length <2000 characters.
- * If set, then Google will allow valid OIDC tokens from this issuer to
- * authenticate within the workload_identity_pool. OIDC discovery will be
- * performed on this URI to validate tokens from the issuer.
- * Clearing `issuer` disables Workload Identity. `issuer` cannot be directly
- * modified; it must be cleared (and Workload Identity disabled) before using
- * a new issuer (and re-enabling Workload Identity).
- *
- * Generated from protobuf field string issuer = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $issuer = '';
- /**
- * Output only. The name of the workload identity pool in which `issuer` will
- * be recognized.
- * There is a single Workload Identity Pool per Hub that is shared
- * between all Memberships that belong to that Hub. For a Hub hosted in
- * {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`,
- * although this is subject to change in newer versions of this API.
- *
- * Generated from protobuf field string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $workload_identity_pool = '';
- /**
- * Output only. An identity provider that reflects the `issuer` in the
- * workload identity pool.
- *
- * Generated from protobuf field string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $identity_provider = '';
- /**
- * Optional. OIDC verification keys for this Membership in JWKS format (RFC
- * 7517).
- * When this field is set, OIDC discovery will NOT be performed on `issuer`,
- * and instead OIDC tokens will be validated using this field.
- *
- * Generated from protobuf field bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $oidc_jwks = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $issuer
- * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with
- * `https://` and be a valid URL with length <2000 characters.
- * If set, then Google will allow valid OIDC tokens from this issuer to
- * authenticate within the workload_identity_pool. OIDC discovery will be
- * performed on this URI to validate tokens from the issuer.
- * Clearing `issuer` disables Workload Identity. `issuer` cannot be directly
- * modified; it must be cleared (and Workload Identity disabled) before using
- * a new issuer (and re-enabling Workload Identity).
- * @type string $workload_identity_pool
- * Output only. The name of the workload identity pool in which `issuer` will
- * be recognized.
- * There is a single Workload Identity Pool per Hub that is shared
- * between all Memberships that belong to that Hub. For a Hub hosted in
- * {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`,
- * although this is subject to change in newer versions of this API.
- * @type string $identity_provider
- * Output only. An identity provider that reflects the `issuer` in the
- * workload identity pool.
- * @type string $oidc_jwks
- * Optional. OIDC verification keys for this Membership in JWKS format (RFC
- * 7517).
- * When this field is set, OIDC discovery will NOT be performed on `issuer`,
- * and instead OIDC tokens will be validated using this field.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with
- * `https://` and be a valid URL with length <2000 characters.
- * If set, then Google will allow valid OIDC tokens from this issuer to
- * authenticate within the workload_identity_pool. OIDC discovery will be
- * performed on this URI to validate tokens from the issuer.
- * Clearing `issuer` disables Workload Identity. `issuer` cannot be directly
- * modified; it must be cleared (and Workload Identity disabled) before using
- * a new issuer (and re-enabling Workload Identity).
- *
- * Generated from protobuf field string issuer = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getIssuer()
- {
- return $this->issuer;
- }
-
- /**
- * Optional. A JSON Web Token (JWT) issuer URI. `issuer` must start with
- * `https://` and be a valid URL with length <2000 characters.
- * If set, then Google will allow valid OIDC tokens from this issuer to
- * authenticate within the workload_identity_pool. OIDC discovery will be
- * performed on this URI to validate tokens from the issuer.
- * Clearing `issuer` disables Workload Identity. `issuer` cannot be directly
- * modified; it must be cleared (and Workload Identity disabled) before using
- * a new issuer (and re-enabling Workload Identity).
- *
- * Generated from protobuf field string issuer = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setIssuer($var)
- {
- GPBUtil::checkString($var, True);
- $this->issuer = $var;
-
- return $this;
- }
-
- /**
- * Output only. The name of the workload identity pool in which `issuer` will
- * be recognized.
- * There is a single Workload Identity Pool per Hub that is shared
- * between all Memberships that belong to that Hub. For a Hub hosted in
- * {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`,
- * although this is subject to change in newer versions of this API.
- *
- * Generated from protobuf field string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getWorkloadIdentityPool()
- {
- return $this->workload_identity_pool;
- }
-
- /**
- * Output only. The name of the workload identity pool in which `issuer` will
- * be recognized.
- * There is a single Workload Identity Pool per Hub that is shared
- * between all Memberships that belong to that Hub. For a Hub hosted in
- * {PROJECT_ID}, the workload pool format is `{PROJECT_ID}.hub.id.goog`,
- * although this is subject to change in newer versions of this API.
- *
- * Generated from protobuf field string workload_identity_pool = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setWorkloadIdentityPool($var)
- {
- GPBUtil::checkString($var, True);
- $this->workload_identity_pool = $var;
-
- return $this;
- }
-
- /**
- * Output only. An identity provider that reflects the `issuer` in the
- * workload identity pool.
- *
- * Generated from protobuf field string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getIdentityProvider()
- {
- return $this->identity_provider;
- }
-
- /**
- * Output only. An identity provider that reflects the `issuer` in the
- * workload identity pool.
- *
- * Generated from protobuf field string identity_provider = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setIdentityProvider($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity_provider = $var;
-
- return $this;
- }
-
- /**
- * Optional. OIDC verification keys for this Membership in JWKS format (RFC
- * 7517).
- * When this field is set, OIDC discovery will NOT be performed on `issuer`,
- * and instead OIDC tokens will be validated using this field.
- *
- * Generated from protobuf field bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOidcJwks()
- {
- return $this->oidc_jwks;
- }
-
- /**
- * Optional. OIDC verification keys for this Membership in JWKS format (RFC
- * 7517).
- * When this field is set, OIDC discovery will NOT be performed on `issuer`,
- * and instead OIDC tokens will be validated using this field.
- *
- * Generated from protobuf field bytes oidc_jwks = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOidcJwks($var)
- {
- GPBUtil::checkString($var, False);
- $this->oidc_jwks = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureSpec.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureSpec.php
deleted file mode 100644
index 7f7c7a4ded08..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureSpec.php
+++ /dev/null
@@ -1,75 +0,0 @@
-google.cloud.gkehub.v1.CommonFeatureSpec
- */
-class CommonFeatureSpec extends \Google\Protobuf\Internal\Message
-{
- protected $feature_spec;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeHub\MultiClusterIngress\V1\FeatureSpec $multiclusteringress
- * Multicluster Ingress-specific spec.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Multicluster Ingress-specific spec.
- *
- * Generated from protobuf field .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102;
- * @return \Google\Cloud\GkeHub\MultiClusterIngress\V1\FeatureSpec|null
- */
- public function getMulticlusteringress()
- {
- return $this->readOneof(102);
- }
-
- public function hasMulticlusteringress()
- {
- return $this->hasOneof(102);
- }
-
- /**
- * Multicluster Ingress-specific spec.
- *
- * Generated from protobuf field .google.cloud.gkehub.multiclusteringress.v1.FeatureSpec multiclusteringress = 102;
- * @param \Google\Cloud\GkeHub\MultiClusterIngress\V1\FeatureSpec $var
- * @return $this
- */
- public function setMulticlusteringress($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\MultiClusterIngress\V1\FeatureSpec::class);
- $this->writeOneof(102, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getFeatureSpec()
- {
- return $this->whichOneof("feature_spec");
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureState.php
deleted file mode 100644
index 58319d7a887c..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CommonFeatureState.php
+++ /dev/null
@@ -1,77 +0,0 @@
-google.cloud.gkehub.v1.CommonFeatureState
- */
-class CommonFeatureState extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The "running state" of the Feature in this Hub.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeHub\V1\FeatureState $state
- * Output only. The "running state" of the Feature in this Hub.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The "running state" of the Feature in this Hub.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\GkeHub\V1\FeatureState|null
- */
- public function getState()
- {
- return $this->state;
- }
-
- public function hasState()
- {
- return isset($this->state);
- }
-
- public function clearState()
- {
- unset($this->state);
- }
-
- /**
- * Output only. The "running state" of the Feature in this Hub.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\GkeHub\V1\FeatureState $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\FeatureState::class);
- $this->state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ConnectAgentResource.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ConnectAgentResource.php
deleted file mode 100644
index 4514fd3f1b41..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ConnectAgentResource.php
+++ /dev/null
@@ -1,112 +0,0 @@
-google.cloud.gkehub.v1.ConnectAgentResource
- */
-class ConnectAgentResource extends \Google\Protobuf\Internal\Message
-{
- /**
- * Kubernetes type of the resource.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.TypeMeta type = 1;
- */
- protected $type = null;
- /**
- * YAML manifest of the resource.
- *
- * Generated from protobuf field string manifest = 2;
- */
- protected $manifest = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeHub\V1\TypeMeta $type
- * Kubernetes type of the resource.
- * @type string $manifest
- * YAML manifest of the resource.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Kubernetes type of the resource.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.TypeMeta type = 1;
- * @return \Google\Cloud\GkeHub\V1\TypeMeta|null
- */
- public function getType()
- {
- return $this->type;
- }
-
- public function hasType()
- {
- return isset($this->type);
- }
-
- public function clearType()
- {
- unset($this->type);
- }
-
- /**
- * Kubernetes type of the resource.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.TypeMeta type = 1;
- * @param \Google\Cloud\GkeHub\V1\TypeMeta $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\TypeMeta::class);
- $this->type = $var;
-
- return $this;
- }
-
- /**
- * YAML manifest of the resource.
- *
- * Generated from protobuf field string manifest = 2;
- * @return string
- */
- public function getManifest()
- {
- return $this->manifest;
- }
-
- /**
- * YAML manifest of the resource.
- *
- * Generated from protobuf field string manifest = 2;
- * @param string $var
- * @return $this
- */
- public function setManifest($var)
- {
- GPBUtil::checkString($var, True);
- $this->manifest = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateFeatureRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateFeatureRequest.php
deleted file mode 100644
index a43bc5072821..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateFeatureRequest.php
+++ /dev/null
@@ -1,241 +0,0 @@
-google.cloud.gkehub.v1.CreateFeatureRequest
- */
-class CreateFeatureRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent (project and location) where the Feature will be created.
- * Specified in the format `projects/*/locations/*`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * The ID of the feature to create.
- *
- * Generated from protobuf field string feature_id = 2;
- */
- protected $feature_id = '';
- /**
- * The Feature resource to create.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3;
- */
- protected $resource = null;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4;
- */
- protected $request_id = '';
-
- /**
- * @param string $parent Required. The parent (project and location) where the Feature will be created.
- * Specified in the format `projects/*/locations/*`.
- * @param \Google\Cloud\GkeHub\V1\Feature $resource The Feature resource to create.
- * @param string $featureId The ID of the feature to create.
- *
- * @return \Google\Cloud\GkeHub\V1\CreateFeatureRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\GkeHub\V1\Feature $resource, string $featureId): self
- {
- return (new self())
- ->setParent($parent)
- ->setResource($resource)
- ->setFeatureId($featureId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent (project and location) where the Feature will be created.
- * Specified in the format `projects/*/locations/*`.
- * @type string $feature_id
- * The ID of the feature to create.
- * @type \Google\Cloud\GkeHub\V1\Feature $resource
- * The Feature resource to create.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent (project and location) where the Feature will be created.
- * Specified in the format `projects/*/locations/*`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent (project and location) where the Feature will be created.
- * Specified in the format `projects/*/locations/*`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * The ID of the feature to create.
- *
- * Generated from protobuf field string feature_id = 2;
- * @return string
- */
- public function getFeatureId()
- {
- return $this->feature_id;
- }
-
- /**
- * The ID of the feature to create.
- *
- * Generated from protobuf field string feature_id = 2;
- * @param string $var
- * @return $this
- */
- public function setFeatureId($var)
- {
- GPBUtil::checkString($var, True);
- $this->feature_id = $var;
-
- return $this;
- }
-
- /**
- * The Feature resource to create.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3;
- * @return \Google\Cloud\GkeHub\V1\Feature|null
- */
- public function getResource()
- {
- return $this->resource;
- }
-
- public function hasResource()
- {
- return isset($this->resource);
- }
-
- public function clearResource()
- {
- unset($this->resource);
- }
-
- /**
- * The Feature resource to create.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3;
- * @param \Google\Cloud\GkeHub\V1\Feature $var
- * @return $this
- */
- public function setResource($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Feature::class);
- $this->resource = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4;
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4;
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateMembershipRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateMembershipRequest.php
deleted file mode 100644
index 7ed12c498291..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/CreateMembershipRequest.php
+++ /dev/null
@@ -1,274 +0,0 @@
-google.cloud.gkehub.v1.CreateMembershipRequest
- */
-class CreateMembershipRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent (project and location) where the Memberships will be
- * created. Specified in the format `projects/*/locations/*`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. Client chosen ID for the membership. `membership_id` must be a
- * valid RFC 1123 compliant DNS label:
- * 1. At most 63 characters in length
- * 2. It must consist of lower case alphanumeric characters or `-`
- * 3. It must start and end with an alphanumeric character
- * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
- * with a maximum length of 63 characters.
- *
- * Generated from protobuf field string membership_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $membership_id = '';
- /**
- * Required. The membership to create.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $resource = null;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
-
- /**
- * @param string $parent Required. The parent (project and location) where the Memberships will be
- * created. Specified in the format `projects/*/locations/*`. Please see
- * {@see GkeHubClient::locationName()} for help formatting this field.
- * @param \Google\Cloud\GkeHub\V1\Membership $resource Required. The membership to create.
- * @param string $membershipId Required. Client chosen ID for the membership. `membership_id` must be a
- * valid RFC 1123 compliant DNS label:
- *
- * 1. At most 63 characters in length
- * 2. It must consist of lower case alphanumeric characters or `-`
- * 3. It must start and end with an alphanumeric character
- *
- * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
- * with a maximum length of 63 characters.
- *
- * @return \Google\Cloud\GkeHub\V1\CreateMembershipRequest
- *
- * @experimental
- */
- public static function build(string $parent, \Google\Cloud\GkeHub\V1\Membership $resource, string $membershipId): self
- {
- return (new self())
- ->setParent($parent)
- ->setResource($resource)
- ->setMembershipId($membershipId);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent (project and location) where the Memberships will be
- * created. Specified in the format `projects/*/locations/*`.
- * @type string $membership_id
- * Required. Client chosen ID for the membership. `membership_id` must be a
- * valid RFC 1123 compliant DNS label:
- * 1. At most 63 characters in length
- * 2. It must consist of lower case alphanumeric characters or `-`
- * 3. It must start and end with an alphanumeric character
- * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
- * with a maximum length of 63 characters.
- * @type \Google\Cloud\GkeHub\V1\Membership $resource
- * Required. The membership to create.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent (project and location) where the Memberships will be
- * created. Specified in the format `projects/*/locations/*`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent (project and location) where the Memberships will be
- * created. Specified in the format `projects/*/locations/*`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Required. Client chosen ID for the membership. `membership_id` must be a
- * valid RFC 1123 compliant DNS label:
- * 1. At most 63 characters in length
- * 2. It must consist of lower case alphanumeric characters or `-`
- * 3. It must start and end with an alphanumeric character
- * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
- * with a maximum length of 63 characters.
- *
- * Generated from protobuf field string membership_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return string
- */
- public function getMembershipId()
- {
- return $this->membership_id;
- }
-
- /**
- * Required. Client chosen ID for the membership. `membership_id` must be a
- * valid RFC 1123 compliant DNS label:
- * 1. At most 63 characters in length
- * 2. It must consist of lower case alphanumeric characters or `-`
- * 3. It must start and end with an alphanumeric character
- * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
- * with a maximum length of 63 characters.
- *
- * Generated from protobuf field string membership_id = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param string $var
- * @return $this
- */
- public function setMembershipId($var)
- {
- GPBUtil::checkString($var, True);
- $this->membership_id = $var;
-
- return $this;
- }
-
- /**
- * Required. The membership to create.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\GkeHub\V1\Membership|null
- */
- public function getResource()
- {
- return $this->resource;
- }
-
- public function hasResource()
- {
- return isset($this->resource);
- }
-
- public function clearResource()
- {
- unset($this->resource);
- }
-
- /**
- * Required. The membership to create.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\GkeHub\V1\Membership $var
- * @return $this
- */
- public function setResource($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Membership::class);
- $this->resource = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteFeatureRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteFeatureRequest.php
deleted file mode 100644
index e4859d9f53cb..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteFeatureRequest.php
+++ /dev/null
@@ -1,201 +0,0 @@
-google.cloud.gkehub.v1.DeleteFeatureRequest
- */
-class DeleteFeatureRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * If set to true, the delete will ignore any outstanding resources for
- * this Feature (that is, `FeatureState.has_resources` is set to true). These
- * resources will NOT be cleaned up or modified in any way.
- *
- * Generated from protobuf field bool force = 2;
- */
- protected $force = false;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
-
- /**
- * @param string $name Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`.
- *
- * @return \Google\Cloud\GkeHub\V1\DeleteFeatureRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`.
- * @type bool $force
- * If set to true, the delete will ignore any outstanding resources for
- * this Feature (that is, `FeatureState.has_resources` is set to true). These
- * resources will NOT be cleaned up or modified in any way.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * If set to true, the delete will ignore any outstanding resources for
- * this Feature (that is, `FeatureState.has_resources` is set to true). These
- * resources will NOT be cleaned up or modified in any way.
- *
- * Generated from protobuf field bool force = 2;
- * @return bool
- */
- public function getForce()
- {
- return $this->force;
- }
-
- /**
- * If set to true, the delete will ignore any outstanding resources for
- * this Feature (that is, `FeatureState.has_resources` is set to true). These
- * resources will NOT be cleaned up or modified in any way.
- *
- * Generated from protobuf field bool force = 2;
- * @param bool $var
- * @return $this
- */
- public function setForce($var)
- {
- GPBUtil::checkBool($var);
- $this->force = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteMembershipRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteMembershipRequest.php
deleted file mode 100644
index cf246161bdbe..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/DeleteMembershipRequest.php
+++ /dev/null
@@ -1,202 +0,0 @@
-google.cloud.gkehub.v1.DeleteMembershipRequest
- */
-class DeleteMembershipRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
- /**
- * Optional. If set to true, any subresource from this Membership will also be
- * deleted. Otherwise, the request will only work if the Membership has no
- * subresource.
- *
- * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $force = false;
-
- /**
- * @param string $name Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`. Please see
- * {@see GkeHubClient::membershipName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeHub\V1\DeleteMembershipRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * @type bool $force
- * Optional. If set to true, any subresource from this Membership will also be
- * deleted. Otherwise, the request will only work if the Membership has no
- * subresource.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. If set to true, any subresource from this Membership will also be
- * deleted. Otherwise, the request will only work if the Membership has no
- * subresource.
- *
- * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getForce()
- {
- return $this->force;
- }
-
- /**
- * Optional. If set to true, any subresource from this Membership will also be
- * deleted. Otherwise, the request will only work if the Membership has no
- * subresource.
- *
- * Generated from protobuf field bool force = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setForce($var)
- {
- GPBUtil::checkBool($var);
- $this->force = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Feature.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Feature.php
deleted file mode 100644
index 22cbd2b42a1b..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Feature.php
+++ /dev/null
@@ -1,513 +0,0 @@
-google.cloud.gkehub.v1.Feature
- */
-class Feature extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The full, unique name of this Feature resource in the format
- * `projects/*/locations/*/features/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * GCP labels for this Feature.
- *
- * Generated from protobuf field map labels = 2;
- */
- private $labels;
- /**
- * Output only. State of the Feature resource itself.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $resource_state = null;
- /**
- * Optional. Hub-wide Feature configuration. If this Feature does not support any
- * Hub-wide configuration, this field may be unused.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $spec = null;
- /**
- * Optional. Membership-specific configuration for this Feature. If this Feature does
- * not support any per-Membership configuration, this field may be unused.
- * The keys indicate which Membership the configuration is for, in the form:
- * projects/{p}/locations/{l}/memberships/{m}
- * Where {p} is the project, {l} is a valid location and {m} is a valid
- * Membership in this project at that location. {p} WILL match the Feature's
- * project.
- * {p} will always be returned as the project number, but the project ID is
- * also accepted during input. If the same Membership is specified in the map
- * twice (using the project ID form, and the project number form), exactly
- * ONE of the entries will be saved, with no guarantees as to which. For this
- * reason, it is recommended the same format be used for all entries when
- * mutating a Feature.
- *
- * Generated from protobuf field map membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $membership_specs;
- /**
- * Output only. The Hub-wide Feature state.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = null;
- /**
- * Output only. Membership-specific Feature status. If this Feature does
- * report any per-Membership status, this field may be unused.
- * The keys indicate which Membership the state is for, in the form:
- * projects/{p}/locations/{l}/memberships/{m}
- * Where {p} is the project number, {l} is a valid location and {m} is a valid
- * Membership in this project at that location. {p} MUST match the Feature's
- * project number.
- *
- * Generated from protobuf field map membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $membership_states;
- /**
- * Output only. When the Feature resource was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. When the Feature resource was last updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * Output only. When the Feature resource was deleted.
- *
- * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $delete_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Output only. The full, unique name of this Feature resource in the format
- * `projects/*/locations/*/features/*`.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * GCP labels for this Feature.
- * @type \Google\Cloud\GkeHub\V1\FeatureResourceState $resource_state
- * Output only. State of the Feature resource itself.
- * @type \Google\Cloud\GkeHub\V1\CommonFeatureSpec $spec
- * Optional. Hub-wide Feature configuration. If this Feature does not support any
- * Hub-wide configuration, this field may be unused.
- * @type array|\Google\Protobuf\Internal\MapField $membership_specs
- * Optional. Membership-specific configuration for this Feature. If this Feature does
- * not support any per-Membership configuration, this field may be unused.
- * The keys indicate which Membership the configuration is for, in the form:
- * projects/{p}/locations/{l}/memberships/{m}
- * Where {p} is the project, {l} is a valid location and {m} is a valid
- * Membership in this project at that location. {p} WILL match the Feature's
- * project.
- * {p} will always be returned as the project number, but the project ID is
- * also accepted during input. If the same Membership is specified in the map
- * twice (using the project ID form, and the project number form), exactly
- * ONE of the entries will be saved, with no guarantees as to which. For this
- * reason, it is recommended the same format be used for all entries when
- * mutating a Feature.
- * @type \Google\Cloud\GkeHub\V1\CommonFeatureState $state
- * Output only. The Hub-wide Feature state.
- * @type array|\Google\Protobuf\Internal\MapField $membership_states
- * Output only. Membership-specific Feature status. If this Feature does
- * report any per-Membership status, this field may be unused.
- * The keys indicate which Membership the state is for, in the form:
- * projects/{p}/locations/{l}/memberships/{m}
- * Where {p} is the project number, {l} is a valid location and {m} is a valid
- * Membership in this project at that location. {p} MUST match the Feature's
- * project number.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. When the Feature resource was created.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. When the Feature resource was last updated.
- * @type \Google\Protobuf\Timestamp $delete_time
- * Output only. When the Feature resource was deleted.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The full, unique name of this Feature resource in the format
- * `projects/*/locations/*/features/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. The full, unique name of this Feature resource in the format
- * `projects/*/locations/*/features/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * GCP labels for this Feature.
- *
- * Generated from protobuf field map labels = 2;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * GCP labels for this Feature.
- *
- * Generated from protobuf field map labels = 2;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Output only. State of the Feature resource itself.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\GkeHub\V1\FeatureResourceState|null
- */
- public function getResourceState()
- {
- return $this->resource_state;
- }
-
- public function hasResourceState()
- {
- return isset($this->resource_state);
- }
-
- public function clearResourceState()
- {
- unset($this->resource_state);
- }
-
- /**
- * Output only. State of the Feature resource itself.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState resource_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\GkeHub\V1\FeatureResourceState $var
- * @return $this
- */
- public function setResourceState($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\FeatureResourceState::class);
- $this->resource_state = $var;
-
- return $this;
- }
-
- /**
- * Optional. Hub-wide Feature configuration. If this Feature does not support any
- * Hub-wide configuration, this field may be unused.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeHub\V1\CommonFeatureSpec|null
- */
- public function getSpec()
- {
- return $this->spec;
- }
-
- public function hasSpec()
- {
- return isset($this->spec);
- }
-
- public function clearSpec()
- {
- unset($this->spec);
- }
-
- /**
- * Optional. Hub-wide Feature configuration. If this Feature does not support any
- * Hub-wide configuration, this field may be unused.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureSpec spec = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeHub\V1\CommonFeatureSpec $var
- * @return $this
- */
- public function setSpec($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\CommonFeatureSpec::class);
- $this->spec = $var;
-
- return $this;
- }
-
- /**
- * Optional. Membership-specific configuration for this Feature. If this Feature does
- * not support any per-Membership configuration, this field may be unused.
- * The keys indicate which Membership the configuration is for, in the form:
- * projects/{p}/locations/{l}/memberships/{m}
- * Where {p} is the project, {l} is a valid location and {m} is a valid
- * Membership in this project at that location. {p} WILL match the Feature's
- * project.
- * {p} will always be returned as the project number, but the project ID is
- * also accepted during input. If the same Membership is specified in the map
- * twice (using the project ID form, and the project number form), exactly
- * ONE of the entries will be saved, with no guarantees as to which. For this
- * reason, it is recommended the same format be used for all entries when
- * mutating a Feature.
- *
- * Generated from protobuf field map membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getMembershipSpecs()
- {
- return $this->membership_specs;
- }
-
- /**
- * Optional. Membership-specific configuration for this Feature. If this Feature does
- * not support any per-Membership configuration, this field may be unused.
- * The keys indicate which Membership the configuration is for, in the form:
- * projects/{p}/locations/{l}/memberships/{m}
- * Where {p} is the project, {l} is a valid location and {m} is a valid
- * Membership in this project at that location. {p} WILL match the Feature's
- * project.
- * {p} will always be returned as the project number, but the project ID is
- * also accepted during input. If the same Membership is specified in the map
- * twice (using the project ID form, and the project number form), exactly
- * ONE of the entries will be saved, with no guarantees as to which. For this
- * reason, it is recommended the same format be used for all entries when
- * mutating a Feature.
- *
- * Generated from protobuf field map membership_specs = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setMembershipSpecs($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\MembershipFeatureSpec::class);
- $this->membership_specs = $arr;
-
- return $this;
- }
-
- /**
- * Output only. The Hub-wide Feature state.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\GkeHub\V1\CommonFeatureState|null
- */
- public function getState()
- {
- return $this->state;
- }
-
- public function hasState()
- {
- return isset($this->state);
- }
-
- public function clearState()
- {
- unset($this->state);
- }
-
- /**
- * Output only. The Hub-wide Feature state.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.CommonFeatureState state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\GkeHub\V1\CommonFeatureState $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\CommonFeatureState::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. Membership-specific Feature status. If this Feature does
- * report any per-Membership status, this field may be unused.
- * The keys indicate which Membership the state is for, in the form:
- * projects/{p}/locations/{l}/memberships/{m}
- * Where {p} is the project number, {l} is a valid location and {m} is a valid
- * Membership in this project at that location. {p} MUST match the Feature's
- * project number.
- *
- * Generated from protobuf field map membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getMembershipStates()
- {
- return $this->membership_states;
- }
-
- /**
- * Output only. Membership-specific Feature status. If this Feature does
- * report any per-Membership status, this field may be unused.
- * The keys indicate which Membership the state is for, in the form:
- * projects/{p}/locations/{l}/memberships/{m}
- * Where {p} is the project number, {l} is a valid location and {m} is a valid
- * Membership in this project at that location. {p} MUST match the Feature's
- * project number.
- *
- * Generated from protobuf field map membership_states = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setMembershipStates($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\MembershipFeatureState::class);
- $this->membership_states = $arr;
-
- return $this;
- }
-
- /**
- * Output only. When the Feature resource was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. When the Feature resource was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. When the Feature resource was last updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. When the Feature resource was last updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. When the Feature resource was deleted.
- *
- * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getDeleteTime()
- {
- return $this->delete_time;
- }
-
- public function hasDeleteTime()
- {
- return isset($this->delete_time);
- }
-
- public function clearDeleteTime()
- {
- unset($this->delete_time);
- }
-
- /**
- * Output only. When the Feature resource was deleted.
- *
- * Generated from protobuf field .google.protobuf.Timestamp delete_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setDeleteTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->delete_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState.php
deleted file mode 100644
index 52b5f7983c2f..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState.php
+++ /dev/null
@@ -1,69 +0,0 @@
-google.cloud.gkehub.v1.FeatureResourceState
- */
-class FeatureResourceState extends \Google\Protobuf\Internal\Message
-{
- /**
- * The current state of the Feature resource in the Hub API.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState.State state = 1;
- */
- protected $state = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $state
- * The current state of the Feature resource in the Hub API.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The current state of the Feature resource in the Hub API.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState.State state = 1;
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * The current state of the Feature resource in the Hub API.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureResourceState.State state = 1;
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\V1\FeatureResourceState\State::class);
- $this->state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState/State.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState/State.php
deleted file mode 100644
index 127008cae944..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureResourceState/State.php
+++ /dev/null
@@ -1,88 +0,0 @@
-google.cloud.gkehub.v1.FeatureResourceState.State
- */
-class State
-{
- /**
- * State is unknown or not set.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * The Feature is being enabled, and the Feature resource is being created.
- * Once complete, the corresponding Feature will be enabled in this Hub.
- *
- * Generated from protobuf enum ENABLING = 1;
- */
- const ENABLING = 1;
- /**
- * The Feature is enabled in this Hub, and the Feature resource is fully
- * available.
- *
- * Generated from protobuf enum ACTIVE = 2;
- */
- const ACTIVE = 2;
- /**
- * The Feature is being disabled in this Hub, and the Feature resource
- * is being deleted.
- *
- * Generated from protobuf enum DISABLING = 3;
- */
- const DISABLING = 3;
- /**
- * The Feature resource is being updated.
- *
- * Generated from protobuf enum UPDATING = 4;
- */
- const UPDATING = 4;
- /**
- * The Feature resource is being updated by the Hub Service.
- *
- * Generated from protobuf enum SERVICE_UPDATING = 5;
- */
- const SERVICE_UPDATING = 5;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::ENABLING => 'ENABLING',
- self::ACTIVE => 'ACTIVE',
- self::DISABLING => 'DISABLING',
- self::UPDATING => 'UPDATING',
- self::SERVICE_UPDATING => 'SERVICE_UPDATING',
- ];
-
- 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(State::class, \Google\Cloud\GkeHub\V1\FeatureResourceState_State::class);
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState.php
deleted file mode 100644
index d2188bb9360d..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState.php
+++ /dev/null
@@ -1,147 +0,0 @@
-google.cloud.gkehub.v1.FeatureState
- */
-class FeatureState extends \Google\Protobuf\Internal\Message
-{
- /**
- * The high-level, machine-readable status of this Feature.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState.Code code = 1;
- */
- protected $code = 0;
- /**
- * A human-readable description of the current status.
- *
- * Generated from protobuf field string description = 2;
- */
- protected $description = '';
- /**
- * The time this status and any related Feature-specific details were updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 3;
- */
- protected $update_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $code
- * The high-level, machine-readable status of this Feature.
- * @type string $description
- * A human-readable description of the current status.
- * @type \Google\Protobuf\Timestamp $update_time
- * The time this status and any related Feature-specific details were updated.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The high-level, machine-readable status of this Feature.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState.Code code = 1;
- * @return int
- */
- public function getCode()
- {
- return $this->code;
- }
-
- /**
- * The high-level, machine-readable status of this Feature.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState.Code code = 1;
- * @param int $var
- * @return $this
- */
- public function setCode($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\V1\FeatureState\Code::class);
- $this->code = $var;
-
- return $this;
- }
-
- /**
- * A human-readable description of the current status.
- *
- * Generated from protobuf field string description = 2;
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * A human-readable description of the current status.
- *
- * Generated from protobuf field string description = 2;
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * The time this status and any related Feature-specific details were updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 3;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * The time this status and any related Feature-specific details were updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 3;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState/Code.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState/Code.php
deleted file mode 100644
index 5fe378f63660..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/FeatureState/Code.php
+++ /dev/null
@@ -1,77 +0,0 @@
-google.cloud.gkehub.v1.FeatureState.Code
- */
-class Code
-{
- /**
- * Unknown or not set.
- *
- * Generated from protobuf enum CODE_UNSPECIFIED = 0;
- */
- const CODE_UNSPECIFIED = 0;
- /**
- * The Feature is operating normally.
- *
- * Generated from protobuf enum OK = 1;
- */
- const OK = 1;
- /**
- * The Feature has encountered an issue, and is operating in a degraded
- * state. The Feature may need intervention to return to normal operation.
- * See the description and any associated Feature-specific details for more
- * information.
- *
- * Generated from protobuf enum WARNING = 2;
- */
- const WARNING = 2;
- /**
- * The Feature is not operating or is in a severely degraded state.
- * The Feature may need intervention to return to normal operation.
- * See the description and any associated Feature-specific details for more
- * information.
- *
- * Generated from protobuf enum ERROR = 3;
- */
- const ERROR = 3;
-
- private static $valueToName = [
- self::CODE_UNSPECIFIED => 'CODE_UNSPECIFIED',
- self::OK => 'OK',
- self::WARNING => 'WARNING',
- self::ERROR => 'ERROR',
- ];
-
- 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(Code::class, \Google\Cloud\GkeHub\V1\FeatureState_Code::class);
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestRequest.php
deleted file mode 100644
index 70f450cccddc..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestRequest.php
+++ /dev/null
@@ -1,321 +0,0 @@
-google.cloud.gkehub.v1.GenerateConnectManifestRequest
- */
-class GenerateConnectManifestRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The Membership resource name the Agent will associate with, in
- * the format `projects/*/locations/*/memberships/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Optional. Namespace for GKE Connect agent resources. Defaults to
- * `gke-connect`.
- * The Connect Agent is authorized automatically when run in the default
- * namespace. Otherwise, explicit authorization must be granted with an
- * additional IAM binding.
- *
- * Generated from protobuf field string namespace = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $namespace = '';
- /**
- * Optional. URI of a proxy if connectivity from the agent to
- * gkeconnect.googleapis.com requires the use of a proxy. Format must be in
- * the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol
- * supported by the proxy. This will direct the connect agent's outbound
- * traffic through a HTTP(S) proxy.
- *
- * Generated from protobuf field bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $proxy = '';
- /**
- * Optional. The Connect agent version to use. Defaults to the most current
- * version.
- *
- * Generated from protobuf field string version = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $version = '';
- /**
- * Optional. If true, generate the resources for upgrade only. Some resources
- * generated only for installation (e.g. secrets) will be excluded.
- *
- * Generated from protobuf field bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $is_upgrade = false;
- /**
- * Optional. The registry to fetch the connect agent image from. Defaults to
- * gcr.io/gkeconnect.
- *
- * Generated from protobuf field string registry = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $registry = '';
- /**
- * Optional. The image pull secret content for the registry, if not public.
- *
- * Generated from protobuf field bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $image_pull_secret_content = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The Membership resource name the Agent will associate with, in
- * the format `projects/*/locations/*/memberships/*`.
- * @type string $namespace
- * Optional. Namespace for GKE Connect agent resources. Defaults to
- * `gke-connect`.
- * The Connect Agent is authorized automatically when run in the default
- * namespace. Otherwise, explicit authorization must be granted with an
- * additional IAM binding.
- * @type string $proxy
- * Optional. URI of a proxy if connectivity from the agent to
- * gkeconnect.googleapis.com requires the use of a proxy. Format must be in
- * the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol
- * supported by the proxy. This will direct the connect agent's outbound
- * traffic through a HTTP(S) proxy.
- * @type string $version
- * Optional. The Connect agent version to use. Defaults to the most current
- * version.
- * @type bool $is_upgrade
- * Optional. If true, generate the resources for upgrade only. Some resources
- * generated only for installation (e.g. secrets) will be excluded.
- * @type string $registry
- * Optional. The registry to fetch the connect agent image from. Defaults to
- * gcr.io/gkeconnect.
- * @type string $image_pull_secret_content
- * Optional. The image pull secret content for the registry, if not public.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The Membership resource name the Agent will associate with, in
- * the format `projects/*/locations/*/memberships/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The Membership resource name the Agent will associate with, in
- * the format `projects/*/locations/*/memberships/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. Namespace for GKE Connect agent resources. Defaults to
- * `gke-connect`.
- * The Connect Agent is authorized automatically when run in the default
- * namespace. Otherwise, explicit authorization must be granted with an
- * additional IAM binding.
- *
- * Generated from protobuf field string namespace = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Optional. Namespace for GKE Connect agent resources. Defaults to
- * `gke-connect`.
- * The Connect Agent is authorized automatically when run in the default
- * namespace. Otherwise, explicit authorization must be granted with an
- * additional IAM binding.
- *
- * Generated from protobuf field string namespace = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Optional. URI of a proxy if connectivity from the agent to
- * gkeconnect.googleapis.com requires the use of a proxy. Format must be in
- * the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol
- * supported by the proxy. This will direct the connect agent's outbound
- * traffic through a HTTP(S) proxy.
- *
- * Generated from protobuf field bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getProxy()
- {
- return $this->proxy;
- }
-
- /**
- * Optional. URI of a proxy if connectivity from the agent to
- * gkeconnect.googleapis.com requires the use of a proxy. Format must be in
- * the form `http(s)://{proxy_address}`, depending on the HTTP/HTTPS protocol
- * supported by the proxy. This will direct the connect agent's outbound
- * traffic through a HTTP(S) proxy.
- *
- * Generated from protobuf field bytes proxy = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setProxy($var)
- {
- GPBUtil::checkString($var, False);
- $this->proxy = $var;
-
- return $this;
- }
-
- /**
- * Optional. The Connect agent version to use. Defaults to the most current
- * version.
- *
- * Generated from protobuf field string version = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * Optional. The Connect agent version to use. Defaults to the most current
- * version.
- *
- * Generated from protobuf field string version = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->version = $var;
-
- return $this;
- }
-
- /**
- * Optional. If true, generate the resources for upgrade only. Some resources
- * generated only for installation (e.g. secrets) will be excluded.
- *
- * Generated from protobuf field bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getIsUpgrade()
- {
- return $this->is_upgrade;
- }
-
- /**
- * Optional. If true, generate the resources for upgrade only. Some resources
- * generated only for installation (e.g. secrets) will be excluded.
- *
- * Generated from protobuf field bool is_upgrade = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setIsUpgrade($var)
- {
- GPBUtil::checkBool($var);
- $this->is_upgrade = $var;
-
- return $this;
- }
-
- /**
- * Optional. The registry to fetch the connect agent image from. Defaults to
- * gcr.io/gkeconnect.
- *
- * Generated from protobuf field string registry = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRegistry()
- {
- return $this->registry;
- }
-
- /**
- * Optional. The registry to fetch the connect agent image from. Defaults to
- * gcr.io/gkeconnect.
- *
- * Generated from protobuf field string registry = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRegistry($var)
- {
- GPBUtil::checkString($var, True);
- $this->registry = $var;
-
- return $this;
- }
-
- /**
- * Optional. The image pull secret content for the registry, if not public.
- *
- * Generated from protobuf field bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getImagePullSecretContent()
- {
- return $this->image_pull_secret_content;
- }
-
- /**
- * Optional. The image pull secret content for the registry, if not public.
- *
- * Generated from protobuf field bytes image_pull_secret_content = 7 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setImagePullSecretContent($var)
- {
- GPBUtil::checkString($var, False);
- $this->image_pull_secret_content = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestResponse.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestResponse.php
deleted file mode 100644
index fbecc64a2c15..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GenerateConnectManifestResponse.php
+++ /dev/null
@@ -1,72 +0,0 @@
-google.cloud.gkehub.v1.GenerateConnectManifestResponse
- */
-class GenerateConnectManifestResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The ordered list of Kubernetes resources that need to be applied to the
- * cluster for GKE Connect agent installation/upgrade.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
- */
- private $manifest;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GkeHub\V1\ConnectAgentResource>|\Google\Protobuf\Internal\RepeatedField $manifest
- * The ordered list of Kubernetes resources that need to be applied to the
- * cluster for GKE Connect agent installation/upgrade.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The ordered list of Kubernetes resources that need to be applied to the
- * cluster for GKE Connect agent installation/upgrade.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getManifest()
- {
- return $this->manifest;
- }
-
- /**
- * The ordered list of Kubernetes resources that need to be applied to the
- * cluster for GKE Connect agent installation/upgrade.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.ConnectAgentResource manifest = 1;
- * @param array<\Google\Cloud\GkeHub\V1\ConnectAgentResource>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setManifest($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\ConnectAgentResource::class);
- $this->manifest = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetFeatureRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetFeatureRequest.php
deleted file mode 100644
index 5fd540450a6b..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetFeatureRequest.php
+++ /dev/null
@@ -1,85 +0,0 @@
-google.cloud.gkehub.v1.GetFeatureRequest
- */
-class GetFeatureRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`
- *
- * @return \Google\Cloud\GkeHub\V1\GetFeatureRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`
- *
- * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetMembershipRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetMembershipRequest.php
deleted file mode 100644
index 8f1b1f43d5a4..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GetMembershipRequest.php
+++ /dev/null
@@ -1,86 +0,0 @@
-google.cloud.gkehub.v1.GetMembershipRequest
- */
-class GetMembershipRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
-
- /**
- * @param string $name Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`. Please see
- * {@see GkeHubClient::membershipName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeHub\V1\GetMembershipRequest
- *
- * @experimental
- */
- public static function build(string $name): self
- {
- return (new self())
- ->setName($name);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GkeCluster.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GkeCluster.php
deleted file mode 100644
index 5fc98881e773..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/GkeCluster.php
+++ /dev/null
@@ -1,117 +0,0 @@
-google.cloud.gkehub.v1.GkeCluster
- */
-class GkeCluster extends \Google\Protobuf\Internal\Message
-{
- /**
- * Immutable. Self-link of the Google Cloud resource for the GKE cluster. For
- * example:
- * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
- * Zonal clusters are also supported.
- *
- * Generated from protobuf field string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
- */
- protected $resource_link = '';
- /**
- * Output only. If cluster_missing is set then it denotes that the GKE cluster
- * no longer exists in the GKE Control Plane.
- *
- * Generated from protobuf field bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $cluster_missing = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $resource_link
- * Immutable. Self-link of the Google Cloud resource for the GKE cluster. For
- * example:
- * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
- * Zonal clusters are also supported.
- * @type bool $cluster_missing
- * Output only. If cluster_missing is set then it denotes that the GKE cluster
- * no longer exists in the GKE Control Plane.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Immutable. Self-link of the Google Cloud resource for the GKE cluster. For
- * example:
- * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
- * Zonal clusters are also supported.
- *
- * Generated from protobuf field string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
- * @return string
- */
- public function getResourceLink()
- {
- return $this->resource_link;
- }
-
- /**
- * Immutable. Self-link of the Google Cloud resource for the GKE cluster. For
- * example:
- * //container.googleapis.com/projects/my-project/locations/us-west1-a/clusters/my-cluster
- * Zonal clusters are also supported.
- *
- * Generated from protobuf field string resource_link = 1 [(.google.api.field_behavior) = IMMUTABLE];
- * @param string $var
- * @return $this
- */
- public function setResourceLink($var)
- {
- GPBUtil::checkString($var, True);
- $this->resource_link = $var;
-
- return $this;
- }
-
- /**
- * Output only. If cluster_missing is set then it denotes that the GKE cluster
- * no longer exists in the GKE Control Plane.
- *
- * Generated from protobuf field bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool
- */
- public function getClusterMissing()
- {
- return $this->cluster_missing;
- }
-
- /**
- * Output only. If cluster_missing is set then it denotes that the GKE cluster
- * no longer exists in the GKE Control Plane.
- *
- * Generated from protobuf field bool cluster_missing = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool $var
- * @return $this
- */
- public function setClusterMissing($var)
- {
- GPBUtil::checkBool($var);
- $this->cluster_missing = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesMetadata.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesMetadata.php
deleted file mode 100644
index 54fd9c79de89..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesMetadata.php
+++ /dev/null
@@ -1,276 +0,0 @@
-google.cloud.gkehub.v1.KubernetesMetadata
- */
-class KubernetesMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. Kubernetes API server version string as reported by
- * `/version`.
- *
- * Generated from protobuf field string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $kubernetes_api_server_version = '';
- /**
- * Output only. Node providerID as reported by the first node in the list of
- * nodes on the Kubernetes endpoint. On Kubernetes platforms that support
- * zero-node clusters (like GKE-on-GCP), the node_count will be zero and the
- * node_provider_id will be empty.
- *
- * Generated from protobuf field string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $node_provider_id = '';
- /**
- * Output only. Node count as reported by Kubernetes nodes resources.
- *
- * Generated from protobuf field int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $node_count = 0;
- /**
- * Output only. vCPU count as reported by Kubernetes nodes resources.
- *
- * Generated from protobuf field int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $vcpu_count = 0;
- /**
- * Output only. The total memory capacity as reported by the sum of all
- * Kubernetes nodes resources, defined in MB.
- *
- * Generated from protobuf field int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $memory_mb = 0;
- /**
- * Output only. The time at which these details were last updated. This
- * update_time is different from the Membership-level update_time since
- * EndpointDetails are updated internally for API consumers.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $kubernetes_api_server_version
- * Output only. Kubernetes API server version string as reported by
- * `/version`.
- * @type string $node_provider_id
- * Output only. Node providerID as reported by the first node in the list of
- * nodes on the Kubernetes endpoint. On Kubernetes platforms that support
- * zero-node clusters (like GKE-on-GCP), the node_count will be zero and the
- * node_provider_id will be empty.
- * @type int $node_count
- * Output only. Node count as reported by Kubernetes nodes resources.
- * @type int $vcpu_count
- * Output only. vCPU count as reported by Kubernetes nodes resources.
- * @type int $memory_mb
- * Output only. The total memory capacity as reported by the sum of all
- * Kubernetes nodes resources, defined in MB.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. The time at which these details were last updated. This
- * update_time is different from the Membership-level update_time since
- * EndpointDetails are updated internally for API consumers.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. Kubernetes API server version string as reported by
- * `/version`.
- *
- * Generated from protobuf field string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getKubernetesApiServerVersion()
- {
- return $this->kubernetes_api_server_version;
- }
-
- /**
- * Output only. Kubernetes API server version string as reported by
- * `/version`.
- *
- * Generated from protobuf field string kubernetes_api_server_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setKubernetesApiServerVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->kubernetes_api_server_version = $var;
-
- return $this;
- }
-
- /**
- * Output only. Node providerID as reported by the first node in the list of
- * nodes on the Kubernetes endpoint. On Kubernetes platforms that support
- * zero-node clusters (like GKE-on-GCP), the node_count will be zero and the
- * node_provider_id will be empty.
- *
- * Generated from protobuf field string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getNodeProviderId()
- {
- return $this->node_provider_id;
- }
-
- /**
- * Output only. Node providerID as reported by the first node in the list of
- * nodes on the Kubernetes endpoint. On Kubernetes platforms that support
- * zero-node clusters (like GKE-on-GCP), the node_count will be zero and the
- * node_provider_id will be empty.
- *
- * Generated from protobuf field string node_provider_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setNodeProviderId($var)
- {
- GPBUtil::checkString($var, True);
- $this->node_provider_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. Node count as reported by Kubernetes nodes resources.
- *
- * Generated from protobuf field int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getNodeCount()
- {
- return $this->node_count;
- }
-
- /**
- * Output only. Node count as reported by Kubernetes nodes resources.
- *
- * Generated from protobuf field int32 node_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setNodeCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->node_count = $var;
-
- return $this;
- }
-
- /**
- * Output only. vCPU count as reported by Kubernetes nodes resources.
- *
- * Generated from protobuf field int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getVcpuCount()
- {
- return $this->vcpu_count;
- }
-
- /**
- * Output only. vCPU count as reported by Kubernetes nodes resources.
- *
- * Generated from protobuf field int32 vcpu_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setVcpuCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->vcpu_count = $var;
-
- return $this;
- }
-
- /**
- * Output only. The total memory capacity as reported by the sum of all
- * Kubernetes nodes resources, defined in MB.
- *
- * Generated from protobuf field int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getMemoryMb()
- {
- return $this->memory_mb;
- }
-
- /**
- * Output only. The total memory capacity as reported by the sum of all
- * Kubernetes nodes resources, defined in MB.
- *
- * Generated from protobuf field int32 memory_mb = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setMemoryMb($var)
- {
- GPBUtil::checkInt32($var);
- $this->memory_mb = $var;
-
- return $this;
- }
-
- /**
- * Output only. The time at which these details were last updated. This
- * update_time is different from the Membership-level update_time since
- * EndpointDetails are updated internally for API consumers.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. The time at which these details were last updated. This
- * update_time is different from the Membership-level update_time since
- * EndpointDetails are updated internally for API consumers.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 100 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesResource.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesResource.php
deleted file mode 100644
index 6bd38f96b363..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/KubernetesResource.php
+++ /dev/null
@@ -1,245 +0,0 @@
-google.cloud.gkehub.v1.KubernetesResource
- */
-class KubernetesResource extends \Google\Protobuf\Internal\Message
-{
- /**
- * Input only. The YAML representation of the Membership CR. This field is
- * ignored for GKE clusters where Hub can read the CR directly.
- * Callers should provide the CR that is currently present in the cluster
- * during CreateMembership or UpdateMembership, or leave this field empty if
- * none exists. The CR manifest is used to validate the cluster has not been
- * registered with another Membership.
- *
- * Generated from protobuf field string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY];
- */
- protected $membership_cr_manifest = '';
- /**
- * Output only. Additional Kubernetes resources that need to be applied to the
- * cluster after Membership creation, and after every update.
- * This field is only populated in the Membership returned from a successful
- * long-running operation from CreateMembership or UpdateMembership. It is not
- * populated during normal GetMembership or ListMemberships requests. To get
- * the resource manifest after the initial registration, the caller should
- * make a UpdateMembership call with an empty field mask.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $membership_resources;
- /**
- * Output only. The Kubernetes resources for installing the GKE Connect agent
- * This field is only populated in the Membership returned from a successful
- * long-running operation from CreateMembership or UpdateMembership. It is not
- * populated during normal GetMembership or ListMemberships requests. To get
- * the resource manifest after the initial registration, the caller should
- * make a UpdateMembership call with an empty field mask.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $connect_resources;
- /**
- * Optional. Options for Kubernetes resource generation.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $resource_options = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $membership_cr_manifest
- * Input only. The YAML representation of the Membership CR. This field is
- * ignored for GKE clusters where Hub can read the CR directly.
- * Callers should provide the CR that is currently present in the cluster
- * during CreateMembership or UpdateMembership, or leave this field empty if
- * none exists. The CR manifest is used to validate the cluster has not been
- * registered with another Membership.
- * @type array<\Google\Cloud\GkeHub\V1\ResourceManifest>|\Google\Protobuf\Internal\RepeatedField $membership_resources
- * Output only. Additional Kubernetes resources that need to be applied to the
- * cluster after Membership creation, and after every update.
- * This field is only populated in the Membership returned from a successful
- * long-running operation from CreateMembership or UpdateMembership. It is not
- * populated during normal GetMembership or ListMemberships requests. To get
- * the resource manifest after the initial registration, the caller should
- * make a UpdateMembership call with an empty field mask.
- * @type array<\Google\Cloud\GkeHub\V1\ResourceManifest>|\Google\Protobuf\Internal\RepeatedField $connect_resources
- * Output only. The Kubernetes resources for installing the GKE Connect agent
- * This field is only populated in the Membership returned from a successful
- * long-running operation from CreateMembership or UpdateMembership. It is not
- * populated during normal GetMembership or ListMemberships requests. To get
- * the resource manifest after the initial registration, the caller should
- * make a UpdateMembership call with an empty field mask.
- * @type \Google\Cloud\GkeHub\V1\ResourceOptions $resource_options
- * Optional. Options for Kubernetes resource generation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Input only. The YAML representation of the Membership CR. This field is
- * ignored for GKE clusters where Hub can read the CR directly.
- * Callers should provide the CR that is currently present in the cluster
- * during CreateMembership or UpdateMembership, or leave this field empty if
- * none exists. The CR manifest is used to validate the cluster has not been
- * registered with another Membership.
- *
- * Generated from protobuf field string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY];
- * @return string
- */
- public function getMembershipCrManifest()
- {
- return $this->membership_cr_manifest;
- }
-
- /**
- * Input only. The YAML representation of the Membership CR. This field is
- * ignored for GKE clusters where Hub can read the CR directly.
- * Callers should provide the CR that is currently present in the cluster
- * during CreateMembership or UpdateMembership, or leave this field empty if
- * none exists. The CR manifest is used to validate the cluster has not been
- * registered with another Membership.
- *
- * Generated from protobuf field string membership_cr_manifest = 1 [(.google.api.field_behavior) = INPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setMembershipCrManifest($var)
- {
- GPBUtil::checkString($var, True);
- $this->membership_cr_manifest = $var;
-
- return $this;
- }
-
- /**
- * Output only. Additional Kubernetes resources that need to be applied to the
- * cluster after Membership creation, and after every update.
- * This field is only populated in the Membership returned from a successful
- * long-running operation from CreateMembership or UpdateMembership. It is not
- * populated during normal GetMembership or ListMemberships requests. To get
- * the resource manifest after the initial registration, the caller should
- * make a UpdateMembership call with an empty field mask.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getMembershipResources()
- {
- return $this->membership_resources;
- }
-
- /**
- * Output only. Additional Kubernetes resources that need to be applied to the
- * cluster after Membership creation, and after every update.
- * This field is only populated in the Membership returned from a successful
- * long-running operation from CreateMembership or UpdateMembership. It is not
- * populated during normal GetMembership or ListMemberships requests. To get
- * the resource manifest after the initial registration, the caller should
- * make a UpdateMembership call with an empty field mask.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest membership_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array<\Google\Cloud\GkeHub\V1\ResourceManifest>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setMembershipResources($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\ResourceManifest::class);
- $this->membership_resources = $arr;
-
- return $this;
- }
-
- /**
- * Output only. The Kubernetes resources for installing the GKE Connect agent
- * This field is only populated in the Membership returned from a successful
- * long-running operation from CreateMembership or UpdateMembership. It is not
- * populated during normal GetMembership or ListMemberships requests. To get
- * the resource manifest after the initial registration, the caller should
- * make a UpdateMembership call with an empty field mask.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getConnectResources()
- {
- return $this->connect_resources;
- }
-
- /**
- * Output only. The Kubernetes resources for installing the GKE Connect agent
- * This field is only populated in the Membership returned from a successful
- * long-running operation from CreateMembership or UpdateMembership. It is not
- * populated during normal GetMembership or ListMemberships requests. To get
- * the resource manifest after the initial registration, the caller should
- * make a UpdateMembership call with an empty field mask.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.ResourceManifest connect_resources = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array<\Google\Cloud\GkeHub\V1\ResourceManifest>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setConnectResources($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\ResourceManifest::class);
- $this->connect_resources = $arr;
-
- return $this;
- }
-
- /**
- * Optional. Options for Kubernetes resource generation.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeHub\V1\ResourceOptions|null
- */
- public function getResourceOptions()
- {
- return $this->resource_options;
- }
-
- public function hasResourceOptions()
- {
- return isset($this->resource_options);
- }
-
- public function clearResourceOptions()
- {
- unset($this->resource_options);
- }
-
- /**
- * Optional. Options for Kubernetes resource generation.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.ResourceOptions resource_options = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeHub\V1\ResourceOptions $var
- * @return $this
- */
- public function setResourceOptions($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\ResourceOptions::class);
- $this->resource_options = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesRequest.php
deleted file mode 100644
index 9916c87cca13..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesRequest.php
+++ /dev/null
@@ -1,273 +0,0 @@
-google.cloud.gkehub.v1.ListFeaturesRequest
- */
-class ListFeaturesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent (project and location) where the Features will be listed.
- * Specified in the format `projects/*/locations/*`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * When requesting a 'page' of resources, `page_size` specifies number of
- * resources to return. If unspecified or set to 0, all resources will
- * be returned.
- *
- * Generated from protobuf field int32 page_size = 2;
- */
- protected $page_size = 0;
- /**
- * Token returned by previous call to `ListFeatures` which
- * specifies the position in the list from where to continue listing the
- * resources.
- *
- * Generated from protobuf field string page_token = 3;
- */
- protected $page_token = '';
- /**
- * Lists Features that match the filter expression, following the syntax
- * outlined in https://google.aip.dev/160.
- * Examples:
- * - Feature with the name "servicemesh" in project "foo-proj":
- * name = "projects/foo-proj/locations/global/features/servicemesh"
- * - Features that have a label called `foo`:
- * labels.foo:*
- * - Features that have a label called `foo` whose value is `bar`:
- * labels.foo = bar
- *
- * Generated from protobuf field string filter = 4;
- */
- protected $filter = '';
- /**
- * One or more fields to compare and use to sort the output.
- * See https://google.aip.dev/132#ordering.
- *
- * Generated from protobuf field string order_by = 5;
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The parent (project and location) where the Features will be listed.
- * Specified in the format `projects/*/locations/*`.
- *
- * @return \Google\Cloud\GkeHub\V1\ListFeaturesRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent (project and location) where the Features will be listed.
- * Specified in the format `projects/*/locations/*`.
- * @type int $page_size
- * When requesting a 'page' of resources, `page_size` specifies number of
- * resources to return. If unspecified or set to 0, all resources will
- * be returned.
- * @type string $page_token
- * Token returned by previous call to `ListFeatures` which
- * specifies the position in the list from where to continue listing the
- * resources.
- * @type string $filter
- * Lists Features that match the filter expression, following the syntax
- * outlined in https://google.aip.dev/160.
- * Examples:
- * - Feature with the name "servicemesh" in project "foo-proj":
- * name = "projects/foo-proj/locations/global/features/servicemesh"
- * - Features that have a label called `foo`:
- * labels.foo:*
- * - Features that have a label called `foo` whose value is `bar`:
- * labels.foo = bar
- * @type string $order_by
- * One or more fields to compare and use to sort the output.
- * See https://google.aip.dev/132#ordering.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent (project and location) where the Features will be listed.
- * Specified in the format `projects/*/locations/*`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent (project and location) where the Features will be listed.
- * Specified in the format `projects/*/locations/*`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * When requesting a 'page' of resources, `page_size` specifies number of
- * resources to return. If unspecified or set to 0, all resources will
- * be returned.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * When requesting a 'page' of resources, `page_size` specifies number of
- * resources to return. If unspecified or set to 0, all resources will
- * be returned.
- *
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Token returned by previous call to `ListFeatures` which
- * specifies the position in the list from where to continue listing the
- * resources.
- *
- * Generated from protobuf field string page_token = 3;
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * Token returned by previous call to `ListFeatures` which
- * specifies the position in the list from where to continue listing the
- * resources.
- *
- * Generated from protobuf field string page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Lists Features that match the filter expression, following the syntax
- * outlined in https://google.aip.dev/160.
- * Examples:
- * - Feature with the name "servicemesh" in project "foo-proj":
- * name = "projects/foo-proj/locations/global/features/servicemesh"
- * - Features that have a label called `foo`:
- * labels.foo:*
- * - Features that have a label called `foo` whose value is `bar`:
- * labels.foo = bar
- *
- * Generated from protobuf field string filter = 4;
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Lists Features that match the filter expression, following the syntax
- * outlined in https://google.aip.dev/160.
- * Examples:
- * - Feature with the name "servicemesh" in project "foo-proj":
- * name = "projects/foo-proj/locations/global/features/servicemesh"
- * - Features that have a label called `foo`:
- * labels.foo:*
- * - Features that have a label called `foo` whose value is `bar`:
- * labels.foo = bar
- *
- * Generated from protobuf field string filter = 4;
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * One or more fields to compare and use to sort the output.
- * See https://google.aip.dev/132#ordering.
- *
- * Generated from protobuf field string order_by = 5;
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * One or more fields to compare and use to sort the output.
- * See https://google.aip.dev/132#ordering.
- *
- * Generated from protobuf field string order_by = 5;
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesResponse.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesResponse.php
deleted file mode 100644
index a1b284439a46..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListFeaturesResponse.php
+++ /dev/null
@@ -1,109 +0,0 @@
-google.cloud.gkehub.v1.ListFeaturesResponse
- */
-class ListFeaturesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The list of matching Features
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.Feature resources = 1;
- */
- private $resources;
- /**
- * A token to request the next page of resources from the
- * `ListFeatures` method. The value of an empty string means
- * that there are no more resources to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GkeHub\V1\Feature>|\Google\Protobuf\Internal\RepeatedField $resources
- * The list of matching Features
- * @type string $next_page_token
- * A token to request the next page of resources from the
- * `ListFeatures` method. The value of an empty string means
- * that there are no more resources to return.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The list of matching Features
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.Feature resources = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getResources()
- {
- return $this->resources;
- }
-
- /**
- * The list of matching Features
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.Feature resources = 1;
- * @param array<\Google\Cloud\GkeHub\V1\Feature>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setResources($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\Feature::class);
- $this->resources = $arr;
-
- return $this;
- }
-
- /**
- * A token to request the next page of resources from the
- * `ListFeatures` method. The value of an empty string means
- * that there are no more resources to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token to request the next page of resources from the
- * `ListFeatures` method. The value of an empty string means
- * that there are no more resources to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsRequest.php
deleted file mode 100644
index 4ae0d7ee4984..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsRequest.php
+++ /dev/null
@@ -1,287 +0,0 @@
-google.cloud.gkehub.v1.ListMembershipsRequest
- */
-class ListMembershipsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The parent (project and location) where the Memberships will be
- * listed. Specified in the format `projects/*/locations/*`.
- * `projects/*/locations/-` list memberships in all the regions.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Optional. When requesting a 'page' of resources, `page_size` specifies
- * number of resources to return. If unspecified or set to 0, all resources
- * will be returned.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_size = 0;
- /**
- * Optional. Token returned by previous call to `ListMemberships` which
- * specifies the position in the list from where to continue listing the
- * resources.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $page_token = '';
- /**
- * Optional. Lists Memberships that match the filter expression, following the
- * syntax outlined in https://google.aip.dev/160.
- * Examples:
- * - Name is `bar` in project `foo-proj` and location `global`:
- * name = "projects/foo-proj/locations/global/membership/bar"
- * - Memberships that have a label called `foo`:
- * labels.foo:*
- * - Memberships that have a label called `foo` whose value is `bar`:
- * labels.foo = bar
- * - Memberships in the CREATING state:
- * state = CREATING
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $filter = '';
- /**
- * Optional. One or more fields to compare and use to sort the output.
- * See https://google.aip.dev/132#ordering.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $order_by = '';
-
- /**
- * @param string $parent Required. The parent (project and location) where the Memberships will be
- * listed. Specified in the format `projects/*/locations/*`.
- * `projects/*/locations/-` list memberships in all the regions. Please see
- * {@see GkeHubClient::locationName()} for help formatting this field.
- *
- * @return \Google\Cloud\GkeHub\V1\ListMembershipsRequest
- *
- * @experimental
- */
- public static function build(string $parent): self
- {
- return (new self())
- ->setParent($parent);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The parent (project and location) where the Memberships will be
- * listed. Specified in the format `projects/*/locations/*`.
- * `projects/*/locations/-` list memberships in all the regions.
- * @type int $page_size
- * Optional. When requesting a 'page' of resources, `page_size` specifies
- * number of resources to return. If unspecified or set to 0, all resources
- * will be returned.
- * @type string $page_token
- * Optional. Token returned by previous call to `ListMemberships` which
- * specifies the position in the list from where to continue listing the
- * resources.
- * @type string $filter
- * Optional. Lists Memberships that match the filter expression, following the
- * syntax outlined in https://google.aip.dev/160.
- * Examples:
- * - Name is `bar` in project `foo-proj` and location `global`:
- * name = "projects/foo-proj/locations/global/membership/bar"
- * - Memberships that have a label called `foo`:
- * labels.foo:*
- * - Memberships that have a label called `foo` whose value is `bar`:
- * labels.foo = bar
- * - Memberships in the CREATING state:
- * state = CREATING
- * @type string $order_by
- * Optional. One or more fields to compare and use to sort the output.
- * See https://google.aip.dev/132#ordering.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The parent (project and location) where the Memberships will be
- * listed. Specified in the format `projects/*/locations/*`.
- * `projects/*/locations/-` list memberships in all the regions.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getParent()
- {
- return $this->parent;
- }
-
- /**
- * Required. The parent (project and location) where the Memberships will be
- * listed. Specified in the format `projects/*/locations/*`.
- * `projects/*/locations/-` list memberships in all the regions.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setParent($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent = $var;
-
- return $this;
- }
-
- /**
- * Optional. When requesting a 'page' of resources, `page_size` specifies
- * number of resources to return. If unspecified or set to 0, all resources
- * will be returned.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Optional. When requesting a 'page' of resources, `page_size` specifies
- * number of resources to return. If unspecified or set to 0, all resources
- * will be returned.
- *
- * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Optional. Token returned by previous call to `ListMemberships` which
- * specifies the position in the list from where to continue listing the
- * resources.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getPageToken()
- {
- return $this->page_token;
- }
-
- /**
- * Optional. Token returned by previous call to `ListMemberships` which
- * specifies the position in the list from where to continue listing the
- * resources.
- *
- * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->page_token = $var;
-
- return $this;
- }
-
- /**
- * Optional. Lists Memberships that match the filter expression, following the
- * syntax outlined in https://google.aip.dev/160.
- * Examples:
- * - Name is `bar` in project `foo-proj` and location `global`:
- * name = "projects/foo-proj/locations/global/membership/bar"
- * - Memberships that have a label called `foo`:
- * labels.foo:*
- * - Memberships that have a label called `foo` whose value is `bar`:
- * labels.foo = bar
- * - Memberships in the CREATING state:
- * state = CREATING
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getFilter()
- {
- return $this->filter;
- }
-
- /**
- * Optional. Lists Memberships that match the filter expression, following the
- * syntax outlined in https://google.aip.dev/160.
- * Examples:
- * - Name is `bar` in project `foo-proj` and location `global`:
- * name = "projects/foo-proj/locations/global/membership/bar"
- * - Memberships that have a label called `foo`:
- * labels.foo:*
- * - Memberships that have a label called `foo` whose value is `bar`:
- * labels.foo = bar
- * - Memberships in the CREATING state:
- * state = CREATING
- *
- * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setFilter($var)
- {
- GPBUtil::checkString($var, True);
- $this->filter = $var;
-
- return $this;
- }
-
- /**
- * Optional. One or more fields to compare and use to sort the output.
- * See https://google.aip.dev/132#ordering.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getOrderBy()
- {
- return $this->order_by;
- }
-
- /**
- * Optional. One or more fields to compare and use to sort the output.
- * See https://google.aip.dev/132#ordering.
- *
- * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setOrderBy($var)
- {
- GPBUtil::checkString($var, True);
- $this->order_by = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsResponse.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsResponse.php
deleted file mode 100644
index 401758bd06e4..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ListMembershipsResponse.php
+++ /dev/null
@@ -1,143 +0,0 @@
-google.cloud.gkehub.v1.ListMembershipsResponse
- */
-class ListMembershipsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The list of matching Memberships.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.Membership resources = 1;
- */
- private $resources;
- /**
- * A token to request the next page of resources from the
- * `ListMemberships` method. The value of an empty string means that
- * there are no more resources to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * List of locations that could not be reached while fetching this list.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- */
- private $unreachable;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Cloud\GkeHub\V1\Membership>|\Google\Protobuf\Internal\RepeatedField $resources
- * The list of matching Memberships.
- * @type string $next_page_token
- * A token to request the next page of resources from the
- * `ListMemberships` method. The value of an empty string means that
- * there are no more resources to return.
- * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * List of locations that could not be reached while fetching this list.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The list of matching Memberships.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.Membership resources = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getResources()
- {
- return $this->resources;
- }
-
- /**
- * The list of matching Memberships.
- *
- * Generated from protobuf field repeated .google.cloud.gkehub.v1.Membership resources = 1;
- * @param array<\Google\Cloud\GkeHub\V1\Membership>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setResources($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\GkeHub\V1\Membership::class);
- $this->resources = $arr;
-
- return $this;
- }
-
- /**
- * A token to request the next page of resources from the
- * `ListMemberships` method. The value of an empty string means that
- * there are no more resources to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * A token to request the next page of resources from the
- * `ListMemberships` method. The value of an empty string means that
- * there are no more resources to return.
- *
- * Generated from protobuf field string next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * List of locations that could not be reached while fetching this list.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getUnreachable()
- {
- return $this->unreachable;
- }
-
- /**
- * List of locations that could not be reached while fetching this list.
- *
- * Generated from protobuf field repeated string unreachable = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setUnreachable($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->unreachable = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Membership.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Membership.php
deleted file mode 100644
index 38ddfe562907..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/Membership.php
+++ /dev/null
@@ -1,641 +0,0 @@
-google.cloud.gkehub.v1.Membership
- */
-class Membership extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The full, unique name of this Membership resource in the
- * format `projects/*/locations/*/memberships/{membership_id}`, set during
- * creation.
- * `membership_id` must be a valid RFC 1123 compliant DNS label:
- * 1. At most 63 characters in length
- * 2. It must consist of lower case alphanumeric characters or `-`
- * 3. It must start and end with an alphanumeric character
- * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
- * with a maximum length of 63 characters.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $name = '';
- /**
- * Optional. Labels for this membership.
- *
- * Generated from protobuf field map labels = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- private $labels;
- /**
- * Output only. Description of this membership, limited to 63 characters.
- * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
- * This field is present for legacy purposes.
- *
- * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $description = '';
- /**
- * Output only. State of the Membership resource.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = null;
- /**
- * Output only. When the Membership was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. When the Membership was last updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- /**
- * Output only. When the Membership was deleted.
- *
- * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $delete_time = null;
- /**
- * Optional. An externally-generated and managed ID for this Membership. This
- * ID may be modified after creation, but this is not recommended.
- * The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*`
- * If this Membership represents a Kubernetes cluster, this value should be
- * set to the UID of the `kube-system` namespace object.
- *
- * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $external_id = '';
- /**
- * Output only. For clusters using Connect, the timestamp of the most recent
- * connection established with Google Cloud. This time is updated every
- * several minutes, not continuously. For clusters that do not use GKE
- * Connect, or that have never connected successfully, this field will be
- * unset.
- *
- * Generated from protobuf field .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $last_connection_time = null;
- /**
- * Output only. Google-generated UUID for this resource. This is unique across
- * all Membership resources. If a Membership resource is deleted and another
- * resource with the same name is created, it gets a different unique_id.
- *
- * Generated from protobuf field string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $unique_id = '';
- /**
- * Optional. How to identify workloads from this Membership.
- * See the documentation on Workload Identity for more details:
- * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $authority = null;
- /**
- * Optional. The monitoring config information for this membership.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $monitoring_config = null;
- protected $type;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeHub\V1\MembershipEndpoint $endpoint
- * Optional. Endpoint information to reach this member.
- * @type string $name
- * Output only. The full, unique name of this Membership resource in the
- * format `projects/*/locations/*/memberships/{membership_id}`, set during
- * creation.
- * `membership_id` must be a valid RFC 1123 compliant DNS label:
- * 1. At most 63 characters in length
- * 2. It must consist of lower case alphanumeric characters or `-`
- * 3. It must start and end with an alphanumeric character
- * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
- * with a maximum length of 63 characters.
- * @type array|\Google\Protobuf\Internal\MapField $labels
- * Optional. Labels for this membership.
- * @type string $description
- * Output only. Description of this membership, limited to 63 characters.
- * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
- * This field is present for legacy purposes.
- * @type \Google\Cloud\GkeHub\V1\MembershipState $state
- * Output only. State of the Membership resource.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. When the Membership was created.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. When the Membership was last updated.
- * @type \Google\Protobuf\Timestamp $delete_time
- * Output only. When the Membership was deleted.
- * @type string $external_id
- * Optional. An externally-generated and managed ID for this Membership. This
- * ID may be modified after creation, but this is not recommended.
- * The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*`
- * If this Membership represents a Kubernetes cluster, this value should be
- * set to the UID of the `kube-system` namespace object.
- * @type \Google\Protobuf\Timestamp $last_connection_time
- * Output only. For clusters using Connect, the timestamp of the most recent
- * connection established with Google Cloud. This time is updated every
- * several minutes, not continuously. For clusters that do not use GKE
- * Connect, or that have never connected successfully, this field will be
- * unset.
- * @type string $unique_id
- * Output only. Google-generated UUID for this resource. This is unique across
- * all Membership resources. If a Membership resource is deleted and another
- * resource with the same name is created, it gets a different unique_id.
- * @type \Google\Cloud\GkeHub\V1\Authority $authority
- * Optional. How to identify workloads from this Membership.
- * See the documentation on Workload Identity for more details:
- * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
- * @type \Google\Cloud\GkeHub\V1\MonitoringConfig $monitoring_config
- * Optional. The monitoring config information for this membership.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. Endpoint information to reach this member.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeHub\V1\MembershipEndpoint|null
- */
- public function getEndpoint()
- {
- return $this->readOneof(4);
- }
-
- public function hasEndpoint()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Optional. Endpoint information to reach this member.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.MembershipEndpoint endpoint = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeHub\V1\MembershipEndpoint $var
- * @return $this
- */
- public function setEndpoint($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\MembershipEndpoint::class);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * Output only. The full, unique name of this Membership resource in the
- * format `projects/*/locations/*/memberships/{membership_id}`, set during
- * creation.
- * `membership_id` must be a valid RFC 1123 compliant DNS label:
- * 1. At most 63 characters in length
- * 2. It must consist of lower case alphanumeric characters or `-`
- * 3. It must start and end with an alphanumeric character
- * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
- * with a maximum length of 63 characters.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only. The full, unique name of this Membership resource in the
- * format `projects/*/locations/*/memberships/{membership_id}`, set during
- * creation.
- * `membership_id` must be a valid RFC 1123 compliant DNS label:
- * 1. At most 63 characters in length
- * 2. It must consist of lower case alphanumeric characters or `-`
- * 3. It must start and end with an alphanumeric character
- * Which can be expressed as the regex: `[a-z0-9]([-a-z0-9]*[a-z0-9])?`,
- * with a maximum length of 63 characters.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. Labels for this membership.
- *
- * Generated from protobuf field map labels = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getLabels()
- {
- return $this->labels;
- }
-
- /**
- * Optional. Labels for this membership.
- *
- * Generated from protobuf field map labels = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setLabels($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->labels = $arr;
-
- return $this;
- }
-
- /**
- * Output only. Description of this membership, limited to 63 characters.
- * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
- * This field is present for legacy purposes.
- *
- * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Output only. Description of this membership, limited to 63 characters.
- * Must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.\ ]*`
- * This field is present for legacy purposes.
- *
- * Generated from protobuf field string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Output only. State of the Membership resource.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\GkeHub\V1\MembershipState|null
- */
- public function getState()
- {
- return $this->state;
- }
-
- public function hasState()
- {
- return isset($this->state);
- }
-
- public function clearState()
- {
- unset($this->state);
- }
-
- /**
- * Output only. State of the Membership resource.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\GkeHub\V1\MembershipState $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\MembershipState::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. When the Membership was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. When the Membership was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. When the Membership was last updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Output only. When the Membership was last updated.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. When the Membership was deleted.
- *
- * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getDeleteTime()
- {
- return $this->delete_time;
- }
-
- public function hasDeleteTime()
- {
- return isset($this->delete_time);
- }
-
- public function clearDeleteTime()
- {
- unset($this->delete_time);
- }
-
- /**
- * Output only. When the Membership was deleted.
- *
- * Generated from protobuf field .google.protobuf.Timestamp delete_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setDeleteTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->delete_time = $var;
-
- return $this;
- }
-
- /**
- * Optional. An externally-generated and managed ID for this Membership. This
- * ID may be modified after creation, but this is not recommended.
- * The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*`
- * If this Membership represents a Kubernetes cluster, this value should be
- * set to the UID of the `kube-system` namespace object.
- *
- * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getExternalId()
- {
- return $this->external_id;
- }
-
- /**
- * Optional. An externally-generated and managed ID for this Membership. This
- * ID may be modified after creation, but this is not recommended.
- * The ID must match the regex: `[a-zA-Z0-9][a-zA-Z0-9_\-\.]*`
- * If this Membership represents a Kubernetes cluster, this value should be
- * set to the UID of the `kube-system` namespace object.
- *
- * Generated from protobuf field string external_id = 9 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setExternalId($var)
- {
- GPBUtil::checkString($var, True);
- $this->external_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. For clusters using Connect, the timestamp of the most recent
- * connection established with Google Cloud. This time is updated every
- * several minutes, not continuously. For clusters that do not use GKE
- * Connect, or that have never connected successfully, this field will be
- * unset.
- *
- * Generated from protobuf field .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getLastConnectionTime()
- {
- return $this->last_connection_time;
- }
-
- public function hasLastConnectionTime()
- {
- return isset($this->last_connection_time);
- }
-
- public function clearLastConnectionTime()
- {
- unset($this->last_connection_time);
- }
-
- /**
- * Output only. For clusters using Connect, the timestamp of the most recent
- * connection established with Google Cloud. This time is updated every
- * several minutes, not continuously. For clusters that do not use GKE
- * Connect, or that have never connected successfully, this field will be
- * unset.
- *
- * Generated from protobuf field .google.protobuf.Timestamp last_connection_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setLastConnectionTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->last_connection_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Google-generated UUID for this resource. This is unique across
- * all Membership resources. If a Membership resource is deleted and another
- * resource with the same name is created, it gets a different unique_id.
- *
- * Generated from protobuf field string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getUniqueId()
- {
- return $this->unique_id;
- }
-
- /**
- * Output only. Google-generated UUID for this resource. This is unique across
- * all Membership resources. If a Membership resource is deleted and another
- * resource with the same name is created, it gets a different unique_id.
- *
- * Generated from protobuf field string unique_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setUniqueId($var)
- {
- GPBUtil::checkString($var, True);
- $this->unique_id = $var;
-
- return $this;
- }
-
- /**
- * Optional. How to identify workloads from this Membership.
- * See the documentation on Workload Identity for more details:
- * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeHub\V1\Authority|null
- */
- public function getAuthority()
- {
- return $this->authority;
- }
-
- public function hasAuthority()
- {
- return isset($this->authority);
- }
-
- public function clearAuthority()
- {
- unset($this->authority);
- }
-
- /**
- * Optional. How to identify workloads from this Membership.
- * See the documentation on Workload Identity for more details:
- * https://cloud.google.com/kubernetes-engine/docs/how-to/workload-identity
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Authority authority = 12 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeHub\V1\Authority $var
- * @return $this
- */
- public function setAuthority($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Authority::class);
- $this->authority = $var;
-
- return $this;
- }
-
- /**
- * Optional. The monitoring config information for this membership.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeHub\V1\MonitoringConfig|null
- */
- public function getMonitoringConfig()
- {
- return $this->monitoring_config;
- }
-
- public function hasMonitoringConfig()
- {
- return isset($this->monitoring_config);
- }
-
- public function clearMonitoringConfig()
- {
- unset($this->monitoring_config);
- }
-
- /**
- * Optional. The monitoring config information for this membership.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.MonitoringConfig monitoring_config = 14 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeHub\V1\MonitoringConfig $var
- * @return $this
- */
- public function setMonitoringConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\MonitoringConfig::class);
- $this->monitoring_config = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getType()
- {
- return $this->whichOneof("type");
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipEndpoint.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipEndpoint.php
deleted file mode 100644
index 6558053fe879..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipEndpoint.php
+++ /dev/null
@@ -1,228 +0,0 @@
-google.cloud.gkehub.v1.MembershipEndpoint
- */
-class MembershipEndpoint extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $gke_cluster = null;
- /**
- * Output only. Useful Kubernetes-specific metadata.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $kubernetes_metadata = null;
- /**
- * Optional. The in-cluster Kubernetes Resources that should be applied for a
- * correctly registered cluster, in the steady state. These resources:
- * * Ensure that the cluster is exclusively registered to one and only one
- * Hub Membership.
- * * Propagate Workload Pool Information available in the Membership
- * Authority field.
- * * Ensure proper initial configuration of default Hub Features.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $kubernetes_resource = null;
- /**
- * Output only. Whether the lifecycle of this membership is managed by a
- * google cluster platform service.
- *
- * Generated from protobuf field bool google_managed = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $google_managed = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeHub\V1\GkeCluster $gke_cluster
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
- * @type \Google\Cloud\GkeHub\V1\KubernetesMetadata $kubernetes_metadata
- * Output only. Useful Kubernetes-specific metadata.
- * @type \Google\Cloud\GkeHub\V1\KubernetesResource $kubernetes_resource
- * Optional. The in-cluster Kubernetes Resources that should be applied for a
- * correctly registered cluster, in the steady state. These resources:
- * * Ensure that the cluster is exclusively registered to one and only one
- * Hub Membership.
- * * Propagate Workload Pool Information available in the Membership
- * Authority field.
- * * Ensure proper initial configuration of default Hub Features.
- * @type bool $google_managed
- * Output only. Whether the lifecycle of this membership is managed by a
- * google cluster platform service.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeHub\V1\GkeCluster|null
- */
- public function getGkeCluster()
- {
- return $this->gke_cluster;
- }
-
- public function hasGkeCluster()
- {
- return isset($this->gke_cluster);
- }
-
- public function clearGkeCluster()
- {
- unset($this->gke_cluster);
- }
-
- /**
- * Optional. GKE-specific information. Only present if this Membership is a GKE cluster.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.GkeCluster gke_cluster = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeHub\V1\GkeCluster $var
- * @return $this
- */
- public function setGkeCluster($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\GkeCluster::class);
- $this->gke_cluster = $var;
-
- return $this;
- }
-
- /**
- * Output only. Useful Kubernetes-specific metadata.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\GkeHub\V1\KubernetesMetadata|null
- */
- public function getKubernetesMetadata()
- {
- return $this->kubernetes_metadata;
- }
-
- public function hasKubernetesMetadata()
- {
- return isset($this->kubernetes_metadata);
- }
-
- public function clearKubernetesMetadata()
- {
- unset($this->kubernetes_metadata);
- }
-
- /**
- * Output only. Useful Kubernetes-specific metadata.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesMetadata kubernetes_metadata = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\GkeHub\V1\KubernetesMetadata $var
- * @return $this
- */
- public function setKubernetesMetadata($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\KubernetesMetadata::class);
- $this->kubernetes_metadata = $var;
-
- return $this;
- }
-
- /**
- * Optional. The in-cluster Kubernetes Resources that should be applied for a
- * correctly registered cluster, in the steady state. These resources:
- * * Ensure that the cluster is exclusively registered to one and only one
- * Hub Membership.
- * * Propagate Workload Pool Information available in the Membership
- * Authority field.
- * * Ensure proper initial configuration of default Hub Features.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\GkeHub\V1\KubernetesResource|null
- */
- public function getKubernetesResource()
- {
- return $this->kubernetes_resource;
- }
-
- public function hasKubernetesResource()
- {
- return isset($this->kubernetes_resource);
- }
-
- public function clearKubernetesResource()
- {
- unset($this->kubernetes_resource);
- }
-
- /**
- * Optional. The in-cluster Kubernetes Resources that should be applied for a
- * correctly registered cluster, in the steady state. These resources:
- * * Ensure that the cluster is exclusively registered to one and only one
- * Hub Membership.
- * * Propagate Workload Pool Information available in the Membership
- * Authority field.
- * * Ensure proper initial configuration of default Hub Features.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.KubernetesResource kubernetes_resource = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\GkeHub\V1\KubernetesResource $var
- * @return $this
- */
- public function setKubernetesResource($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\KubernetesResource::class);
- $this->kubernetes_resource = $var;
-
- return $this;
- }
-
- /**
- * Output only. Whether the lifecycle of this membership is managed by a
- * google cluster platform service.
- *
- * Generated from protobuf field bool google_managed = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool
- */
- public function getGoogleManaged()
- {
- return $this->google_managed;
- }
-
- /**
- * Output only. Whether the lifecycle of this membership is managed by a
- * google cluster platform service.
- *
- * Generated from protobuf field bool google_managed = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool $var
- * @return $this
- */
- public function setGoogleManaged($var)
- {
- GPBUtil::checkBool($var);
- $this->google_managed = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureSpec.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureSpec.php
deleted file mode 100644
index cbb126324b89..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureSpec.php
+++ /dev/null
@@ -1,76 +0,0 @@
-google.cloud.gkehub.v1.MembershipFeatureSpec
- */
-class MembershipFeatureSpec extends \Google\Protobuf\Internal\Message
-{
- protected $feature_spec;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec $configmanagement
- * Config Management-specific spec.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Config Management-specific spec.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec|null
- */
- public function getConfigmanagement()
- {
- return $this->readOneof(106);
- }
-
- public function hasConfigmanagement()
- {
- return $this->hasOneof(106);
- }
-
- /**
- * Config Management-specific spec.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipSpec configmanagement = 106;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec $var
- * @return $this
- */
- public function setConfigmanagement($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipSpec::class);
- $this->writeOneof(106, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getFeatureSpec()
- {
- return $this->whichOneof("feature_spec");
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureState.php
deleted file mode 100644
index cdbc23edb08a..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipFeatureState.php
+++ /dev/null
@@ -1,120 +0,0 @@
-google.cloud.gkehub.v1.MembershipFeatureState
- */
-class MembershipFeatureState extends \Google\Protobuf\Internal\Message
-{
- /**
- * The high-level state of this Feature for a single membership.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1;
- */
- protected $state = null;
- protected $feature_state;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipState $configmanagement
- * Config Management-specific state.
- * @type \Google\Cloud\GkeHub\V1\FeatureState $state
- * The high-level state of this Feature for a single membership.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Feature::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Config Management-specific state.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106;
- * @return \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipState|null
- */
- public function getConfigmanagement()
- {
- return $this->readOneof(106);
- }
-
- public function hasConfigmanagement()
- {
- return $this->hasOneof(106);
- }
-
- /**
- * Config Management-specific state.
- *
- * Generated from protobuf field .google.cloud.gkehub.configmanagement.v1.MembershipState configmanagement = 106;
- * @param \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipState $var
- * @return $this
- */
- public function setConfigmanagement($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\ConfigManagement\V1\MembershipState::class);
- $this->writeOneof(106, $var);
-
- return $this;
- }
-
- /**
- * The high-level state of this Feature for a single membership.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1;
- * @return \Google\Cloud\GkeHub\V1\FeatureState|null
- */
- public function getState()
- {
- return $this->state;
- }
-
- public function hasState()
- {
- return isset($this->state);
- }
-
- public function clearState()
- {
- unset($this->state);
- }
-
- /**
- * The high-level state of this Feature for a single membership.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.FeatureState state = 1;
- * @param \Google\Cloud\GkeHub\V1\FeatureState $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\FeatureState::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getFeatureState()
- {
- return $this->whichOneof("feature_state");
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState.php
deleted file mode 100644
index c46968fcb0e0..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState.php
+++ /dev/null
@@ -1,67 +0,0 @@
-google.cloud.gkehub.v1.MembershipState
- */
-class MembershipState extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The current state of the Membership resource.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $code = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $code
- * Output only. The current state of the Membership resource.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The current state of the Membership resource.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getCode()
- {
- return $this->code;
- }
-
- /**
- * Output only. The current state of the Membership resource.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.MembershipState.Code code = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setCode($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\GkeHub\V1\MembershipState\Code::class);
- $this->code = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState/Code.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState/Code.php
deleted file mode 100644
index 7c40449feacd..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MembershipState/Code.php
+++ /dev/null
@@ -1,85 +0,0 @@
-google.cloud.gkehub.v1.MembershipState.Code
- */
-class Code
-{
- /**
- * The code is not set.
- *
- * Generated from protobuf enum CODE_UNSPECIFIED = 0;
- */
- const CODE_UNSPECIFIED = 0;
- /**
- * The cluster is being registered.
- *
- * Generated from protobuf enum CREATING = 1;
- */
- const CREATING = 1;
- /**
- * The cluster is registered.
- *
- * Generated from protobuf enum READY = 2;
- */
- const READY = 2;
- /**
- * The cluster is being unregistered.
- *
- * Generated from protobuf enum DELETING = 3;
- */
- const DELETING = 3;
- /**
- * The Membership is being updated.
- *
- * Generated from protobuf enum UPDATING = 4;
- */
- const UPDATING = 4;
- /**
- * The Membership is being updated by the Hub Service.
- *
- * Generated from protobuf enum SERVICE_UPDATING = 5;
- */
- const SERVICE_UPDATING = 5;
-
- private static $valueToName = [
- self::CODE_UNSPECIFIED => 'CODE_UNSPECIFIED',
- self::CREATING => 'CREATING',
- self::READY => 'READY',
- self::DELETING => 'DELETING',
- self::UPDATING => 'UPDATING',
- self::SERVICE_UPDATING => 'SERVICE_UPDATING',
- ];
-
- 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(Code::class, \Google\Cloud\GkeHub\V1\MembershipState_Code::class);
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MonitoringConfig.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MonitoringConfig.php
deleted file mode 100644
index 94b7778b1b70..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/MonitoringConfig.php
+++ /dev/null
@@ -1,244 +0,0 @@
-google.cloud.gkehub.v1.MonitoringConfig
- */
-class MonitoringConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Immutable. Project used to report Metrics
- *
- * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
- */
- protected $project_id = '';
- /**
- * Immutable. Location used to report Metrics
- *
- * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE];
- */
- protected $location = '';
- /**
- * Immutable. Cluster name used to report metrics.
- * For Anthos on VMWare/Baremetal, it would be in format
- * `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in
- * format
- * `{azureClusters, awsClusters}/cluster_name`.
- *
- * Generated from protobuf field string cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
- */
- protected $cluster = '';
- /**
- * Kubernetes system metrics, if available, are written to this prefix.
- * This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos
- * eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today
- * but will migration to be under kubernetes.io/anthos
- *
- * Generated from protobuf field string kubernetes_metrics_prefix = 4;
- */
- protected $kubernetes_metrics_prefix = '';
- /**
- * Immutable. Cluster hash, this is a unique string generated by google code,
- * which does not contain any PII, which we can use to reference the cluster.
- * This is expected to be created by the monitoring stack and persisted into
- * the Cluster object as well as to GKE-Hub.
- *
- * Generated from protobuf field string cluster_hash = 5 [(.google.api.field_behavior) = IMMUTABLE];
- */
- protected $cluster_hash = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $project_id
- * Immutable. Project used to report Metrics
- * @type string $location
- * Immutable. Location used to report Metrics
- * @type string $cluster
- * Immutable. Cluster name used to report metrics.
- * For Anthos on VMWare/Baremetal, it would be in format
- * `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in
- * format
- * `{azureClusters, awsClusters}/cluster_name`.
- * @type string $kubernetes_metrics_prefix
- * Kubernetes system metrics, if available, are written to this prefix.
- * This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos
- * eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today
- * but will migration to be under kubernetes.io/anthos
- * @type string $cluster_hash
- * Immutable. Cluster hash, this is a unique string generated by google code,
- * which does not contain any PII, which we can use to reference the cluster.
- * This is expected to be created by the monitoring stack and persisted into
- * the Cluster object as well as to GKE-Hub.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Immutable. Project used to report Metrics
- *
- * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
- * @return string
- */
- public function getProjectId()
- {
- return $this->project_id;
- }
-
- /**
- * Immutable. Project used to report Metrics
- *
- * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = IMMUTABLE];
- * @param string $var
- * @return $this
- */
- public function setProjectId($var)
- {
- GPBUtil::checkString($var, True);
- $this->project_id = $var;
-
- return $this;
- }
-
- /**
- * Immutable. Location used to report Metrics
- *
- * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE];
- * @return string
- */
- public function getLocation()
- {
- return $this->location;
- }
-
- /**
- * Immutable. Location used to report Metrics
- *
- * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = IMMUTABLE];
- * @param string $var
- * @return $this
- */
- public function setLocation($var)
- {
- GPBUtil::checkString($var, True);
- $this->location = $var;
-
- return $this;
- }
-
- /**
- * Immutable. Cluster name used to report metrics.
- * For Anthos on VMWare/Baremetal, it would be in format
- * `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in
- * format
- * `{azureClusters, awsClusters}/cluster_name`.
- *
- * Generated from protobuf field string cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
- * @return string
- */
- public function getCluster()
- {
- return $this->cluster;
- }
-
- /**
- * Immutable. Cluster name used to report metrics.
- * For Anthos on VMWare/Baremetal, it would be in format
- * `memberClusters/cluster_name`; And for Anthos on MultiCloud, it would be in
- * format
- * `{azureClusters, awsClusters}/cluster_name`.
- *
- * Generated from protobuf field string cluster = 3 [(.google.api.field_behavior) = IMMUTABLE];
- * @param string $var
- * @return $this
- */
- public function setCluster($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster = $var;
-
- return $this;
- }
-
- /**
- * Kubernetes system metrics, if available, are written to this prefix.
- * This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos
- * eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today
- * but will migration to be under kubernetes.io/anthos
- *
- * Generated from protobuf field string kubernetes_metrics_prefix = 4;
- * @return string
- */
- public function getKubernetesMetricsPrefix()
- {
- return $this->kubernetes_metrics_prefix;
- }
-
- /**
- * Kubernetes system metrics, if available, are written to this prefix.
- * This defaults to kubernetes.io for GKE, and kubernetes.io/anthos for Anthos
- * eventually. Noted: Anthos MultiCloud will have kubernetes.io prefix today
- * but will migration to be under kubernetes.io/anthos
- *
- * Generated from protobuf field string kubernetes_metrics_prefix = 4;
- * @param string $var
- * @return $this
- */
- public function setKubernetesMetricsPrefix($var)
- {
- GPBUtil::checkString($var, True);
- $this->kubernetes_metrics_prefix = $var;
-
- return $this;
- }
-
- /**
- * Immutable. Cluster hash, this is a unique string generated by google code,
- * which does not contain any PII, which we can use to reference the cluster.
- * This is expected to be created by the monitoring stack and persisted into
- * the Cluster object as well as to GKE-Hub.
- *
- * Generated from protobuf field string cluster_hash = 5 [(.google.api.field_behavior) = IMMUTABLE];
- * @return string
- */
- public function getClusterHash()
- {
- return $this->cluster_hash;
- }
-
- /**
- * Immutable. Cluster hash, this is a unique string generated by google code,
- * which does not contain any PII, which we can use to reference the cluster.
- * This is expected to be created by the monitoring stack and persisted into
- * the Cluster object as well as to GKE-Hub.
- *
- * Generated from protobuf field string cluster_hash = 5 [(.google.api.field_behavior) = IMMUTABLE];
- * @param string $var
- * @return $this
- */
- public function setClusterHash($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster_hash = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/OperationMetadata.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/OperationMetadata.php
deleted file mode 100644
index cc9ce81fccd1..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/OperationMetadata.php
+++ /dev/null
@@ -1,303 +0,0 @@
-google.cloud.gkehub.v1.OperationMetadata
- */
-class OperationMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Output only. The time the operation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. The time the operation finished running.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $end_time = null;
- /**
- * Output only. Server-defined resource path for the target of the operation.
- *
- * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $target = '';
- /**
- * Output only. Name of the verb executed by the operation.
- *
- * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $verb = '';
- /**
- * Output only. Human-readable status of the operation, if any.
- *
- * Generated from protobuf field string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $status_detail = '';
- /**
- * Output only. Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
- * corresponding to `Code.CANCELLED`.
- *
- * Generated from protobuf field bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $cancel_requested = false;
- /**
- * Output only. API version used to start the operation.
- *
- * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $api_version = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The time the operation was created.
- * @type \Google\Protobuf\Timestamp $end_time
- * Output only. The time the operation finished running.
- * @type string $target
- * Output only. Server-defined resource path for the target of the operation.
- * @type string $verb
- * Output only. Name of the verb executed by the operation.
- * @type string $status_detail
- * Output only. Human-readable status of the operation, if any.
- * @type bool $cancel_requested
- * Output only. Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
- * corresponding to `Code.CANCELLED`.
- * @type string $api_version
- * Output only. API version used to start the operation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Output only. The time the operation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Output only. The time the operation was created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. The time the operation finished running.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * Output only. The time the operation finished running.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. Server-defined resource path for the target of the operation.
- *
- * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getTarget()
- {
- return $this->target;
- }
-
- /**
- * Output only. Server-defined resource path for the target of the operation.
- *
- * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setTarget($var)
- {
- GPBUtil::checkString($var, True);
- $this->target = $var;
-
- return $this;
- }
-
- /**
- * Output only. Name of the verb executed by the operation.
- *
- * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getVerb()
- {
- return $this->verb;
- }
-
- /**
- * Output only. Name of the verb executed by the operation.
- *
- * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setVerb($var)
- {
- GPBUtil::checkString($var, True);
- $this->verb = $var;
-
- return $this;
- }
-
- /**
- * Output only. Human-readable status of the operation, if any.
- *
- * Generated from protobuf field string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getStatusDetail()
- {
- return $this->status_detail;
- }
-
- /**
- * Output only. Human-readable status of the operation, if any.
- *
- * Generated from protobuf field string status_detail = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setStatusDetail($var)
- {
- GPBUtil::checkString($var, True);
- $this->status_detail = $var;
-
- return $this;
- }
-
- /**
- * Output only. Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
- * corresponding to `Code.CANCELLED`.
- *
- * Generated from protobuf field bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return bool
- */
- public function getCancelRequested()
- {
- return $this->cancel_requested;
- }
-
- /**
- * Output only. Identifies whether the user has requested cancellation
- * of the operation. Operations that have successfully been cancelled
- * have [Operation.error][] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
- * corresponding to `Code.CANCELLED`.
- *
- * Generated from protobuf field bool cancel_requested = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param bool $var
- * @return $this
- */
- public function setCancelRequested($var)
- {
- GPBUtil::checkBool($var);
- $this->cancel_requested = $var;
-
- return $this;
- }
-
- /**
- * Output only. API version used to start the operation.
- *
- * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getApiVersion()
- {
- return $this->api_version;
- }
-
- /**
- * Output only. API version used to start the operation.
- *
- * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setApiVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->api_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceManifest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceManifest.php
deleted file mode 100644
index 1ae0d6196454..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceManifest.php
+++ /dev/null
@@ -1,114 +0,0 @@
-google.cloud.gkehub.v1.ResourceManifest
- */
-class ResourceManifest extends \Google\Protobuf\Internal\Message
-{
- /**
- * YAML manifest of the resource.
- *
- * Generated from protobuf field string manifest = 1;
- */
- protected $manifest = '';
- /**
- * Whether the resource provided in the manifest is `cluster_scoped`.
- * If unset, the manifest is assumed to be namespace scoped.
- * This field is used for REST mapping when applying the resource in a
- * cluster.
- *
- * Generated from protobuf field bool cluster_scoped = 2;
- */
- protected $cluster_scoped = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $manifest
- * YAML manifest of the resource.
- * @type bool $cluster_scoped
- * Whether the resource provided in the manifest is `cluster_scoped`.
- * If unset, the manifest is assumed to be namespace scoped.
- * This field is used for REST mapping when applying the resource in a
- * cluster.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce();
- parent::__construct($data);
- }
-
- /**
- * YAML manifest of the resource.
- *
- * Generated from protobuf field string manifest = 1;
- * @return string
- */
- public function getManifest()
- {
- return $this->manifest;
- }
-
- /**
- * YAML manifest of the resource.
- *
- * Generated from protobuf field string manifest = 1;
- * @param string $var
- * @return $this
- */
- public function setManifest($var)
- {
- GPBUtil::checkString($var, True);
- $this->manifest = $var;
-
- return $this;
- }
-
- /**
- * Whether the resource provided in the manifest is `cluster_scoped`.
- * If unset, the manifest is assumed to be namespace scoped.
- * This field is used for REST mapping when applying the resource in a
- * cluster.
- *
- * Generated from protobuf field bool cluster_scoped = 2;
- * @return bool
- */
- public function getClusterScoped()
- {
- return $this->cluster_scoped;
- }
-
- /**
- * Whether the resource provided in the manifest is `cluster_scoped`.
- * If unset, the manifest is assumed to be namespace scoped.
- * This field is used for REST mapping when applying the resource in a
- * cluster.
- *
- * Generated from protobuf field bool cluster_scoped = 2;
- * @param bool $var
- * @return $this
- */
- public function setClusterScoped($var)
- {
- GPBUtil::checkBool($var);
- $this->cluster_scoped = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceOptions.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceOptions.php
deleted file mode 100644
index 3db8b36a653b..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/ResourceOptions.php
+++ /dev/null
@@ -1,163 +0,0 @@
-google.cloud.gkehub.v1.ResourceOptions
- */
-class ResourceOptions extends \Google\Protobuf\Internal\Message
-{
- /**
- * Optional. The Connect agent version to use for connect_resources. Defaults
- * to the latest GKE Connect version. The version must be a currently
- * supported version, obsolete versions will be rejected.
- *
- * Generated from protobuf field string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $connect_version = '';
- /**
- * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
- * CustomResourceDefinition resources.
- * This option should be set for clusters with Kubernetes apiserver versions
- * <1.16.
- *
- * Generated from protobuf field bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $v1beta1_crd = false;
- /**
- * Optional. Major version of the Kubernetes cluster. This is only used to
- * determine which version to use for the CustomResourceDefinition resources,
- * `apiextensions/v1beta1` or`apiextensions/v1`.
- *
- * Generated from protobuf field string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $k8s_version = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $connect_version
- * Optional. The Connect agent version to use for connect_resources. Defaults
- * to the latest GKE Connect version. The version must be a currently
- * supported version, obsolete versions will be rejected.
- * @type bool $v1beta1_crd
- * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
- * CustomResourceDefinition resources.
- * This option should be set for clusters with Kubernetes apiserver versions
- * <1.16.
- * @type string $k8s_version
- * Optional. Major version of the Kubernetes cluster. This is only used to
- * determine which version to use for the CustomResourceDefinition resources,
- * `apiextensions/v1beta1` or`apiextensions/v1`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Membership::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Optional. The Connect agent version to use for connect_resources. Defaults
- * to the latest GKE Connect version. The version must be a currently
- * supported version, obsolete versions will be rejected.
- *
- * Generated from protobuf field string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getConnectVersion()
- {
- return $this->connect_version;
- }
-
- /**
- * Optional. The Connect agent version to use for connect_resources. Defaults
- * to the latest GKE Connect version. The version must be a currently
- * supported version, obsolete versions will be rejected.
- *
- * Generated from protobuf field string connect_version = 1 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setConnectVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->connect_version = $var;
-
- return $this;
- }
-
- /**
- * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
- * CustomResourceDefinition resources.
- * This option should be set for clusters with Kubernetes apiserver versions
- * <1.16.
- *
- * Generated from protobuf field bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @return bool
- */
- public function getV1Beta1Crd()
- {
- return $this->v1beta1_crd;
- }
-
- /**
- * Optional. Use `apiextensions/v1beta1` instead of `apiextensions/v1` for
- * CustomResourceDefinition resources.
- * This option should be set for clusters with Kubernetes apiserver versions
- * <1.16.
- *
- * Generated from protobuf field bool v1beta1_crd = 2 [(.google.api.field_behavior) = OPTIONAL];
- * @param bool $var
- * @return $this
- */
- public function setV1Beta1Crd($var)
- {
- GPBUtil::checkBool($var);
- $this->v1beta1_crd = $var;
-
- return $this;
- }
-
- /**
- * Optional. Major version of the Kubernetes cluster. This is only used to
- * determine which version to use for the CustomResourceDefinition resources,
- * `apiextensions/v1beta1` or`apiextensions/v1`.
- *
- * Generated from protobuf field string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getK8SVersion()
- {
- return $this->k8s_version;
- }
-
- /**
- * Optional. Major version of the Kubernetes cluster. This is only used to
- * determine which version to use for the CustomResourceDefinition resources,
- * `apiextensions/v1beta1` or`apiextensions/v1`.
- *
- * Generated from protobuf field string k8s_version = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setK8SVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->k8s_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/TypeMeta.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/TypeMeta.php
deleted file mode 100644
index d04c88055885..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/TypeMeta.php
+++ /dev/null
@@ -1,102 +0,0 @@
-google.cloud.gkehub.v1.TypeMeta
- */
-class TypeMeta extends \Google\Protobuf\Internal\Message
-{
- /**
- * Kind of the resource (e.g. Deployment).
- *
- * Generated from protobuf field string kind = 1;
- */
- protected $kind = '';
- /**
- * APIVersion of the resource (e.g. v1).
- *
- * Generated from protobuf field string api_version = 2;
- */
- protected $api_version = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $kind
- * Kind of the resource (e.g. Deployment).
- * @type string $api_version
- * APIVersion of the resource (e.g. v1).
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Kind of the resource (e.g. Deployment).
- *
- * Generated from protobuf field string kind = 1;
- * @return string
- */
- public function getKind()
- {
- return $this->kind;
- }
-
- /**
- * Kind of the resource (e.g. Deployment).
- *
- * Generated from protobuf field string kind = 1;
- * @param string $var
- * @return $this
- */
- public function setKind($var)
- {
- GPBUtil::checkString($var, True);
- $this->kind = $var;
-
- return $this;
- }
-
- /**
- * APIVersion of the resource (e.g. v1).
- *
- * Generated from protobuf field string api_version = 2;
- * @return string
- */
- public function getApiVersion()
- {
- return $this->api_version;
- }
-
- /**
- * APIVersion of the resource (e.g. v1).
- *
- * Generated from protobuf field string api_version = 2;
- * @param string $var
- * @return $this
- */
- public function setApiVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->api_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateFeatureRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateFeatureRequest.php
deleted file mode 100644
index 89a7b5b28dbb..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateFeatureRequest.php
+++ /dev/null
@@ -1,286 +0,0 @@
-google.cloud.gkehub.v1.UpdateFeatureRequest
- */
-class UpdateFeatureRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Mask of fields to update.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- */
- protected $update_mask = null;
- /**
- * Only fields specified in update_mask are updated.
- * If you specify a field in the update_mask but don't specify its value here
- * that field will be deleted.
- * If you are updating a map field, set the value of a key to null or empty
- * string to delete the key from the map. It's not possible to update a key's
- * value to the empty string.
- * If you specify the update_mask to be a special path "*", fully replaces all
- * user-modifiable fields to match `resource`.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3;
- */
- protected $resource = null;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4;
- */
- protected $request_id = '';
-
- /**
- * @param string $name Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`.
- * @param \Google\Cloud\GkeHub\V1\Feature $resource Only fields specified in update_mask are updated.
- * If you specify a field in the update_mask but don't specify its value here
- * that field will be deleted.
- * If you are updating a map field, set the value of a key to null or empty
- * string to delete the key from the map. It's not possible to update a key's
- * value to the empty string.
- * If you specify the update_mask to be a special path "*", fully replaces all
- * user-modifiable fields to match `resource`.
- * @param \Google\Protobuf\FieldMask $updateMask Mask of fields to update.
- *
- * @return \Google\Cloud\GkeHub\V1\UpdateFeatureRequest
- *
- * @experimental
- */
- public static function build(string $name, \Google\Cloud\GkeHub\V1\Feature $resource, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setName($name)
- ->setResource($resource)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`.
- * @type \Google\Protobuf\FieldMask $update_mask
- * Mask of fields to update.
- * @type \Google\Cloud\GkeHub\V1\Feature $resource
- * Only fields specified in update_mask are updated.
- * If you specify a field in the update_mask but don't specify its value here
- * that field will be deleted.
- * If you are updating a map field, set the value of a key to null or empty
- * string to delete the key from the map. It's not possible to update a key's
- * value to the empty string.
- * If you specify the update_mask to be a special path "*", fully replaces all
- * user-modifiable fields to match `resource`.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The Feature resource name in the format
- * `projects/*/locations/*/features/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Mask of fields to update.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * Mask of fields to update.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2;
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
- /**
- * Only fields specified in update_mask are updated.
- * If you specify a field in the update_mask but don't specify its value here
- * that field will be deleted.
- * If you are updating a map field, set the value of a key to null or empty
- * string to delete the key from the map. It's not possible to update a key's
- * value to the empty string.
- * If you specify the update_mask to be a special path "*", fully replaces all
- * user-modifiable fields to match `resource`.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3;
- * @return \Google\Cloud\GkeHub\V1\Feature|null
- */
- public function getResource()
- {
- return $this->resource;
- }
-
- public function hasResource()
- {
- return isset($this->resource);
- }
-
- public function clearResource()
- {
- unset($this->resource);
- }
-
- /**
- * Only fields specified in update_mask are updated.
- * If you specify a field in the update_mask but don't specify its value here
- * that field will be deleted.
- * If you are updating a map field, set the value of a key to null or empty
- * string to delete the key from the map. It's not possible to update a key's
- * value to the empty string.
- * If you specify the update_mask to be a special path "*", fully replaces all
- * user-modifiable fields to match `resource`.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Feature resource = 3;
- * @param \Google\Cloud\GkeHub\V1\Feature $var
- * @return $this
- */
- public function setResource($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Feature::class);
- $this->resource = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4;
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4;
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateMembershipRequest.php b/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateMembershipRequest.php
deleted file mode 100644
index 18371b71de73..000000000000
--- a/owl-bot-staging/GkeHub/v1/proto/src/Google/Cloud/GkeHub/V1/UpdateMembershipRequest.php
+++ /dev/null
@@ -1,287 +0,0 @@
-google.cloud.gkehub.v1.UpdateMembershipRequest
- */
-class UpdateMembershipRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * Required. Mask of fields to update.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $update_mask = null;
- /**
- * Required. Only fields specified in update_mask are updated.
- * If you specify a field in the update_mask but don't specify its value here
- * that field will be deleted.
- * If you are updating a map field, set the value of a key to null or empty
- * string to delete the key from the map. It's not possible to update a key's
- * value to the empty string.
- * If you specify the update_mask to be a special path "*", fully replaces all
- * user-modifiable fields to match `resource`.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $resource = null;
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $request_id = '';
-
- /**
- * @param string $name Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`. Please see
- * {@see GkeHubClient::membershipName()} for help formatting this field.
- * @param \Google\Cloud\GkeHub\V1\Membership $resource Required. Only fields specified in update_mask are updated.
- * If you specify a field in the update_mask but don't specify its value here
- * that field will be deleted.
- * If you are updating a map field, set the value of a key to null or empty
- * string to delete the key from the map. It's not possible to update a key's
- * value to the empty string.
- * If you specify the update_mask to be a special path "*", fully replaces all
- * user-modifiable fields to match `resource`.
- * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update.
- *
- * @return \Google\Cloud\GkeHub\V1\UpdateMembershipRequest
- *
- * @experimental
- */
- public static function build(string $name, \Google\Cloud\GkeHub\V1\Membership $resource, \Google\Protobuf\FieldMask $updateMask): self
- {
- return (new self())
- ->setName($name)
- ->setResource($resource)
- ->setUpdateMask($updateMask);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
- * @type \Google\Protobuf\FieldMask $update_mask
- * Required. Mask of fields to update.
- * @type \Google\Cloud\GkeHub\V1\Membership $resource
- * Required. Only fields specified in update_mask are updated.
- * If you specify a field in the update_mask but don't specify its value here
- * that field will be deleted.
- * If you are updating a map field, set the value of a key to null or empty
- * string to delete the key from the map. It's not possible to update a key's
- * value to the empty string.
- * If you specify the update_mask to be a special path "*", fully replaces all
- * user-modifiable fields to match `resource`.
- * @type string $request_id
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Cloud\Gkehub\V1\Service::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Required. The Membership resource name in the format
- * `projects/*/locations/*/memberships/*`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Required. Mask of fields to update.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Protobuf\FieldMask|null
- */
- public function getUpdateMask()
- {
- return $this->update_mask;
- }
-
- public function hasUpdateMask()
- {
- return isset($this->update_mask);
- }
-
- public function clearUpdateMask()
- {
- unset($this->update_mask);
- }
-
- /**
- * Required. Mask of fields to update.
- *
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Protobuf\FieldMask $var
- * @return $this
- */
- public function setUpdateMask($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class);
- $this->update_mask = $var;
-
- return $this;
- }
-
- /**
- * Required. Only fields specified in update_mask are updated.
- * If you specify a field in the update_mask but don't specify its value here
- * that field will be deleted.
- * If you are updating a map field, set the value of a key to null or empty
- * string to delete the key from the map. It's not possible to update a key's
- * value to the empty string.
- * If you specify the update_mask to be a special path "*", fully replaces all
- * user-modifiable fields to match `resource`.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED];
- * @return \Google\Cloud\GkeHub\V1\Membership|null
- */
- public function getResource()
- {
- return $this->resource;
- }
-
- public function hasResource()
- {
- return isset($this->resource);
- }
-
- public function clearResource()
- {
- unset($this->resource);
- }
-
- /**
- * Required. Only fields specified in update_mask are updated.
- * If you specify a field in the update_mask but don't specify its value here
- * that field will be deleted.
- * If you are updating a map field, set the value of a key to null or empty
- * string to delete the key from the map. It's not possible to update a key's
- * value to the empty string.
- * If you specify the update_mask to be a special path "*", fully replaces all
- * user-modifiable fields to match `resource`.
- *
- * Generated from protobuf field .google.cloud.gkehub.v1.Membership resource = 3 [(.google.api.field_behavior) = REQUIRED];
- * @param \Google\Cloud\GkeHub\V1\Membership $var
- * @return $this
- */
- public function setResource($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\GkeHub\V1\Membership::class);
- $this->resource = $var;
-
- return $this;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Optional. A request ID to identify requests. Specify a unique request ID
- * so that if you must retry your request, the server will know to ignore
- * the request if it has already been completed. The server will guarantee
- * that for at least 60 minutes after the first request.
- * For example, consider a situation where you make an initial request and
- * the request times out. If you make the request again with the same request
- * ID, the server can check if original operation with the same request ID
- * was received, and if so, will ignore the second request. This prevents
- * clients from accidentally creating duplicate commitments.
- * The request ID must be a valid UUID with the exception that zero UUID is
- * not supported (00000000-0000-0000-0000-000000000000).
- *
- * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_feature.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_feature.php
deleted file mode 100644
index f8ec79e951a9..000000000000
--- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_feature.php
+++ /dev/null
@@ -1,69 +0,0 @@
-createFeature($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Feature $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END gkehub_v1_generated_GkeHub_CreateFeature_sync]
diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_membership.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_membership.php
deleted file mode 100644
index 3f4e0de716d9..000000000000
--- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/create_membership.php
+++ /dev/null
@@ -1,101 +0,0 @@
-setParent($formattedParent)
- ->setMembershipId($membershipId)
- ->setResource($resource);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $gkeHubClient->createMembership($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Membership $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = GkeHubClient::locationName('[PROJECT]', '[LOCATION]');
- $membershipId = '[MEMBERSHIP_ID]';
-
- create_membership_sample($formattedParent, $membershipId);
-}
-// [END gkehub_v1_generated_GkeHub_CreateMembership_sync]
diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_feature.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_feature.php
deleted file mode 100644
index 8091a501e3bd..000000000000
--- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_feature.php
+++ /dev/null
@@ -1,66 +0,0 @@
-deleteFeature($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END gkehub_v1_generated_GkeHub_DeleteFeature_sync]
diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_membership.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_membership.php
deleted file mode 100644
index d1efebc9105b..000000000000
--- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/delete_membership.php
+++ /dev/null
@@ -1,85 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $gkeHubClient->deleteMembership($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- printf('Operation completed successfully.' . PHP_EOL);
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = GkeHubClient::membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]');
-
- delete_membership_sample($formattedName);
-}
-// [END gkehub_v1_generated_GkeHub_DeleteMembership_sync]
diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/generate_connect_manifest.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/generate_connect_manifest.php
deleted file mode 100644
index 2df823d9eb1f..000000000000
--- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/generate_connect_manifest.php
+++ /dev/null
@@ -1,75 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var GenerateConnectManifestResponse $response */
- $response = $gkeHubClient->generateConnectManifest($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = GkeHubClient::membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]');
-
- generate_connect_manifest_sample($formattedName);
-}
-// [END gkehub_v1_generated_GkeHub_GenerateConnectManifest_sync]
diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_feature.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_feature.php
deleted file mode 100644
index 2ab7e8aa543b..000000000000
--- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_feature.php
+++ /dev/null
@@ -1,57 +0,0 @@
-getFeature($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END gkehub_v1_generated_GkeHub_GetFeature_sync]
diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_membership.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_membership.php
deleted file mode 100644
index dda06fdfe6b2..000000000000
--- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/get_membership.php
+++ /dev/null
@@ -1,72 +0,0 @@
-setName($formattedName);
-
- // Call the API and handle any network failures.
- try {
- /** @var Membership $response */
- $response = $gkeHubClient->getMembership($request);
- printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString());
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = GkeHubClient::membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]');
-
- get_membership_sample($formattedName);
-}
-// [END gkehub_v1_generated_GkeHub_GetMembership_sync]
diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_features.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_features.php
deleted file mode 100644
index a267810aec6d..000000000000
--- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_features.php
+++ /dev/null
@@ -1,62 +0,0 @@
-listFeatures($request);
-
- /** @var Feature $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END gkehub_v1_generated_GkeHub_ListFeatures_sync]
diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_memberships.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_memberships.php
deleted file mode 100644
index cce7108f378c..000000000000
--- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/list_memberships.php
+++ /dev/null
@@ -1,78 +0,0 @@
-setParent($formattedParent);
-
- // Call the API and handle any network failures.
- try {
- /** @var PagedListResponse $response */
- $response = $gkeHubClient->listMemberships($request);
-
- /** @var Membership $element */
- foreach ($response as $element) {
- printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedParent = GkeHubClient::locationName('[PROJECT]', '[LOCATION]');
-
- list_memberships_sample($formattedParent);
-}
-// [END gkehub_v1_generated_GkeHub_ListMemberships_sync]
diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_feature.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_feature.php
deleted file mode 100644
index d3f11c139900..000000000000
--- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_feature.php
+++ /dev/null
@@ -1,69 +0,0 @@
-updateFeature($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Feature $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-// [END gkehub_v1_generated_GkeHub_UpdateFeature_sync]
diff --git a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_membership.php b/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_membership.php
deleted file mode 100644
index 09df3eb2a4fd..000000000000
--- a/owl-bot-staging/GkeHub/v1/samples/V1/GkeHubClient/update_membership.php
+++ /dev/null
@@ -1,89 +0,0 @@
-setName($formattedName)
- ->setUpdateMask($updateMask)
- ->setResource($resource);
-
- // Call the API and handle any network failures.
- try {
- /** @var OperationResponse $response */
- $response = $gkeHubClient->updateMembership($request);
- $response->pollUntilComplete();
-
- if ($response->operationSucceeded()) {
- /** @var Membership $result */
- $result = $response->getResult();
- printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString());
- } else {
- /** @var Status $error */
- $error = $response->getError();
- printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString());
- }
- } catch (ApiException $ex) {
- printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage());
- }
-}
-
-/**
- * Helper to execute the sample.
- *
- * This sample has been automatically generated and should be regarded as a code
- * template only. It will require modifications to work:
- * - It may require correct/in-range values for request initialization.
- * - It may require specifying regional endpoints when creating the service client,
- * please see the apiEndpoint client configuration option for more details.
- */
-function callSample(): void
-{
- $formattedName = GkeHubClient::membershipName('[PROJECT]', '[LOCATION]', '[MEMBERSHIP]');
-
- update_membership_sample($formattedName);
-}
-// [END gkehub_v1_generated_GkeHub_UpdateMembership_sync]
diff --git a/owl-bot-staging/GkeHub/v1/src/V1/Client/GkeHubClient.php b/owl-bot-staging/GkeHub/v1/src/V1/Client/GkeHubClient.php
deleted file mode 100644
index 5801c8477797..000000000000
--- a/owl-bot-staging/GkeHub/v1/src/V1/Client/GkeHubClient.php
+++ /dev/null
@@ -1,645 +0,0 @@
- createFeatureAsync(CreateFeatureRequest $request, array $optionalArgs = [])
- * @method PromiseInterface createMembershipAsync(CreateMembershipRequest $request, array $optionalArgs = [])
- * @method PromiseInterface deleteFeatureAsync(DeleteFeatureRequest $request, array $optionalArgs = [])
- * @method PromiseInterface