diff --git a/Spanner/metadata/Admin/Instance/V1/Common.php b/Spanner/metadata/Admin/Instance/V1/Common.php
index 75e8043d35ca..ce280a9688c2 100644
Binary files a/Spanner/metadata/Admin/Instance/V1/Common.php and b/Spanner/metadata/Admin/Instance/V1/Common.php differ
diff --git a/Spanner/metadata/Admin/Instance/V1/SpannerInstanceAdmin.php b/Spanner/metadata/Admin/Instance/V1/SpannerInstanceAdmin.php
index 8b5e9db042db..3bca763a961b 100644
Binary files a/Spanner/metadata/Admin/Instance/V1/SpannerInstanceAdmin.php and b/Spanner/metadata/Admin/Instance/V1/SpannerInstanceAdmin.php differ
diff --git a/Spanner/src/Admin/Instance/V1/AutoscalingConfig/AutoscalingTargets.php b/Spanner/src/Admin/Instance/V1/AutoscalingConfig/AutoscalingTargets.php
index 45f359fee624..cf5df0923f5b 100644
--- a/Spanner/src/Admin/Instance/V1/AutoscalingConfig/AutoscalingTargets.php
+++ b/Spanner/src/Admin/Instance/V1/AutoscalingConfig/AutoscalingTargets.php
@@ -28,7 +28,7 @@ class AutoscalingTargets extends \Google\Protobuf\Internal\Message
* Required. The target storage utilization percentage that the autoscaler
* should be trying to achieve for the instance. This number is on a scale
* from 0 (no utilization) to 100 (full utilization). The valid range is
- * [10, 100] inclusive.
+ * [10, 99] inclusive.
*
* Generated from protobuf field int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];
*/
@@ -49,7 +49,7 @@ class AutoscalingTargets extends \Google\Protobuf\Internal\Message
* Required. The target storage utilization percentage that the autoscaler
* should be trying to achieve for the instance. This number is on a scale
* from 0 (no utilization) to 100 (full utilization). The valid range is
- * [10, 100] inclusive.
+ * [10, 99] inclusive.
* }
*/
public function __construct($data = NULL) {
@@ -93,7 +93,7 @@ public function setHighPriorityCpuUtilizationPercent($var)
* Required. The target storage utilization percentage that the autoscaler
* should be trying to achieve for the instance. This number is on a scale
* from 0 (no utilization) to 100 (full utilization). The valid range is
- * [10, 100] inclusive.
+ * [10, 99] inclusive.
*
* Generated from protobuf field int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];
* @return int
@@ -107,7 +107,7 @@ public function getStorageUtilizationPercent()
* Required. The target storage utilization percentage that the autoscaler
* should be trying to achieve for the instance. This number is on a scale
* from 0 (no utilization) to 100 (full utilization). The valid range is
- * [10, 100] inclusive.
+ * [10, 99] inclusive.
*
* Generated from protobuf field int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];
* @param int $var
diff --git a/Spanner/src/Admin/Instance/V1/Client/InstanceAdminClient.php b/Spanner/src/Admin/Instance/V1/Client/InstanceAdminClient.php
index f076d4f7f633..a8c85e0d7c77 100644
--- a/Spanner/src/Admin/Instance/V1/Client/InstanceAdminClient.php
+++ b/Spanner/src/Admin/Instance/V1/Client/InstanceAdminClient.php
@@ -384,7 +384,7 @@ public function __call($method, $args)
/**
* Creates an instance and begins preparing it to begin serving. The
- * returned [long-running operation][google.longrunning.Operation]
+ * returned long-running operation
* can be used to track the progress of preparing the new
* instance. The instance name is assigned by the caller. If the
* named instance already exists, `CreateInstance` returns
@@ -410,12 +410,12 @@ public function __call($method, $args)
* * The instance's allocated resource levels are readable via the API.
* * The instance's state becomes `READY`.
*
- * The returned [long-running operation][google.longrunning.Operation] will
+ * The returned long-running operation will
* have a name of the format `/operations/` and
* can be used to track creation of the instance. The
- * [metadata][google.longrunning.Operation.metadata] field type is
+ * metadata field type is
* [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].
- * The [response][google.longrunning.Operation.response] field type is
+ * The response field type is
* [Instance][google.spanner.admin.instance.v1.Instance], if successful.
*
* The async variant is {@see InstanceAdminClient::createInstanceAsync()} .
@@ -443,7 +443,7 @@ public function createInstance(CreateInstanceRequest $request, array $callOption
/**
* Creates an instance configuration and begins preparing it to be used. The
- * returned [long-running operation][google.longrunning.Operation]
+ * returned long-running operation
* can be used to track the progress of preparing the new
* instance configuration. The instance configuration name is assigned by the
* caller. If the named instance configuration already exists,
@@ -470,13 +470,13 @@ public function createInstance(CreateInstanceRequest $request, array $callOption
* [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
* field becomes false. Its state becomes `READY`.
*
- * The returned [long-running operation][google.longrunning.Operation] will
+ * The returned long-running operation will
* have a name of the format
* `/operations/` and can be used to track
* creation of the instance configuration. The
- * [metadata][google.longrunning.Operation.metadata] field type is
+ * metadata field type is
* [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata].
- * The [response][google.longrunning.Operation.response] field type is
+ * The response field type is
* [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if
* successful.
*
@@ -509,7 +509,7 @@ public function createInstanceConfig(CreateInstanceConfigRequest $request, array
/**
* Creates an instance partition and begins preparing it to be used. The
- * returned [long-running operation][google.longrunning.Operation]
+ * returned long-running operation
* can be used to track the progress of preparing the new instance partition.
* The instance partition name is assigned by the caller. If the named
* instance partition already exists, `CreateInstancePartition` returns
@@ -536,13 +536,13 @@ public function createInstanceConfig(CreateInstanceConfigRequest $request, array
* API.
* * The instance partition's state becomes `READY`.
*
- * The returned [long-running operation][google.longrunning.Operation] will
+ * The returned long-running operation will
* have a name of the format
* `/operations/` and can be used to
* track creation of the instance partition. The
- * [metadata][google.longrunning.Operation.metadata] field type is
+ * metadata field type is
* [CreateInstancePartitionMetadata][google.spanner.admin.instance.v1.CreateInstancePartitionMetadata].
- * The [response][google.longrunning.Operation.response] field type is
+ * The response field type is
* [InstancePartition][google.spanner.admin.instance.v1.InstancePartition], if
* successful.
*
@@ -775,12 +775,12 @@ public function getInstancePartition(GetInstancePartitionRequest $request, array
}
/**
- * Lists the user-managed instance configuration [long-running
- * operations][google.longrunning.Operation] in the given project. An instance
+ * Lists the user-managed instance configuration long-running
+ * operations in the given project. An instance
* configuration operation has a name of the form
* `projects//instanceConfigs//operations/`.
* The long-running operation
- * [metadata][google.longrunning.Operation.metadata] field type
+ * metadata field type
* `metadata.type_url` describes the type of the metadata. Operations returned
* include those that have completed/failed/canceled within the last 7 days,
* and pending operations. Operations returned are ordered by
@@ -814,6 +814,9 @@ public function listInstanceConfigOperations(ListInstanceConfigOperationsRequest
/**
* Lists the supported instance configurations for a given project.
*
+ * Returns both Google-managed configurations and user-managed
+ * configurations.
+ *
* The async variant is {@see InstanceAdminClient::listInstanceConfigsAsync()} .
*
* @example samples/V1/InstanceAdminClient/list_instance_configs.php
@@ -838,12 +841,11 @@ public function listInstanceConfigs(ListInstanceConfigsRequest $request, array $
}
/**
- * Lists instance partition [long-running
- * operations][google.longrunning.Operation] in the given instance.
+ * Lists instance partition long-running operations in the given instance.
* An instance partition operation has a name of the form
* `projects//instances//instancePartitions//operations/`.
* The long-running operation
- * [metadata][google.longrunning.Operation.metadata] field type
+ * metadata field type
* `metadata.type_url` describes the type of the metadata. Operations returned
* include those that have completed/failed/canceled within the last 7 days,
* and pending operations. Operations returned are ordered by
@@ -932,7 +934,7 @@ public function listInstances(ListInstancesRequest $request, array $callOptions
/**
* Moves an instance to the target instance configuration. You can use the
- * returned [long-running operation][google.longrunning.Operation] to track
+ * returned long-running operation to track
* the progress of moving the instance.
*
* `MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of
@@ -963,13 +965,13 @@ public function listInstances(ListInstancesRequest $request, array $callOptions
* transaction abort rate. However, moving an instance doesn't cause any
* downtime.
*
- * The returned [long-running operation][google.longrunning.Operation] has
+ * The returned long-running operation has
* a name of the format
* `/operations/` and can be used to track
* the move instance operation. The
- * [metadata][google.longrunning.Operation.metadata] field type is
+ * metadata field type is
* [MoveInstanceMetadata][google.spanner.admin.instance.v1.MoveInstanceMetadata].
- * The [response][google.longrunning.Operation.response] field type is
+ * The response field type is
* [Instance][google.spanner.admin.instance.v1.Instance],
* if successful.
* Cancelling the operation sets its metadata's
@@ -1079,8 +1081,7 @@ public function testIamPermissions(TestIamPermissionsRequest $request, array $ca
/**
* Updates an instance, and begins allocating or releasing resources
- * as requested. The returned [long-running
- * operation][google.longrunning.Operation] can be used to track the
+ * as requested. The returned long-running operation can be used to track the
* progress of updating the instance. If the named instance does not
* exist, returns `NOT_FOUND`.
*
@@ -1108,12 +1109,12 @@ public function testIamPermissions(TestIamPermissionsRequest $request, array $ca
* tables.
* * The instance's new resource levels are readable via the API.
*
- * The returned [long-running operation][google.longrunning.Operation] will
+ * The returned long-running operation will
* have a name of the format `/operations/` and
* can be used to track the instance modification. The
- * [metadata][google.longrunning.Operation.metadata] field type is
+ * metadata field type is
* [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata].
- * The [response][google.longrunning.Operation.response] field type is
+ * The response field type is
* [Instance][google.spanner.admin.instance.v1.Instance], if successful.
*
* Authorization requires `spanner.instances.update` permission on
@@ -1144,7 +1145,7 @@ public function updateInstance(UpdateInstanceRequest $request, array $callOption
/**
* Updates an instance configuration. The returned
- * [long-running operation][google.longrunning.Operation] can be used to track
+ * long-running operation can be used to track
* the progress of updating the instance. If the named instance configuration
* does not exist, returns `NOT_FOUND`.
*
@@ -1175,13 +1176,13 @@ public function updateInstance(UpdateInstanceRequest $request, array $callOption
* [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
* field becomes false.
*
- * The returned [long-running operation][google.longrunning.Operation] will
+ * The returned long-running operation will
* have a name of the format
* `/operations/` and can be used to track
* the instance configuration modification. The
- * [metadata][google.longrunning.Operation.metadata] field type is
+ * metadata field type is
* [UpdateInstanceConfigMetadata][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata].
- * The [response][google.longrunning.Operation.response] field type is
+ * The response field type is
* [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if
* successful.
*
@@ -1213,8 +1214,7 @@ public function updateInstanceConfig(UpdateInstanceConfigRequest $request, array
/**
* Updates an instance partition, and begins allocating or releasing resources
- * as requested. The returned [long-running
- * operation][google.longrunning.Operation] can be used to track the
+ * as requested. The returned long-running operation can be used to track the
* progress of updating the instance partition. If the named instance
* partition does not exist, returns `NOT_FOUND`.
*
@@ -1243,13 +1243,13 @@ public function updateInstanceConfig(UpdateInstanceConfigRequest $request, array
* partition's tables.
* * The instance partition's new resource levels are readable via the API.
*
- * The returned [long-running operation][google.longrunning.Operation] will
+ * The returned long-running operation will
* have a name of the format
* `/operations/` and can be used to
* track the instance partition modification. The
- * [metadata][google.longrunning.Operation.metadata] field type is
+ * metadata field type is
* [UpdateInstancePartitionMetadata][google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata].
- * The [response][google.longrunning.Operation.response] field type is
+ * The response field type is
* [InstancePartition][google.spanner.admin.instance.v1.InstancePartition], if
* successful.
*
diff --git a/Spanner/src/Admin/Instance/V1/CreateInstanceConfigRequest.php b/Spanner/src/Admin/Instance/V1/CreateInstanceConfigRequest.php
index 72182a6d1a46..d629275fc079 100644
--- a/Spanner/src/Admin/Instance/V1/CreateInstanceConfigRequest.php
+++ b/Spanner/src/Admin/Instance/V1/CreateInstanceConfigRequest.php
@@ -10,7 +10,7 @@
/**
* The request for
- * [CreateInstanceConfigRequest][InstanceAdmin.CreateInstanceConfigRequest].
+ * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig].
*
* Generated from protobuf message google.spanner.admin.instance.v1.CreateInstanceConfigRequest
*/
@@ -33,10 +33,10 @@ class CreateInstanceConfigRequest extends \Google\Protobuf\Internal\Message
*/
private $instance_config_id = '';
/**
- * Required. The InstanceConfig proto of the configuration to create.
- * instance_config.name must be
+ * Required. The `InstanceConfig` proto of the configuration to create.
+ * `instance_config.name` must be
* `/instanceConfigs/`.
- * instance_config.base_config must be a Google managed configuration name,
+ * `instance_config.base_config` must be a Google-managed configuration name,
* e.g. /instanceConfigs/us-east1, /instanceConfigs/nam3.
*
* Generated from protobuf field .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -54,10 +54,10 @@ class CreateInstanceConfigRequest extends \Google\Protobuf\Internal\Message
* @param string $parent Required. The name of the project in which to create the instance
* configuration. Values are of the form `projects/`. Please see
* {@see InstanceAdminClient::projectName()} for help formatting this field.
- * @param \Google\Cloud\Spanner\Admin\Instance\V1\InstanceConfig $instanceConfig Required. The InstanceConfig proto of the configuration to create.
- * instance_config.name must be
+ * @param \Google\Cloud\Spanner\Admin\Instance\V1\InstanceConfig $instanceConfig Required. The `InstanceConfig` proto of the configuration to create.
+ * `instance_config.name` must be
* `/instanceConfigs/`.
- * instance_config.base_config must be a Google managed configuration name,
+ * `instance_config.base_config` must be a Google-managed configuration name,
* e.g. /instanceConfigs/us-east1, /instanceConfigs/nam3.
* @param string $instanceConfigId Required. The ID of the instance configuration to create. Valid identifiers
* are of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64
@@ -91,10 +91,10 @@ public static function build(string $parent, \Google\Cloud\Spanner\Admin\Instanc
* characters in length. The `custom-` prefix is required to avoid name
* conflicts with Google-managed configurations.
* @type \Google\Cloud\Spanner\Admin\Instance\V1\InstanceConfig $instance_config
- * Required. The InstanceConfig proto of the configuration to create.
- * instance_config.name must be
+ * Required. The `InstanceConfig` proto of the configuration to create.
+ * `instance_config.name` must be
* `/instanceConfigs/`.
- * instance_config.base_config must be a Google managed configuration name,
+ * `instance_config.base_config` must be a Google-managed configuration name,
* e.g. /instanceConfigs/us-east1, /instanceConfigs/nam3.
* @type bool $validate_only
* An option to validate, but not actually execute, a request,
@@ -167,10 +167,10 @@ public function setInstanceConfigId($var)
}
/**
- * Required. The InstanceConfig proto of the configuration to create.
- * instance_config.name must be
+ * Required. The `InstanceConfig` proto of the configuration to create.
+ * `instance_config.name` must be
* `/instanceConfigs/`.
- * instance_config.base_config must be a Google managed configuration name,
+ * `instance_config.base_config` must be a Google-managed configuration name,
* e.g. /instanceConfigs/us-east1, /instanceConfigs/nam3.
*
* Generated from protobuf field .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];
@@ -192,10 +192,10 @@ public function clearInstanceConfig()
}
/**
- * Required. The InstanceConfig proto of the configuration to create.
- * instance_config.name must be
+ * Required. The `InstanceConfig` proto of the configuration to create.
+ * `instance_config.name` must be
* `/instanceConfigs/`.
- * instance_config.base_config must be a Google managed configuration name,
+ * `instance_config.base_config` must be a Google-managed configuration name,
* e.g. /instanceConfigs/us-east1, /instanceConfigs/nam3.
*
* Generated from protobuf field .google.spanner.admin.instance.v1.InstanceConfig instance_config = 3 [(.google.api.field_behavior) = REQUIRED];
diff --git a/Spanner/src/Admin/Instance/V1/DeleteInstanceConfigRequest.php b/Spanner/src/Admin/Instance/V1/DeleteInstanceConfigRequest.php
index 6cc41a917dcc..e8c7334f4693 100644
--- a/Spanner/src/Admin/Instance/V1/DeleteInstanceConfigRequest.php
+++ b/Spanner/src/Admin/Instance/V1/DeleteInstanceConfigRequest.php
@@ -10,7 +10,7 @@
/**
* The request for
- * [DeleteInstanceConfigRequest][InstanceAdmin.DeleteInstanceConfigRequest].
+ * [DeleteInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstanceConfig].
*
* Generated from protobuf message google.spanner.admin.instance.v1.DeleteInstanceConfigRequest
*/
diff --git a/owl-bot-staging/Spanner/v1/Admin/Instance/v1/proto/src/Google/Cloud/Spanner/Admin/Instance/V1/FreeInstanceMetadata.php b/Spanner/src/Admin/Instance/V1/FreeInstanceMetadata.php
similarity index 98%
rename from owl-bot-staging/Spanner/v1/Admin/Instance/v1/proto/src/Google/Cloud/Spanner/Admin/Instance/V1/FreeInstanceMetadata.php
rename to Spanner/src/Admin/Instance/V1/FreeInstanceMetadata.php
index 49b3e7084a27..26702b73547b 100644
--- a/owl-bot-staging/Spanner/v1/Admin/Instance/v1/proto/src/Google/Cloud/Spanner/Admin/Instance/V1/FreeInstanceMetadata.php
+++ b/Spanner/src/Admin/Instance/V1/FreeInstanceMetadata.php
@@ -24,14 +24,14 @@ class FreeInstanceMetadata extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
- protected $expire_time = null;
+ private $expire_time = null;
/**
* Output only. If present, the timestamp at which the free instance was
* upgraded to a provisioned instance.
*
* Generated from protobuf field .google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
- protected $upgrade_time = null;
+ private $upgrade_time = null;
/**
* Specifies the expiration behavior of a free instance. The default of
* ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during
@@ -39,7 +39,7 @@ class FreeInstanceMetadata extends \Google\Protobuf\Internal\Message
*
* Generated from protobuf field .google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3;
*/
- protected $expire_behavior = 0;
+ private $expire_behavior = 0;
/**
* Constructor.
diff --git a/owl-bot-staging/Spanner/v1/Admin/Instance/v1/proto/src/Google/Cloud/Spanner/Admin/Instance/V1/FreeInstanceMetadata/ExpireBehavior.php b/Spanner/src/Admin/Instance/V1/FreeInstanceMetadata/ExpireBehavior.php
similarity index 100%
rename from owl-bot-staging/Spanner/v1/Admin/Instance/v1/proto/src/Google/Cloud/Spanner/Admin/Instance/V1/FreeInstanceMetadata/ExpireBehavior.php
rename to Spanner/src/Admin/Instance/V1/FreeInstanceMetadata/ExpireBehavior.php
diff --git a/Spanner/src/Admin/Instance/V1/Gapic/InstanceAdminGapicClient.php b/Spanner/src/Admin/Instance/V1/Gapic/InstanceAdminGapicClient.php
index 4e93f047478a..369c8441c203 100644
--- a/Spanner/src/Admin/Instance/V1/Gapic/InstanceAdminGapicClient.php
+++ b/Spanner/src/Admin/Instance/V1/Gapic/InstanceAdminGapicClient.php
@@ -488,7 +488,7 @@ public function __construct(array $options = [])
/**
* Creates an instance and begins preparing it to begin serving. The
- * returned [long-running operation][google.longrunning.Operation]
+ * returned long-running operation
* can be used to track the progress of preparing the new
* instance. The instance name is assigned by the caller. If the
* named instance already exists, `CreateInstance` returns
@@ -514,12 +514,12 @@ public function __construct(array $options = [])
* * The instance's allocated resource levels are readable via the API.
* * The instance's state becomes `READY`.
*
- * The returned [long-running operation][google.longrunning.Operation] will
+ * The returned long-running operation will
* have a name of the format `/operations/` and
* can be used to track creation of the instance. The
- * [metadata][google.longrunning.Operation.metadata] field type is
+ * metadata field type is
* [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].
- * The [response][google.longrunning.Operation.response] field type is
+ * The response field type is
* [Instance][google.spanner.admin.instance.v1.Instance], if successful.
*
* Sample code:
@@ -608,7 +608,7 @@ public function createInstance(
/**
* Creates an instance configuration and begins preparing it to be used. The
- * returned [long-running operation][google.longrunning.Operation]
+ * returned long-running operation
* can be used to track the progress of preparing the new
* instance configuration. The instance configuration name is assigned by the
* caller. If the named instance configuration already exists,
@@ -635,13 +635,13 @@ public function createInstance(
* [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
* field becomes false. Its state becomes `READY`.
*
- * The returned [long-running operation][google.longrunning.Operation] will
+ * The returned long-running operation will
* have a name of the format
* `/operations/` and can be used to track
* creation of the instance configuration. The
- * [metadata][google.longrunning.Operation.metadata] field type is
+ * metadata field type is
* [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata].
- * The [response][google.longrunning.Operation.response] field type is
+ * The response field type is
* [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if
* successful.
*
@@ -693,10 +693,10 @@ public function createInstance(
* are of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64
* characters in length. The `custom-` prefix is required to avoid name
* conflicts with Google-managed configurations.
- * @param InstanceConfig $instanceConfig Required. The InstanceConfig proto of the configuration to create.
- * instance_config.name must be
+ * @param InstanceConfig $instanceConfig Required. The `InstanceConfig` proto of the configuration to create.
+ * `instance_config.name` must be
* `/instanceConfigs/`.
- * instance_config.base_config must be a Google managed configuration name,
+ * `instance_config.base_config` must be a Google-managed configuration name,
* e.g. /instanceConfigs/us-east1, /instanceConfigs/nam3.
* @param array $optionalArgs {
* Optional.
@@ -746,7 +746,7 @@ public function createInstanceConfig(
/**
* Creates an instance partition and begins preparing it to be used. The
- * returned [long-running operation][google.longrunning.Operation]
+ * returned long-running operation
* can be used to track the progress of preparing the new instance partition.
* The instance partition name is assigned by the caller. If the named
* instance partition already exists, `CreateInstancePartition` returns
@@ -773,13 +773,13 @@ public function createInstanceConfig(
* API.
* * The instance partition's state becomes `READY`.
*
- * The returned [long-running operation][google.longrunning.Operation] will
+ * The returned long-running operation will
* have a name of the format
* `/operations/` and can be used to
* track creation of the instance partition. The
- * [metadata][google.longrunning.Operation.metadata] field type is
+ * metadata field type is
* [CreateInstancePartitionMetadata][google.spanner.admin.instance.v1.CreateInstancePartitionMetadata].
- * The [response][google.longrunning.Operation.response] field type is
+ * The response field type is
* [InstancePartition][google.spanner.admin.instance.v1.InstancePartition], if
* successful.
*
@@ -1281,12 +1281,12 @@ public function getInstancePartition($name, array $optionalArgs = [])
}
/**
- * Lists the user-managed instance configuration [long-running
- * operations][google.longrunning.Operation] in the given project. An instance
+ * Lists the user-managed instance configuration long-running
+ * operations in the given project. An instance
* configuration operation has a name of the form
* `projects//instanceConfigs//operations/`.
* The long-running operation
- * [metadata][google.longrunning.Operation.metadata] field type
+ * metadata field type
* `metadata.type_url` describes the type of the metadata. Operations returned
* include those that have completed/failed/canceled within the last 7 days,
* and pending operations. Operations returned are ordered by
@@ -1330,8 +1330,7 @@ public function getInstancePartition($name, array $optionalArgs = [])
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
*
- * The following fields in the [Operation][google.longrunning.Operation]
- * are eligible for filtering:
+ * The following fields in the Operation are eligible for filtering:
*
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
@@ -1421,6 +1420,9 @@ public function listInstanceConfigOperations(
/**
* Lists the supported instance configurations for a given project.
*
+ * Returns both Google-managed configurations and user-managed
+ * configurations.
+ *
* Sample code:
* ```
* $instanceAdminClient = new InstanceAdminClient();
@@ -1498,12 +1500,11 @@ public function listInstanceConfigs($parent, array $optionalArgs = [])
}
/**
- * Lists instance partition [long-running
- * operations][google.longrunning.Operation] in the given instance.
+ * Lists instance partition long-running operations in the given instance.
* An instance partition operation has a name of the form
* `projects//instances//instancePartitions//operations/`.
* The long-running operation
- * [metadata][google.longrunning.Operation.metadata] field type
+ * metadata field type
* `metadata.type_url` describes the type of the metadata. Operations returned
* include those that have completed/failed/canceled within the last 7 days,
* and pending operations. Operations returned are ordered by
@@ -1551,8 +1552,7 @@ public function listInstanceConfigs($parent, array $optionalArgs = [])
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
*
- * The following fields in the [Operation][google.longrunning.Operation]
- * are eligible for filtering:
+ * The following fields in the Operation are eligible for filtering:
*
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
@@ -1599,7 +1599,8 @@ public function listInstanceConfigs($parent, array $optionalArgs = [])
* Optional. Deadline used while retrieving metadata for instance partition
* operations. Instance partitions whose operation metadata cannot be
* retrieved within this deadline will be added to
- * [unreachable][ListInstancePartitionOperationsResponse.unreachable] in
+ * [unreachable_instance_partitions][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.unreachable_instance_partitions]
+ * in
* [ListInstancePartitionOperationsResponse][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse].
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
@@ -1678,7 +1679,9 @@ public function listInstancePartitionOperations(
* ```
*
* @param string $parent Required. The instance whose instance partitions should be listed. Values
- * are of the form `projects//instances/`.
+ * are of the form `projects//instances/`. Use `{instance}
+ * = '-'` to list instance partitions for all Instances in a project, e.g.,
+ * `projects/myproject/instances/-`.
* @param array $optionalArgs {
* Optional.
*
@@ -1857,7 +1860,7 @@ public function listInstances($parent, array $optionalArgs = [])
/**
* Moves an instance to the target instance configuration. You can use the
- * returned [long-running operation][google.longrunning.Operation] to track
+ * returned long-running operation to track
* the progress of moving the instance.
*
* `MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of
@@ -1888,13 +1891,13 @@ public function listInstances($parent, array $optionalArgs = [])
* transaction abort rate. However, moving an instance doesn't cause any
* downtime.
*
- * The returned [long-running operation][google.longrunning.Operation] has
+ * The returned long-running operation has
* a name of the format
* `/operations/` and can be used to track
* the move instance operation. The
- * [metadata][google.longrunning.Operation.metadata] field type is
+ * metadata field type is
* [MoveInstanceMetadata][google.spanner.admin.instance.v1.MoveInstanceMetadata].
- * The [response][google.longrunning.Operation.response] field type is
+ * The response field type is
* [Instance][google.spanner.admin.instance.v1.Instance],
* if successful.
* Cancelling the operation sets its metadata's
@@ -2127,8 +2130,7 @@ public function testIamPermissions(
/**
* Updates an instance, and begins allocating or releasing resources
- * as requested. The returned [long-running
- * operation][google.longrunning.Operation] can be used to track the
+ * as requested. The returned long-running operation can be used to track the
* progress of updating the instance. If the named instance does not
* exist, returns `NOT_FOUND`.
*
@@ -2156,12 +2158,12 @@ public function testIamPermissions(
* tables.
* * The instance's new resource levels are readable via the API.
*
- * The returned [long-running operation][google.longrunning.Operation] will
+ * The returned long-running operation will
* have a name of the format `/operations/` and
* can be used to track the instance modification. The
- * [metadata][google.longrunning.Operation.metadata] field type is
+ * metadata field type is
* [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata].
- * The [response][google.longrunning.Operation.response] field type is
+ * The response field type is
* [Instance][google.spanner.admin.instance.v1.Instance], if successful.
*
* Authorization requires `spanner.instances.update` permission on
@@ -2252,7 +2254,7 @@ public function updateInstance(
/**
* Updates an instance configuration. The returned
- * [long-running operation][google.longrunning.Operation] can be used to track
+ * long-running operation can be used to track
* the progress of updating the instance. If the named instance configuration
* does not exist, returns `NOT_FOUND`.
*
@@ -2283,13 +2285,13 @@ public function updateInstance(
* [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
* field becomes false.
*
- * The returned [long-running operation][google.longrunning.Operation] will
+ * The returned long-running operation will
* have a name of the format
* `/operations/` and can be used to track
* the instance configuration modification. The
- * [metadata][google.longrunning.Operation.metadata] field type is
+ * metadata field type is
* [UpdateInstanceConfigMetadata][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata].
- * The [response][google.longrunning.Operation.response] field type is
+ * The response field type is
* [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if
* successful.
*
@@ -2394,8 +2396,7 @@ public function updateInstanceConfig(
/**
* Updates an instance partition, and begins allocating or releasing resources
- * as requested. The returned [long-running
- * operation][google.longrunning.Operation] can be used to track the
+ * as requested. The returned long-running operation can be used to track the
* progress of updating the instance partition. If the named instance
* partition does not exist, returns `NOT_FOUND`.
*
@@ -2424,13 +2425,13 @@ public function updateInstanceConfig(
* partition's tables.
* * The instance partition's new resource levels are readable via the API.
*
- * The returned [long-running operation][google.longrunning.Operation] will
+ * The returned long-running operation will
* have a name of the format
* `/operations/` and can be used to
* track the instance partition modification. The
- * [metadata][google.longrunning.Operation.metadata] field type is
+ * metadata field type is
* [UpdateInstancePartitionMetadata][google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata].
- * The [response][google.longrunning.Operation.response] field type is
+ * The response field type is
* [InstancePartition][google.spanner.admin.instance.v1.InstancePartition], if
* successful.
*
diff --git a/Spanner/src/Admin/Instance/V1/Instance.php b/Spanner/src/Admin/Instance/V1/Instance.php
index 27cafab2cc74..a056a931e61c 100644
--- a/Spanner/src/Admin/Instance/V1/Instance.php
+++ b/Spanner/src/Admin/Instance/V1/Instance.php
@@ -49,9 +49,6 @@ class Instance extends \Google\Protobuf\Internal\Message
* field and reflects the current number of nodes allocated to the instance.
* This might be zero in API responses for instances that are not yet in the
* `READY` state.
- * If the instance has varying node count across replicas (achieved by
- * setting asymmetric_autoscaling_options in autoscaling config), the
- * node_count here is the maximum node count across all replicas.
* For more information, see
* [Compute capacity, nodes, and processing
* units](https://cloud.google.com/spanner/docs/compute-capacity).
@@ -69,10 +66,6 @@ class Instance extends \Google\Protobuf\Internal\Message
* allocated to the instance.
* This might be zero in API responses for instances that are not yet in the
* `READY` state.
- * If the instance has varying processing units per replica
- * (achieved by setting asymmetric_autoscaling_options in autoscaling config),
- * the processing_units here is the maximum processing units across all
- * replicas.
* For more information, see
* [Compute capacity, nodes and processing
* units](https://cloud.google.com/spanner/docs/compute-capacity).
@@ -130,6 +123,12 @@ class Instance extends \Google\Protobuf\Internal\Message
* Generated from protobuf field map labels = 7;
*/
private $labels;
+ /**
+ * The `InstanceType` of the current instance.
+ *
+ * Generated from protobuf field .google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
+ */
+ private $instance_type = 0;
/**
* Deprecated. This field is not populated.
*
@@ -148,6 +147,12 @@ class Instance extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private $update_time = null;
+ /**
+ * Free instance metadata. Only populated for free instances.
+ *
+ * Generated from protobuf field .google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13;
+ */
+ private $free_instance_metadata = null;
/**
* Optional. The `Edition` of the current instance.
*
@@ -155,13 +160,14 @@ class Instance extends \Google\Protobuf\Internal\Message
*/
private $edition = 0;
/**
- * Optional. Controls the default backup behavior for new databases within the
- * instance.
- * Note that `AUTOMATIC` is not permitted for free instances, as backups and
- * backup schedules are not allowed for free instances.
+ * Optional. Controls the default backup schedule behavior for new databases
+ * within the instance. By default, a backup schedule is created automatically
+ * when a new database is created in a new instance.
+ * Note that the `AUTOMATIC` value isn't permitted for free instances,
+ * as backups and backup schedules aren't supported for free instances.
* In the `GetInstance` or `ListInstances` response, if the value of
- * default_backup_schedule_type is unset or NONE, no default backup
- * schedule will be created for new databases within the instance.
+ * `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner doesn't
+ * create a default backup schedule for new databases in the instance.
*
* Generated from protobuf field .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL];
*/
@@ -195,9 +201,6 @@ class Instance extends \Google\Protobuf\Internal\Message
* field and reflects the current number of nodes allocated to the instance.
* This might be zero in API responses for instances that are not yet in the
* `READY` state.
- * If the instance has varying node count across replicas (achieved by
- * setting asymmetric_autoscaling_options in autoscaling config), the
- * node_count here is the maximum node count across all replicas.
* For more information, see
* [Compute capacity, nodes, and processing
* units](https://cloud.google.com/spanner/docs/compute-capacity).
@@ -211,10 +214,6 @@ class Instance extends \Google\Protobuf\Internal\Message
* allocated to the instance.
* This might be zero in API responses for instances that are not yet in the
* `READY` state.
- * If the instance has varying processing units per replica
- * (achieved by setting asymmetric_autoscaling_options in autoscaling config),
- * the processing_units here is the maximum processing units across all
- * replicas.
* For more information, see
* [Compute capacity, nodes and processing
* units](https://cloud.google.com/spanner/docs/compute-capacity).
@@ -252,22 +251,27 @@ class Instance extends \Google\Protobuf\Internal\Message
* specific characters being disallowed. For example, representing labels
* as the string: name + "_" + value would prove problematic if we were to
* allow "_" in a future release.
+ * @type int $instance_type
+ * The `InstanceType` of the current instance.
* @type array|\Google\Protobuf\Internal\RepeatedField $endpoint_uris
* Deprecated. This field is not populated.
* @type \Google\Protobuf\Timestamp $create_time
* Output only. The time at which the instance was created.
* @type \Google\Protobuf\Timestamp $update_time
* Output only. The time at which the instance was most recently updated.
+ * @type \Google\Cloud\Spanner\Admin\Instance\V1\FreeInstanceMetadata $free_instance_metadata
+ * Free instance metadata. Only populated for free instances.
* @type int $edition
* Optional. The `Edition` of the current instance.
* @type int $default_backup_schedule_type
- * Optional. Controls the default backup behavior for new databases within the
- * instance.
- * Note that `AUTOMATIC` is not permitted for free instances, as backups and
- * backup schedules are not allowed for free instances.
+ * Optional. Controls the default backup schedule behavior for new databases
+ * within the instance. By default, a backup schedule is created automatically
+ * when a new database is created in a new instance.
+ * Note that the `AUTOMATIC` value isn't permitted for free instances,
+ * as backups and backup schedules aren't supported for free instances.
* In the `GetInstance` or `ListInstances` response, if the value of
- * default_backup_schedule_type is unset or NONE, no default backup
- * schedule will be created for new databases within the instance.
+ * `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner doesn't
+ * create a default backup schedule for new databases in the instance.
* }
*/
public function __construct($data = NULL) {
@@ -376,9 +380,6 @@ public function setDisplayName($var)
* field and reflects the current number of nodes allocated to the instance.
* This might be zero in API responses for instances that are not yet in the
* `READY` state.
- * If the instance has varying node count across replicas (achieved by
- * setting asymmetric_autoscaling_options in autoscaling config), the
- * node_count here is the maximum node count across all replicas.
* For more information, see
* [Compute capacity, nodes, and processing
* units](https://cloud.google.com/spanner/docs/compute-capacity).
@@ -400,9 +401,6 @@ public function getNodeCount()
* field and reflects the current number of nodes allocated to the instance.
* This might be zero in API responses for instances that are not yet in the
* `READY` state.
- * If the instance has varying node count across replicas (achieved by
- * setting asymmetric_autoscaling_options in autoscaling config), the
- * node_count here is the maximum node count across all replicas.
* For more information, see
* [Compute capacity, nodes, and processing
* units](https://cloud.google.com/spanner/docs/compute-capacity).
@@ -429,10 +427,6 @@ public function setNodeCount($var)
* allocated to the instance.
* This might be zero in API responses for instances that are not yet in the
* `READY` state.
- * If the instance has varying processing units per replica
- * (achieved by setting asymmetric_autoscaling_options in autoscaling config),
- * the processing_units here is the maximum processing units across all
- * replicas.
* For more information, see
* [Compute capacity, nodes and processing
* units](https://cloud.google.com/spanner/docs/compute-capacity).
@@ -455,10 +449,6 @@ public function getProcessingUnits()
* allocated to the instance.
* This might be zero in API responses for instances that are not yet in the
* `READY` state.
- * If the instance has varying processing units per replica
- * (achieved by setting asymmetric_autoscaling_options in autoscaling config),
- * the processing_units here is the maximum processing units across all
- * replicas.
* For more information, see
* [Compute capacity, nodes and processing
* units](https://cloud.google.com/spanner/docs/compute-capacity).
@@ -641,6 +631,32 @@ public function setLabels($var)
return $this;
}
+ /**
+ * The `InstanceType` of the current instance.
+ *
+ * Generated from protobuf field .google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
+ * @return int
+ */
+ public function getInstanceType()
+ {
+ return $this->instance_type;
+ }
+
+ /**
+ * The `InstanceType` of the current instance.
+ *
+ * Generated from protobuf field .google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
+ * @param int $var
+ * @return $this
+ */
+ public function setInstanceType($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\Spanner\Admin\Instance\V1\Instance\InstanceType::class);
+ $this->instance_type = $var;
+
+ return $this;
+ }
+
/**
* Deprecated. This field is not populated.
*
@@ -739,6 +755,42 @@ public function setUpdateTime($var)
return $this;
}
+ /**
+ * Free instance metadata. Only populated for free instances.
+ *
+ * Generated from protobuf field .google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13;
+ * @return \Google\Cloud\Spanner\Admin\Instance\V1\FreeInstanceMetadata|null
+ */
+ public function getFreeInstanceMetadata()
+ {
+ return $this->free_instance_metadata;
+ }
+
+ public function hasFreeInstanceMetadata()
+ {
+ return isset($this->free_instance_metadata);
+ }
+
+ public function clearFreeInstanceMetadata()
+ {
+ unset($this->free_instance_metadata);
+ }
+
+ /**
+ * Free instance metadata. Only populated for free instances.
+ *
+ * Generated from protobuf field .google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13;
+ * @param \Google\Cloud\Spanner\Admin\Instance\V1\FreeInstanceMetadata $var
+ * @return $this
+ */
+ public function setFreeInstanceMetadata($var)
+ {
+ GPBUtil::checkMessage($var, \Google\Cloud\Spanner\Admin\Instance\V1\FreeInstanceMetadata::class);
+ $this->free_instance_metadata = $var;
+
+ return $this;
+ }
+
/**
* Optional. The `Edition` of the current instance.
*
@@ -766,13 +818,14 @@ public function setEdition($var)
}
/**
- * Optional. Controls the default backup behavior for new databases within the
- * instance.
- * Note that `AUTOMATIC` is not permitted for free instances, as backups and
- * backup schedules are not allowed for free instances.
+ * Optional. Controls the default backup schedule behavior for new databases
+ * within the instance. By default, a backup schedule is created automatically
+ * when a new database is created in a new instance.
+ * Note that the `AUTOMATIC` value isn't permitted for free instances,
+ * as backups and backup schedules aren't supported for free instances.
* In the `GetInstance` or `ListInstances` response, if the value of
- * default_backup_schedule_type is unset or NONE, no default backup
- * schedule will be created for new databases within the instance.
+ * `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner doesn't
+ * create a default backup schedule for new databases in the instance.
*
* Generated from protobuf field .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL];
* @return int
@@ -783,13 +836,14 @@ public function getDefaultBackupScheduleType()
}
/**
- * Optional. Controls the default backup behavior for new databases within the
- * instance.
- * Note that `AUTOMATIC` is not permitted for free instances, as backups and
- * backup schedules are not allowed for free instances.
+ * Optional. Controls the default backup schedule behavior for new databases
+ * within the instance. By default, a backup schedule is created automatically
+ * when a new database is created in a new instance.
+ * Note that the `AUTOMATIC` value isn't permitted for free instances,
+ * as backups and backup schedules aren't supported for free instances.
* In the `GetInstance` or `ListInstances` response, if the value of
- * default_backup_schedule_type is unset or NONE, no default backup
- * schedule will be created for new databases within the instance.
+ * `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner doesn't
+ * create a default backup schedule for new databases in the instance.
*
* Generated from protobuf field .google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType default_backup_schedule_type = 23 [(.google.api.field_behavior) = OPTIONAL];
* @param int $var
diff --git a/Spanner/src/Admin/Instance/V1/Instance/DefaultBackupScheduleType.php b/Spanner/src/Admin/Instance/V1/Instance/DefaultBackupScheduleType.php
index ee1c54f26a01..ca0a5ec8fd95 100644
--- a/Spanner/src/Admin/Instance/V1/Instance/DefaultBackupScheduleType.php
+++ b/Spanner/src/Admin/Instance/V1/Instance/DefaultBackupScheduleType.php
@@ -7,8 +7,10 @@
use UnexpectedValueException;
/**
- * Indicates the default backup behavior for new databases within the
- * instance.
+ * Indicates the
+ * [default backup
+ * schedule](https://cloud.google.com/spanner/docs/backup#default-backup-schedules)
+ * behavior for new databases within the instance.
*
* Protobuf type google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType
*/
@@ -21,18 +23,17 @@ class DefaultBackupScheduleType
*/
const DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED = 0;
/**
- * No default backup schedule will be created automatically on creation of a
- * database within the instance.
+ * A default backup schedule isn't created automatically when a new database
+ * is created in the instance.
*
* Generated from protobuf enum NONE = 1;
*/
const NONE = 1;
/**
- * A default backup schedule will be created automatically on creation of a
- * database within the instance. The default backup schedule creates a full
- * backup every 24 hours and retains the backup for a period of 7 days. Once
- * created, the default backup schedule can be edited/deleted similar to any
- * other backup schedule.
+ * A default backup schedule is created automatically when a new database
+ * is created in the instance. The default backup schedule creates a full
+ * backup every 24 hours. These full backups are retained for 7 days.
+ * You can edit or delete the default backup schedule once it's created.
*
* Generated from protobuf enum AUTOMATIC = 2;
*/
diff --git a/owl-bot-staging/Spanner/v1/Admin/Instance/v1/proto/src/Google/Cloud/Spanner/Admin/Instance/V1/Instance/InstanceType.php b/Spanner/src/Admin/Instance/V1/Instance/InstanceType.php
similarity index 100%
rename from owl-bot-staging/Spanner/v1/Admin/Instance/v1/proto/src/Google/Cloud/Spanner/Admin/Instance/V1/Instance/InstanceType.php
rename to Spanner/src/Admin/Instance/V1/Instance/InstanceType.php
diff --git a/Spanner/src/Admin/Instance/V1/InstanceConfig.php b/Spanner/src/Admin/Instance/V1/InstanceConfig.php
index 73b4e0350fee..1f08fb03d2aa 100644
--- a/Spanner/src/Admin/Instance/V1/InstanceConfig.php
+++ b/Spanner/src/Admin/Instance/V1/InstanceConfig.php
@@ -41,22 +41,26 @@ class InstanceConfig extends \Google\Protobuf\Internal\Message
/**
* The geographic placement of nodes in this instance configuration and their
* replication properties.
+ * To create user-managed configurations, input
+ * `replicas` must include all replicas in `replicas` of the `base_config`
+ * and include one or more replicas in the `optional_replicas` of the
+ * `base_config`.
*
* Generated from protobuf field repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
*/
private $replicas;
/**
- * Output only. The available optional replicas to choose from for user
- * managed configurations. Populated for Google managed configurations.
+ * Output only. The available optional replicas to choose from for
+ * user-managed configurations. Populated for Google-managed configurations.
*
* Generated from protobuf field repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private $optional_replicas;
/**
* Base configuration name, e.g. projects//instanceConfigs/nam3,
- * based on which this configuration is created. Only set for user managed
+ * based on which this configuration is created. Only set for user-managed
* configurations. `base_config` must refer to a configuration of type
- * GOOGLE_MANAGED in the same project as this configuration.
+ * `GOOGLE_MANAGED` in the same project as this configuration.
*
* Generated from protobuf field string base_config = 7 [(.google.api.resource_reference) = {
*/
@@ -122,6 +126,25 @@ class InstanceConfig extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
private $state = 0;
+ /**
+ * Output only. Describes whether free instances are available to be created
+ * in this instance configuration.
+ *
+ * Generated from protobuf field .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $free_instance_availability = 0;
+ /**
+ * Output only. The `QuorumType` of the instance configuration.
+ *
+ * Generated from protobuf field .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $quorum_type = 0;
+ /**
+ * Output only. The storage limit in bytes per processing unit.
+ *
+ * Generated from protobuf field int64 storage_limit_per_processing_unit = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ private $storage_limit_per_processing_unit = 0;
/**
* Constructor.
@@ -142,14 +165,18 @@ class InstanceConfig extends \Google\Protobuf\Internal\Message
* @type array<\Google\Cloud\Spanner\Admin\Instance\V1\ReplicaInfo>|\Google\Protobuf\Internal\RepeatedField $replicas
* The geographic placement of nodes in this instance configuration and their
* replication properties.
+ * To create user-managed configurations, input
+ * `replicas` must include all replicas in `replicas` of the `base_config`
+ * and include one or more replicas in the `optional_replicas` of the
+ * `base_config`.
* @type array<\Google\Cloud\Spanner\Admin\Instance\V1\ReplicaInfo>|\Google\Protobuf\Internal\RepeatedField $optional_replicas
- * Output only. The available optional replicas to choose from for user
- * managed configurations. Populated for Google managed configurations.
+ * Output only. The available optional replicas to choose from for
+ * user-managed configurations. Populated for Google-managed configurations.
* @type string $base_config
* Base configuration name, e.g. projects//instanceConfigs/nam3,
- * based on which this configuration is created. Only set for user managed
+ * based on which this configuration is created. Only set for user-managed
* configurations. `base_config` must refer to a configuration of type
- * GOOGLE_MANAGED in the same project as this configuration.
+ * `GOOGLE_MANAGED` in the same project as this configuration.
* @type array|\Google\Protobuf\Internal\MapField $labels
* Cloud Labels are a flexible and lightweight mechanism for organizing cloud
* resources into groups that reflect a customer's organizational needs and
@@ -191,6 +218,13 @@ class InstanceConfig extends \Google\Protobuf\Internal\Message
* @type int $state
* Output only. The current instance configuration state. Applicable only for
* `USER_MANAGED` configurations.
+ * @type int $free_instance_availability
+ * Output only. Describes whether free instances are available to be created
+ * in this instance configuration.
+ * @type int $quorum_type
+ * Output only. The `QuorumType` of the instance configuration.
+ * @type int|string $storage_limit_per_processing_unit
+ * Output only. The storage limit in bytes per processing unit.
* }
*/
public function __construct($data = NULL) {
@@ -287,6 +321,10 @@ public function setConfigType($var)
/**
* The geographic placement of nodes in this instance configuration and their
* replication properties.
+ * To create user-managed configurations, input
+ * `replicas` must include all replicas in `replicas` of the `base_config`
+ * and include one or more replicas in the `optional_replicas` of the
+ * `base_config`.
*
* Generated from protobuf field repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
* @return \Google\Protobuf\Internal\RepeatedField
@@ -299,6 +337,10 @@ public function getReplicas()
/**
* The geographic placement of nodes in this instance configuration and their
* replication properties.
+ * To create user-managed configurations, input
+ * `replicas` must include all replicas in `replicas` of the `base_config`
+ * and include one or more replicas in the `optional_replicas` of the
+ * `base_config`.
*
* Generated from protobuf field repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
* @param array<\Google\Cloud\Spanner\Admin\Instance\V1\ReplicaInfo>|\Google\Protobuf\Internal\RepeatedField $var
@@ -313,8 +355,8 @@ public function setReplicas($var)
}
/**
- * Output only. The available optional replicas to choose from for user
- * managed configurations. Populated for Google managed configurations.
+ * Output only. The available optional replicas to choose from for
+ * user-managed configurations. Populated for Google-managed configurations.
*
* Generated from protobuf field repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @return \Google\Protobuf\Internal\RepeatedField
@@ -325,8 +367,8 @@ public function getOptionalReplicas()
}
/**
- * Output only. The available optional replicas to choose from for user
- * managed configurations. Populated for Google managed configurations.
+ * Output only. The available optional replicas to choose from for
+ * user-managed configurations. Populated for Google-managed configurations.
*
* Generated from protobuf field repeated .google.spanner.admin.instance.v1.ReplicaInfo optional_replicas = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
* @param array<\Google\Cloud\Spanner\Admin\Instance\V1\ReplicaInfo>|\Google\Protobuf\Internal\RepeatedField $var
@@ -342,9 +384,9 @@ public function setOptionalReplicas($var)
/**
* Base configuration name, e.g. projects//instanceConfigs/nam3,
- * based on which this configuration is created. Only set for user managed
+ * based on which this configuration is created. Only set for user-managed
* configurations. `base_config` must refer to a configuration of type
- * GOOGLE_MANAGED in the same project as this configuration.
+ * `GOOGLE_MANAGED` in the same project as this configuration.
*
* Generated from protobuf field string base_config = 7 [(.google.api.resource_reference) = {
* @return string
@@ -356,9 +398,9 @@ public function getBaseConfig()
/**
* Base configuration name, e.g. projects//instanceConfigs/nam3,
- * based on which this configuration is created. Only set for user managed
+ * based on which this configuration is created. Only set for user-managed
* configurations. `base_config` must refer to a configuration of type
- * GOOGLE_MANAGED in the same project as this configuration.
+ * `GOOGLE_MANAGED` in the same project as this configuration.
*
* Generated from protobuf field string base_config = 7 [(.google.api.resource_reference) = {
* @param string $var
@@ -564,5 +606,85 @@ public function setState($var)
return $this;
}
+ /**
+ * Output only. Describes whether free instances are available to be created
+ * in this instance configuration.
+ *
+ * Generated from protobuf field .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return int
+ */
+ public function getFreeInstanceAvailability()
+ {
+ return $this->free_instance_availability;
+ }
+
+ /**
+ * Output only. Describes whether free instances are available to be created
+ * in this instance configuration.
+ *
+ * Generated from protobuf field .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param int $var
+ * @return $this
+ */
+ public function setFreeInstanceAvailability($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\Spanner\Admin\Instance\V1\InstanceConfig\FreeInstanceAvailability::class);
+ $this->free_instance_availability = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. The `QuorumType` of the instance configuration.
+ *
+ * Generated from protobuf field .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return int
+ */
+ public function getQuorumType()
+ {
+ return $this->quorum_type;
+ }
+
+ /**
+ * Output only. The `QuorumType` of the instance configuration.
+ *
+ * Generated from protobuf field .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param int $var
+ * @return $this
+ */
+ public function setQuorumType($var)
+ {
+ GPBUtil::checkEnum($var, \Google\Cloud\Spanner\Admin\Instance\V1\InstanceConfig\QuorumType::class);
+ $this->quorum_type = $var;
+
+ return $this;
+ }
+
+ /**
+ * Output only. The storage limit in bytes per processing unit.
+ *
+ * Generated from protobuf field int64 storage_limit_per_processing_unit = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return int|string
+ */
+ public function getStorageLimitPerProcessingUnit()
+ {
+ return $this->storage_limit_per_processing_unit;
+ }
+
+ /**
+ * Output only. The storage limit in bytes per processing unit.
+ *
+ * Generated from protobuf field int64 storage_limit_per_processing_unit = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param int|string $var
+ * @return $this
+ */
+ public function setStorageLimitPerProcessingUnit($var)
+ {
+ GPBUtil::checkInt64($var);
+ $this->storage_limit_per_processing_unit = $var;
+
+ return $this;
+ }
+
}
diff --git a/owl-bot-staging/Spanner/v1/Admin/Instance/v1/proto/src/Google/Cloud/Spanner/Admin/Instance/V1/InstanceConfig/FreeInstanceAvailability.php b/Spanner/src/Admin/Instance/V1/InstanceConfig/FreeInstanceAvailability.php
similarity index 100%
rename from owl-bot-staging/Spanner/v1/Admin/Instance/v1/proto/src/Google/Cloud/Spanner/Admin/Instance/V1/InstanceConfig/FreeInstanceAvailability.php
rename to Spanner/src/Admin/Instance/V1/InstanceConfig/FreeInstanceAvailability.php
diff --git a/owl-bot-staging/Spanner/v1/Admin/Instance/v1/proto/src/Google/Cloud/Spanner/Admin/Instance/V1/InstanceConfig/QuorumType.php b/Spanner/src/Admin/Instance/V1/InstanceConfig/QuorumType.php
similarity index 100%
rename from owl-bot-staging/Spanner/v1/Admin/Instance/v1/proto/src/Google/Cloud/Spanner/Admin/Instance/V1/InstanceConfig/QuorumType.php
rename to Spanner/src/Admin/Instance/V1/InstanceConfig/QuorumType.php
diff --git a/Spanner/src/Admin/Instance/V1/InstanceConfig/Type.php b/Spanner/src/Admin/Instance/V1/InstanceConfig/Type.php
index c51f5593a52e..08f5079da568 100644
--- a/Spanner/src/Admin/Instance/V1/InstanceConfig/Type.php
+++ b/Spanner/src/Admin/Instance/V1/InstanceConfig/Type.php
@@ -20,13 +20,13 @@ class Type
*/
const TYPE_UNSPECIFIED = 0;
/**
- * Google managed configuration.
+ * Google-managed configuration.
*
* Generated from protobuf enum GOOGLE_MANAGED = 1;
*/
const GOOGLE_MANAGED = 1;
/**
- * User managed configuration.
+ * User-managed configuration.
*
* Generated from protobuf enum USER_MANAGED = 2;
*/
diff --git a/Spanner/src/Admin/Instance/V1/InstancePartition.php b/Spanner/src/Admin/Instance/V1/InstancePartition.php
index 7ce35ef9a0ca..6616bb2d174c 100644
--- a/Spanner/src/Admin/Instance/V1/InstancePartition.php
+++ b/Spanner/src/Admin/Instance/V1/InstancePartition.php
@@ -72,12 +72,14 @@ class InstancePartition extends \Google\Protobuf\Internal\Message
*/
private $referencing_databases;
/**
+ * Output only. Deprecated: This field is not populated.
* Output only. The names of the backups that reference this instance
* partition. Referencing backups should share the parent instance. The
* existence of any referencing backup prevents the instance partition from
* being deleted.
*
- * Generated from protobuf field repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
+ * @deprecated
*/
private $referencing_backups;
/**
@@ -120,16 +122,16 @@ class InstancePartition extends \Google\Protobuf\Internal\Message
* UIs. Must be unique per project and between 4 and 30 characters in length.
* @type int $node_count
* The number of nodes allocated to this instance partition.
- * Users can set the node_count field to specify the target number of nodes
- * allocated to the instance partition.
+ * Users can set the `node_count` field to specify the target number of
+ * nodes allocated to the instance partition.
* This may be zero in API responses for instance partitions that are not
* yet in state `READY`.
* @type int $processing_units
* The number of processing units allocated to this instance partition.
- * Users can set the processing_units field to specify the target number of
- * processing units allocated to the instance partition.
- * This may be zero in API responses for instance partitions that are not
- * yet in state `READY`.
+ * Users can set the `processing_units` field to specify the target number
+ * of processing units allocated to the instance partition.
+ * This might be zero in API responses for instance partitions that are not
+ * yet in the `READY` state.
* @type int $state
* Output only. The current instance partition state.
* @type \Google\Protobuf\Timestamp $create_time
@@ -143,6 +145,7 @@ class InstancePartition extends \Google\Protobuf\Internal\Message
* The existence of any referencing database prevents the instance partition
* from being deleted.
* @type array|\Google\Protobuf\Internal\RepeatedField $referencing_backups
+ * Output only. Deprecated: This field is not populated.
* Output only. The names of the backups that reference this instance
* partition. Referencing backups should share the parent instance. The
* existence of any referencing backup prevents the instance partition from
@@ -263,8 +266,8 @@ public function setDisplayName($var)
/**
* The number of nodes allocated to this instance partition.
- * Users can set the node_count field to specify the target number of nodes
- * allocated to the instance partition.
+ * Users can set the `node_count` field to specify the target number of
+ * nodes allocated to the instance partition.
* This may be zero in API responses for instance partitions that are not
* yet in state `READY`.
*
@@ -283,8 +286,8 @@ public function hasNodeCount()
/**
* The number of nodes allocated to this instance partition.
- * Users can set the node_count field to specify the target number of nodes
- * allocated to the instance partition.
+ * Users can set the `node_count` field to specify the target number of
+ * nodes allocated to the instance partition.
* This may be zero in API responses for instance partitions that are not
* yet in state `READY`.
*
@@ -302,10 +305,10 @@ public function setNodeCount($var)
/**
* The number of processing units allocated to this instance partition.
- * Users can set the processing_units field to specify the target number of
- * processing units allocated to the instance partition.
- * This may be zero in API responses for instance partitions that are not
- * yet in state `READY`.
+ * Users can set the `processing_units` field to specify the target number
+ * of processing units allocated to the instance partition.
+ * This might be zero in API responses for instance partitions that are not
+ * yet in the `READY` state.
*
* Generated from protobuf field int32 processing_units = 6;
* @return int
@@ -322,10 +325,10 @@ public function hasProcessingUnits()
/**
* The number of processing units allocated to this instance partition.
- * Users can set the processing_units field to specify the target number of
- * processing units allocated to the instance partition.
- * This may be zero in API responses for instance partitions that are not
- * yet in state `READY`.
+ * Users can set the `processing_units` field to specify the target number
+ * of processing units allocated to the instance partition.
+ * This might be zero in API responses for instance partitions that are not
+ * yet in the `READY` state.
*
* Generated from protobuf field int32 processing_units = 6;
* @param int $var
@@ -472,31 +475,37 @@ public function setReferencingDatabases($var)
}
/**
+ * Output only. Deprecated: This field is not populated.
* Output only. The names of the backups that reference this instance
* partition. Referencing backups should share the parent instance. The
* existence of any referencing backup prevents the instance partition from
* being deleted.
*
- * Generated from protobuf field repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
* @return \Google\Protobuf\Internal\RepeatedField
+ * @deprecated
*/
public function getReferencingBackups()
{
+ @trigger_error('referencing_backups is deprecated.', E_USER_DEPRECATED);
return $this->referencing_backups;
}
/**
+ * Output only. Deprecated: This field is not populated.
* Output only. The names of the backups that reference this instance
* partition. Referencing backups should share the parent instance. The
* existence of any referencing backup prevents the instance partition from
* being deleted.
*
- * Generated from protobuf field repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
* @param array|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
+ * @deprecated
*/
public function setReferencingBackups($var)
{
+ @trigger_error('referencing_backups is deprecated.', E_USER_DEPRECATED);
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
$this->referencing_backups = $arr;
diff --git a/Spanner/src/Admin/Instance/V1/ListInstanceConfigOperationsRequest.php b/Spanner/src/Admin/Instance/V1/ListInstanceConfigOperationsRequest.php
index 17dfdb2ca079..bc7db4ec11ee 100644
--- a/Spanner/src/Admin/Instance/V1/ListInstanceConfigOperationsRequest.php
+++ b/Spanner/src/Admin/Instance/V1/ListInstanceConfigOperationsRequest.php
@@ -30,8 +30,7 @@ class ListInstanceConfigOperationsRequest extends \Google\Protobuf\Internal\Mess
* The value must be a string, a number, or a boolean. The comparison operator
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
- * The following fields in the [Operation][google.longrunning.Operation]
- * are eligible for filtering:
+ * The following fields in the Operation are eligible for filtering:
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
@@ -114,8 +113,7 @@ public static function build(string $parent): self
* The value must be a string, a number, or a boolean. The comparison operator
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
- * The following fields in the [Operation][google.longrunning.Operation]
- * are eligible for filtering:
+ * The following fields in the Operation are eligible for filtering:
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
@@ -196,8 +194,7 @@ public function setParent($var)
* The value must be a string, a number, or a boolean. The comparison operator
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
- * The following fields in the [Operation][google.longrunning.Operation]
- * are eligible for filtering:
+ * The following fields in the Operation are eligible for filtering:
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
@@ -243,8 +240,7 @@ public function getFilter()
* The value must be a string, a number, or a boolean. The comparison operator
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
- * The following fields in the [Operation][google.longrunning.Operation]
- * are eligible for filtering:
+ * The following fields in the Operation are eligible for filtering:
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
diff --git a/Spanner/src/Admin/Instance/V1/ListInstanceConfigOperationsResponse.php b/Spanner/src/Admin/Instance/V1/ListInstanceConfigOperationsResponse.php
index 10d805eb3e32..5554a74f4ab7 100644
--- a/Spanner/src/Admin/Instance/V1/ListInstanceConfigOperationsResponse.php
+++ b/Spanner/src/Admin/Instance/V1/ListInstanceConfigOperationsResponse.php
@@ -17,10 +17,10 @@
class ListInstanceConfigOperationsResponse extends \Google\Protobuf\Internal\Message
{
/**
- * The list of matching instance configuration [long-running
- * operations][google.longrunning.Operation]. Each operation's name will be
+ * The list of matching instance configuration long-running operations. Each
+ * operation's name will be
* prefixed by the name of the instance configuration. The operation's
- * [metadata][google.longrunning.Operation.metadata] field type
+ * metadata field type
* `metadata.type_url` describes the type of the metadata.
*
* Generated from protobuf field repeated .google.longrunning.Operation operations = 1;
@@ -42,10 +42,10 @@ class ListInstanceConfigOperationsResponse extends \Google\Protobuf\Internal\Mes
* Optional. Data for populating the Message object.
*
* @type array<\Google\LongRunning\Operation>|\Google\Protobuf\Internal\RepeatedField $operations
- * The list of matching instance configuration [long-running
- * operations][google.longrunning.Operation]. Each operation's name will be
+ * The list of matching instance configuration long-running operations. Each
+ * operation's name will be
* prefixed by the name of the instance configuration. The operation's
- * [metadata][google.longrunning.Operation.metadata] field type
+ * metadata field type
* `metadata.type_url` describes the type of the metadata.
* @type string $next_page_token
* `next_page_token` can be sent in a subsequent
@@ -59,10 +59,10 @@ public function __construct($data = NULL) {
}
/**
- * The list of matching instance configuration [long-running
- * operations][google.longrunning.Operation]. Each operation's name will be
+ * The list of matching instance configuration long-running operations. Each
+ * operation's name will be
* prefixed by the name of the instance configuration. The operation's
- * [metadata][google.longrunning.Operation.metadata] field type
+ * metadata field type
* `metadata.type_url` describes the type of the metadata.
*
* Generated from protobuf field repeated .google.longrunning.Operation operations = 1;
@@ -74,10 +74,10 @@ public function getOperations()
}
/**
- * The list of matching instance configuration [long-running
- * operations][google.longrunning.Operation]. Each operation's name will be
+ * The list of matching instance configuration long-running operations. Each
+ * operation's name will be
* prefixed by the name of the instance configuration. The operation's
- * [metadata][google.longrunning.Operation.metadata] field type
+ * metadata field type
* `metadata.type_url` describes the type of the metadata.
*
* Generated from protobuf field repeated .google.longrunning.Operation operations = 1;
diff --git a/Spanner/src/Admin/Instance/V1/ListInstancePartitionOperationsRequest.php b/Spanner/src/Admin/Instance/V1/ListInstancePartitionOperationsRequest.php
index 3f66a1028928..b3a881c4b384 100644
--- a/Spanner/src/Admin/Instance/V1/ListInstancePartitionOperationsRequest.php
+++ b/Spanner/src/Admin/Instance/V1/ListInstancePartitionOperationsRequest.php
@@ -30,8 +30,7 @@ class ListInstancePartitionOperationsRequest extends \Google\Protobuf\Internal\M
* The value must be a string, a number, or a boolean. The comparison operator
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
- * The following fields in the [Operation][google.longrunning.Operation]
- * are eligible for filtering:
+ * The following fields in the Operation are eligible for filtering:
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
@@ -86,7 +85,8 @@ class ListInstancePartitionOperationsRequest extends \Google\Protobuf\Internal\M
* Optional. Deadline used while retrieving metadata for instance partition
* operations. Instance partitions whose operation metadata cannot be
* retrieved within this deadline will be added to
- * [unreachable][ListInstancePartitionOperationsResponse.unreachable] in
+ * [unreachable_instance_partitions][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.unreachable_instance_partitions]
+ * in
* [ListInstancePartitionOperationsResponse][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse].
*
* Generated from protobuf field .google.protobuf.Timestamp instance_partition_deadline = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -124,8 +124,7 @@ public static function build(string $parent): self
* The value must be a string, a number, or a boolean. The comparison operator
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
- * The following fields in the [Operation][google.longrunning.Operation]
- * are eligible for filtering:
+ * The following fields in the Operation are eligible for filtering:
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
@@ -168,7 +167,8 @@ public static function build(string $parent): self
* Optional. Deadline used while retrieving metadata for instance partition
* operations. Instance partitions whose operation metadata cannot be
* retrieved within this deadline will be added to
- * [unreachable][ListInstancePartitionOperationsResponse.unreachable] in
+ * [unreachable_instance_partitions][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.unreachable_instance_partitions]
+ * in
* [ListInstancePartitionOperationsResponse][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse].
* }
*/
@@ -212,8 +212,7 @@ public function setParent($var)
* The value must be a string, a number, or a boolean. The comparison operator
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
- * The following fields in the [Operation][google.longrunning.Operation]
- * are eligible for filtering:
+ * The following fields in the Operation are eligible for filtering:
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
@@ -259,8 +258,7 @@ public function getFilter()
* The value must be a string, a number, or a boolean. The comparison operator
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
* Colon `:` is the contains operator. Filter rules are not case sensitive.
- * The following fields in the [Operation][google.longrunning.Operation]
- * are eligible for filtering:
+ * The following fields in the Operation are eligible for filtering:
* * `name` - The name of the long-running operation
* * `done` - False if the operation is in progress, else true.
* * `metadata.@type` - the type of metadata. For example, the type string
@@ -369,7 +367,8 @@ public function setPageToken($var)
* Optional. Deadline used while retrieving metadata for instance partition
* operations. Instance partitions whose operation metadata cannot be
* retrieved within this deadline will be added to
- * [unreachable][ListInstancePartitionOperationsResponse.unreachable] in
+ * [unreachable_instance_partitions][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.unreachable_instance_partitions]
+ * in
* [ListInstancePartitionOperationsResponse][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse].
*
* Generated from protobuf field .google.protobuf.Timestamp instance_partition_deadline = 5 [(.google.api.field_behavior) = OPTIONAL];
@@ -394,7 +393,8 @@ public function clearInstancePartitionDeadline()
* Optional. Deadline used while retrieving metadata for instance partition
* operations. Instance partitions whose operation metadata cannot be
* retrieved within this deadline will be added to
- * [unreachable][ListInstancePartitionOperationsResponse.unreachable] in
+ * [unreachable_instance_partitions][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.unreachable_instance_partitions]
+ * in
* [ListInstancePartitionOperationsResponse][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse].
*
* Generated from protobuf field .google.protobuf.Timestamp instance_partition_deadline = 5 [(.google.api.field_behavior) = OPTIONAL];
diff --git a/Spanner/src/Admin/Instance/V1/ListInstancePartitionOperationsResponse.php b/Spanner/src/Admin/Instance/V1/ListInstancePartitionOperationsResponse.php
index 8ed281a554bf..886c45864495 100644
--- a/Spanner/src/Admin/Instance/V1/ListInstancePartitionOperationsResponse.php
+++ b/Spanner/src/Admin/Instance/V1/ListInstancePartitionOperationsResponse.php
@@ -17,10 +17,10 @@
class ListInstancePartitionOperationsResponse extends \Google\Protobuf\Internal\Message
{
/**
- * The list of matching instance partition [long-running
- * operations][google.longrunning.Operation]. Each operation's name will be
+ * The list of matching instance partition long-running operations. Each
+ * operation's name will be
* prefixed by the instance partition's name. The operation's
- * [metadata][google.longrunning.Operation.metadata] field type
+ * metadata field type
* `metadata.type_url` describes the type of the metadata.
*
* Generated from protobuf field repeated .google.longrunning.Operation operations = 1;
@@ -51,10 +51,10 @@ class ListInstancePartitionOperationsResponse extends \Google\Protobuf\Internal\
* Optional. Data for populating the Message object.
*
* @type array<\Google\LongRunning\Operation>|\Google\Protobuf\Internal\RepeatedField $operations
- * The list of matching instance partition [long-running
- * operations][google.longrunning.Operation]. Each operation's name will be
+ * The list of matching instance partition long-running operations. Each
+ * operation's name will be
* prefixed by the instance partition's name. The operation's
- * [metadata][google.longrunning.Operation.metadata] field type
+ * metadata field type
* `metadata.type_url` describes the type of the metadata.
* @type string $next_page_token
* `next_page_token` can be sent in a subsequent
@@ -73,10 +73,10 @@ public function __construct($data = NULL) {
}
/**
- * The list of matching instance partition [long-running
- * operations][google.longrunning.Operation]. Each operation's name will be
+ * The list of matching instance partition long-running operations. Each
+ * operation's name will be
* prefixed by the instance partition's name. The operation's
- * [metadata][google.longrunning.Operation.metadata] field type
+ * metadata field type
* `metadata.type_url` describes the type of the metadata.
*
* Generated from protobuf field repeated .google.longrunning.Operation operations = 1;
@@ -88,10 +88,10 @@ public function getOperations()
}
/**
- * The list of matching instance partition [long-running
- * operations][google.longrunning.Operation]. Each operation's name will be
+ * The list of matching instance partition long-running operations. Each
+ * operation's name will be
* prefixed by the instance partition's name. The operation's
- * [metadata][google.longrunning.Operation.metadata] field type
+ * metadata field type
* `metadata.type_url` describes the type of the metadata.
*
* Generated from protobuf field repeated .google.longrunning.Operation operations = 1;
diff --git a/Spanner/src/Admin/Instance/V1/ListInstancePartitionsRequest.php b/Spanner/src/Admin/Instance/V1/ListInstancePartitionsRequest.php
index 877be2da98d1..370831027f22 100644
--- a/Spanner/src/Admin/Instance/V1/ListInstancePartitionsRequest.php
+++ b/Spanner/src/Admin/Instance/V1/ListInstancePartitionsRequest.php
@@ -18,7 +18,9 @@ class ListInstancePartitionsRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. The instance whose instance partitions should be listed. Values
- * are of the form `projects//instances/`.
+ * are of the form `projects//instances/`. Use `{instance}
+ * = '-'` to list instance partitions for all Instances in a project, e.g.,
+ * `projects/myproject/instances/-`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
@@ -53,7 +55,9 @@ class ListInstancePartitionsRequest extends \Google\Protobuf\Internal\Message
/**
* @param string $parent Required. The instance whose instance partitions should be listed. Values
- * are of the form `projects//instances/`. Please see
+ * are of the form `projects//instances/`. Use `{instance}
+ * = '-'` to list instance partitions for all Instances in a project, e.g.,
+ * `projects/myproject/instances/-`. Please see
* {@see InstanceAdminClient::instanceName()} for help formatting this field.
*
* @return \Google\Cloud\Spanner\Admin\Instance\V1\ListInstancePartitionsRequest
@@ -74,7 +78,9 @@ public static function build(string $parent): self
*
* @type string $parent
* Required. The instance whose instance partitions should be listed. Values
- * are of the form `projects//instances/`.
+ * are of the form `projects//instances/`. Use `{instance}
+ * = '-'` to list instance partitions for all Instances in a project, e.g.,
+ * `projects/myproject/instances/-`.
* @type int $page_size
* Number of instance partitions to be returned in the response. If 0 or less,
* defaults to the server's maximum allowed page size.
@@ -99,7 +105,9 @@ public function __construct($data = NULL) {
/**
* Required. The instance whose instance partitions should be listed. Values
- * are of the form `projects//instances/`.
+ * are of the form `projects//instances/`. Use `{instance}
+ * = '-'` to list instance partitions for all Instances in a project, e.g.,
+ * `projects/myproject/instances/-`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
@@ -111,7 +119,9 @@ public function getParent()
/**
* Required. The instance whose instance partitions should be listed. Values
- * are of the form `projects//instances/`.
+ * are of the form `projects//instances/`. Use `{instance}
+ * = '-'` to list instance partitions for all Instances in a project, e.g.,
+ * `projects/myproject/instances/-`.
*
* Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
diff --git a/Spanner/src/Admin/Instance/V1/ListInstancePartitionsResponse.php b/Spanner/src/Admin/Instance/V1/ListInstancePartitionsResponse.php
index 916ce4a772ff..306569fa24d5 100644
--- a/Spanner/src/Admin/Instance/V1/ListInstancePartitionsResponse.php
+++ b/Spanner/src/Admin/Instance/V1/ListInstancePartitionsResponse.php
@@ -31,9 +31,9 @@ class ListInstancePartitionsResponse extends \Google\Protobuf\Internal\Message
*/
private $next_page_token = '';
/**
- * The list of unreachable instance partitions.
- * It includes the names of instance partitions whose metadata could
- * not be retrieved within
+ * The list of unreachable instances or instance partitions.
+ * It includes the names of instances or instance partitions whose metadata
+ * could not be retrieved within
* [instance_partition_deadline][google.spanner.admin.instance.v1.ListInstancePartitionsRequest.instance_partition_deadline].
*
* Generated from protobuf field repeated string unreachable = 3;
@@ -53,9 +53,9 @@ class ListInstancePartitionsResponse extends \Google\Protobuf\Internal\Message
* [ListInstancePartitions][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitions]
* call to fetch more of the matching instance partitions.
* @type array|\Google\Protobuf\Internal\RepeatedField $unreachable
- * The list of unreachable instance partitions.
- * It includes the names of instance partitions whose metadata could
- * not be retrieved within
+ * The list of unreachable instances or instance partitions.
+ * It includes the names of instances or instance partitions whose metadata
+ * could not be retrieved within
* [instance_partition_deadline][google.spanner.admin.instance.v1.ListInstancePartitionsRequest.instance_partition_deadline].
* }
*/
@@ -121,9 +121,9 @@ public function setNextPageToken($var)
}
/**
- * The list of unreachable instance partitions.
- * It includes the names of instance partitions whose metadata could
- * not be retrieved within
+ * The list of unreachable instances or instance partitions.
+ * It includes the names of instances or instance partitions whose metadata
+ * could not be retrieved within
* [instance_partition_deadline][google.spanner.admin.instance.v1.ListInstancePartitionsRequest.instance_partition_deadline].
*
* Generated from protobuf field repeated string unreachable = 3;
@@ -135,9 +135,9 @@ public function getUnreachable()
}
/**
- * The list of unreachable instance partitions.
- * It includes the names of instance partitions whose metadata could
- * not be retrieved within
+ * The list of unreachable instances or instance partitions.
+ * It includes the names of instances or instance partitions whose metadata
+ * could not be retrieved within
* [instance_partition_deadline][google.spanner.admin.instance.v1.ListInstancePartitionsRequest.instance_partition_deadline].
*
* Generated from protobuf field repeated string unreachable = 3;
diff --git a/Spanner/src/Admin/Instance/V1/ReplicaInfo.php b/Spanner/src/Admin/Instance/V1/ReplicaInfo.php
index 858d005c5bc3..0da8919cc59c 100644
--- a/Spanner/src/Admin/Instance/V1/ReplicaInfo.php
+++ b/Spanner/src/Admin/Instance/V1/ReplicaInfo.php
@@ -14,7 +14,7 @@
class ReplicaInfo extends \Google\Protobuf\Internal\Message
{
/**
- * The location of the serving resources, e.g. "us-central1".
+ * The location of the serving resources, e.g., "us-central1".
*
* Generated from protobuf field string location = 1;
*/
@@ -42,7 +42,7 @@ class ReplicaInfo extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $location
- * The location of the serving resources, e.g. "us-central1".
+ * The location of the serving resources, e.g., "us-central1".
* @type int $type
* The type of replica.
* @type bool $default_leader_location
@@ -58,7 +58,7 @@ public function __construct($data = NULL) {
}
/**
- * The location of the serving resources, e.g. "us-central1".
+ * The location of the serving resources, e.g., "us-central1".
*
* Generated from protobuf field string location = 1;
* @return string
@@ -69,7 +69,7 @@ public function getLocation()
}
/**
- * The location of the serving resources, e.g. "us-central1".
+ * The location of the serving resources, e.g., "us-central1".
*
* Generated from protobuf field string location = 1;
* @param string $var
diff --git a/Spanner/src/Admin/Instance/V1/UpdateInstanceConfigRequest.php b/Spanner/src/Admin/Instance/V1/UpdateInstanceConfigRequest.php
index 29962464c2b5..5cd410d7208e 100644
--- a/Spanner/src/Admin/Instance/V1/UpdateInstanceConfigRequest.php
+++ b/Spanner/src/Admin/Instance/V1/UpdateInstanceConfigRequest.php
@@ -10,7 +10,7 @@
/**
* The request for
- * [UpdateInstanceConfigRequest][InstanceAdmin.UpdateInstanceConfigRequest].
+ * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig].
*
* Generated from protobuf message google.spanner.admin.instance.v1.UpdateInstanceConfigRequest
*/
diff --git a/Spanner/tests/Unit/Admin/Instance/V1/Client/InstanceAdminClientTest.php b/Spanner/tests/Unit/Admin/Instance/V1/Client/InstanceAdminClientTest.php
index 1d694ac1b6d9..bd01402c01ee 100644
--- a/Spanner/tests/Unit/Admin/Instance/V1/Client/InstanceAdminClientTest.php
+++ b/Spanner/tests/Unit/Admin/Instance/V1/Client/InstanceAdminClientTest.php
@@ -277,12 +277,14 @@ public function createInstanceConfigTest()
$baseConfig = 'baseConfig1990483056';
$etag = 'etag3123477';
$reconciling = false;
+ $storageLimitPerProcessingUnit = 1769187130;
$expectedResponse = new InstanceConfig();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setBaseConfig($baseConfig);
$expectedResponse->setEtag($etag);
$expectedResponse->setReconciling($reconciling);
+ $expectedResponse->setStorageLimitPerProcessingUnit($storageLimitPerProcessingUnit);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
@@ -884,12 +886,14 @@ public function getInstanceConfigTest()
$baseConfig = 'baseConfig1990483056';
$etag = 'etag3123477';
$reconciling = false;
+ $storageLimitPerProcessingUnit = 1769187130;
$expectedResponse = new InstanceConfig();
$expectedResponse->setName($name2);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setBaseConfig($baseConfig);
$expectedResponse->setEtag($etag);
$expectedResponse->setReconciling($reconciling);
+ $expectedResponse->setStorageLimitPerProcessingUnit($storageLimitPerProcessingUnit);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->instanceConfigName('[PROJECT]', '[INSTANCE_CONFIG]');
@@ -1816,12 +1820,14 @@ public function updateInstanceConfigTest()
$baseConfig = 'baseConfig1990483056';
$etag = 'etag3123477';
$reconciling = false;
+ $storageLimitPerProcessingUnit = 1769187130;
$expectedResponse = new InstanceConfig();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setBaseConfig($baseConfig);
$expectedResponse->setEtag($etag);
$expectedResponse->setReconciling($reconciling);
+ $expectedResponse->setStorageLimitPerProcessingUnit($storageLimitPerProcessingUnit);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
diff --git a/Spanner/tests/Unit/Admin/Instance/V1/InstanceAdminClientTest.php b/Spanner/tests/Unit/Admin/Instance/V1/InstanceAdminClientTest.php
index 1cd269d78353..dcd7cec82b34 100644
--- a/Spanner/tests/Unit/Admin/Instance/V1/InstanceAdminClientTest.php
+++ b/Spanner/tests/Unit/Admin/Instance/V1/InstanceAdminClientTest.php
@@ -248,12 +248,14 @@ public function createInstanceConfigTest()
$baseConfig = 'baseConfig1990483056';
$etag = 'etag3123477';
$reconciling = false;
+ $storageLimitPerProcessingUnit = 1769187130;
$expectedResponse = new InstanceConfig();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setBaseConfig($baseConfig);
$expectedResponse->setEtag($etag);
$expectedResponse->setReconciling($reconciling);
+ $expectedResponse->setStorageLimitPerProcessingUnit($storageLimitPerProcessingUnit);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
@@ -819,12 +821,14 @@ public function getInstanceConfigTest()
$baseConfig = 'baseConfig1990483056';
$etag = 'etag3123477';
$reconciling = false;
+ $storageLimitPerProcessingUnit = 1769187130;
$expectedResponse = new InstanceConfig();
$expectedResponse->setName($name2);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setBaseConfig($baseConfig);
$expectedResponse->setEtag($etag);
$expectedResponse->setReconciling($reconciling);
+ $expectedResponse->setStorageLimitPerProcessingUnit($storageLimitPerProcessingUnit);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->instanceConfigName('[PROJECT]', '[INSTANCE_CONFIG]');
@@ -1699,12 +1703,14 @@ public function updateInstanceConfigTest()
$baseConfig = 'baseConfig1990483056';
$etag = 'etag3123477';
$reconciling = false;
+ $storageLimitPerProcessingUnit = 1769187130;
$expectedResponse = new InstanceConfig();
$expectedResponse->setName($name);
$expectedResponse->setDisplayName($displayName);
$expectedResponse->setBaseConfig($baseConfig);
$expectedResponse->setEtag($etag);
$expectedResponse->setReconciling($reconciling);
+ $expectedResponse->setStorageLimitPerProcessingUnit($storageLimitPerProcessingUnit);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
diff --git a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/GPBMetadata/Google/Spanner/Admin/Database/V1/Backup.php b/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/GPBMetadata/Google/Spanner/Admin/Database/V1/Backup.php
deleted file mode 100644
index 57f9f9202109..000000000000
Binary files a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/GPBMetadata/Google/Spanner/Admin/Database/V1/Backup.php and /dev/null differ
diff --git a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/GPBMetadata/Google/Spanner/Admin/Database/V1/BackupSchedule.php b/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/GPBMetadata/Google/Spanner/Admin/Database/V1/BackupSchedule.php
deleted file mode 100644
index cb0825c4e2d4..000000000000
Binary files a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/GPBMetadata/Google/Spanner/Admin/Database/V1/BackupSchedule.php and /dev/null differ
diff --git a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/GPBMetadata/Google/Spanner/Admin/Database/V1/Common.php b/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/GPBMetadata/Google/Spanner/Admin/Database/V1/Common.php
deleted file mode 100644
index 121b65ff92ab..000000000000
Binary files a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/GPBMetadata/Google/Spanner/Admin/Database/V1/Common.php and /dev/null differ
diff --git a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/GPBMetadata/Google/Spanner/Admin/Database/V1/SpannerDatabaseAdmin.php b/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/GPBMetadata/Google/Spanner/Admin/Database/V1/SpannerDatabaseAdmin.php
deleted file mode 100644
index adb707cc73e3..000000000000
Binary files a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/GPBMetadata/Google/Spanner/Admin/Database/V1/SpannerDatabaseAdmin.php and /dev/null differ
diff --git a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/Backup.php b/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/Backup.php
deleted file mode 100644
index bd024eb7bfdc..000000000000
--- a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/Backup.php
+++ /dev/null
@@ -1,1013 +0,0 @@
-google.spanner.admin.database.v1.Backup
- */
-class Backup extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required for the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * operation. Name of the database from which this backup was created. This
- * needs to be in the same instance as the backup. Values are of the form
- * `projects//instances//databases/`.
- *
- * Generated from protobuf field string database = 2 [(.google.api.resource_reference) = {
- */
- protected $database = '';
- /**
- * The backup will contain an externally consistent copy of the database at
- * the timestamp specified by `version_time`. If `version_time` is not
- * specified, the system will set `version_time` to the `create_time` of the
- * backup.
- *
- * Generated from protobuf field .google.protobuf.Timestamp version_time = 9;
- */
- protected $version_time = null;
- /**
- * Required for the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * operation. The expiration time of the backup, with microseconds
- * granularity that must be at least 6 hours and at most 366 days
- * from the time the CreateBackup request is processed. Once the `expire_time`
- * has passed, the backup is eligible to be automatically deleted by Cloud
- * Spanner to free the resources used by the backup.
- *
- * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3;
- */
- protected $expire_time = null;
- /**
- * Output only for the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * operation. Required for the
- * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]
- * operation.
- * A globally unique identifier for the backup which cannot be
- * changed. Values are of the form
- * `projects//instances//backups/[a-z][a-z0-9_\-]*[a-z0-9]`
- * The final segment of the name must be between 2 and 60 characters
- * in length.
- * The backup is stored in the location(s) specified in the instance
- * configuration of the instance containing the backup, identified
- * by the prefix of the backup name of the form
- * `projects//instances/`.
- *
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
- /**
- * Output only. The time the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * request is received. If the request does not specify `version_time`, the
- * `version_time` of the backup will be equivalent to the `create_time`.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $create_time = null;
- /**
- * Output only. Size of the backup in bytes.
- *
- * Generated from protobuf field int64 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $size_bytes = 0;
- /**
- * Output only. The number of bytes that will be freed by deleting this
- * backup. This value will be zero if, for example, this backup is part of an
- * incremental backup chain and younger backups in the chain require that we
- * keep its data. For backups not in an incremental backup chain, this is
- * always the size of the backup. This value may change if backups on the same
- * chain get created, deleted or expired.
- *
- * Generated from protobuf field int64 freeable_size_bytes = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $freeable_size_bytes = 0;
- /**
- * Output only. For a backup in an incremental backup chain, this is the
- * storage space needed to keep the data that has changed since the previous
- * backup. For all other backups, this is always the size of the backup. This
- * value may change if backups on the same chain get deleted or expired.
- * This field can be used to calculate the total storage space used by a set
- * of backups. For example, the total space used by all backups of a database
- * can be computed by summing up this field.
- *
- * Generated from protobuf field int64 exclusive_size_bytes = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $exclusive_size_bytes = 0;
- /**
- * Output only. The current state of the backup.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $state = 0;
- /**
- * Output only. The names of the restored databases that reference the backup.
- * The database names are of
- * the form `projects//instances//databases/`.
- * Referencing databases may exist in different instances. The existence of
- * any referencing database prevents the backup from being deleted. When a
- * restored database from the backup enters the `READY` state, the reference
- * to the backup is removed.
- *
- * Generated from protobuf field repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- private $referencing_databases;
- /**
- * Output only. The encryption information for the backup.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $encryption_info = null;
- /**
- * Output only. The encryption information for the backup, whether it is
- * protected by one or more KMS keys. The information includes all Cloud
- * KMS key versions used to encrypt the backup. The `encryption_status' field
- * inside of each `EncryptionInfo` is not populated. At least one of the key
- * versions must be available for the backup to be restored. If a key version
- * is revoked in the middle of a restore, the restore behavior is undefined.
- *
- * Generated from protobuf field repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- private $encryption_information;
- /**
- * Output only. The database dialect information for the backup.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $database_dialect = 0;
- /**
- * Output only. The names of the destination backups being created by copying
- * this source backup. The backup names are of the form
- * `projects//instances//backups/`.
- * Referencing backups may exist in different instances. The existence of
- * any referencing backup prevents the backup from being deleted. When the
- * copy operation is done (either successfully completed or cancelled or the
- * destination backup is deleted), the reference to the backup is removed.
- *
- * Generated from protobuf field repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- private $referencing_backups;
- /**
- * Output only. The max allowed expiration time of the backup, with
- * microseconds granularity. A backup's expiration time can be configured in
- * multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or
- * copying an existing backup, the expiration time specified must be
- * less than `Backup.max_expire_time`.
- *
- * Generated from protobuf field .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $max_expire_time = null;
- /**
- * Output only. List of backup schedule URIs that are associated with
- * creating this backup. This is only applicable for scheduled backups, and
- * is empty for on-demand backups.
- * To optimize for storage, whenever possible, multiple schedules are
- * collapsed together to create one backup. In such cases, this field captures
- * the list of all backup schedule URIs that are associated with creating
- * this backup. If collapsing is not done, then this field captures the
- * single backup schedule URI associated with creating this backup.
- *
- * Generated from protobuf field repeated string backup_schedules = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- */
- private $backup_schedules;
- /**
- * Output only. Populated only for backups in an incremental backup chain.
- * Backups share the same chain id if and only if they belong to the same
- * incremental backup chain. Use this field to determine which backups are
- * part of the same incremental backup chain. The ordering of backups in the
- * chain can be determined by ordering the backup `version_time`.
- *
- * Generated from protobuf field string incremental_backup_chain_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $incremental_backup_chain_id = '';
- /**
- * Output only. Data deleted at a time older than this is guaranteed not to be
- * retained in order to support this backup. For a backup in an incremental
- * backup chain, this is the version time of the oldest backup that exists or
- * ever existed in the chain. For all other backups, this is the version time
- * of the backup. This field can be used to understand what data is being
- * retained by the backup system.
- *
- * Generated from protobuf field .google.protobuf.Timestamp oldest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $oldest_version_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $database
- * Required for the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * operation. Name of the database from which this backup was created. This
- * needs to be in the same instance as the backup. Values are of the form
- * `projects//instances//databases/`.
- * @type \Google\Protobuf\Timestamp $version_time
- * The backup will contain an externally consistent copy of the database at
- * the timestamp specified by `version_time`. If `version_time` is not
- * specified, the system will set `version_time` to the `create_time` of the
- * backup.
- * @type \Google\Protobuf\Timestamp $expire_time
- * Required for the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * operation. The expiration time of the backup, with microseconds
- * granularity that must be at least 6 hours and at most 366 days
- * from the time the CreateBackup request is processed. Once the `expire_time`
- * has passed, the backup is eligible to be automatically deleted by Cloud
- * Spanner to free the resources used by the backup.
- * @type string $name
- * Output only for the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * operation. Required for the
- * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]
- * operation.
- * A globally unique identifier for the backup which cannot be
- * changed. Values are of the form
- * `projects//instances//backups/[a-z][a-z0-9_\-]*[a-z0-9]`
- * The final segment of the name must be between 2 and 60 characters
- * in length.
- * The backup is stored in the location(s) specified in the instance
- * configuration of the instance containing the backup, identified
- * by the prefix of the backup name of the form
- * `projects//instances/`.
- * @type \Google\Protobuf\Timestamp $create_time
- * Output only. The time the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * request is received. If the request does not specify `version_time`, the
- * `version_time` of the backup will be equivalent to the `create_time`.
- * @type int|string $size_bytes
- * Output only. Size of the backup in bytes.
- * @type int|string $freeable_size_bytes
- * Output only. The number of bytes that will be freed by deleting this
- * backup. This value will be zero if, for example, this backup is part of an
- * incremental backup chain and younger backups in the chain require that we
- * keep its data. For backups not in an incremental backup chain, this is
- * always the size of the backup. This value may change if backups on the same
- * chain get created, deleted or expired.
- * @type int|string $exclusive_size_bytes
- * Output only. For a backup in an incremental backup chain, this is the
- * storage space needed to keep the data that has changed since the previous
- * backup. For all other backups, this is always the size of the backup. This
- * value may change if backups on the same chain get deleted or expired.
- * This field can be used to calculate the total storage space used by a set
- * of backups. For example, the total space used by all backups of a database
- * can be computed by summing up this field.
- * @type int $state
- * Output only. The current state of the backup.
- * @type array|\Google\Protobuf\Internal\RepeatedField $referencing_databases
- * Output only. The names of the restored databases that reference the backup.
- * The database names are of
- * the form `projects//instances//databases/`.
- * Referencing databases may exist in different instances. The existence of
- * any referencing database prevents the backup from being deleted. When a
- * restored database from the backup enters the `READY` state, the reference
- * to the backup is removed.
- * @type \Google\Cloud\Spanner\Admin\Database\V1\EncryptionInfo $encryption_info
- * Output only. The encryption information for the backup.
- * @type array<\Google\Cloud\Spanner\Admin\Database\V1\EncryptionInfo>|\Google\Protobuf\Internal\RepeatedField $encryption_information
- * Output only. The encryption information for the backup, whether it is
- * protected by one or more KMS keys. The information includes all Cloud
- * KMS key versions used to encrypt the backup. The `encryption_status' field
- * inside of each `EncryptionInfo` is not populated. At least one of the key
- * versions must be available for the backup to be restored. If a key version
- * is revoked in the middle of a restore, the restore behavior is undefined.
- * @type int $database_dialect
- * Output only. The database dialect information for the backup.
- * @type array|\Google\Protobuf\Internal\RepeatedField $referencing_backups
- * Output only. The names of the destination backups being created by copying
- * this source backup. The backup names are of the form
- * `projects//instances//backups/`.
- * Referencing backups may exist in different instances. The existence of
- * any referencing backup prevents the backup from being deleted. When the
- * copy operation is done (either successfully completed or cancelled or the
- * destination backup is deleted), the reference to the backup is removed.
- * @type \Google\Protobuf\Timestamp $max_expire_time
- * Output only. The max allowed expiration time of the backup, with
- * microseconds granularity. A backup's expiration time can be configured in
- * multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or
- * copying an existing backup, the expiration time specified must be
- * less than `Backup.max_expire_time`.
- * @type array|\Google\Protobuf\Internal\RepeatedField $backup_schedules
- * Output only. List of backup schedule URIs that are associated with
- * creating this backup. This is only applicable for scheduled backups, and
- * is empty for on-demand backups.
- * To optimize for storage, whenever possible, multiple schedules are
- * collapsed together to create one backup. In such cases, this field captures
- * the list of all backup schedule URIs that are associated with creating
- * this backup. If collapsing is not done, then this field captures the
- * single backup schedule URI associated with creating this backup.
- * @type string $incremental_backup_chain_id
- * Output only. Populated only for backups in an incremental backup chain.
- * Backups share the same chain id if and only if they belong to the same
- * incremental backup chain. Use this field to determine which backups are
- * part of the same incremental backup chain. The ordering of backups in the
- * chain can be determined by ordering the backup `version_time`.
- * @type \Google\Protobuf\Timestamp $oldest_version_time
- * Output only. Data deleted at a time older than this is guaranteed not to be
- * retained in order to support this backup. For a backup in an incremental
- * backup chain, this is the version time of the oldest backup that exists or
- * ever existed in the chain. For all other backups, this is the version time
- * of the backup. This field can be used to understand what data is being
- * retained by the backup system.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Spanner\Admin\Database\V1\Backup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required for the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * operation. Name of the database from which this backup was created. This
- * needs to be in the same instance as the backup. Values are of the form
- * `projects//instances//databases/`.
- *
- * Generated from protobuf field string database = 2 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getDatabase()
- {
- return $this->database;
- }
-
- /**
- * Required for the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * operation. Name of the database from which this backup was created. This
- * needs to be in the same instance as the backup. Values are of the form
- * `projects//instances//databases/`.
- *
- * Generated from protobuf field string database = 2 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setDatabase($var)
- {
- GPBUtil::checkString($var, True);
- $this->database = $var;
-
- return $this;
- }
-
- /**
- * The backup will contain an externally consistent copy of the database at
- * the timestamp specified by `version_time`. If `version_time` is not
- * specified, the system will set `version_time` to the `create_time` of the
- * backup.
- *
- * Generated from protobuf field .google.protobuf.Timestamp version_time = 9;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getVersionTime()
- {
- return $this->version_time;
- }
-
- public function hasVersionTime()
- {
- return isset($this->version_time);
- }
-
- public function clearVersionTime()
- {
- unset($this->version_time);
- }
-
- /**
- * The backup will contain an externally consistent copy of the database at
- * the timestamp specified by `version_time`. If `version_time` is not
- * specified, the system will set `version_time` to the `create_time` of the
- * backup.
- *
- * Generated from protobuf field .google.protobuf.Timestamp version_time = 9;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setVersionTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->version_time = $var;
-
- return $this;
- }
-
- /**
- * Required for the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * operation. The expiration time of the backup, with microseconds
- * granularity that must be at least 6 hours and at most 366 days
- * from the time the CreateBackup request is processed. Once the `expire_time`
- * has passed, the backup is eligible to be automatically deleted by Cloud
- * Spanner to free the resources used by the backup.
- *
- * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3;
- * @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);
- }
-
- /**
- * Required for the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * operation. The expiration time of the backup, with microseconds
- * granularity that must be at least 6 hours and at most 366 days
- * from the time the CreateBackup request is processed. Once the `expire_time`
- * has passed, the backup is eligible to be automatically deleted by Cloud
- * Spanner to free the resources used by the backup.
- *
- * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3;
- * @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 for the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * operation. Required for the
- * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]
- * operation.
- * A globally unique identifier for the backup which cannot be
- * changed. Values are of the form
- * `projects//instances//backups/[a-z][a-z0-9_\-]*[a-z0-9]`
- * The final segment of the name must be between 2 and 60 characters
- * in length.
- * The backup is stored in the location(s) specified in the instance
- * configuration of the instance containing the backup, identified
- * by the prefix of the backup name of the form
- * `projects//instances/`.
- *
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Output only for the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * operation. Required for the
- * [UpdateBackup][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackup]
- * operation.
- * A globally unique identifier for the backup which cannot be
- * changed. Values are of the form
- * `projects//instances//backups/[a-z][a-z0-9_\-]*[a-z0-9]`
- * The final segment of the name must be between 2 and 60 characters
- * in length.
- * The backup is stored in the location(s) specified in the instance
- * configuration of the instance containing the backup, identified
- * by the prefix of the backup name of the form
- * `projects//instances/`.
- *
- * 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 time the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * request is received. If the request does not specify `version_time`, the
- * `version_time` of the backup will be equivalent to the `create_time`.
- *
- * 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 the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * request is received. If the request does not specify `version_time`, the
- * `version_time` of the backup will be equivalent to the `create_time`.
- *
- * 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;
- }
-
- /**
- * Output only. Size of the backup in bytes.
- *
- * Generated from protobuf field int64 size_bytes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getSizeBytes()
- {
- return $this->size_bytes;
- }
-
- /**
- * Output only. Size of the backup in bytes.
- *
- * Generated from protobuf field int64 size_bytes = 5 [(.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 number of bytes that will be freed by deleting this
- * backup. This value will be zero if, for example, this backup is part of an
- * incremental backup chain and younger backups in the chain require that we
- * keep its data. For backups not in an incremental backup chain, this is
- * always the size of the backup. This value may change if backups on the same
- * chain get created, deleted or expired.
- *
- * Generated from protobuf field int64 freeable_size_bytes = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getFreeableSizeBytes()
- {
- return $this->freeable_size_bytes;
- }
-
- /**
- * Output only. The number of bytes that will be freed by deleting this
- * backup. This value will be zero if, for example, this backup is part of an
- * incremental backup chain and younger backups in the chain require that we
- * keep its data. For backups not in an incremental backup chain, this is
- * always the size of the backup. This value may change if backups on the same
- * chain get created, deleted or expired.
- *
- * Generated from protobuf field int64 freeable_size_bytes = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setFreeableSizeBytes($var)
- {
- GPBUtil::checkInt64($var);
- $this->freeable_size_bytes = $var;
-
- return $this;
- }
-
- /**
- * Output only. For a backup in an incremental backup chain, this is the
- * storage space needed to keep the data that has changed since the previous
- * backup. For all other backups, this is always the size of the backup. This
- * value may change if backups on the same chain get deleted or expired.
- * This field can be used to calculate the total storage space used by a set
- * of backups. For example, the total space used by all backups of a database
- * can be computed by summing up this field.
- *
- * Generated from protobuf field int64 exclusive_size_bytes = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int|string
- */
- public function getExclusiveSizeBytes()
- {
- return $this->exclusive_size_bytes;
- }
-
- /**
- * Output only. For a backup in an incremental backup chain, this is the
- * storage space needed to keep the data that has changed since the previous
- * backup. For all other backups, this is always the size of the backup. This
- * value may change if backups on the same chain get deleted or expired.
- * This field can be used to calculate the total storage space used by a set
- * of backups. For example, the total space used by all backups of a database
- * can be computed by summing up this field.
- *
- * Generated from protobuf field int64 exclusive_size_bytes = 16 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int|string $var
- * @return $this
- */
- public function setExclusiveSizeBytes($var)
- {
- GPBUtil::checkInt64($var);
- $this->exclusive_size_bytes = $var;
-
- return $this;
- }
-
- /**
- * Output only. The current state of the backup.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.Backup.State state = 6 [(.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.spanner.admin.database.v1.Backup.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Spanner\Admin\Database\V1\Backup\State::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Output only. The names of the restored databases that reference the backup.
- * The database names are of
- * the form `projects//instances//databases/`.
- * Referencing databases may exist in different instances. The existence of
- * any referencing database prevents the backup from being deleted. When a
- * restored database from the backup enters the `READY` state, the reference
- * to the backup is removed.
- *
- * Generated from protobuf field repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getReferencingDatabases()
- {
- return $this->referencing_databases;
- }
-
- /**
- * Output only. The names of the restored databases that reference the backup.
- * The database names are of
- * the form `projects//instances//databases/`.
- * Referencing databases may exist in different instances. The existence of
- * any referencing database prevents the backup from being deleted. When a
- * restored database from the backup enters the `READY` state, the reference
- * to the backup is removed.
- *
- * Generated from protobuf field repeated string referencing_databases = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setReferencingDatabases($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->referencing_databases = $arr;
-
- return $this;
- }
-
- /**
- * Output only. The encryption information for the backup.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Cloud\Spanner\Admin\Database\V1\EncryptionInfo|null
- */
- public function getEncryptionInfo()
- {
- return $this->encryption_info;
- }
-
- public function hasEncryptionInfo()
- {
- return isset($this->encryption_info);
- }
-
- public function clearEncryptionInfo()
- {
- unset($this->encryption_info);
- }
-
- /**
- * Output only. The encryption information for the backup.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.EncryptionInfo encryption_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Cloud\Spanner\Admin\Database\V1\EncryptionInfo $var
- * @return $this
- */
- public function setEncryptionInfo($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Spanner\Admin\Database\V1\EncryptionInfo::class);
- $this->encryption_info = $var;
-
- return $this;
- }
-
- /**
- * Output only. The encryption information for the backup, whether it is
- * protected by one or more KMS keys. The information includes all Cloud
- * KMS key versions used to encrypt the backup. The `encryption_status' field
- * inside of each `EncryptionInfo` is not populated. At least one of the key
- * versions must be available for the backup to be restored. If a key version
- * is revoked in the middle of a restore, the restore behavior is undefined.
- *
- * Generated from protobuf field repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getEncryptionInformation()
- {
- return $this->encryption_information;
- }
-
- /**
- * Output only. The encryption information for the backup, whether it is
- * protected by one or more KMS keys. The information includes all Cloud
- * KMS key versions used to encrypt the backup. The `encryption_status' field
- * inside of each `EncryptionInfo` is not populated. At least one of the key
- * versions must be available for the backup to be restored. If a key version
- * is revoked in the middle of a restore, the restore behavior is undefined.
- *
- * Generated from protobuf field repeated .google.spanner.admin.database.v1.EncryptionInfo encryption_information = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param array<\Google\Cloud\Spanner\Admin\Database\V1\EncryptionInfo>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setEncryptionInformation($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Spanner\Admin\Database\V1\EncryptionInfo::class);
- $this->encryption_information = $arr;
-
- return $this;
- }
-
- /**
- * Output only. The database dialect information for the backup.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return int
- */
- public function getDatabaseDialect()
- {
- return $this->database_dialect;
- }
-
- /**
- * Output only. The database dialect information for the backup.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.DatabaseDialect database_dialect = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param int $var
- * @return $this
- */
- public function setDatabaseDialect($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Spanner\Admin\Database\V1\DatabaseDialect::class);
- $this->database_dialect = $var;
-
- return $this;
- }
-
- /**
- * Output only. The names of the destination backups being created by copying
- * this source backup. The backup names are of the form
- * `projects//instances//backups/`.
- * Referencing backups may exist in different instances. The existence of
- * any referencing backup prevents the backup from being deleted. When the
- * copy operation is done (either successfully completed or cancelled or the
- * destination backup is deleted), the reference to the backup is removed.
- *
- * Generated from protobuf field repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getReferencingBackups()
- {
- return $this->referencing_backups;
- }
-
- /**
- * Output only. The names of the destination backups being created by copying
- * this source backup. The backup names are of the form
- * `projects//instances//backups/`.
- * Referencing backups may exist in different instances. The existence of
- * any referencing backup prevents the backup from being deleted. When the
- * copy operation is done (either successfully completed or cancelled or the
- * destination backup is deleted), the reference to the backup is removed.
- *
- * Generated from protobuf field repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setReferencingBackups($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->referencing_backups = $arr;
-
- return $this;
- }
-
- /**
- * Output only. The max allowed expiration time of the backup, with
- * microseconds granularity. A backup's expiration time can be configured in
- * multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or
- * copying an existing backup, the expiration time specified must be
- * less than `Backup.max_expire_time`.
- *
- * Generated from protobuf field .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getMaxExpireTime()
- {
- return $this->max_expire_time;
- }
-
- public function hasMaxExpireTime()
- {
- return isset($this->max_expire_time);
- }
-
- public function clearMaxExpireTime()
- {
- unset($this->max_expire_time);
- }
-
- /**
- * Output only. The max allowed expiration time of the backup, with
- * microseconds granularity. A backup's expiration time can be configured in
- * multiple APIs: CreateBackup, UpdateBackup, CopyBackup. When updating or
- * copying an existing backup, the expiration time specified must be
- * less than `Backup.max_expire_time`.
- *
- * Generated from protobuf field .google.protobuf.Timestamp max_expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setMaxExpireTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->max_expire_time = $var;
-
- return $this;
- }
-
- /**
- * Output only. List of backup schedule URIs that are associated with
- * creating this backup. This is only applicable for scheduled backups, and
- * is empty for on-demand backups.
- * To optimize for storage, whenever possible, multiple schedules are
- * collapsed together to create one backup. In such cases, this field captures
- * the list of all backup schedule URIs that are associated with creating
- * this backup. If collapsing is not done, then this field captures the
- * single backup schedule URI associated with creating this backup.
- *
- * Generated from protobuf field repeated string backup_schedules = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getBackupSchedules()
- {
- return $this->backup_schedules;
- }
-
- /**
- * Output only. List of backup schedule URIs that are associated with
- * creating this backup. This is only applicable for scheduled backups, and
- * is empty for on-demand backups.
- * To optimize for storage, whenever possible, multiple schedules are
- * collapsed together to create one backup. In such cases, this field captures
- * the list of all backup schedule URIs that are associated with creating
- * this backup. If collapsing is not done, then this field captures the
- * single backup schedule URI associated with creating this backup.
- *
- * Generated from protobuf field repeated string backup_schedules = 14 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setBackupSchedules($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->backup_schedules = $arr;
-
- return $this;
- }
-
- /**
- * Output only. Populated only for backups in an incremental backup chain.
- * Backups share the same chain id if and only if they belong to the same
- * incremental backup chain. Use this field to determine which backups are
- * part of the same incremental backup chain. The ordering of backups in the
- * chain can be determined by ordering the backup `version_time`.
- *
- * Generated from protobuf field string incremental_backup_chain_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return string
- */
- public function getIncrementalBackupChainId()
- {
- return $this->incremental_backup_chain_id;
- }
-
- /**
- * Output only. Populated only for backups in an incremental backup chain.
- * Backups share the same chain id if and only if they belong to the same
- * incremental backup chain. Use this field to determine which backups are
- * part of the same incremental backup chain. The ordering of backups in the
- * chain can be determined by ordering the backup `version_time`.
- *
- * Generated from protobuf field string incremental_backup_chain_id = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param string $var
- * @return $this
- */
- public function setIncrementalBackupChainId($var)
- {
- GPBUtil::checkString($var, True);
- $this->incremental_backup_chain_id = $var;
-
- return $this;
- }
-
- /**
- * Output only. Data deleted at a time older than this is guaranteed not to be
- * retained in order to support this backup. For a backup in an incremental
- * backup chain, this is the version time of the oldest backup that exists or
- * ever existed in the chain. For all other backups, this is the version time
- * of the backup. This field can be used to understand what data is being
- * retained by the backup system.
- *
- * Generated from protobuf field .google.protobuf.Timestamp oldest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getOldestVersionTime()
- {
- return $this->oldest_version_time;
- }
-
- public function hasOldestVersionTime()
- {
- return isset($this->oldest_version_time);
- }
-
- public function clearOldestVersionTime()
- {
- unset($this->oldest_version_time);
- }
-
- /**
- * Output only. Data deleted at a time older than this is guaranteed not to be
- * retained in order to support this backup. For a backup in an incremental
- * backup chain, this is the version time of the oldest backup that exists or
- * ever existed in the chain. For all other backups, this is the version time
- * of the backup. This field can be used to understand what data is being
- * retained by the backup system.
- *
- * Generated from protobuf field .google.protobuf.Timestamp oldest_version_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setOldestVersionTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->oldest_version_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/Backup/State.php b/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/Backup/State.php
deleted file mode 100644
index 18d79b35ac2d..000000000000
--- a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/Backup/State.php
+++ /dev/null
@@ -1,65 +0,0 @@
-google.spanner.admin.database.v1.Backup.State
- */
-class State
-{
- /**
- * Not specified.
- *
- * Generated from protobuf enum STATE_UNSPECIFIED = 0;
- */
- const STATE_UNSPECIFIED = 0;
- /**
- * The pending backup is still being created. Operations on the
- * backup may fail with `FAILED_PRECONDITION` in this state.
- *
- * Generated from protobuf enum CREATING = 1;
- */
- const CREATING = 1;
- /**
- * The backup is complete and ready for use.
- *
- * Generated from protobuf enum READY = 2;
- */
- const READY = 2;
-
- private static $valueToName = [
- self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED',
- self::CREATING => 'CREATING',
- self::READY => 'READY',
- ];
-
- 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\Spanner\Admin\Database\V1\Backup_State::class);
-
diff --git a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/BackupInfo.php b/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/BackupInfo.php
deleted file mode 100644
index 301cdec6653a..000000000000
--- a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/BackupInfo.php
+++ /dev/null
@@ -1,213 +0,0 @@
-google.spanner.admin.database.v1.BackupInfo
- */
-class BackupInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Name of the backup.
- *
- * Generated from protobuf field string backup = 1 [(.google.api.resource_reference) = {
- */
- protected $backup = '';
- /**
- * The backup contains an externally consistent copy of `source_database` at
- * the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * request did not specify `version_time`, the `version_time` of the backup is
- * equivalent to the `create_time`.
- *
- * Generated from protobuf field .google.protobuf.Timestamp version_time = 4;
- */
- protected $version_time = null;
- /**
- * The time the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * request was received.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 2;
- */
- protected $create_time = null;
- /**
- * Name of the database the backup was created from.
- *
- * Generated from protobuf field string source_database = 3 [(.google.api.resource_reference) = {
- */
- protected $source_database = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $backup
- * Name of the backup.
- * @type \Google\Protobuf\Timestamp $version_time
- * The backup contains an externally consistent copy of `source_database` at
- * the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * request did not specify `version_time`, the `version_time` of the backup is
- * equivalent to the `create_time`.
- * @type \Google\Protobuf\Timestamp $create_time
- * The time the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * request was received.
- * @type string $source_database
- * Name of the database the backup was created from.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Spanner\Admin\Database\V1\Backup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Name of the backup.
- *
- * Generated from protobuf field string backup = 1 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getBackup()
- {
- return $this->backup;
- }
-
- /**
- * Name of the 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;
- }
-
- /**
- * The backup contains an externally consistent copy of `source_database` at
- * the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * request did not specify `version_time`, the `version_time` of the backup is
- * equivalent to the `create_time`.
- *
- * Generated from protobuf field .google.protobuf.Timestamp version_time = 4;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getVersionTime()
- {
- return $this->version_time;
- }
-
- public function hasVersionTime()
- {
- return isset($this->version_time);
- }
-
- public function clearVersionTime()
- {
- unset($this->version_time);
- }
-
- /**
- * The backup contains an externally consistent copy of `source_database` at
- * the timestamp specified by `version_time`. If the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * request did not specify `version_time`, the `version_time` of the backup is
- * equivalent to the `create_time`.
- *
- * Generated from protobuf field .google.protobuf.Timestamp version_time = 4;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setVersionTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->version_time = $var;
-
- return $this;
- }
-
- /**
- * The time the
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * request was received.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 2;
- * @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
- * [CreateBackup][google.spanner.admin.database.v1.DatabaseAdmin.CreateBackup]
- * request was received.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 2;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Name of the database the backup was created from.
- *
- * Generated from protobuf field string source_database = 3 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getSourceDatabase()
- {
- return $this->source_database;
- }
-
- /**
- * Name of the database the backup was created from.
- *
- * Generated from protobuf field string source_database = 3 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setSourceDatabase($var)
- {
- GPBUtil::checkString($var, True);
- $this->source_database = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/BackupSchedule.php b/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/BackupSchedule.php
deleted file mode 100644
index 4e438c2b75a1..000000000000
--- a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/BackupSchedule.php
+++ /dev/null
@@ -1,380 +0,0 @@
-google.spanner.admin.database.v1.BackupSchedule
- */
-class BackupSchedule extends \Google\Protobuf\Internal\Message
-{
- /**
- * Identifier. Output only for the
- * [CreateBackupSchedule][DatabaseAdmin.CreateBackupSchededule] operation.
- * Required for the
- * [UpdateBackupSchedule][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackupSchedule]
- * operation. A globally unique identifier for the backup schedule which
- * cannot be changed. Values are of the form
- * `projects//instances//databases//backupSchedules/[a-z][a-z0-9_\-]*[a-z0-9]`
- * The final segment of the name must be between 2 and 60 characters in
- * length.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
- */
- protected $name = '';
- /**
- * Optional. The schedule specification based on which the backup creations
- * are triggered.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $spec = null;
- /**
- * Optional. The retention duration of a backup that must be at least 6 hours
- * and at most 366 days. The backup is eligible to be automatically deleted
- * once the retention period has elapsed.
- *
- * Generated from protobuf field .google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $retention_duration = null;
- /**
- * Optional. The encryption configuration that will be used to encrypt the
- * backup. If this field is not specified, the backup will use the same
- * encryption configuration as the database.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $encryption_config = null;
- /**
- * Output only. The timestamp at which the schedule was last updated.
- * If the schedule has never been updated, this field contains the timestamp
- * when the schedule was first created.
- *
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
- */
- protected $update_time = null;
- protected $backup_type_spec;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * Identifier. Output only for the
- * [CreateBackupSchedule][DatabaseAdmin.CreateBackupSchededule] operation.
- * Required for the
- * [UpdateBackupSchedule][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackupSchedule]
- * operation. A globally unique identifier for the backup schedule which
- * cannot be changed. Values are of the form
- * `projects//instances//databases//backupSchedules/[a-z][a-z0-9_\-]*[a-z0-9]`
- * The final segment of the name must be between 2 and 60 characters in
- * length.
- * @type \Google\Cloud\Spanner\Admin\Database\V1\BackupScheduleSpec $spec
- * Optional. The schedule specification based on which the backup creations
- * are triggered.
- * @type \Google\Protobuf\Duration $retention_duration
- * Optional. The retention duration of a backup that must be at least 6 hours
- * and at most 366 days. The backup is eligible to be automatically deleted
- * once the retention period has elapsed.
- * @type \Google\Cloud\Spanner\Admin\Database\V1\CreateBackupEncryptionConfig $encryption_config
- * Optional. The encryption configuration that will be used to encrypt the
- * backup. If this field is not specified, the backup will use the same
- * encryption configuration as the database.
- * @type \Google\Cloud\Spanner\Admin\Database\V1\FullBackupSpec $full_backup_spec
- * The schedule creates only full backups.
- * @type \Google\Cloud\Spanner\Admin\Database\V1\IncrementalBackupSpec $incremental_backup_spec
- * The schedule creates incremental backup chains.
- * @type \Google\Protobuf\Timestamp $update_time
- * Output only. The timestamp at which the schedule was last updated.
- * If the schedule has never been updated, this field contains the timestamp
- * when the schedule was first created.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Spanner\Admin\Database\V1\BackupSchedule::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Identifier. Output only for the
- * [CreateBackupSchedule][DatabaseAdmin.CreateBackupSchededule] operation.
- * Required for the
- * [UpdateBackupSchedule][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackupSchedule]
- * operation. A globally unique identifier for the backup schedule which
- * cannot be changed. Values are of the form
- * `projects//instances//databases//backupSchedules/[a-z][a-z0-9_\-]*[a-z0-9]`
- * The final segment of the name must be between 2 and 60 characters in
- * length.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Identifier. Output only for the
- * [CreateBackupSchedule][DatabaseAdmin.CreateBackupSchededule] operation.
- * Required for the
- * [UpdateBackupSchedule][google.spanner.admin.database.v1.DatabaseAdmin.UpdateBackupSchedule]
- * operation. A globally unique identifier for the backup schedule which
- * cannot be changed. Values are of the form
- * `projects//instances//databases//backupSchedules/[a-z][a-z0-9_\-]*[a-z0-9]`
- * The final segment of the name must be between 2 and 60 characters in
- * length.
- *
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Optional. The schedule specification based on which the backup creations
- * are triggered.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Spanner\Admin\Database\V1\BackupScheduleSpec|null
- */
- public function getSpec()
- {
- return $this->spec;
- }
-
- public function hasSpec()
- {
- return isset($this->spec);
- }
-
- public function clearSpec()
- {
- unset($this->spec);
- }
-
- /**
- * Optional. The schedule specification based on which the backup creations
- * are triggered.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Spanner\Admin\Database\V1\BackupScheduleSpec $var
- * @return $this
- */
- public function setSpec($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Spanner\Admin\Database\V1\BackupScheduleSpec::class);
- $this->spec = $var;
-
- return $this;
- }
-
- /**
- * Optional. The retention duration of a backup that must be at least 6 hours
- * and at most 366 days. The backup is eligible to be automatically deleted
- * once the retention period has elapsed.
- *
- * Generated from protobuf field .google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Protobuf\Duration|null
- */
- public function getRetentionDuration()
- {
- return $this->retention_duration;
- }
-
- public function hasRetentionDuration()
- {
- return isset($this->retention_duration);
- }
-
- public function clearRetentionDuration()
- {
- unset($this->retention_duration);
- }
-
- /**
- * Optional. The retention duration of a backup that must be at least 6 hours
- * and at most 366 days. The backup is eligible to be automatically deleted
- * once the retention period has elapsed.
- *
- * Generated from protobuf field .google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setRetentionDuration($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->retention_duration = $var;
-
- return $this;
- }
-
- /**
- * Optional. The encryption configuration that will be used to encrypt the
- * backup. If this field is not specified, the backup will use the same
- * encryption configuration as the database.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @return \Google\Cloud\Spanner\Admin\Database\V1\CreateBackupEncryptionConfig|null
- */
- public function getEncryptionConfig()
- {
- return $this->encryption_config;
- }
-
- public function hasEncryptionConfig()
- {
- return isset($this->encryption_config);
- }
-
- public function clearEncryptionConfig()
- {
- unset($this->encryption_config);
- }
-
- /**
- * Optional. The encryption configuration that will be used to encrypt the
- * backup. If this field is not specified, the backup will use the same
- * encryption configuration as the database.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];
- * @param \Google\Cloud\Spanner\Admin\Database\V1\CreateBackupEncryptionConfig $var
- * @return $this
- */
- public function setEncryptionConfig($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Spanner\Admin\Database\V1\CreateBackupEncryptionConfig::class);
- $this->encryption_config = $var;
-
- return $this;
- }
-
- /**
- * The schedule creates only full backups.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;
- * @return \Google\Cloud\Spanner\Admin\Database\V1\FullBackupSpec|null
- */
- public function getFullBackupSpec()
- {
- return $this->readOneof(7);
- }
-
- public function hasFullBackupSpec()
- {
- return $this->hasOneof(7);
- }
-
- /**
- * The schedule creates only full backups.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;
- * @param \Google\Cloud\Spanner\Admin\Database\V1\FullBackupSpec $var
- * @return $this
- */
- public function setFullBackupSpec($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Spanner\Admin\Database\V1\FullBackupSpec::class);
- $this->writeOneof(7, $var);
-
- return $this;
- }
-
- /**
- * The schedule creates incremental backup chains.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;
- * @return \Google\Cloud\Spanner\Admin\Database\V1\IncrementalBackupSpec|null
- */
- public function getIncrementalBackupSpec()
- {
- return $this->readOneof(8);
- }
-
- public function hasIncrementalBackupSpec()
- {
- return $this->hasOneof(8);
- }
-
- /**
- * The schedule creates incremental backup chains.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;
- * @param \Google\Cloud\Spanner\Admin\Database\V1\IncrementalBackupSpec $var
- * @return $this
- */
- public function setIncrementalBackupSpec($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Spanner\Admin\Database\V1\IncrementalBackupSpec::class);
- $this->writeOneof(8, $var);
-
- return $this;
- }
-
- /**
- * Output only. The timestamp at which the schedule was last updated.
- * If the schedule has never been updated, this field contains the timestamp
- * when the schedule was first created.
- *
- * 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. The timestamp at which the schedule was last updated.
- * If the schedule has never been updated, this field contains the timestamp
- * when the schedule was first created.
- *
- * 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;
- }
-
- /**
- * @return string
- */
- public function getBackupTypeSpec()
- {
- return $this->whichOneof("backup_type_spec");
- }
-
-}
-
diff --git a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/BackupScheduleSpec.php b/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/BackupScheduleSpec.php
deleted file mode 100644
index b78eef7af97d..000000000000
--- a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/BackupScheduleSpec.php
+++ /dev/null
@@ -1,75 +0,0 @@
-google.spanner.admin.database.v1.BackupScheduleSpec
- */
-class BackupScheduleSpec extends \Google\Protobuf\Internal\Message
-{
- protected $schedule_spec;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Cloud\Spanner\Admin\Database\V1\CrontabSpec $cron_spec
- * Cron style schedule specification.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Spanner\Admin\Database\V1\BackupSchedule::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Cron style schedule specification.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.CrontabSpec cron_spec = 1;
- * @return \Google\Cloud\Spanner\Admin\Database\V1\CrontabSpec|null
- */
- public function getCronSpec()
- {
- return $this->readOneof(1);
- }
-
- public function hasCronSpec()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * Cron style schedule specification.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.CrontabSpec cron_spec = 1;
- * @param \Google\Cloud\Spanner\Admin\Database\V1\CrontabSpec $var
- * @return $this
- */
- public function setCronSpec($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Spanner\Admin\Database\V1\CrontabSpec::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getScheduleSpec()
- {
- return $this->whichOneof("schedule_spec");
- }
-
-}
-
diff --git a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/CopyBackupEncryptionConfig.php b/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/CopyBackupEncryptionConfig.php
deleted file mode 100644
index 07325d77c3d1..000000000000
--- a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/CopyBackupEncryptionConfig.php
+++ /dev/null
@@ -1,207 +0,0 @@
-google.spanner.admin.database.v1.CopyBackupEncryptionConfig
- */
-class CopyBackupEncryptionConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The encryption type of the backup.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $encryption_type = 0;
- /**
- * Optional. The Cloud KMS key that will be used to protect the backup.
- * This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
- * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
- * `projects//locations//keyRings//cryptoKeys/`.
- *
- * Generated from protobuf field string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- */
- protected $kms_key_name = '';
- /**
- * Optional. Specifies the KMS configuration for the one or more keys used to
- * protect the backup. Values are of the form
- * `projects//locations//keyRings//cryptoKeys/`.
- * Kms keys specified can be in any order.
- * The keys referenced by kms_key_names must fully cover all
- * regions of the backup's instance configuration. Some examples:
- * * For single region instance configs, specify a single regional
- * location KMS key.
- * * For multi-regional instance configs of type GOOGLE_MANAGED,
- * either specify a multi-regional location KMS key or multiple regional
- * location KMS keys that cover all regions in the instance config.
- * * For an instance config of type USER_MANAGED, please specify only
- * regional location KMS keys to cover each region in the instance config.
- * Multi-regional location KMS keys are not supported for USER_MANAGED
- * instance configs.
- *
- * Generated from protobuf field repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- */
- private $kms_key_names;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $encryption_type
- * Required. The encryption type of the backup.
- * @type string $kms_key_name
- * Optional. The Cloud KMS key that will be used to protect the backup.
- * This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
- * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
- * `projects//locations//keyRings//cryptoKeys/`.
- * @type array|\Google\Protobuf\Internal\RepeatedField $kms_key_names
- * Optional. Specifies the KMS configuration for the one or more keys used to
- * protect the backup. Values are of the form
- * `projects//locations//keyRings//cryptoKeys/`.
- * Kms keys specified can be in any order.
- * The keys referenced by kms_key_names must fully cover all
- * regions of the backup's instance configuration. Some examples:
- * * For single region instance configs, specify a single regional
- * location KMS key.
- * * For multi-regional instance configs of type GOOGLE_MANAGED,
- * either specify a multi-regional location KMS key or multiple regional
- * location KMS keys that cover all regions in the instance config.
- * * For an instance config of type USER_MANAGED, please specify only
- * regional location KMS keys to cover each region in the instance config.
- * Multi-regional location KMS keys are not supported for USER_MANAGED
- * instance configs.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Spanner\Admin\Database\V1\Backup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The encryption type of the backup.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];
- * @return int
- */
- public function getEncryptionType()
- {
- return $this->encryption_type;
- }
-
- /**
- * Required. The encryption type of the backup.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType encryption_type = 1 [(.google.api.field_behavior) = REQUIRED];
- * @param int $var
- * @return $this
- */
- public function setEncryptionType($var)
- {
- GPBUtil::checkEnum($var, \Google\Cloud\Spanner\Admin\Database\V1\CopyBackupEncryptionConfig\EncryptionType::class);
- $this->encryption_type = $var;
-
- return $this;
- }
-
- /**
- * Optional. The Cloud KMS key that will be used to protect the backup.
- * This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
- * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
- * `projects//locations//keyRings//cryptoKeys/`.
- *
- * Generated from protobuf field string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @return string
- */
- public function getKmsKeyName()
- {
- return $this->kms_key_name;
- }
-
- /**
- * Optional. The Cloud KMS key that will be used to protect the backup.
- * This field should be set only when
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
- * is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
- * `projects//locations//keyRings//cryptoKeys/`.
- *
- * Generated from protobuf field string kms_key_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setKmsKeyName($var)
- {
- GPBUtil::checkString($var, True);
- $this->kms_key_name = $var;
-
- return $this;
- }
-
- /**
- * Optional. Specifies the KMS configuration for the one or more keys used to
- * protect the backup. Values are of the form
- * `projects//locations//keyRings//cryptoKeys/`.
- * Kms keys specified can be in any order.
- * The keys referenced by kms_key_names must fully cover all
- * regions of the backup's instance configuration. Some examples:
- * * For single region instance configs, specify a single regional
- * location KMS key.
- * * For multi-regional instance configs of type GOOGLE_MANAGED,
- * either specify a multi-regional location KMS key or multiple regional
- * location KMS keys that cover all regions in the instance config.
- * * For an instance config of type USER_MANAGED, please specify only
- * regional location KMS keys to cover each region in the instance config.
- * Multi-regional location KMS keys are not supported for USER_MANAGED
- * instance configs.
- *
- * Generated from protobuf field repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getKmsKeyNames()
- {
- return $this->kms_key_names;
- }
-
- /**
- * Optional. Specifies the KMS configuration for the one or more keys used to
- * protect the backup. Values are of the form
- * `projects//locations//keyRings//cryptoKeys/`.
- * Kms keys specified can be in any order.
- * The keys referenced by kms_key_names must fully cover all
- * regions of the backup's instance configuration. Some examples:
- * * For single region instance configs, specify a single regional
- * location KMS key.
- * * For multi-regional instance configs of type GOOGLE_MANAGED,
- * either specify a multi-regional location KMS key or multiple regional
- * location KMS keys that cover all regions in the instance config.
- * * For an instance config of type USER_MANAGED, please specify only
- * regional location KMS keys to cover each region in the instance config.
- * Multi-regional location KMS keys are not supported for USER_MANAGED
- * instance configs.
- *
- * Generated from protobuf field repeated string kms_key_names = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = {
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setKmsKeyNames($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->kms_key_names = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/CopyBackupEncryptionConfig/EncryptionType.php b/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/CopyBackupEncryptionConfig/EncryptionType.php
deleted file mode 100644
index 56fa3e3beb2b..000000000000
--- a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/CopyBackupEncryptionConfig/EncryptionType.php
+++ /dev/null
@@ -1,78 +0,0 @@
-google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType
- */
-class EncryptionType
-{
- /**
- * Unspecified. Do not use.
- *
- * Generated from protobuf enum ENCRYPTION_TYPE_UNSPECIFIED = 0;
- */
- const ENCRYPTION_TYPE_UNSPECIFIED = 0;
- /**
- * This is the default option for
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
- * when
- * [encryption_config][google.spanner.admin.database.v1.CopyBackupEncryptionConfig]
- * is not specified. For example, if the source backup is using
- * `Customer_Managed_Encryption`, the backup will be using the same Cloud
- * KMS key as the source backup.
- *
- * Generated from protobuf enum USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = 1;
- */
- const USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = 1;
- /**
- * Use Google default encryption.
- *
- * Generated from protobuf enum GOOGLE_DEFAULT_ENCRYPTION = 2;
- */
- const GOOGLE_DEFAULT_ENCRYPTION = 2;
- /**
- * Use customer managed encryption. If specified, either `kms_key_name` or
- * `kms_key_names` must contain valid Cloud KMS key(s).
- *
- * Generated from protobuf enum CUSTOMER_MANAGED_ENCRYPTION = 3;
- */
- const CUSTOMER_MANAGED_ENCRYPTION = 3;
-
- private static $valueToName = [
- self::ENCRYPTION_TYPE_UNSPECIFIED => 'ENCRYPTION_TYPE_UNSPECIFIED',
- self::USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION => 'USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION',
- self::GOOGLE_DEFAULT_ENCRYPTION => 'GOOGLE_DEFAULT_ENCRYPTION',
- self::CUSTOMER_MANAGED_ENCRYPTION => 'CUSTOMER_MANAGED_ENCRYPTION',
- ];
-
- 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(EncryptionType::class, \Google\Cloud\Spanner\Admin\Database\V1\CopyBackupEncryptionConfig_EncryptionType::class);
-
diff --git a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/CopyBackupMetadata.php b/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/CopyBackupMetadata.php
deleted file mode 100644
index 833787dae626..000000000000
--- a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/CopyBackupMetadata.php
+++ /dev/null
@@ -1,258 +0,0 @@
-google.spanner.admin.database.v1.CopyBackupMetadata
- */
-class CopyBackupMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * The name of the backup being created through the copy operation.
- * Values are of the form
- * `projects//instances//backups/`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = {
- */
- protected $name = '';
- /**
- * The name of the source backup that is being copied.
- * Values are of the form
- * `projects//instances//backups/`.
- *
- * Generated from protobuf field string source_backup = 2 [(.google.api.resource_reference) = {
- */
- protected $source_backup = '';
- /**
- * The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
- * operation.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.OperationProgress progress = 3;
- */
- protected $progress = null;
- /**
- * The time at which cancellation of CopyBackup operation was received.
- * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
- * starts asynchronous cancellation on a long-running operation. The server
- * makes a best effort to cancel the operation, but success is not guaranteed.
- * Clients can use
- * [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
- * other methods to check whether the cancellation succeeded or whether the
- * operation completed despite cancellation. On successful cancellation,
- * the operation is not deleted; instead, it becomes an operation with
- * an [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 .google.protobuf.Timestamp cancel_time = 4;
- */
- protected $cancel_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * The name of the backup being created through the copy operation.
- * Values are of the form
- * `projects//instances//backups/`.
- * @type string $source_backup
- * The name of the source backup that is being copied.
- * Values are of the form
- * `projects//instances//backups/`.
- * @type \Google\Cloud\Spanner\Admin\Database\V1\OperationProgress $progress
- * The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
- * operation.
- * @type \Google\Protobuf\Timestamp $cancel_time
- * The time at which cancellation of CopyBackup operation was received.
- * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
- * starts asynchronous cancellation on a long-running operation. The server
- * makes a best effort to cancel the operation, but success is not guaranteed.
- * Clients can use
- * [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
- * other methods to check whether the cancellation succeeded or whether the
- * operation completed despite cancellation. On successful cancellation,
- * the operation is not deleted; instead, it becomes an operation with
- * an [Operation.error][google.longrunning.Operation.error] value with a
- * [google.rpc.Status.code][google.rpc.Status.code] of 1,
- * corresponding to `Code.CANCELLED`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Spanner\Admin\Database\V1\Backup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The name of the backup being created through the copy operation.
- * Values are of the form
- * `projects//instances//backups/`.
- *
- * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * The name of the backup being created through the copy operation.
- * Values are of the form
- * `projects//instances//backups/`.
- *
- * 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;
- }
-
- /**
- * The name of the source backup that is being copied.
- * Values are of the form
- * `projects//instances//backups/`.
- *
- * Generated from protobuf field string source_backup = 2 [(.google.api.resource_reference) = {
- * @return string
- */
- public function getSourceBackup()
- {
- return $this->source_backup;
- }
-
- /**
- * The name of the source backup that is being copied.
- * Values are of the form
- * `projects//instances//backups/`.
- *
- * Generated from protobuf field string source_backup = 2 [(.google.api.resource_reference) = {
- * @param string $var
- * @return $this
- */
- public function setSourceBackup($var)
- {
- GPBUtil::checkString($var, True);
- $this->source_backup = $var;
-
- return $this;
- }
-
- /**
- * The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
- * operation.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.OperationProgress progress = 3;
- * @return \Google\Cloud\Spanner\Admin\Database\V1\OperationProgress|null
- */
- public function getProgress()
- {
- return $this->progress;
- }
-
- public function hasProgress()
- {
- return isset($this->progress);
- }
-
- public function clearProgress()
- {
- unset($this->progress);
- }
-
- /**
- * The progress of the
- * [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup]
- * operation.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.OperationProgress progress = 3;
- * @param \Google\Cloud\Spanner\Admin\Database\V1\OperationProgress $var
- * @return $this
- */
- public function setProgress($var)
- {
- GPBUtil::checkMessage($var, \Google\Cloud\Spanner\Admin\Database\V1\OperationProgress::class);
- $this->progress = $var;
-
- return $this;
- }
-
- /**
- * The time at which cancellation of CopyBackup operation was received.
- * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
- * starts asynchronous cancellation on a long-running operation. The server
- * makes a best effort to cancel the operation, but success is not guaranteed.
- * Clients can use
- * [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
- * other methods to check whether the cancellation succeeded or whether the
- * operation completed despite cancellation. On successful cancellation,
- * the operation is not deleted; instead, it becomes an operation with
- * an [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 .google.protobuf.Timestamp cancel_time = 4;
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCancelTime()
- {
- return $this->cancel_time;
- }
-
- public function hasCancelTime()
- {
- return isset($this->cancel_time);
- }
-
- public function clearCancelTime()
- {
- unset($this->cancel_time);
- }
-
- /**
- * The time at which cancellation of CopyBackup operation was received.
- * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
- * starts asynchronous cancellation on a long-running operation. The server
- * makes a best effort to cancel the operation, but success is not guaranteed.
- * Clients can use
- * [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
- * other methods to check whether the cancellation succeeded or whether the
- * operation completed despite cancellation. On successful cancellation,
- * the operation is not deleted; instead, it becomes an operation with
- * an [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 .google.protobuf.Timestamp cancel_time = 4;
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCancelTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->cancel_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/CopyBackupRequest.php b/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/CopyBackupRequest.php
deleted file mode 100644
index 8a80683e54fa..000000000000
--- a/owl-bot-staging/Spanner/v1/Admin/Database/v1/proto/src/Google/Cloud/Spanner/Admin/Database/V1/CopyBackupRequest.php
+++ /dev/null
@@ -1,321 +0,0 @@
-google.spanner.admin.database.v1.CopyBackupRequest
- */
-class CopyBackupRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Required. The name of the destination instance that will contain the backup
- * copy. Values are of the form: `projects//instances/`.
- *
- * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $parent = '';
- /**
- * Required. The id of the backup copy.
- * The `backup_id` appended to `parent` forms the full backup_uri of the form
- * `projects//instances//backups/`.
- *
- * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $backup_id = '';
- /**
- * Required. The source backup to be copied.
- * The source backup needs to be in READY state for it to be copied.
- * Once CopyBackup is in progress, the source backup cannot be deleted or
- * cleaned up on expiration until CopyBackup is finished.
- * Values are of the form:
- * `projects//instances//backups/`.
- *
- * Generated from protobuf field string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
- */
- protected $source_backup = '';
- /**
- * Required. The expiration time of the backup in microsecond granularity.
- * The expiration time must be at least 6 hours and at most 366 days
- * from the `create_time` of the source backup. Once the `expire_time` has
- * passed, the backup is eligible to be automatically deleted by Cloud Spanner
- * to free the resources used by the backup.
- *
- * Generated from protobuf field .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED];
- */
- protected $expire_time = null;
- /**
- * Optional. The encryption configuration used to encrypt the backup. If this
- * field is not specified, the backup will use the same encryption
- * configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
- * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
- *
- * Generated from protobuf field .google.spanner.admin.database.v1.CopyBackupEncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];
- */
- protected $encryption_config = null;
-
- /**
- * @param string $parent Required. The name of the destination instance that will contain the backup
- * copy. Values are of the form: `projects//instances/`. Please see
- * {@see DatabaseAdminClient::instanceName()} for help formatting this field.
- * @param string $backupId Required. The id of the backup copy.
- * The `backup_id` appended to `parent` forms the full backup_uri of the form
- * `projects//instances//backups/`.
- * @param string $sourceBackup Required. The source backup to be copied.
- * The source backup needs to be in READY state for it to be copied.
- * Once CopyBackup is in progress, the source backup cannot be deleted or
- * cleaned up on expiration until CopyBackup is finished.
- * Values are of the form:
- * `projects//instances//backups/`. Please see
- * {@see DatabaseAdminClient::backupName()} for help formatting this field.
- * @param \Google\Protobuf\Timestamp $expireTime Required. The expiration time of the backup in microsecond granularity.
- * The expiration time must be at least 6 hours and at most 366 days
- * from the `create_time` of the source backup. Once the `expire_time` has
- * passed, the backup is eligible to be automatically deleted by Cloud Spanner
- * to free the resources used by the backup.
- *
- * @return \Google\Cloud\Spanner\Admin\Database\V1\CopyBackupRequest
- *
- * @experimental
- */
- public static function build(string $parent, string $backupId, string $sourceBackup, \Google\Protobuf\Timestamp $expireTime): self
- {
- return (new self())
- ->setParent($parent)
- ->setBackupId($backupId)
- ->setSourceBackup($sourceBackup)
- ->setExpireTime($expireTime);
- }
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $parent
- * Required. The name of the destination instance that will contain the backup
- * copy. Values are of the form: `projects//instances/`.
- * @type string $backup_id
- * Required. The id of the backup copy.
- * The `backup_id` appended to `parent` forms the full backup_uri of the form
- * `projects//instances//backups/`.
- * @type string $source_backup
- * Required. The source backup to be copied.
- * The source backup needs to be in READY state for it to be copied.
- * Once CopyBackup is in progress, the source backup cannot be deleted or
- * cleaned up on expiration until CopyBackup is finished.
- * Values are of the form:
- * `projects//instances//backups/`.
- * @type \Google\Protobuf\Timestamp $expire_time
- * Required. The expiration time of the backup in microsecond granularity.
- * The expiration time must be at least 6 hours and at most 366 days
- * from the `create_time` of the source backup. Once the `expire_time` has
- * passed, the backup is eligible to be automatically deleted by Cloud Spanner
- * to free the resources used by the backup.
- * @type \Google\Cloud\Spanner\Admin\Database\V1\CopyBackupEncryptionConfig $encryption_config
- * Optional. The encryption configuration used to encrypt the backup. If this
- * field is not specified, the backup will use the same encryption
- * configuration as the source backup by default, namely
- * [encryption_type][google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type]
- * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Google\Spanner\Admin\Database\V1\Backup::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Required. The name of the destination instance that will contain the backup
- * copy. Values are of the form: `projects//instances/`.
- *
- * 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 name of the destination instance that will contain the backup
- * copy. Values are of the form: `projects//instances/