diff --git a/README.md b/README.md index d6e321fc595..2d74ad3c5d5 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.51.0') +implementation platform('com.google.cloud:libraries-bom:26.52.0') implementation 'com.google.cloud:google-cloud-spanner' ``` diff --git a/generation_config.yaml b/generation_config.yaml index ec32505fcca..9123f338f53 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ gapic_generator_version: 2.51.0 -googleapis_commitish: f4eff5440fd07389f820d22d2a55690c6390dc6d -libraries_bom_version: 26.51.0 +googleapis_commitish: 67495ab130490fec112841715649b86a7d335e6a +libraries_bom_version: 26.52.0 libraries: - api_shortname: spanner name_pretty: Cloud Spanner diff --git a/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json b/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json index b3291f2748a..25668dd3de8 100644 --- a/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json +++ b/google-cloud-spanner-executor/src/main/resources/META-INF/native-image/com.google.cloud.spanner.executor.v1/reflect-config.json @@ -2978,6 +2978,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.spanner.admin.instance.v1.FreeInstanceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.FreeInstanceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.FreeInstanceMetadata$ExpireBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.spanner.admin.instance.v1.FulfillmentPeriod", "queryAllDeclaredConstructors": true, @@ -3077,6 +3104,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.spanner.admin.instance.v1.Instance$InstanceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.spanner.admin.instance.v1.Instance$State", "queryAllDeclaredConstructors": true, @@ -3104,6 +3140,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig$FreeInstanceAvailability", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig$QuorumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.spanner.admin.instance.v1.InstanceConfig$State", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java index 8a7e12b50e7..53432393f48 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java @@ -130,7 +130,8 @@ * *
ListInstanceConfigs
Lists the supported instance configurations for a given project.
Lists the supported instance configurations for a given project. + *
Returns both Google-managed configurations and user-managed configurations.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateInstanceConfig
Creates an instance configuration and begins preparing it to be used. The returned [long-running operation][google.longrunning.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, `CreateInstanceConfig` returns `ALREADY_EXISTS`. + *
Creates an instance configuration and begins preparing it to be used. The 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, `CreateInstanceConfig` returns `ALREADY_EXISTS`. *
Immediately after the request returns: *
* The instance configuration is readable via the API, with all requested attributes. The instance configuration's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] field is set to true. Its state is `CREATING`. *
While the operation is pending: *
* Cancelling the operation renders the instance configuration immediately unreadable via the API. * Except for deleting the creating resource, all other attempts to modify the instance configuration are rejected. *
Upon completion of the returned operation: *
* Instances can be created using the instance configuration. * The instance configuration's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] field becomes false. Its state becomes `READY`. - *
The returned [long-running operation][google.longrunning.Operation] will have a name of the format `<instance_config_name>/operations/<operation_id>` and can be used to track creation of the instance configuration. The [metadata][google.longrunning.Operation.metadata] field type is [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata]. The [response][google.longrunning.Operation.response] field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. + *
The returned long-running operation will have a name of the format `<instance_config_name>/operations/<operation_id>` and can be used to track creation of the instance configuration. The metadata field type is [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata]. The response field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. *
Authorization requires `spanner.instanceConfigs.create` permission on the resource [parent][google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent].
Request object method variants only take one parameter, a request object, which must be constructed before the call.
@@ -197,7 +198,7 @@ *UpdateInstanceConfig
Updates an instance configuration. The returned [long-running operation][google.longrunning.Operation] can be used to track the progress of updating the instance. If the named instance configuration does not exist, returns `NOT_FOUND`. + *
Updates an instance configuration. The returned 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`. *
Only user-managed configurations can be updated. *
Immediately after the request returns: *
* The instance configuration's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] field is set to true. @@ -205,7 +206,7 @@ *
* Cancelling the operation sets its metadata's [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.cancel_time]. The operation is guaranteed to succeed at undoing all changes, after which point it terminates with a `CANCELLED` status. * All other attempts to modify the instance configuration are rejected. * Reading the instance configuration via the API continues to give the pre-request values. *
Upon completion of the returned operation: *
* Creating instances using the instance configuration uses the new values. * The new values of the instance configuration are readable via the API. * The instance configuration's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] field becomes false. - *
The returned [long-running operation][google.longrunning.Operation] will have a name of the format `<instance_config_name>/operations/<operation_id>` and can be used to track the instance configuration modification. The [metadata][google.longrunning.Operation.metadata] field type is [UpdateInstanceConfigMetadata][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata]. The [response][google.longrunning.Operation.response] field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. + *
The returned long-running operation will have a name of the format `<instance_config_name>/operations/<operation_id>` and can be used to track the instance configuration modification. The metadata field type is [UpdateInstanceConfigMetadata][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata]. The response field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. *
Authorization requires `spanner.instanceConfigs.update` permission on the resource [name][google.spanner.admin.instance.v1.InstanceConfig.name].
Request object method variants only take one parameter, a request object, which must be constructed before the call.
@@ -246,7 +247,7 @@ *ListInstanceConfigOperations
Lists the user-managed instance configuration [long-running operations][google.longrunning.Operation] in the given project. An instance configuration operation has a name of the form `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`. The long-running operation [metadata][google.longrunning.Operation.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 `operation.metadata.value.start_time` in descending order starting from the most recently started operation.
Lists the user-managed instance configuration long-running operations in the given project. An instance configuration operation has a name of the form `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`. The long-running operation 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 `operation.metadata.value.start_time` in descending order starting from the most recently started operation.
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*CreateInstance
Creates an instance and begins preparing it to begin serving. The returned [long-running operation][google.longrunning.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 `ALREADY_EXISTS`. + *
Creates an instance and begins preparing it to begin serving. The 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 `ALREADY_EXISTS`. *
Immediately upon completion of this request: *
* The instance is readable via the API, with all requested attributes but no allocated resources. Its state is `CREATING`. *
Until completion of the returned operation: *
* Cancelling the operation renders the instance immediately unreadable via the API. * The instance can be deleted. * All other attempts to modify the instance are rejected. *
Upon completion of the returned operation: *
* Billing for all successfully-allocated resources begins (some types may have lower than the requested levels). * Databases can be created in the instance. * 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 have a name of the format `<instance_name>/operations/<operation_id>` and can be used to track creation of the instance. The [metadata][google.longrunning.Operation.metadata] field type is [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata]. The [response][google.longrunning.Operation.response] field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful.
The returned long-running operation will have a name of the format `<instance_name>/operations/<operation_id>` and can be used to track creation of the instance. The metadata field type is [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata]. The response field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. *
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdateInstance
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 progress of updating the instance. If the named instance does not exist, returns `NOT_FOUND`. + *
Updates an instance, and begins allocating or releasing resources 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`. *
Immediately upon completion of this request: *
* For resource types for which a decrease in the instance's allocation has been requested, billing is based on the newly-requested level. *
Until completion of the returned operation: *
* Cancelling the operation sets its metadata's [cancel_time][google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time], and begins restoring resources to their pre-request values. The operation is guaranteed to succeed at undoing all resource changes, after which point it terminates with a `CANCELLED` status. * All other attempts to modify the instance are rejected. * Reading the instance via the API continues to give the pre-request resource levels. *
Upon completion of the returned operation: *
* Billing begins for all successfully-allocated resources (some types may have lower than the requested levels). * All newly-reserved resources are available for serving the instance's tables. * The instance's new resource levels are readable via the API. - *
The returned [long-running operation][google.longrunning.Operation] will have a name of the format `<instance_name>/operations/<operation_id>` and can be used to track the instance modification. The [metadata][google.longrunning.Operation.metadata] field type is [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata]. The [response][google.longrunning.Operation.response] field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. + *
The returned long-running operation will have a name of the format `<instance_name>/operations/<operation_id>` and can be used to track the instance modification. The metadata field type is [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata]. The response field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. *
Authorization requires `spanner.instances.update` permission on the resource [name][google.spanner.admin.instance.v1.Instance.name].
Request object method variants only take one parameter, a request object, which must be constructed before the call.
@@ -481,14 +482,14 @@ *CreateInstancePartition
Creates an instance partition and begins preparing it to be used. The returned [long-running operation][google.longrunning.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 `ALREADY_EXISTS`. + *
Creates an instance partition and begins preparing it to be used. The 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 `ALREADY_EXISTS`. *
Immediately upon completion of this request: *
* The instance partition is readable via the API, with all requested attributes but no allocated resources. Its state is `CREATING`. *
Until completion of the returned operation: *
* Cancelling the operation renders the instance partition immediately unreadable via the API. * The instance partition can be deleted. * All other attempts to modify the instance partition are rejected. *
Upon completion of the returned operation: *
* Billing for all successfully-allocated resources begins (some types may have lower than the requested levels). * Databases can start using this instance partition. * The instance partition's allocated resource levels are readable via the API. * The instance partition's state becomes `READY`. - *
The returned [long-running operation][google.longrunning.Operation] will have a name of the format `<instance_partition_name>/operations/<operation_id>` and can be used to track creation of the instance partition. The [metadata][google.longrunning.Operation.metadata] field type is [CreateInstancePartitionMetadata][google.spanner.admin.instance.v1.CreateInstancePartitionMetadata]. The [response][google.longrunning.Operation.response] field type is [InstancePartition][google.spanner.admin.instance.v1.InstancePartition], if successful.
The returned long-running operation will have a name of the format `<instance_partition_name>/operations/<operation_id>` and can be used to track creation of the instance partition. The metadata field type is [CreateInstancePartitionMetadata][google.spanner.admin.instance.v1.CreateInstancePartitionMetadata]. The response field type is [InstancePartition][google.spanner.admin.instance.v1.InstancePartition], if successful. *
Request object method variants only take one parameter, a request object, which must be constructed before the call.
*UpdateInstancePartition
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 progress of updating the instance partition. If the named instance partition does not exist, returns `NOT_FOUND`. + *
Updates an instance partition, and begins allocating or releasing resources 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`. *
Immediately upon completion of this request: *
* For resource types for which a decrease in the instance partition's allocation has been requested, billing is based on the newly-requested level. *
Until completion of the returned operation: *
* Cancelling the operation sets its metadata's [cancel_time][google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata.cancel_time], and begins restoring resources to their pre-request values. The operation is guaranteed to succeed at undoing all resource changes, after which point it terminates with a `CANCELLED` status. * All other attempts to modify the instance partition are rejected. * Reading the instance partition via the API continues to give the pre-request resource levels. *
Upon completion of the returned operation: *
* Billing begins for all successfully-allocated resources (some types may have lower than the requested levels). * All newly-reserved resources are available for serving the instance partition's tables. * The instance partition's new resource levels are readable via the API. - *
The returned [long-running operation][google.longrunning.Operation] will have a name of the format `<instance_partition_name>/operations/<operation_id>` and can be used to track the instance partition modification. The [metadata][google.longrunning.Operation.metadata] field type is [UpdateInstancePartitionMetadata][google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata]. The [response][google.longrunning.Operation.response] field type is [InstancePartition][google.spanner.admin.instance.v1.InstancePartition], if successful. + *
The returned long-running operation will have a name of the format `<instance_partition_name>/operations/<operation_id>` and can be used to track the instance partition modification. The metadata field type is [UpdateInstancePartitionMetadata][google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata]. The response field type is [InstancePartition][google.spanner.admin.instance.v1.InstancePartition], if successful. *
Authorization requires `spanner.instancePartitions.update` permission on the resource [name][google.spanner.admin.instance.v1.InstancePartition.name].
Request object method variants only take one parameter, a request object, which must be constructed before the call.
@@ -555,7 +556,7 @@ *ListInstancePartitionOperations
Lists instance partition [long-running operations][google.longrunning.Operation] in the given instance. An instance partition operation has a name of the form `projects/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`. The long-running operation [metadata][google.longrunning.Operation.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 `operation.metadata.value.start_time` in descending order starting from the most recently started operation. + *
Lists instance partition long-running operations in the given instance. An instance partition operation has a name of the form `projects/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`. The long-running operation 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 `operation.metadata.value.start_time` in descending order starting from the most recently started operation. *
Authorization requires `spanner.instancePartitionOperations.list` permission on the resource [parent][google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest.parent].
Request object method variants only take one parameter, a request object, which must be constructed before the call.
@@ -576,14 +577,14 @@ *MoveInstance
Moves an instance to the target instance configuration. You can use the returned [long-running operation][google.longrunning.Operation] to track the progress of moving the instance. + *
Moves an instance to the target instance configuration. You can use the returned long-running operation to track the progress of moving the instance. *
`MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of the following criteria: *
* Is undergoing a move to a different instance configuration * Has backups * Has an ongoing update * Contains any CMEK-enabled databases * Is a free trial instance *
While the operation is pending: *
* All other attempts to modify the instance, including changes to its compute capacity, are rejected. * The following database and backup admin operations are rejected: *
* `DatabaseAdmin.CreateDatabase` * `DatabaseAdmin.UpdateDatabaseDdl` (disabled if default_leader is specified in the request.) * `DatabaseAdmin.RestoreDatabase` * `DatabaseAdmin.CreateBackup` * `DatabaseAdmin.CopyBackup` *
* Both the source and target instance configurations are subject to hourly compute and storage charges. * The instance might experience higher read-write latencies and a higher transaction abort rate. However, moving an instance doesn't cause any downtime. - *
The returned [long-running operation][google.longrunning.Operation] has a name of the format `<instance_name>/operations/<operation_id>` and can be used to track the move instance operation. The [metadata][google.longrunning.Operation.metadata] field type is [MoveInstanceMetadata][google.spanner.admin.instance.v1.MoveInstanceMetadata]. The [response][google.longrunning.Operation.response] field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. Cancelling the operation sets its metadata's [cancel_time][google.spanner.admin.instance.v1.MoveInstanceMetadata.cancel_time]. Cancellation is not immediate because it involves moving any data previously moved to the target instance configuration back to the original instance configuration. You can use this operation to track the progress of the cancellation. Upon successful completion of the cancellation, the operation terminates with `CANCELLED` status. + *
The returned long-running operation has a name of the format `<instance_name>/operations/<operation_id>` and can be used to track the move instance operation. The metadata field type is [MoveInstanceMetadata][google.spanner.admin.instance.v1.MoveInstanceMetadata]. The response field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. Cancelling the operation sets its metadata's [cancel_time][google.spanner.admin.instance.v1.MoveInstanceMetadata.cancel_time]. Cancellation is not immediate because it involves moving any data previously moved to the target instance configuration back to the original instance configuration. You can use this operation to track the progress of the cancellation. Upon successful completion of the cancellation, the operation terminates with `CANCELLED` status. *
If not cancelled, upon completion of the returned operation: *
* The instance successfully moves to the target instance configuration. * You are billed for compute and storage in target instance configuration. *
Authorization requires the `spanner.instances.update` permission on the resource [instance][google.spanner.admin.instance.v1.Instance]. @@ -734,6 +735,8 @@ public final OperationsClient getHttpJsonOperationsClient() { /** * Lists the supported instance configurations for a given project. * + *
Returns both Google-managed configurations and user-managed configurations. + * *
Sample code: * *
{@code @@ -766,6 +769,8 @@ public final ListInstanceConfigsPagedResponse listInstanceConfigs(ProjectName pa /** * Lists the supported instance configurations for a given project. * + *Returns both Google-managed configurations and user-managed configurations. + * *
Sample code: * *
{@code @@ -796,6 +801,8 @@ public final ListInstanceConfigsPagedResponse listInstanceConfigs(String parent) /** * Lists the supported instance configurations for a given project. * + *Returns both Google-managed configurations and user-managed configurations. + * *
Sample code: * *
{@code @@ -829,6 +836,8 @@ public final ListInstanceConfigsPagedResponse listInstanceConfigs( /** * Lists the supported instance configurations for a given project. * + *Returns both Google-managed configurations and user-managed configurations. + * *
Sample code: * *
{@code @@ -862,6 +871,8 @@ public final ListInstanceConfigsPagedResponse listInstanceConfigs( /** * Lists the supported instance configurations for a given project. * + ** * @param parent Required. The instance whose instance partitions should be listed. Values are of - * the form `projects/<project>/instances/<instance>`. + * the form `projects/<project>/instances/<instance>`. Use `{instance} = '-'` to + * list instance partitions for all Instances in a project, e.g., + * `projects/myproject/instances/-`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListInstancePartitionsPagedResponse listInstancePartitions(String parent) { @@ -2475,10 +2471,10 @@ public final UnaryCallableReturns both Google-managed configurations and user-managed configurations. + * *
Sample code: * *
{@code @@ -1013,11 +1024,10 @@ public final UnaryCallable* * @param parent Required. The instance whose instance partitions should be listed. Values are of - * the form `projects/<project>/instances/<instance>`. + * the form `projects/<project>/instances/<instance>`. Use `{instance} = '-'` to + * list instance partitions for all Instances in a project, e.g., + * `projects/myproject/instances/-`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListInstancePartitionsPagedResponse listInstancePartitions(InstanceName parent) { @@ -2242,7 +2236,9 @@ public final ListInstancePartitionsPagedResponse listInstancePartitions(Instance * }getInstance // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance configuration and begins preparing it to be used. The returned - * [long-running operation][google.longrunning.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, `CreateInstanceConfig` returns - * `ALREADY_EXISTS`. + * Creates an instance configuration and begins preparing it to be used. The 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, `CreateInstanceConfig` returns `ALREADY_EXISTS`. * * Immediately after the request returns: * @@ -1038,13 +1048,12 @@ public final UnaryCallable
getInstance * configuration's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] * field becomes false. Its state becomes `READY`. * - * The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_config_name>/operations/<operation_id>` and can be used to track - * creation of the instance configuration. The [metadata][google.longrunning.Operation.metadata] - * field type is + *
The returned long-running operation will have a name of the format + * `<instance_config_name>/operations/<operation_id>` and can be used to track + * creation of the instance configuration. The metadata field type is * [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata]. - * The [response][google.longrunning.Operation.response] field type is - * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. + * The response field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], + * if successful. * *
Authorization requires `spanner.instanceConfigs.create` permission on the resource * [parent][google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent]. @@ -1070,9 +1079,9 @@ public final UnaryCallable
getInstance * * @param parent Required. The name of the project in which to create the instance configuration. * Values are of the form `projects/<project>`. - * @param instanceConfig Required. The InstanceConfig proto of the configuration to create. - * instance_config.name must be `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, e.g. + * @param instanceConfig Required. The `InstanceConfig` proto of the configuration to create. + * `instance_config.name` must be `<parent>/instanceConfigs/<instance_config_id>`. + * `instance_config.base_config` must be a Google-managed configuration name, e.g. * <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * @param 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 @@ -1094,11 +1103,10 @@ public final UnaryCallable getInstance // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance configuration and begins preparing it to be used. The returned - * [long-running operation][google.longrunning.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, `CreateInstanceConfig` returns - * `ALREADY_EXISTS`. + * Creates an instance configuration and begins preparing it to be used. The 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, `CreateInstanceConfig` returns `ALREADY_EXISTS`. * * Immediately after the request returns: * @@ -1119,13 +1127,12 @@ public final UnaryCallable
getInstance * configuration's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] * field becomes false. Its state becomes `READY`. * - * The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_config_name>/operations/<operation_id>` and can be used to track - * creation of the instance configuration. The [metadata][google.longrunning.Operation.metadata] - * field type is + *
The returned long-running operation will have a name of the format + * `<instance_config_name>/operations/<operation_id>` and can be used to track + * creation of the instance configuration. The metadata field type is * [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata]. - * The [response][google.longrunning.Operation.response] field type is - * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. + * The response field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], + * if successful. * *
Authorization requires `spanner.instanceConfigs.create` permission on the resource * [parent][google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent]. @@ -1151,9 +1158,9 @@ public final UnaryCallable
getInstance * * @param parent Required. The name of the project in which to create the instance configuration. * Values are of the form `projects/<project>`. - * @param instanceConfig Required. The InstanceConfig proto of the configuration to create. - * instance_config.name must be `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, e.g. + * @param instanceConfig Required. The `InstanceConfig` proto of the configuration to create. + * `instance_config.name` must be `<parent>/instanceConfigs/<instance_config_id>`. + * `instance_config.base_config` must be a Google-managed configuration name, e.g. * <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. * @param 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 @@ -1175,11 +1182,10 @@ public final UnaryCallable getInstance // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance configuration and begins preparing it to be used. The returned - * [long-running operation][google.longrunning.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, `CreateInstanceConfig` returns - * `ALREADY_EXISTS`. + * Creates an instance configuration and begins preparing it to be used. The 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, `CreateInstanceConfig` returns `ALREADY_EXISTS`. * * Immediately after the request returns: * @@ -1200,13 +1206,12 @@ public final UnaryCallable
getInstance * configuration's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] * field becomes false. Its state becomes `READY`. * - * The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_config_name>/operations/<operation_id>` and can be used to track - * creation of the instance configuration. The [metadata][google.longrunning.Operation.metadata] - * field type is + *
The returned long-running operation will have a name of the format + * `<instance_config_name>/operations/<operation_id>` and can be used to track + * creation of the instance configuration. The metadata field type is * [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata]. - * The [response][google.longrunning.Operation.response] field type is - * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. + * The response field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], + * if successful. * *
Authorization requires `spanner.instanceConfigs.create` permission on the resource * [parent][google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent]. @@ -1241,11 +1246,10 @@ public final UnaryCallable
getInstance // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance configuration and begins preparing it to be used. The returned - * [long-running operation][google.longrunning.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, `CreateInstanceConfig` returns - * `ALREADY_EXISTS`. + * Creates an instance configuration and begins preparing it to be used. The 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, `CreateInstanceConfig` returns `ALREADY_EXISTS`. * * Immediately after the request returns: * @@ -1266,13 +1270,12 @@ public final UnaryCallable
getInstance * configuration's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] * field becomes false. Its state becomes `READY`. * - * The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_config_name>/operations/<operation_id>` and can be used to track - * creation of the instance configuration. The [metadata][google.longrunning.Operation.metadata] - * field type is + *
The returned long-running operation will have a name of the format + * `<instance_config_name>/operations/<operation_id>` and can be used to track + * creation of the instance configuration. The metadata field type is * [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata]. - * The [response][google.longrunning.Operation.response] field type is - * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. + * The response field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], + * if successful. * *
Authorization requires `spanner.instanceConfigs.create` permission on the resource * [parent][google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent]. @@ -1308,11 +1311,10 @@ public final UnaryCallable
getInstance // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance configuration and begins preparing it to be used. The returned - * [long-running operation][google.longrunning.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, `CreateInstanceConfig` returns - * `ALREADY_EXISTS`. + * Creates an instance configuration and begins preparing it to be used. The 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, `CreateInstanceConfig` returns `ALREADY_EXISTS`. * * Immediately after the request returns: * @@ -1333,13 +1335,12 @@ public final UnaryCallable
getInstance * configuration's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] * field becomes false. Its state becomes `READY`. * - * The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_config_name>/operations/<operation_id>` and can be used to track - * creation of the instance configuration. The [metadata][google.longrunning.Operation.metadata] - * field type is + *
The returned long-running operation will have a name of the format + * `<instance_config_name>/operations/<operation_id>` and can be used to track + * creation of the instance configuration. The metadata field type is * [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata]. - * The [response][google.longrunning.Operation.response] field type is - * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. + * The response field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], + * if successful. * *
Authorization requires `spanner.instanceConfigs.create` permission on the resource * [parent][google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent]. @@ -1374,9 +1375,9 @@ public final UnaryCallable
getInstance // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an instance configuration. The returned [long-running - * operation][google.longrunning.Operation] can be used to track the progress of updating the - * instance. If the named instance configuration does not exist, returns `NOT_FOUND`. + * Updates an instance configuration. The returned 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`. * * Only user-managed configurations can be updated. * @@ -1402,13 +1403,12 @@ public final UnaryCallable
getInstance * configuration's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] * field becomes false. * - * The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_config_name>/operations/<operation_id>` and can be used to track - * the instance configuration modification. The [metadata][google.longrunning.Operation.metadata] - * field type is + *
The returned long-running operation will have a name of the format + * `<instance_config_name>/operations/<operation_id>` and can be used to track the + * instance configuration modification. The metadata field type is * [UpdateInstanceConfigMetadata][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata]. - * The [response][google.longrunning.Operation.response] field type is - * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. + * The response field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], + * if successful. * *
Authorization requires `spanner.instanceConfigs.update` permission on the resource * [name][google.spanner.admin.instance.v1.InstanceConfig.name]. @@ -1454,9 +1454,9 @@ public final UnaryCallable
getInstance // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an instance configuration. The returned [long-running - * operation][google.longrunning.Operation] can be used to track the progress of updating the - * instance. If the named instance configuration does not exist, returns `NOT_FOUND`. + * Updates an instance configuration. The returned 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`. * * Only user-managed configurations can be updated. * @@ -1482,13 +1482,12 @@ public final UnaryCallable
getInstance * configuration's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] * field becomes false. * - * The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_config_name>/operations/<operation_id>` and can be used to track - * the instance configuration modification. The [metadata][google.longrunning.Operation.metadata] - * field type is + *
The returned long-running operation will have a name of the format + * `<instance_config_name>/operations/<operation_id>` and can be used to track the + * instance configuration modification. The metadata field type is * [UpdateInstanceConfigMetadata][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata]. - * The [response][google.longrunning.Operation.response] field type is - * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. + * The response field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], + * if successful. * *
Authorization requires `spanner.instanceConfigs.update` permission on the resource * [name][google.spanner.admin.instance.v1.InstanceConfig.name]. @@ -1522,9 +1521,9 @@ public final UnaryCallable
getInstance // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an instance configuration. The returned [long-running - * operation][google.longrunning.Operation] can be used to track the progress of updating the - * instance. If the named instance configuration does not exist, returns `NOT_FOUND`. + * Updates an instance configuration. The returned 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`. * * Only user-managed configurations can be updated. * @@ -1550,13 +1549,12 @@ public final UnaryCallable
getInstance * configuration's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] * field becomes false. * - * The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_config_name>/operations/<operation_id>` and can be used to track - * the instance configuration modification. The [metadata][google.longrunning.Operation.metadata] - * field type is + *
The returned long-running operation will have a name of the format + * `<instance_config_name>/operations/<operation_id>` and can be used to track the + * instance configuration modification. The metadata field type is * [UpdateInstanceConfigMetadata][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata]. - * The [response][google.longrunning.Operation.response] field type is - * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. + * The response field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], + * if successful. * *
Authorization requires `spanner.instanceConfigs.update` permission on the resource * [name][google.spanner.admin.instance.v1.InstanceConfig.name]. @@ -1591,9 +1589,9 @@ public final UnaryCallable
getInstance // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates an instance configuration. The returned [long-running - * operation][google.longrunning.Operation] can be used to track the progress of updating the - * instance. If the named instance configuration does not exist, returns `NOT_FOUND`. + * Updates an instance configuration. The returned 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`. * * Only user-managed configurations can be updated. * @@ -1619,13 +1617,12 @@ public final UnaryCallable
getInstance * configuration's [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling] * field becomes false. * - * The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_config_name>/operations/<operation_id>` and can be used to track - * the instance configuration modification. The [metadata][google.longrunning.Operation.metadata] - * field type is + *
The returned long-running operation will have a name of the format + * `<instance_config_name>/operations/<operation_id>` and can be used to track the + * instance configuration modification. The metadata field type is * [UpdateInstanceConfigMetadata][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata]. - * The [response][google.longrunning.Operation.response] field type is - * [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if successful. + * The response field type is [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], + * if successful. * *
Authorization requires `spanner.instanceConfigs.update` permission on the resource * [name][google.spanner.admin.instance.v1.InstanceConfig.name]. @@ -1801,15 +1798,14 @@ public final UnaryCallable
deleteInstanceCon // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the user-managed instance configuration [long-running - * operations][google.longrunning.Operation] in the given project. An instance configuration - * operation has a name of the form + * Lists the user-managed instance configuration long-running operations in the given project. An + * instance configuration operation has a name of the form * `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`. - * The long-running operation [metadata][google.longrunning.Operation.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 `operation.metadata.value.start_time` in descending order starting from - * the most recently started operation. + * The long-running operation 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 + * `operation.metadata.value.start_time` in descending order starting from the most recently + * started operation. * * Sample code: * @@ -1843,15 +1839,14 @@ public final ListInstanceConfigOperationsPagedResponse listInstanceConfigOperati // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the user-managed instance configuration [long-running - * operations][google.longrunning.Operation] in the given project. An instance configuration - * operation has a name of the form + * Lists the user-managed instance configuration long-running operations in the given project. An + * instance configuration operation has a name of the form * `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`. - * The long-running operation [metadata][google.longrunning.Operation.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 `operation.metadata.value.start_time` in descending order starting from - * the most recently started operation. + * The long-running operation 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 + * `operation.metadata.value.start_time` in descending order starting from the most recently + * started operation. * *
Sample code: * @@ -1883,15 +1878,14 @@ public final ListInstanceConfigOperationsPagedResponse listInstanceConfigOperati // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the user-managed instance configuration [long-running - * operations][google.longrunning.Operation] in the given project. An instance configuration - * operation has a name of the form + * Lists the user-managed instance configuration long-running operations in the given project. An + * instance configuration operation has a name of the form * `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`. - * The long-running operation [metadata][google.longrunning.Operation.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 `operation.metadata.value.start_time` in descending order starting from - * the most recently started operation. + * The long-running operation 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 + * `operation.metadata.value.start_time` in descending order starting from the most recently + * started operation. * *
Sample code: * @@ -1926,15 +1920,14 @@ public final ListInstanceConfigOperationsPagedResponse listInstanceConfigOperati // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the user-managed instance configuration [long-running - * operations][google.longrunning.Operation] in the given project. An instance configuration - * operation has a name of the form + * Lists the user-managed instance configuration long-running operations in the given project. An + * instance configuration operation has a name of the form * `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`. - * The long-running operation [metadata][google.longrunning.Operation.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 `operation.metadata.value.start_time` in descending order starting from - * the most recently started operation. + * The long-running operation 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 + * `operation.metadata.value.start_time` in descending order starting from the most recently + * started operation. * *
Sample code: * @@ -1969,15 +1962,14 @@ public final ListInstanceConfigOperationsPagedResponse listInstanceConfigOperati // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists the user-managed instance configuration [long-running - * operations][google.longrunning.Operation] in the given project. An instance configuration - * operation has a name of the form + * Lists the user-managed instance configuration long-running operations in the given project. An + * instance configuration operation has a name of the form * `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`. - * The long-running operation [metadata][google.longrunning.Operation.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 `operation.metadata.value.start_time` in descending order starting from - * the most recently started operation. + * The long-running operation 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 + * `operation.metadata.value.start_time` in descending order starting from the most recently + * started operation. * *
Sample code: * @@ -2209,7 +2201,9 @@ public final UnaryCallable
listInst * } getInstanceCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance and begins preparing it to begin serving. The returned [long-running - * operation][google.longrunning.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 `ALREADY_EXISTS`. + * Creates an instance and begins preparing it to begin serving. The 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 + * `ALREADY_EXISTS`. * * Immediately upon completion of this request: * @@ -2498,12 +2494,11 @@ public final UnaryCallable
getInstanceCallable() { * 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 have a name of the - * format `<instance_name>/operations/<operation_id>` and can be used to track - * creation of the instance. The [metadata][google.longrunning.Operation.metadata] field type is - * [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata]. The - * [response][google.longrunning.Operation.response] field type is - * [Instance][google.spanner.admin.instance.v1.Instance], if successful. + *
The returned long-running operation will have a name of the format + * `<instance_name>/operations/<operation_id>` and can be used to track creation of + * the instance. The metadata field type is + * [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata]. The response + * field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. * *
Sample code: * @@ -2543,10 +2538,10 @@ public final OperationFuture
createInstanceAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance and begins preparing it to begin serving. The returned [long-running - * operation][google.longrunning.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 `ALREADY_EXISTS`. + * Creates an instance and begins preparing it to begin serving. The 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 + * `ALREADY_EXISTS`. * * Immediately upon completion of this request: * @@ -2566,12 +2561,11 @@ public final OperationFuture
createInstanceAsy * 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 have a name of the - * format `<instance_name>/operations/<operation_id>` and can be used to track - * creation of the instance. The [metadata][google.longrunning.Operation.metadata] field type is - * [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata]. The - * [response][google.longrunning.Operation.response] field type is - * [Instance][google.spanner.admin.instance.v1.Instance], if successful. + *
The returned long-running operation will have a name of the format + * `<instance_name>/operations/<operation_id>` and can be used to track creation of + * the instance. The metadata field type is + * [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata]. The response + * field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. * *
Sample code: * @@ -2611,10 +2605,10 @@ public final OperationFuture
createInstanceAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance and begins preparing it to begin serving. The returned [long-running - * operation][google.longrunning.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 `ALREADY_EXISTS`. + * Creates an instance and begins preparing it to begin serving. The 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 + * `ALREADY_EXISTS`. * * Immediately upon completion of this request: * @@ -2634,12 +2628,11 @@ public final OperationFuture
createInstanceAsy * 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 have a name of the - * format `<instance_name>/operations/<operation_id>` and can be used to track - * creation of the instance. The [metadata][google.longrunning.Operation.metadata] field type is - * [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata]. The - * [response][google.longrunning.Operation.response] field type is - * [Instance][google.spanner.admin.instance.v1.Instance], if successful. + *
The returned long-running operation will have a name of the format + * `<instance_name>/operations/<operation_id>` and can be used to track creation of + * the instance. The metadata field type is + * [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata]. The response + * field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. * *
Sample code: * @@ -2670,10 +2663,10 @@ public final OperationFuture
createInstanceAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance and begins preparing it to begin serving. The returned [long-running - * operation][google.longrunning.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 `ALREADY_EXISTS`. + * Creates an instance and begins preparing it to begin serving. The 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 + * `ALREADY_EXISTS`. * * Immediately upon completion of this request: * @@ -2693,12 +2686,11 @@ public final OperationFuture
createInstanceAsy * 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 have a name of the - * format `<instance_name>/operations/<operation_id>` and can be used to track - * creation of the instance. The [metadata][google.longrunning.Operation.metadata] field type is - * [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata]. The - * [response][google.longrunning.Operation.response] field type is - * [Instance][google.spanner.admin.instance.v1.Instance], if successful. + *
The returned long-running operation will have a name of the format + * `<instance_name>/operations/<operation_id>` and can be used to track creation of + * the instance. The metadata field type is + * [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata]. The response + * field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. * *
Sample code: * @@ -2729,10 +2721,10 @@ public final OperationFuture
createInstanceAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance and begins preparing it to begin serving. The returned [long-running - * operation][google.longrunning.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 `ALREADY_EXISTS`. + * Creates an instance and begins preparing it to begin serving. The 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 + * `ALREADY_EXISTS`. * * Immediately upon completion of this request: * @@ -2752,12 +2744,11 @@ public final OperationFuture
createInstanceAsy * 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 have a name of the - * format `<instance_name>/operations/<operation_id>` and can be used to track - * creation of the instance. The [metadata][google.longrunning.Operation.metadata] field type is - * [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata]. The - * [response][google.longrunning.Operation.response] field type is - * [Instance][google.spanner.admin.instance.v1.Instance], if successful. + *
The returned long-running operation will have a name of the format + * `<instance_name>/operations/<operation_id>` and can be used to track creation of + * the instance. The metadata field type is + * [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata]. The response + * field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. * *
Sample code: * @@ -2788,8 +2779,8 @@ public final UnaryCallable
createInstanceCalla // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 progress of - * updating the instance. If the named instance does not exist, returns `NOT_FOUND`. + * long-running operation can be used to track the progress of updating the instance. If the named + * instance does not exist, returns `NOT_FOUND`. * * Immediately upon completion of this request: * @@ -2811,12 +2802,11 @@ public final UnaryCallable
createInstanceCalla * than the requested levels). * All newly-reserved resources are available for serving the * instance's tables. * The instance's new resource levels are readable via the API. * - * The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_name>/operations/<operation_id>` and can be used to track the - * instance modification. The [metadata][google.longrunning.Operation.metadata] field type is - * [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata]. The - * [response][google.longrunning.Operation.response] field type is - * [Instance][google.spanner.admin.instance.v1.Instance], if successful. + *
The returned long-running operation will have a name of the format + * `<instance_name>/operations/<operation_id>` and can be used to track the instance + * modification. The metadata field type is + * [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata]. The response + * field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. * *
Authorization requires `spanner.instances.update` permission on the resource * [name][google.spanner.admin.instance.v1.Instance.name]. @@ -2857,8 +2847,8 @@ public final OperationFuture
updateInstanceAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 progress of - * updating the instance. If the named instance does not exist, returns `NOT_FOUND`. + * long-running operation can be used to track the progress of updating the instance. If the named + * instance does not exist, returns `NOT_FOUND`. * * Immediately upon completion of this request: * @@ -2880,12 +2870,11 @@ public final OperationFuture
updateInstanceAsy * than the requested levels). * All newly-reserved resources are available for serving the * instance's tables. * The instance's new resource levels are readable via the API. * - * The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_name>/operations/<operation_id>` and can be used to track the - * instance modification. The [metadata][google.longrunning.Operation.metadata] field type is - * [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata]. The - * [response][google.longrunning.Operation.response] field type is - * [Instance][google.spanner.admin.instance.v1.Instance], if successful. + *
The returned long-running operation will have a name of the format + * `<instance_name>/operations/<operation_id>` and can be used to track the instance + * modification. The metadata field type is + * [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata]. The response + * field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. * *
Authorization requires `spanner.instances.update` permission on the resource * [name][google.spanner.admin.instance.v1.Instance.name]. @@ -2919,8 +2908,8 @@ public final OperationFuture
updateInstanceAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 progress of - * updating the instance. If the named instance does not exist, returns `NOT_FOUND`. + * long-running operation can be used to track the progress of updating the instance. If the named + * instance does not exist, returns `NOT_FOUND`. * * Immediately upon completion of this request: * @@ -2942,12 +2931,11 @@ public final OperationFuture
updateInstanceAsy * than the requested levels). * All newly-reserved resources are available for serving the * instance's tables. * The instance's new resource levels are readable via the API. * - * The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_name>/operations/<operation_id>` and can be used to track the - * instance modification. The [metadata][google.longrunning.Operation.metadata] field type is - * [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata]. The - * [response][google.longrunning.Operation.response] field type is - * [Instance][google.spanner.admin.instance.v1.Instance], if successful. + *
The returned long-running operation will have a name of the format + * `<instance_name>/operations/<operation_id>` and can be used to track the instance + * modification. The metadata field type is + * [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata]. The response + * field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. * *
Authorization requires `spanner.instances.update` permission on the resource * [name][google.spanner.admin.instance.v1.Instance.name]. @@ -2981,8 +2969,8 @@ public final OperationFuture
updateInstanceAsy // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 progress of - * updating the instance. If the named instance does not exist, returns `NOT_FOUND`. + * long-running operation can be used to track the progress of updating the instance. If the named + * instance does not exist, returns `NOT_FOUND`. * * Immediately upon completion of this request: * @@ -3004,12 +2992,11 @@ public final OperationFuture
updateInstanceAsy * than the requested levels). * All newly-reserved resources are available for serving the * instance's tables. * The instance's new resource levels are readable via the API. * - * The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_name>/operations/<operation_id>` and can be used to track the - * instance modification. The [metadata][google.longrunning.Operation.metadata] field type is - * [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata]. The - * [response][google.longrunning.Operation.response] field type is - * [Instance][google.spanner.admin.instance.v1.Instance], if successful. + *
The returned long-running operation will have a name of the format + * `<instance_name>/operations/<operation_id>` and can be used to track the instance + * modification. The metadata field type is + * [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata]. The response + * field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. * *
Authorization requires `spanner.instances.update` permission on the resource * [name][google.spanner.admin.instance.v1.Instance.name]. @@ -3725,10 +3712,10 @@ public final InstancePartition getInstancePartition(GetInstancePartitionRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance partition and begins preparing it to be used. The returned [long-running - * operation][google.longrunning.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 `ALREADY_EXISTS`. + * Creates an instance partition and begins preparing it to be used. The 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 `ALREADY_EXISTS`. * *
Immediately upon completion of this request: * @@ -3748,12 +3735,11 @@ public final InstancePartition getInstancePartition(GetInstancePartitionRequest * instance partition's allocated resource levels are readable via the API. * The instance * partition's state becomes `READY`. * - *
The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_partition_name>/operations/<operation_id>` and can be used to - * track creation of the instance partition. The [metadata][google.longrunning.Operation.metadata] - * field type is + *
The returned long-running operation will have a name of the format + * `<instance_partition_name>/operations/<operation_id>` and can be used to track + * creation of the instance partition. The 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. * *
Sample code: @@ -3799,10 +3785,10 @@ public final InstancePartition getInstancePartition(GetInstancePartitionRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance partition and begins preparing it to be used. The returned [long-running - * operation][google.longrunning.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 `ALREADY_EXISTS`. + * Creates an instance partition and begins preparing it to be used. The 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 `ALREADY_EXISTS`. * *
Immediately upon completion of this request: * @@ -3822,12 +3808,11 @@ public final InstancePartition getInstancePartition(GetInstancePartitionRequest * instance partition's allocated resource levels are readable via the API. * The instance * partition's state becomes `READY`. * - *
The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_partition_name>/operations/<operation_id>` and can be used to - * track creation of the instance partition. The [metadata][google.longrunning.Operation.metadata] - * field type is + *
The returned long-running operation will have a name of the format + * `<instance_partition_name>/operations/<operation_id>` and can be used to track + * creation of the instance partition. The 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. * *
Sample code: @@ -3873,10 +3858,10 @@ public final InstancePartition getInstancePartition(GetInstancePartitionRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance partition and begins preparing it to be used. The returned [long-running - * operation][google.longrunning.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 `ALREADY_EXISTS`. + * Creates an instance partition and begins preparing it to be used. The 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 `ALREADY_EXISTS`. * *
Immediately upon completion of this request: * @@ -3896,12 +3881,11 @@ public final InstancePartition getInstancePartition(GetInstancePartitionRequest * instance partition's allocated resource levels are readable via the API. * The instance * partition's state becomes `READY`. * - *
The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_partition_name>/operations/<operation_id>` and can be used to - * track creation of the instance partition. The [metadata][google.longrunning.Operation.metadata] - * field type is + *
The returned long-running operation will have a name of the format + * `<instance_partition_name>/operations/<operation_id>` and can be used to track + * creation of the instance partition. The 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. * *
Sample code: @@ -3933,10 +3917,10 @@ public final InstancePartition getInstancePartition(GetInstancePartitionRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance partition and begins preparing it to be used. The returned [long-running - * operation][google.longrunning.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 `ALREADY_EXISTS`. + * Creates an instance partition and begins preparing it to be used. The 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 `ALREADY_EXISTS`. * *
Immediately upon completion of this request: * @@ -3956,12 +3940,11 @@ public final InstancePartition getInstancePartition(GetInstancePartitionRequest * instance partition's allocated resource levels are readable via the API. * The instance * partition's state becomes `READY`. * - *
The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_partition_name>/operations/<operation_id>` and can be used to - * track creation of the instance partition. The [metadata][google.longrunning.Operation.metadata] - * field type is + *
The returned long-running operation will have a name of the format + * `<instance_partition_name>/operations/<operation_id>` and can be used to track + * creation of the instance partition. The 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. * *
Sample code: @@ -3994,10 +3977,10 @@ public final InstancePartition getInstancePartition(GetInstancePartitionRequest // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an instance partition and begins preparing it to be used. The returned [long-running - * operation][google.longrunning.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 `ALREADY_EXISTS`. + * Creates an instance partition and begins preparing it to be used. The 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 `ALREADY_EXISTS`. * *
Immediately upon completion of this request: * @@ -4017,12 +4000,11 @@ public final InstancePartition getInstancePartition(GetInstancePartitionRequest * instance partition's allocated resource levels are readable via the API. * The instance * partition's state becomes `READY`. * - *
The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_partition_name>/operations/<operation_id>` and can be used to - * track creation of the instance partition. The [metadata][google.longrunning.Operation.metadata] - * field type is + *
The returned long-running operation will have a name of the format + * `<instance_partition_name>/operations/<operation_id>` and can be used to track + * creation of the instance partition. The 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. * *
Sample code: @@ -4194,9 +4176,8 @@ public final void deleteInstancePartition(DeleteInstancePartitionRequest request // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 - * progress of updating the instance partition. If the named instance partition does not exist, - * returns `NOT_FOUND`. + * 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`. * *
Immediately upon completion of this request: * @@ -4219,12 +4200,11 @@ public final void deleteInstancePartition(DeleteInstancePartitionRequest request * instance partition's tables. * The instance partition's new resource levels are readable * via the API. * - *
The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_partition_name>/operations/<operation_id>` and can be used to - * track the instance partition modification. The - * [metadata][google.longrunning.Operation.metadata] field type is + *
The returned long-running operation will have a name of the format + * `<instance_partition_name>/operations/<operation_id>` and can be used to track the + * instance partition modification. The 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. * *
Authorization requires `spanner.instancePartitions.update` permission on the resource @@ -4270,9 +4250,8 @@ public final void deleteInstancePartition(DeleteInstancePartitionRequest request // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 - * progress of updating the instance partition. If the named instance partition does not exist, - * returns `NOT_FOUND`. + * 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`. * *
Immediately upon completion of this request: * @@ -4295,12 +4274,11 @@ public final void deleteInstancePartition(DeleteInstancePartitionRequest request * instance partition's tables. * The instance partition's new resource levels are readable * via the API. * - *
The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_partition_name>/operations/<operation_id>` and can be used to - * track the instance partition modification. The - * [metadata][google.longrunning.Operation.metadata] field type is + *
The returned long-running operation will have a name of the format + * `<instance_partition_name>/operations/<operation_id>` and can be used to track the + * instance partition modification. The 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. * *
Authorization requires `spanner.instancePartitions.update` permission on the resource @@ -4335,9 +4313,8 @@ public final void deleteInstancePartition(DeleteInstancePartitionRequest request // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 - * progress of updating the instance partition. If the named instance partition does not exist, - * returns `NOT_FOUND`. + * 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`. * *
Immediately upon completion of this request: * @@ -4360,12 +4337,11 @@ public final void deleteInstancePartition(DeleteInstancePartitionRequest request * instance partition's tables. * The instance partition's new resource levels are readable * via the API. * - *
The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_partition_name>/operations/<operation_id>` and can be used to - * track the instance partition modification. The - * [metadata][google.longrunning.Operation.metadata] field type is + *
The returned long-running operation will have a name of the format + * `<instance_partition_name>/operations/<operation_id>` and can be used to track the + * instance partition modification. The 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. * *
Authorization requires `spanner.instancePartitions.update` permission on the resource @@ -4401,9 +4377,8 @@ public final void deleteInstancePartition(DeleteInstancePartitionRequest request // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * 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 - * progress of updating the instance partition. If the named instance partition does not exist, - * returns `NOT_FOUND`. + * 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`. * *
Immediately upon completion of this request: * @@ -4426,12 +4401,11 @@ public final void deleteInstancePartition(DeleteInstancePartitionRequest request * instance partition's tables. * The instance partition's new resource levels are readable * via the API. * - *
The returned [long-running operation][google.longrunning.Operation] will have a name of the - * format `<instance_partition_name>/operations/<operation_id>` and can be used to - * track the instance partition modification. The - * [metadata][google.longrunning.Operation.metadata] field type is + *
The returned long-running operation will have a name of the format + * `<instance_partition_name>/operations/<operation_id>` and can be used to track the + * instance partition modification. The 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. * *
Authorization requires `spanner.instancePartitions.update` permission on the resource @@ -4465,14 +4439,14 @@ public final void deleteInstancePartition(DeleteInstancePartitionRequest request // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists instance partition [long-running operations][google.longrunning.Operation] in the given - * instance. An instance partition operation has a name of the form + * Lists instance partition long-running operations in the given instance. An instance partition + * operation has a name of the form * `projects/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`. - * The long-running operation [metadata][google.longrunning.Operation.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 `operation.metadata.value.start_time` in descending order starting from - * the most recently started operation. + * The long-running operation 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 + * `operation.metadata.value.start_time` in descending order starting from the most recently + * started operation. * *
Authorization requires `spanner.instancePartitionOperations.list` permission on the resource * [parent][google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest.parent]. @@ -4509,14 +4483,14 @@ public final ListInstancePartitionOperationsPagedResponse listInstancePartitionO // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists instance partition [long-running operations][google.longrunning.Operation] in the given - * instance. An instance partition operation has a name of the form + * Lists instance partition long-running operations in the given instance. An instance partition + * operation has a name of the form * `projects/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`. - * The long-running operation [metadata][google.longrunning.Operation.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 `operation.metadata.value.start_time` in descending order starting from - * the most recently started operation. + * The long-running operation 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 + * `operation.metadata.value.start_time` in descending order starting from the most recently + * started operation. * *
Authorization requires `spanner.instancePartitionOperations.list` permission on the resource * [parent][google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest.parent]. @@ -4551,14 +4525,14 @@ public final ListInstancePartitionOperationsPagedResponse listInstancePartitionO // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists instance partition [long-running operations][google.longrunning.Operation] in the given - * instance. An instance partition operation has a name of the form + * Lists instance partition long-running operations in the given instance. An instance partition + * operation has a name of the form * `projects/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`. - * The long-running operation [metadata][google.longrunning.Operation.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 `operation.metadata.value.start_time` in descending order starting from - * the most recently started operation. + * The long-running operation 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 + * `operation.metadata.value.start_time` in descending order starting from the most recently + * started operation. * *
Authorization requires `spanner.instancePartitionOperations.list` permission on the resource * [parent][google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest.parent]. @@ -4597,14 +4571,14 @@ public final ListInstancePartitionOperationsPagedResponse listInstancePartitionO // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists instance partition [long-running operations][google.longrunning.Operation] in the given - * instance. An instance partition operation has a name of the form + * Lists instance partition long-running operations in the given instance. An instance partition + * operation has a name of the form * `projects/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`. - * The long-running operation [metadata][google.longrunning.Operation.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 `operation.metadata.value.start_time` in descending order starting from - * the most recently started operation. + * The long-running operation 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 + * `operation.metadata.value.start_time` in descending order starting from the most recently + * started operation. * *
Authorization requires `spanner.instancePartitionOperations.list` permission on the resource * [parent][google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest.parent]. @@ -4643,14 +4617,14 @@ public final ListInstancePartitionOperationsPagedResponse listInstancePartitionO // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists instance partition [long-running operations][google.longrunning.Operation] in the given - * instance. An instance partition operation has a name of the form + * Lists instance partition long-running operations in the given instance. An instance partition + * operation has a name of the form * `projects/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`. - * The long-running operation [metadata][google.longrunning.Operation.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 `operation.metadata.value.start_time` in descending order starting from - * the most recently started operation. + * The long-running operation 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 + * `operation.metadata.value.start_time` in descending order starting from the most recently + * started operation. * *
Authorization requires `spanner.instancePartitionOperations.list` permission on the resource * [parent][google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest.parent]. @@ -4696,8 +4670,8 @@ public final ListInstancePartitionOperationsPagedResponse listInstancePartitionO // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves an instance to the target instance configuration. You can use the returned [long-running - * operation][google.longrunning.Operation] to track the progress of moving the instance. + * Moves an instance to the target instance configuration. You can use the returned long-running + * operation to track the progress of moving the instance. * *
`MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of the following * criteria: @@ -4718,13 +4692,12 @@ public final ListInstancePartitionOperationsPagedResponse listInstancePartitionO * storage charges. * The instance might experience higher read-write latencies and a higher * transaction abort rate. However, moving an instance doesn't cause any downtime. * - *
The returned [long-running operation][google.longrunning.Operation] has a name of the format + *
The returned long-running operation has a name of the format * `<instance_name>/operations/<operation_id>` and can be used to track the move - * instance operation. The [metadata][google.longrunning.Operation.metadata] field type is - * [MoveInstanceMetadata][google.spanner.admin.instance.v1.MoveInstanceMetadata]. The - * [response][google.longrunning.Operation.response] field type is - * [Instance][google.spanner.admin.instance.v1.Instance], if successful. Cancelling the operation - * sets its metadata's + * instance operation. The metadata field type is + * [MoveInstanceMetadata][google.spanner.admin.instance.v1.MoveInstanceMetadata]. The response + * field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. Cancelling + * the operation sets its metadata's * [cancel_time][google.spanner.admin.instance.v1.MoveInstanceMetadata.cancel_time]. Cancellation * is not immediate because it involves moving any data previously moved to the target instance * configuration back to the original instance configuration. You can use this operation to track @@ -4770,8 +4743,8 @@ public final OperationFuture
moveIns // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves an instance to the target instance configuration. You can use the returned [long-running - * operation][google.longrunning.Operation] to track the progress of moving the instance. + * Moves an instance to the target instance configuration. You can use the returned long-running + * operation to track the progress of moving the instance. * * `MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of the following * criteria: @@ -4792,13 +4765,12 @@ public final OperationFuture
moveIns * storage charges. * The instance might experience higher read-write latencies and a higher * transaction abort rate. However, moving an instance doesn't cause any downtime. * - * The returned [long-running operation][google.longrunning.Operation] has a name of the format + *
The returned long-running operation has a name of the format * `<instance_name>/operations/<operation_id>` and can be used to track the move - * instance operation. The [metadata][google.longrunning.Operation.metadata] field type is - * [MoveInstanceMetadata][google.spanner.admin.instance.v1.MoveInstanceMetadata]. The - * [response][google.longrunning.Operation.response] field type is - * [Instance][google.spanner.admin.instance.v1.Instance], if successful. Cancelling the operation - * sets its metadata's + * instance operation. The metadata field type is + * [MoveInstanceMetadata][google.spanner.admin.instance.v1.MoveInstanceMetadata]. The response + * field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. Cancelling + * the operation sets its metadata's * [cancel_time][google.spanner.admin.instance.v1.MoveInstanceMetadata.cancel_time]. Cancellation * is not immediate because it involves moving any data previously moved to the target instance * configuration back to the original instance configuration. You can use this operation to track @@ -4844,8 +4816,8 @@ public final OperationFuture
moveIns // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Moves an instance to the target instance configuration. You can use the returned [long-running - * operation][google.longrunning.Operation] to track the progress of moving the instance. + * Moves an instance to the target instance configuration. You can use the returned long-running + * operation to track the progress of moving the instance. * * `MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of the following * criteria: @@ -4866,13 +4838,12 @@ public final OperationFuture
moveIns * storage charges. * The instance might experience higher read-write latencies and a higher * transaction abort rate. However, moving an instance doesn't cause any downtime. * - * The returned [long-running operation][google.longrunning.Operation] has a name of the format + *
The returned long-running operation has a name of the format * `<instance_name>/operations/<operation_id>` and can be used to track the move - * instance operation. The [metadata][google.longrunning.Operation.metadata] field type is - * [MoveInstanceMetadata][google.spanner.admin.instance.v1.MoveInstanceMetadata]. The - * [response][google.longrunning.Operation.response] field type is - * [Instance][google.spanner.admin.instance.v1.Instance], if successful. Cancelling the operation - * sets its metadata's + * instance operation. The metadata field type is + * [MoveInstanceMetadata][google.spanner.admin.instance.v1.MoveInstanceMetadata]. The response + * field type is [Instance][google.spanner.admin.instance.v1.Instance], if successful. Cancelling + * the operation sets its metadata's * [cancel_time][google.spanner.admin.instance.v1.MoveInstanceMetadata.cancel_time]. Cancellation * is not immediate because it involves moving any data previously moved to the target instance * configuration back to the original instance configuration. You can use this operation to track diff --git a/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json b/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json index 1a2d3dd10d9..65363fdf447 100644 --- a/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json +++ b/google-cloud-spanner/src/main/resources/META-INF/native-image/com.google.cloud.spanner.admin.instance.v1/reflect-config.json @@ -1889,6 +1889,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.spanner.admin.instance.v1.FreeInstanceMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.FreeInstanceMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.FreeInstanceMetadata$ExpireBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.spanner.admin.instance.v1.FulfillmentPeriod", "queryAllDeclaredConstructors": true, @@ -1988,6 +2015,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.spanner.admin.instance.v1.Instance$InstanceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.spanner.admin.instance.v1.Instance$State", "queryAllDeclaredConstructors": true, @@ -2015,6 +2051,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig$FreeInstanceAvailability", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.spanner.admin.instance.v1.InstanceConfig$QuorumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.spanner.admin.instance.v1.InstanceConfig$State", "queryAllDeclaredConstructors": true, diff --git a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java index 50532826e53..c85b9c5297c 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientHttpJsonTest.java @@ -45,6 +45,7 @@ import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import com.google.spanner.admin.instance.v1.AutoscalingConfig; +import com.google.spanner.admin.instance.v1.FreeInstanceMetadata; import com.google.spanner.admin.instance.v1.Instance; import com.google.spanner.admin.instance.v1.InstanceConfig; import com.google.spanner.admin.instance.v1.InstanceConfigName; @@ -223,6 +224,7 @@ public void getInstanceConfigTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList
()) .setReconciling(true) + .setStorageLimitPerProcessingUnit(-1769187130) .build(); mockService.addResponse(expectedResponse); @@ -275,6 +277,7 @@ public void getInstanceConfigTest2() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList ()) .setReconciling(true) + .setStorageLimitPerProcessingUnit(-1769187130) .build(); mockService.addResponse(expectedResponse); @@ -327,6 +330,7 @@ public void createInstanceConfigTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList ()) .setReconciling(true) + .setStorageLimitPerProcessingUnit(-1769187130) .build(); Operation resultOperation = Operation.newBuilder() @@ -389,6 +393,7 @@ public void createInstanceConfigTest2() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList ()) .setReconciling(true) + .setStorageLimitPerProcessingUnit(-1769187130) .build(); Operation resultOperation = Operation.newBuilder() @@ -451,6 +456,7 @@ public void updateInstanceConfigTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList ()) .setReconciling(true) + .setStorageLimitPerProcessingUnit(-1769187130) .build(); Operation resultOperation = Operation.newBuilder() @@ -471,6 +477,7 @@ public void updateInstanceConfigTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList ()) .setReconciling(true) + .setStorageLimitPerProcessingUnit(-1769187130) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -512,6 +519,7 @@ public void updateInstanceConfigExceptionTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList ()) .setReconciling(true) + .setStorageLimitPerProcessingUnit(-1769187130) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateInstanceConfigAsync(instanceConfig, updateMask).get(); @@ -917,6 +925,7 @@ public void getInstanceTest() throws Exception { .addAllEndpointUris(new ArrayList ()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setFreeInstanceMetadata(FreeInstanceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -971,6 +980,7 @@ public void getInstanceTest2() throws Exception { .addAllEndpointUris(new ArrayList ()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setFreeInstanceMetadata(FreeInstanceMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1025,6 +1035,7 @@ public void createInstanceTest() throws Exception { .addAllEndpointUris(new ArrayList ()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setFreeInstanceMetadata(FreeInstanceMetadata.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1088,6 +1099,7 @@ public void createInstanceTest2() throws Exception { .addAllEndpointUris(new ArrayList ()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setFreeInstanceMetadata(FreeInstanceMetadata.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1151,6 +1163,7 @@ public void updateInstanceTest() throws Exception { .addAllEndpointUris(new ArrayList ()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setFreeInstanceMetadata(FreeInstanceMetadata.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1173,6 +1186,7 @@ public void updateInstanceTest() throws Exception { .addAllEndpointUris(new ArrayList ()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setFreeInstanceMetadata(FreeInstanceMetadata.newBuilder().build()) .build(); FieldMask fieldMask = FieldMask.newBuilder().build(); @@ -1215,6 +1229,7 @@ public void updateInstanceExceptionTest() throws Exception { .addAllEndpointUris(new ArrayList ()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setFreeInstanceMetadata(FreeInstanceMetadata.newBuilder().build()) .build(); FieldMask fieldMask = FieldMask.newBuilder().build(); client.updateInstanceAsync(instance, fieldMask).get(); diff --git a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java index 73c6de9b2ca..7c62ef03883 100644 --- a/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java +++ b/google-cloud-spanner/src/test/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClientTest.java @@ -53,6 +53,7 @@ import com.google.spanner.admin.instance.v1.DeleteInstanceConfigRequest; import com.google.spanner.admin.instance.v1.DeleteInstancePartitionRequest; import com.google.spanner.admin.instance.v1.DeleteInstanceRequest; +import com.google.spanner.admin.instance.v1.FreeInstanceMetadata; import com.google.spanner.admin.instance.v1.GetInstanceConfigRequest; import com.google.spanner.admin.instance.v1.GetInstancePartitionRequest; import com.google.spanner.admin.instance.v1.GetInstanceRequest; @@ -235,6 +236,7 @@ public void getInstanceConfigTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList ()) .setReconciling(true) + .setStorageLimitPerProcessingUnit(-1769187130) .build(); mockInstanceAdmin.addResponse(expectedResponse); @@ -281,6 +283,7 @@ public void getInstanceConfigTest2() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList ()) .setReconciling(true) + .setStorageLimitPerProcessingUnit(-1769187130) .build(); mockInstanceAdmin.addResponse(expectedResponse); @@ -327,6 +330,7 @@ public void createInstanceConfigTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList ()) .setReconciling(true) + .setStorageLimitPerProcessingUnit(-1769187130) .build(); Operation resultOperation = Operation.newBuilder() @@ -389,6 +393,7 @@ public void createInstanceConfigTest2() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList ()) .setReconciling(true) + .setStorageLimitPerProcessingUnit(-1769187130) .build(); Operation resultOperation = Operation.newBuilder() @@ -451,6 +456,7 @@ public void updateInstanceConfigTest() throws Exception { .setEtag("etag3123477") .addAllLeaderOptions(new ArrayList ()) .setReconciling(true) + .setStorageLimitPerProcessingUnit(-1769187130) .build(); Operation resultOperation = Operation.newBuilder() @@ -852,6 +858,7 @@ public void getInstanceTest() throws Exception { .addAllEndpointUris(new ArrayList ()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setFreeInstanceMetadata(FreeInstanceMetadata.newBuilder().build()) .build(); mockInstanceAdmin.addResponse(expectedResponse); @@ -900,6 +907,7 @@ public void getInstanceTest2() throws Exception { .addAllEndpointUris(new ArrayList ()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setFreeInstanceMetadata(FreeInstanceMetadata.newBuilder().build()) .build(); mockInstanceAdmin.addResponse(expectedResponse); @@ -948,6 +956,7 @@ public void createInstanceTest() throws Exception { .addAllEndpointUris(new ArrayList ()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setFreeInstanceMetadata(FreeInstanceMetadata.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1010,6 +1019,7 @@ public void createInstanceTest2() throws Exception { .addAllEndpointUris(new ArrayList ()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setFreeInstanceMetadata(FreeInstanceMetadata.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -1072,6 +1082,7 @@ public void updateInstanceTest() throws Exception { .addAllEndpointUris(new ArrayList ()) .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setFreeInstanceMetadata(FreeInstanceMetadata.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/grpc-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceAdminGrpc.java b/grpc-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceAdminGrpc.java index 81d08cb9dbe..1fad30fd9b0 100644 --- a/grpc-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceAdminGrpc.java +++ b/grpc-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceAdminGrpc.java @@ -1114,6 +1114,8 @@ public interface AsyncService { * * * Lists the supported instance configurations for a given project. + * Returns both Google-managed configurations and user-managed + * configurations. **/ default void listInstanceConfigs( @@ -1145,7 +1147,7 @@ default void getInstanceConfig( * ** 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, @@ -1165,13 +1167,13 @@ default void getInstanceConfig( * * The instance configuration's * [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 * `<instance_config_name>/operations/<operation_id>` 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. * Authorization requires `spanner.instanceConfigs.create` permission on @@ -1191,7 +1193,7 @@ default void createInstanceConfig( * ** 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`. * Only user-managed configurations can be updated. @@ -1214,13 +1216,13 @@ default void createInstanceConfig( * * The instance configuration's * [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 * `<instance_config_name>/operations/<operation_id>` 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. * Authorization requires `spanner.instanceConfigs.update` permission on @@ -1257,12 +1259,12 @@ default void deleteInstanceConfig( * * *- * 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/<project>/instanceConfigs/<instance_config>/operations/<operation>`. * 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,7 +1332,7 @@ default void getInstance( * ** 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 @@ -1349,12 +1351,12 @@ default void getInstance( * * Databases can be created in the instance. * * 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 `<instance_name>/operations/<operation_id>` 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. **/ @@ -1370,8 +1372,7 @@ default void createInstance( * ** 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`. * Immediately upon completion of this request: @@ -1392,12 +1393,12 @@ default void createInstance( * * All newly-reserved resources are available for serving the instance's * 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 `<instance_name>/operations/<operation_id>` 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 * the resource [name][google.spanner.admin.instance.v1.Instance.name]. @@ -1503,7 +1504,7 @@ default void getInstancePartition( * ** 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 @@ -1523,13 +1524,13 @@ default void getInstancePartition( * * The instance partition's allocated resource levels are readable via the * 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 * `<instance_partition_name>/operations/<operation_id>` 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. *@@ -1565,8 +1566,7 @@ default void deleteInstancePartition( * ** 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`. * Immediately upon completion of this request: @@ -1588,13 +1588,13 @@ default void deleteInstancePartition( * * All newly-reserved resources are available for serving the instance * 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 * `<instance_partition_name>/operations/<operation_id>` 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. * Authorization requires `spanner.instancePartitions.update` permission on @@ -1613,12 +1613,11 @@ default void updateInstancePartition( * * *- * 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/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`. * 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 @@ -1643,7 +1642,7 @@ default void listInstancePartitionOperations( * ** 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 * the following criteria: @@ -1667,13 +1666,13 @@ default void listInstancePartitionOperations( * * The instance might experience higher read-write latencies and a higher * 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 * `<instance_name>/operations/<operation_id>` 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 @@ -1775,6 +1774,8 @@ protected InstanceAdminStub build(io.grpc.Channel channel, io.grpc.CallOptions c * ** Lists the supported instance configurations for a given project. + * Returns both Google-managed configurations and user-managed + * configurations. **/ public void listInstanceConfigs( @@ -1810,7 +1811,7 @@ public void getInstanceConfig( * ** 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, @@ -1830,13 +1831,13 @@ public void getInstanceConfig( * * The instance configuration's * [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 * `<instance_config_name>/operations/<operation_id>` 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. * Authorization requires `spanner.instanceConfigs.create` permission on @@ -1858,7 +1859,7 @@ public void createInstanceConfig( * ** 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`. * Only user-managed configurations can be updated. @@ -1881,13 +1882,13 @@ public void createInstanceConfig( * * The instance configuration's * [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 * `<instance_config_name>/operations/<operation_id>` 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. * Authorization requires `spanner.instanceConfigs.update` permission on @@ -1928,12 +1929,12 @@ public void deleteInstanceConfig( * * *- * 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/<project>/instanceConfigs/<instance_config>/operations/<operation>`. * 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 @@ -2009,7 +2010,7 @@ public void getInstance( * ** 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 @@ -2028,12 +2029,12 @@ public void getInstance( * * Databases can be created in the instance. * * 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 `<instance_name>/operations/<operation_id>` 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. **/ @@ -2051,8 +2052,7 @@ public void createInstance( * ** 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`. * Immediately upon completion of this request: @@ -2073,12 +2073,12 @@ public void createInstance( * * All newly-reserved resources are available for serving the instance's * 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 `<instance_name>/operations/<operation_id>` 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 * the resource [name][google.spanner.admin.instance.v1.Instance.name]. @@ -2196,7 +2196,7 @@ public void getInstancePartition( * ** 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 @@ -2216,13 +2216,13 @@ public void getInstancePartition( * * The instance partition's allocated resource levels are readable via the * 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 * `<instance_partition_name>/operations/<operation_id>` 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. *@@ -2262,8 +2262,7 @@ public void deleteInstancePartition( * ** 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`. * Immediately upon completion of this request: @@ -2285,13 +2284,13 @@ public void deleteInstancePartition( * * All newly-reserved resources are available for serving the instance * 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 * `<instance_partition_name>/operations/<operation_id>` 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. * Authorization requires `spanner.instancePartitions.update` permission on @@ -2312,12 +2311,11 @@ public void updateInstancePartition( * * *- * 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/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`. * 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 @@ -2344,7 +2342,7 @@ public void listInstancePartitionOperations( * ** 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 * the following criteria: @@ -2368,13 +2366,13 @@ public void listInstancePartitionOperations( * * The instance might experience higher read-write latencies and a higher * 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 * `<instance_name>/operations/<operation_id>` 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 @@ -2446,6 +2444,8 @@ protected InstanceAdminBlockingStub build( * ** Lists the supported instance configurations for a given project. + * Returns both Google-managed configurations and user-managed + * configurations. **/ public com.google.spanner.admin.instance.v1.ListInstanceConfigsResponse listInstanceConfigs( @@ -2472,7 +2472,7 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig( * ** 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, @@ -2492,13 +2492,13 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig( * * The instance configuration's * [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 * `<instance_config_name>/operations/<operation_id>` 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. * Authorization requires `spanner.instanceConfigs.create` permission on @@ -2517,7 +2517,7 @@ public com.google.longrunning.Operation createInstanceConfig( * ** 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`. * Only user-managed configurations can be updated. @@ -2540,13 +2540,13 @@ public com.google.longrunning.Operation createInstanceConfig( * * The instance configuration's * [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 * `<instance_config_name>/operations/<operation_id>` 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. * Authorization requires `spanner.instanceConfigs.update` permission on @@ -2581,12 +2581,12 @@ public com.google.protobuf.Empty deleteInstanceConfig( * * ** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsResponse.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsResponse.java index 6a146626001..d145bca064d 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsResponse.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsResponse.java @@ -77,10 +77,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *- * 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/<project>/instanceConfigs/<instance_config>/operations/<operation>`. * 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 @@ -2646,7 +2646,7 @@ public com.google.spanner.admin.instance.v1.Instance getInstance( * ** @@ -254,7 +254,8 @@ public interface ListInstancePartitionOperationsRequestOrBuilder * 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]. ** 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 @@ -2665,12 +2665,12 @@ public com.google.spanner.admin.instance.v1.Instance getInstance( * * Databases can be created in the instance. * * 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 `<instance_name>/operations/<operation_id>` 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. **/ @@ -2685,8 +2685,7 @@ public com.google.longrunning.Operation createInstance( * ** 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`. * Immediately upon completion of this request: @@ -2707,12 +2706,12 @@ public com.google.longrunning.Operation createInstance( * * All newly-reserved resources are available for serving the instance's * 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 `<instance_name>/operations/<operation_id>` 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 * the resource [name][google.spanner.admin.instance.v1.Instance.name]. @@ -2808,7 +2807,7 @@ public com.google.spanner.admin.instance.v1.InstancePartition getInstancePartiti * ** @@ -236,7 +235,8 @@ public interface ListInstancePartitionOperationsRequestOrBuilder * 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]. ** 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 @@ -2828,13 +2827,13 @@ public com.google.spanner.admin.instance.v1.InstancePartition getInstancePartiti * * The instance partition's allocated resource levels are readable via the * 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 * `<instance_partition_name>/operations/<operation_id>` 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. *@@ -2868,8 +2867,7 @@ public com.google.protobuf.Empty deleteInstancePartition( * ** 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`. * Immediately upon completion of this request: @@ -2891,13 +2889,13 @@ public com.google.protobuf.Empty deleteInstancePartition( * * All newly-reserved resources are available for serving the instance * 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 * `<instance_partition_name>/operations/<operation_id>` 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. * Authorization requires `spanner.instancePartitions.update` permission on @@ -2915,12 +2913,11 @@ public com.google.longrunning.Operation updateInstancePartition( * * ** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsRequestOrBuilder.java index 417d98e4217..8d3858fffbc 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsRequestOrBuilder.java @@ -67,8 +67,7 @@ public interface ListInstancePartitionOperationsRequestOrBuilder * 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. @@ -121,8 +120,7 @@ public interface ListInstancePartitionOperationsRequestOrBuilder * 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. @@ -218,7 +216,8 @@ public interface ListInstancePartitionOperationsRequestOrBuilder * 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]. *- * 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/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`. * 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 @@ -2943,7 +2940,7 @@ public com.google.longrunning.Operation updateInstancePartition( * ** @@ -1724,7 +1728,8 @@ public com.google.protobuf.TimestampOrBuilder getInstancePartitionDeadlineOrBuil * 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]. ** 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 * the following criteria: @@ -2967,13 +2964,13 @@ public com.google.longrunning.Operation updateInstancePartition( * * The instance might experience higher read-write latencies and a higher * 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 * `<instance_name>/operations/<operation_id>` 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 @@ -3042,6 +3039,8 @@ protected InstanceAdminFutureStub build( * ** @@ -1700,7 +1703,8 @@ public com.google.protobuf.Timestamp.Builder getInstancePartitionDeadlineBuilder * 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]. ** Lists the supported instance configurations for a given project. + * Returns both Google-managed configurations and user-managed + * configurations. **/ public com.google.common.util.concurrent.ListenableFuture< @@ -3071,7 +3070,7 @@ protected InstanceAdminFutureStub build( * ** 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, @@ -3091,13 +3090,13 @@ protected InstanceAdminFutureStub build( * * The instance configuration's * [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 * `<instance_config_name>/operations/<operation_id>` 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. * Authorization requires `spanner.instanceConfigs.create` permission on @@ -3117,7 +3116,7 @@ protected InstanceAdminFutureStub build( * ** @@ -1680,7 +1682,8 @@ public Builder 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]. ** 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`. * Only user-managed configurations can be updated. @@ -3140,13 +3139,13 @@ protected InstanceAdminFutureStub build( * * The instance configuration's * [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 * `<instance_config_name>/operations/<operation_id>` 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. * Authorization requires `spanner.instanceConfigs.update` permission on @@ -3183,12 +3182,12 @@ protected InstanceAdminFutureStub build( * * ** - *- * 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/<project>/instanceConfigs/<instance_config>/operations/<operation>`. * 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 @@ -3252,7 +3251,7 @@ protected InstanceAdminFutureStub build( * ** ** 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 @@ -3271,12 +3270,12 @@ protected InstanceAdminFutureStub build( * * Databases can be created in the instance. * * 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 `<instance_name>/operations/<operation_id>` 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. **/ @@ -3291,8 +3290,7 @@ protected InstanceAdminFutureStub build( * ** 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`. * Immediately upon completion of this request: @@ -3313,12 +3311,12 @@ protected InstanceAdminFutureStub build( * * All newly-reserved resources are available for serving the instance's * 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 `<instance_name>/operations/<operation_id>` 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 * the resource [name][google.spanner.admin.instance.v1.Instance.name]. @@ -3419,7 +3417,7 @@ protected InstanceAdminFutureStub build( * ** ** 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 @@ -3439,13 +3437,13 @@ protected InstanceAdminFutureStub build( * * The instance partition's allocated resource levels are readable via the * 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 * `<instance_partition_name>/operations/<operation_id>` 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. *@@ -3481,8 +3479,7 @@ protected InstanceAdminFutureStub build( * ** 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`. * Immediately upon completion of this request: @@ -3504,13 +3501,13 @@ protected InstanceAdminFutureStub build( * * All newly-reserved resources are available for serving the instance * 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 * `<instance_partition_name>/operations/<operation_id>` 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. * Authorization requires `spanner.instancePartitions.update` permission on @@ -3529,12 +3526,11 @@ protected InstanceAdminFutureStub build( * * ** *- * 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/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`. * 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 @@ -3559,7 +3555,7 @@ protected InstanceAdminFutureStub build( * ** ** 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 * the following criteria: @@ -3583,13 +3579,13 @@ protected InstanceAdminFutureStub build( * * The instance might experience higher read-write latencies and a higher * 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 * `<instance_name>/operations/<operation_id>` 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 diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfig.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfig.java index eeb39bfd3d2..2881c4fa894 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfig.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/AutoscalingConfig.java @@ -1397,7 +1397,7 @@ public interface AutoscalingTargetsOrBuilder * 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. ** *int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -1481,7 +1481,7 @@ public int getHighPriorityCpuUtilizationPercent() { * 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. *int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED];
@@ -1958,7 +1958,7 @@ public Builder clearHighPriorityCpuUtilizationPercent() { * 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. *int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -1977,7 +1977,7 @@ public int 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. *
int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -2000,7 +2000,7 @@ public Builder setStorageUtilizationPercent(int value) { * 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. *
int32 storage_utilization_percent = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CommonProto.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CommonProto.java index a589f16c104..0b9697fe631 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CommonProto.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CommonProto.java @@ -47,28 +47,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n-google/spanner/admin/instance/v1/commo" + "n.proto\022 google.spanner.admin.instance.v" - + "1\032\037google/api/field_behavior.proto\032\037goog" - + "le/protobuf/timestamp.proto\"\213\001\n\021Operatio" - + "nProgress\022\030\n\020progress_percent\030\001 \001(\005\022.\n\ns" - + "tart_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "amp\022,\n\010end_time\030\003 \001(\0132\032.google.protobuf." - + "Timestamp\")\n\020ReplicaSelection\022\025\n\010locatio" - + "n\030\001 \001(\tB\003\340A\002*w\n\021FulfillmentPeriod\022\"\n\036FUL" - + "FILLMENT_PERIOD_UNSPECIFIED\020\000\022\035\n\031FULFILL" - + "MENT_PERIOD_NORMAL\020\001\022\037\n\033FULFILLMENT_PERI" - + "OD_EXTENDED\020\002B\375\001\n$com.google.spanner.adm" - + "in.instance.v1B\013CommonProtoP\001ZFcloud.goo" - + "gle.com/go/spanner/admin/instance/apiv1/" - + "instancepb;instancepb\252\002&Google.Cloud.Spa" - + "nner.Admin.Instance.V1\312\002&Google\\Cloud\\Sp" - + "anner\\Admin\\Instance\\V1\352\002+Google::Cloud:" - + ":Spanner::Admin::Instance::V1b\006proto3" + + "1\032\037google/api/field_behavior.proto\032\031goog" + + "le/api/resource.proto\032\037google/protobuf/t" + + "imestamp.proto\"\213\001\n\021OperationProgress\022\030\n\020" + + "progress_percent\030\001 \001(\005\022.\n\nstart_time\030\002 \001" + + "(\0132\032.google.protobuf.Timestamp\022,\n\010end_ti" + + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\")\n\020" + + "ReplicaSelection\022\025\n\010location\030\001 \001(\tB\003\340A\002*" + + "w\n\021FulfillmentPeriod\022\"\n\036FULFILLMENT_PERI" + + "OD_UNSPECIFIED\020\000\022\035\n\031FULFILLMENT_PERIOD_N" + + "ORMAL\020\001\022\037\n\033FULFILLMENT_PERIOD_EXTENDED\020\002" + + "B\375\001\n$com.google.spanner.admin.instance.v" + + "1B\013CommonProtoP\001ZFcloud.google.com/go/sp" + + "anner/admin/instance/apiv1/instancepb;in" + + "stancepb\252\002&Google.Cloud.Spanner.Admin.In" + + "stance.V1\312\002&Google\\Cloud\\Spanner\\Admin\\I" + + "nstance\\V1\352\002+Google::Cloud::Spanner::Adm" + + "in::Instance::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_spanner_admin_instance_v1_OperationProgress_descriptor = @@ -93,6 +95,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); } diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequest.java index 72a0f24207f..ba1db21439b 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequest.java @@ -24,7 +24,7 @@ * *
*/ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -4506,7 +4895,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -4558,6 +4947,206 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private com.google.spanner.admin.instance.v1.FreeInstanceMetadata freeInstanceMetadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.instance.v1.FreeInstanceMetadata, + com.google.spanner.admin.instance.v1.FreeInstanceMetadata.Builder, + com.google.spanner.admin.instance.v1.FreeInstanceMetadataOrBuilder> + freeInstanceMetadataBuilder_; + /** + * + * + ** The request for - * [CreateInstanceConfigRequest][InstanceAdmin.CreateInstanceConfigRequest]. + * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig]. ** * Protobuf type {@code google.spanner.admin.instance.v1.CreateInstanceConfigRequest} @@ -186,10 +186,10 @@ public com.google.protobuf.ByteString getInstanceConfigIdBytes() { * * *- * 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** @@ -207,10 +207,10 @@ public boolean hasInstanceConfig() { * * *- * 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** @@ -230,10 +230,10 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig() { * * *- * 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** @@ -464,7 +464,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * ** The request for - * [CreateInstanceConfigRequest][InstanceAdmin.CreateInstanceConfigRequest]. + * [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig]. ** * Protobuf type {@code google.spanner.admin.instance.v1.CreateInstanceConfigRequest} @@ -957,10 +957,10 @@ public Builder setInstanceConfigIdBytes(com.google.protobuf.ByteString value) { * * *- * 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** @@ -977,10 +977,10 @@ public boolean hasInstanceConfig() { * * *- * 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** @@ -1003,10 +1003,10 @@ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig() { * * *- * 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** @@ -1031,10 +1031,10 @@ public Builder setInstanceConfig(com.google.spanner.admin.instance.v1.InstanceCo * * *- * 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** @@ -1057,10 +1057,10 @@ public Builder setInstanceConfig( * * *- * 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** @@ -1091,10 +1091,10 @@ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.Instance * * *- * 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** @@ -1116,10 +1116,10 @@ public Builder 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** @@ -1136,10 +1136,10 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo * * *- * 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** @@ -1161,10 +1161,10 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceCo * * *- * 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequestOrBuilder.java index 60e1ef481e4..224bcea9c61 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/CreateInstanceConfigRequestOrBuilder.java @@ -90,10 +90,10 @@ public interface CreateInstanceConfigRequestOrBuilder * * *- * 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** @@ -108,10 +108,10 @@ public interface CreateInstanceConfigRequestOrBuilder * * *- * 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** @@ -126,10 +126,10 @@ public interface CreateInstanceConfigRequestOrBuilder * * *- * 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 * `<parent>/instanceConfigs/<instance_config_id>`. - * instance_config.base_config must be a Google managed configuration name, + * `instance_config.base_config` must be a Google-managed configuration name, * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3. ** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequest.java index c62e5c1a242..e079d363160 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/DeleteInstanceConfigRequest.java @@ -24,7 +24,7 @@ * ** The request for - * [DeleteInstanceConfigRequest][InstanceAdmin.DeleteInstanceConfigRequest]. + * [DeleteInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstanceConfig]. ** * Protobuf type {@code google.spanner.admin.instance.v1.DeleteInstanceConfigRequest} @@ -389,7 +389,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * ** The request for - * [DeleteInstanceConfigRequest][InstanceAdmin.DeleteInstanceConfigRequest]. + * [DeleteInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstanceConfig]. ** * Protobuf type {@code google.spanner.admin.instance.v1.DeleteInstanceConfigRequest} diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/FreeInstanceMetadata.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/FreeInstanceMetadata.java new file mode 100644 index 00000000000..2daf2ff7462 --- /dev/null +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/FreeInstanceMetadata.java @@ -0,0 +1,1430 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/instance/v1/spanner_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.spanner.admin.instance.v1; + +/** + * + * + *+ * Free instance specific metadata that is kept even after an instance has been + * upgraded for tracking purposes. + *+ * + * Protobuf type {@code google.spanner.admin.instance.v1.FreeInstanceMetadata} + */ +public final class FreeInstanceMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.admin.instance.v1.FreeInstanceMetadata) + FreeInstanceMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use FreeInstanceMetadata.newBuilder() to construct. + private FreeInstanceMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FreeInstanceMetadata() { + expireBehavior_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FreeInstanceMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto + .internal_static_google_spanner_admin_instance_v1_FreeInstanceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto + .internal_static_google_spanner_admin_instance_v1_FreeInstanceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.admin.instance.v1.FreeInstanceMetadata.class, + com.google.spanner.admin.instance.v1.FreeInstanceMetadata.Builder.class); + } + + /** + * + * + *+ * Allows users to change behavior when a free instance expires. + *+ * + * Protobuf enum {@code google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior} + */ + public enum ExpireBehavior implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *+ * Not specified. + *+ * + *EXPIRE_BEHAVIOR_UNSPECIFIED = 0;
+ */ + EXPIRE_BEHAVIOR_UNSPECIFIED(0), + /** + * + * + *+ * When the free instance expires, upgrade the instance to a provisioned + * instance. + *+ * + *FREE_TO_PROVISIONED = 1;
+ */ + FREE_TO_PROVISIONED(1), + /** + * + * + *+ * When the free instance expires, disable the instance, and delete it + * after the grace period passes if it has not been upgraded. + *+ * + *REMOVE_AFTER_GRACE_PERIOD = 2;
+ */ + REMOVE_AFTER_GRACE_PERIOD(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *+ * Not specified. + *+ * + *EXPIRE_BEHAVIOR_UNSPECIFIED = 0;
+ */ + public static final int EXPIRE_BEHAVIOR_UNSPECIFIED_VALUE = 0; + /** + * + * + *+ * When the free instance expires, upgrade the instance to a provisioned + * instance. + *+ * + *FREE_TO_PROVISIONED = 1;
+ */ + public static final int FREE_TO_PROVISIONED_VALUE = 1; + /** + * + * + *+ * When the free instance expires, disable the instance, and delete it + * after the grace period passes if it has not been upgraded. + *+ * + *REMOVE_AFTER_GRACE_PERIOD = 2;
+ */ + public static final int REMOVE_AFTER_GRACE_PERIOD_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExpireBehavior valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ExpireBehavior forNumber(int value) { + switch (value) { + case 0: + return EXPIRE_BEHAVIOR_UNSPECIFIED; + case 1: + return FREE_TO_PROVISIONED; + case 2: + return REMOVE_AFTER_GRACE_PERIOD; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMapinternalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public ExpireBehavior findValueByNumber(int number) { + return ExpireBehavior.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.spanner.admin.instance.v1.FreeInstanceMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ExpireBehavior[] VALUES = values(); + + public static ExpireBehavior valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ExpireBehavior(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior) + } + + private int bitField0_; + public static final int EXPIRE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp expireTime_; + /** + * + * + * + * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *.google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *+ * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *.google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + /** + * + * + *+ * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *.google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + public static final int UPGRADE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp upgradeTime_; + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *.google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return Whether the upgradeTime field is set. + */ + @java.lang.Override + public boolean hasUpgradeTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *.google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The upgradeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpgradeTime() { + return upgradeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : upgradeTime_; + } + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *.google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpgradeTimeOrBuilder() { + return upgradeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : upgradeTime_; + } + + public static final int EXPIRE_BEHAVIOR_FIELD_NUMBER = 3; + private int expireBehavior_ = 0; + /** + * + * + *+ * Specifies the expiration behavior of a free instance. The default of + * ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during + * or after creation, and before expiration. + *+ * + *+ * .google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3; + *
+ * + * @return The enum numeric value on the wire for expireBehavior. + */ + @java.lang.Override + public int getExpireBehaviorValue() { + return expireBehavior_; + } + /** + * + * + *+ * Specifies the expiration behavior of a free instance. The default of + * ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during + * or after creation, and before expiration. + *+ * + *+ * .google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3; + *
+ * + * @return The expireBehavior. + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior + getExpireBehavior() { + com.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior result = + com.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior.forNumber( + expireBehavior_); + return result == null + ? com.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getExpireTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpgradeTime()); + } + if (expireBehavior_ + != com.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior + .EXPIRE_BEHAVIOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, expireBehavior_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExpireTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpgradeTime()); + } + if (expireBehavior_ + != com.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior + .EXPIRE_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, expireBehavior_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.spanner.admin.instance.v1.FreeInstanceMetadata)) { + return super.equals(obj); + } + com.google.spanner.admin.instance.v1.FreeInstanceMetadata other = + (com.google.spanner.admin.instance.v1.FreeInstanceMetadata) obj; + + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (hasUpgradeTime() != other.hasUpgradeTime()) return false; + if (hasUpgradeTime()) { + if (!getUpgradeTime().equals(other.getUpgradeTime())) return false; + } + if (expireBehavior_ != other.expireBehavior_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + if (hasUpgradeTime()) { + hash = (37 * hash) + UPGRADE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpgradeTime().hashCode(); + } + hash = (37 * hash) + EXPIRE_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + expireBehavior_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.spanner.admin.instance.v1.FreeInstanceMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.admin.instance.v1.FreeInstanceMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.admin.instance.v1.FreeInstanceMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.admin.instance.v1.FreeInstanceMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.admin.instance.v1.FreeInstanceMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.spanner.admin.instance.v1.FreeInstanceMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.spanner.admin.instance.v1.FreeInstanceMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.spanner.admin.instance.v1.FreeInstanceMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.spanner.admin.instance.v1.FreeInstanceMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.spanner.admin.instance.v1.FreeInstanceMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.spanner.admin.instance.v1.FreeInstanceMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.spanner.admin.instance.v1.FreeInstanceMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.spanner.admin.instance.v1.FreeInstanceMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *+ * Free instance specific metadata that is kept even after an instance has been + * upgraded for tracking purposes. + *+ * + * Protobuf type {@code google.spanner.admin.instance.v1.FreeInstanceMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder+ implements + // @@protoc_insertion_point(builder_implements:google.spanner.admin.instance.v1.FreeInstanceMetadata) + com.google.spanner.admin.instance.v1.FreeInstanceMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto + .internal_static_google_spanner_admin_instance_v1_FreeInstanceMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto + .internal_static_google_spanner_admin_instance_v1_FreeInstanceMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.admin.instance.v1.FreeInstanceMetadata.class, + com.google.spanner.admin.instance.v1.FreeInstanceMetadata.Builder.class); + } + + // Construct using com.google.spanner.admin.instance.v1.FreeInstanceMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getExpireTimeFieldBuilder(); + getUpgradeTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + upgradeTime_ = null; + if (upgradeTimeBuilder_ != null) { + upgradeTimeBuilder_.dispose(); + upgradeTimeBuilder_ = null; + } + expireBehavior_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto + .internal_static_google_spanner_admin_instance_v1_FreeInstanceMetadata_descriptor; + } + + @java.lang.Override + public com.google.spanner.admin.instance.v1.FreeInstanceMetadata getDefaultInstanceForType() { + return com.google.spanner.admin.instance.v1.FreeInstanceMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.spanner.admin.instance.v1.FreeInstanceMetadata build() { + com.google.spanner.admin.instance.v1.FreeInstanceMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.spanner.admin.instance.v1.FreeInstanceMetadata buildPartial() { + com.google.spanner.admin.instance.v1.FreeInstanceMetadata result = + new com.google.spanner.admin.instance.v1.FreeInstanceMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.spanner.admin.instance.v1.FreeInstanceMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.upgradeTime_ = + upgradeTimeBuilder_ == null ? upgradeTime_ : upgradeTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.expireBehavior_ = expireBehavior_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.spanner.admin.instance.v1.FreeInstanceMetadata) { + return mergeFrom((com.google.spanner.admin.instance.v1.FreeInstanceMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.spanner.admin.instance.v1.FreeInstanceMetadata other) { + if (other == com.google.spanner.admin.instance.v1.FreeInstanceMetadata.getDefaultInstance()) + return this; + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + if (other.hasUpgradeTime()) { + mergeUpgradeTime(other.getUpgradeTime()); + } + if (other.expireBehavior_ != 0) { + setExpireBehaviorValue(other.getExpireBehaviorValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpgradeTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + expireBehavior_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + /** + * + * + * + * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *+ * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *+ * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *+ * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + /** + * + * + *+ * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *+ * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + } else { + expireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *+ * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *+ * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *+ * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); + } else { + expireTime_ = value; + } + } else { + expireTimeBuilder_.mergeFrom(value); + } + if (expireTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * + * + *+ * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *+ * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public Builder clearExpireTime() { + bitField0_ = (bitField0_ & ~0x00000001); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *+ * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *+ * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *+ * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *+ * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + /** + * + * + *+ * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *+ * .google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + private com.google.protobuf.Timestamp upgradeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + upgradeTimeBuilder_; + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *+ * .google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return Whether the upgradeTime field is set. + */ + public boolean hasUpgradeTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *+ * .google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The upgradeTime. + */ + public com.google.protobuf.Timestamp getUpgradeTime() { + if (upgradeTimeBuilder_ == null) { + return upgradeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : upgradeTime_; + } else { + return upgradeTimeBuilder_.getMessage(); + } + } + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *+ * .google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public Builder setUpgradeTime(com.google.protobuf.Timestamp value) { + if (upgradeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + upgradeTime_ = value; + } else { + upgradeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *+ * .google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public Builder setUpgradeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (upgradeTimeBuilder_ == null) { + upgradeTime_ = builderForValue.build(); + } else { + upgradeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *+ * .google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public Builder mergeUpgradeTime(com.google.protobuf.Timestamp value) { + if (upgradeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && upgradeTime_ != null + && upgradeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpgradeTimeBuilder().mergeFrom(value); + } else { + upgradeTime_ = value; + } + } else { + upgradeTimeBuilder_.mergeFrom(value); + } + if (upgradeTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *+ * .google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public Builder clearUpgradeTime() { + bitField0_ = (bitField0_ & ~0x00000002); + upgradeTime_ = null; + if (upgradeTimeBuilder_ != null) { + upgradeTimeBuilder_.dispose(); + upgradeTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *+ * .google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public com.google.protobuf.Timestamp.Builder getUpgradeTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpgradeTimeFieldBuilder().getBuilder(); + } + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *+ * .google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + public com.google.protobuf.TimestampOrBuilder getUpgradeTimeOrBuilder() { + if (upgradeTimeBuilder_ != null) { + return upgradeTimeBuilder_.getMessageOrBuilder(); + } else { + return upgradeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : upgradeTime_; + } + } + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *+ * .google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpgradeTimeFieldBuilder() { + if (upgradeTimeBuilder_ == null) { + upgradeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpgradeTime(), getParentForChildren(), isClean()); + upgradeTime_ = null; + } + return upgradeTimeBuilder_; + } + + private int expireBehavior_ = 0; + /** + * + * + *+ * Specifies the expiration behavior of a free instance. The default of + * ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during + * or after creation, and before expiration. + *+ * + *+ * .google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3; + *
+ * + * @return The enum numeric value on the wire for expireBehavior. + */ + @java.lang.Override + public int getExpireBehaviorValue() { + return expireBehavior_; + } + /** + * + * + *+ * Specifies the expiration behavior of a free instance. The default of + * ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during + * or after creation, and before expiration. + *+ * + *+ * .google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3; + *
+ * + * @param value The enum numeric value on the wire for expireBehavior to set. + * @return This builder for chaining. + */ + public Builder setExpireBehaviorValue(int value) { + expireBehavior_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *+ * Specifies the expiration behavior of a free instance. The default of + * ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during + * or after creation, and before expiration. + *+ * + *+ * .google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3; + *
+ * + * @return The expireBehavior. + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior + getExpireBehavior() { + com.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior result = + com.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior.forNumber( + expireBehavior_); + return result == null + ? com.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior.UNRECOGNIZED + : result; + } + /** + * + * + *+ * Specifies the expiration behavior of a free instance. The default of + * ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during + * or after creation, and before expiration. + *+ * + *+ * .google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3; + *
+ * + * @param value The expireBehavior to set. + * @return This builder for chaining. + */ + public Builder setExpireBehavior( + com.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + expireBehavior_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *+ * Specifies the expiration behavior of a free instance. The default of + * ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during + * or after creation, and before expiration. + *+ * + *+ * .google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3; + *
+ * + * @return This builder for chaining. + */ + public Builder clearExpireBehavior() { + bitField0_ = (bitField0_ & ~0x00000004); + expireBehavior_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.spanner.admin.instance.v1.FreeInstanceMetadata) + } + + // @@protoc_insertion_point(class_scope:google.spanner.admin.instance.v1.FreeInstanceMetadata) + private static final com.google.spanner.admin.instance.v1.FreeInstanceMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.spanner.admin.instance.v1.FreeInstanceMetadata(); + } + + public static com.google.spanner.admin.instance.v1.FreeInstanceMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.ParserPARSER = + new com.google.protobuf.AbstractParser () { + @java.lang.Override + public FreeInstanceMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.spanner.admin.instance.v1.FreeInstanceMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/FreeInstanceMetadataOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/FreeInstanceMetadataOrBuilder.java new file mode 100644 index 00000000000..4b326237d9c --- /dev/null +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/FreeInstanceMetadataOrBuilder.java @@ -0,0 +1,147 @@ +/* + * Copyright 2024 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/spanner/admin/instance/v1/spanner_instance_admin.proto + +// Protobuf Java Version: 3.25.5 +package com.google.spanner.admin.instance.v1; + +public interface FreeInstanceMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.spanner.admin.instance.v1.FreeInstanceMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + * + * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *.google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + /** + * + * + *+ * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *.google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + * + * + *+ * Output only. Timestamp after which the instance will either be upgraded or + * scheduled for deletion after a grace period. ExpireBehavior is used to + * choose between upgrading or scheduling the free instance for deletion. This + * timestamp is set during the creation of a free instance. + *+ * + *.google.protobuf.Timestamp expire_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *.google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return Whether the upgradeTime field is set. + */ + boolean hasUpgradeTime(); + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *.google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The upgradeTime. + */ + com.google.protobuf.Timestamp getUpgradeTime(); + /** + * + * + *+ * Output only. If present, the timestamp at which the free instance was + * upgraded to a provisioned instance. + *+ * + *.google.protobuf.Timestamp upgrade_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ */ + com.google.protobuf.TimestampOrBuilder getUpgradeTimeOrBuilder(); + + /** + * + * + *+ * Specifies the expiration behavior of a free instance. The default of + * ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during + * or after creation, and before expiration. + *+ * + *+ * .google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3; + *
+ * + * @return The enum numeric value on the wire for expireBehavior. + */ + int getExpireBehaviorValue(); + /** + * + * + *+ * Specifies the expiration behavior of a free instance. The default of + * ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during + * or after creation, and before expiration. + *+ * + *+ * .google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior expire_behavior = 3; + *
+ * + * @return The expireBehavior. + */ + com.google.spanner.admin.instance.v1.FreeInstanceMetadata.ExpireBehavior getExpireBehavior(); +} diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java index 5ed73ef4173..fe231c4ef6f 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/Instance.java @@ -44,6 +44,7 @@ private Instance() { displayName_ = ""; replicaComputeCapacity_ = java.util.Collections.emptyList(); state_ = 0; + instanceType_ = 0; endpointUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); edition_ = 0; defaultBackupScheduleType_ = 0; @@ -245,6 +246,172 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.spanner.admin.instance.v1.Instance.State) } + /** + * + * + *+ * The type of this instance. The type can be used to distinguish product + * variants, that can affect aspects like: usage restrictions, quotas and + * billing. Currently this is used to distinguish FREE_INSTANCE vs PROVISIONED + * instances. + *+ * + * Protobuf enum {@code google.spanner.admin.instance.v1.Instance.InstanceType} + */ + public enum InstanceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *+ * Not specified. + *+ * + *INSTANCE_TYPE_UNSPECIFIED = 0;
+ */ + INSTANCE_TYPE_UNSPECIFIED(0), + /** + * + * + *+ * Provisioned instances have dedicated resources, standard usage limits and + * support. + *+ * + *PROVISIONED = 1;
+ */ + PROVISIONED(1), + /** + * + * + *+ * Free instances provide no guarantee for dedicated resources, + * [node_count, processing_units] should be 0. They come + * with stricter usage limits and limited support. + *+ * + *FREE_INSTANCE = 2;
+ */ + FREE_INSTANCE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *+ * Not specified. + *+ * + *INSTANCE_TYPE_UNSPECIFIED = 0;
+ */ + public static final int INSTANCE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *+ * Provisioned instances have dedicated resources, standard usage limits and + * support. + *+ * + *PROVISIONED = 1;
+ */ + public static final int PROVISIONED_VALUE = 1; + /** + * + * + *+ * Free instances provide no guarantee for dedicated resources, + * [node_count, processing_units] should be 0. They come + * with stricter usage limits and limited support. + *+ * + *FREE_INSTANCE = 2;
+ */ + public static final int FREE_INSTANCE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static InstanceType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static InstanceType forNumber(int value) { + switch (value) { + case 0: + return INSTANCE_TYPE_UNSPECIFIED; + case 1: + return PROVISIONED; + case 2: + return FREE_INSTANCE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMapinternalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public InstanceType findValueByNumber(int number) { + return InstanceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.spanner.admin.instance.v1.Instance.getDescriptor().getEnumTypes().get(1); + } + + private static final InstanceType[] VALUES = values(); + + public static InstanceType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private InstanceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.spanner.admin.instance.v1.Instance.InstanceType) + } + /** * * @@ -401,7 +568,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.Instance.getDescriptor().getEnumTypes().get(1); + return com.google.spanner.admin.instance.v1.Instance.getDescriptor().getEnumTypes().get(2); } private static final Edition[] VALUES = values(); @@ -429,8 +596,10 @@ private Edition(int value) { * * * - * 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 enum {@code google.spanner.admin.instance.v1.Instance.DefaultBackupScheduleType} @@ -450,8 +619,8 @@ public enum DefaultBackupScheduleType implements com.google.protobuf.ProtocolMes * * *- * 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. ** *NONE = 1;
@@ -461,11 +630,10 @@ public enum DefaultBackupScheduleType implements com.google.protobuf.ProtocolMes * * *- * 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. ** *AUTOMATIC = 2;
@@ -488,8 +656,8 @@ public enum DefaultBackupScheduleType implements com.google.protobuf.ProtocolMes * * *- * 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. ** *NONE = 1;
@@ -499,11 +667,10 @@ public enum DefaultBackupScheduleType implements com.google.protobuf.ProtocolMes * * *- * 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. ** *AUTOMATIC = 2;
@@ -571,7 +738,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.spanner.admin.instance.v1.Instance.getDescriptor().getEnumTypes().get(2); + return com.google.spanner.admin.instance.v1.Instance.getDescriptor().getEnumTypes().get(3); } private static final DefaultBackupScheduleType[] VALUES = values(); @@ -786,9 +953,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * 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 @@ -823,10 +987,6 @@ public int getNodeCount() { * 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 @@ -1235,6 +1395,43 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int INSTANCE_TYPE_FIELD_NUMBER = 10; + private int instanceType_ = 0; + /** + * + * + *+ * The `InstanceType` of the current instance. + *+ * + *.google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
+ * + * @return The enum numeric value on the wire for instanceType. + */ + @java.lang.Override + public int getInstanceTypeValue() { + return instanceType_; + } + /** + * + * + *+ * The `InstanceType` of the current instance. + *+ * + *.google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
+ * + * @return The instanceType. + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.Instance.InstanceType getInstanceType() { + com.google.spanner.admin.instance.v1.Instance.InstanceType result = + com.google.spanner.admin.instance.v1.Instance.InstanceType.forNumber(instanceType_); + return result == null + ? com.google.spanner.admin.instance.v1.Instance.InstanceType.UNRECOGNIZED + : result; + } + public static final int ENDPOINT_URIS_FIELD_NUMBER = 8; @SuppressWarnings("serial") @@ -1397,6 +1594,60 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } + public static final int FREE_INSTANCE_METADATA_FIELD_NUMBER = 13; + private com.google.spanner.admin.instance.v1.FreeInstanceMetadata freeInstanceMetadata_; + /** + * + * + *+ * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ * + * @return Whether the freeInstanceMetadata field is set. + */ + @java.lang.Override + public boolean hasFreeInstanceMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *+ * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ * + * @return The freeInstanceMetadata. + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.FreeInstanceMetadata getFreeInstanceMetadata() { + return freeInstanceMetadata_ == null + ? com.google.spanner.admin.instance.v1.FreeInstanceMetadata.getDefaultInstance() + : freeInstanceMetadata_; + } + /** + * + * + *+ * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.FreeInstanceMetadataOrBuilder + getFreeInstanceMetadataOrBuilder() { + return freeInstanceMetadata_ == null + ? com.google.spanner.admin.instance.v1.FreeInstanceMetadata.getDefaultInstance() + : freeInstanceMetadata_; + } + public static final int EDITION_FIELD_NUMBER = 20; private int edition_ = 0; /** @@ -1444,15 +1695,16 @@ public com.google.spanner.admin.instance.v1.Instance.Edition getEdition() { * * *- * Optional. Controls the default backup behavior for new databases within the - * instance. + * 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 `AUTOMATIC` is not permitted for free instances, as backups and - * backup schedules are not allowed for free instances. + * 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. ** *@@ -1469,15 +1721,16 @@ public int getDefaultBackupScheduleTypeValue() { * * *
*/ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -4375,7 +4764,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -4419,7 +4808,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4440,7 +4829,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4457,7 +4846,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -4468,7 +4857,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -4485,7 +4874,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *- * Optional. Controls the default backup behavior for new databases within the - * instance. + * 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 `AUTOMATIC` is not permitted for free instances, as backups and - * backup schedules are not allowed for free instances. + * 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. ** *@@ -1535,12 +1788,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (processingUnits_ != 0) { output.writeInt32(9, processingUnits_); } + if (instanceType_ + != com.google.spanner.admin.instance.v1.Instance.InstanceType.INSTANCE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(10, instanceType_); + } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(11, getCreateTime()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(12, getUpdateTime()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(13, getFreeInstanceMetadata()); + } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(17, getAutoscalingConfig()); } @@ -1603,12 +1864,21 @@ public int getSerializedSize() { if (processingUnits_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, processingUnits_); } + if (instanceType_ + != com.google.spanner.admin.instance.v1.Instance.InstanceType.INSTANCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, instanceType_); + } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, getFreeInstanceMetadata()); + } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, getAutoscalingConfig()); } @@ -1656,6 +1926,7 @@ public boolean equals(final java.lang.Object obj) { } if (state_ != other.state_) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (instanceType_ != other.instanceType_) return false; if (!getEndpointUrisList().equals(other.getEndpointUrisList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { @@ -1665,6 +1936,10 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (hasFreeInstanceMetadata() != other.hasFreeInstanceMetadata()) return false; + if (hasFreeInstanceMetadata()) { + if (!getFreeInstanceMetadata().equals(other.getFreeInstanceMetadata())) return false; + } if (edition_ != other.edition_) return false; if (defaultBackupScheduleType_ != other.defaultBackupScheduleType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -1702,6 +1977,8 @@ public int hashCode() { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); } + hash = (37 * hash) + INSTANCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + instanceType_; if (getEndpointUrisCount() > 0) { hash = (37 * hash) + ENDPOINT_URIS_FIELD_NUMBER; hash = (53 * hash) + getEndpointUrisList().hashCode(); @@ -1714,6 +1991,10 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + if (hasFreeInstanceMetadata()) { + hash = (37 * hash) + FREE_INSTANCE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getFreeInstanceMetadata().hashCode(); + } hash = (37 * hash) + EDITION_FIELD_NUMBER; hash = (53 * hash) + edition_; hash = (37 * hash) + DEFAULT_BACKUP_SCHEDULE_TYPE_FIELD_NUMBER; @@ -1884,6 +2165,7 @@ private void maybeForceBuilderInitialization() { getAutoscalingConfigFieldBuilder(); getCreateTimeFieldBuilder(); getUpdateTimeFieldBuilder(); + getFreeInstanceMetadataFieldBuilder(); } } @@ -1910,6 +2192,7 @@ public Builder clear() { } state_ = 0; internalGetMutableLabels().clear(); + instanceType_ = 0; endpointUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); createTime_ = null; if (createTimeBuilder_ != null) { @@ -1921,6 +2204,11 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } + freeInstanceMetadata_ = null; + if (freeInstanceMetadataBuilder_ != null) { + freeInstanceMetadataBuilder_.dispose(); + freeInstanceMetadataBuilder_ = null; + } edition_ = 0; defaultBackupScheduleType_ = 0; return this; @@ -2003,21 +2291,31 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.Instance result) result.labels_.makeImmutable(); } if (((from_bitField0_ & 0x00000200) != 0)) { + result.instanceType_ = instanceType_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { endpointUris_.makeImmutable(); result.endpointUris_ = endpointUris_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { + result.freeInstanceMetadata_ = + freeInstanceMetadataBuilder_ == null + ? freeInstanceMetadata_ + : freeInstanceMetadataBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00004000) != 0)) { result.edition_ = edition_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.defaultBackupScheduleType_ = defaultBackupScheduleType_; } result.bitField0_ |= to_bitField0_; @@ -2124,10 +2422,13 @@ public Builder mergeFrom(com.google.spanner.admin.instance.v1.Instance other) { } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); bitField0_ |= 0x00000100; + if (other.instanceType_ != 0) { + setInstanceTypeValue(other.getInstanceTypeValue()); + } if (!other.endpointUris_.isEmpty()) { if (endpointUris_.isEmpty()) { endpointUris_ = other.endpointUris_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } else { ensureEndpointUrisIsMutable(); endpointUris_.addAll(other.endpointUris_); @@ -2140,6 +2441,9 @@ public Builder mergeFrom(com.google.spanner.admin.instance.v1.Instance other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (other.hasFreeInstanceMetadata()) { + mergeFreeInstanceMetadata(other.getFreeInstanceMetadata()); + } if (other.edition_ != 0) { setEditionValue(other.getEditionValue()); } @@ -2227,18 +2531,31 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 72 + case 80: + { + instanceType_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 case 90: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 90 case 98: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 98 + case 106: + { + input.readMessage( + getFreeInstanceMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 106 case 138: { input.readMessage( @@ -2263,13 +2580,13 @@ public Builder mergeFrom( case 160: { edition_ = input.readEnum(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; break; } // case 160 case 184: { defaultBackupScheduleType_ = input.readEnum(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; break; } // case 184 default: @@ -2671,9 +2988,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * 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 @@ -2704,9 +3018,6 @@ public int getNodeCount() { * 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 @@ -2741,9 +3052,6 @@ public Builder setNodeCount(int value) { * 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 @@ -2779,10 +3087,6 @@ public Builder clearNodeCount() { * 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 @@ -2814,10 +3118,6 @@ public int getProcessingUnits() { * 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 @@ -2853,10 +3153,6 @@ public Builder setProcessingUnits(int value) { * 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 @@ -3978,6 +4274,99 @@ public Builder putAllLabels(java.util.Map
*/ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -4303,7 +4692,7 @@ public Builder clearCreateTime() { *va return this; } + private int instanceType_ = 0; + /** + * + * + * + * The `InstanceType` of the current instance. + *+ * + *.google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
+ * + * @return The enum numeric value on the wire for instanceType. + */ + @java.lang.Override + public int getInstanceTypeValue() { + return instanceType_; + } + /** + * + * + *+ * The `InstanceType` of the current instance. + *+ * + *.google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
+ * + * @param value The enum numeric value on the wire for instanceType to set. + * @return This builder for chaining. + */ + public Builder setInstanceTypeValue(int value) { + instanceType_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *+ * The `InstanceType` of the current instance. + *+ * + *.google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
+ * + * @return The instanceType. + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.Instance.InstanceType getInstanceType() { + com.google.spanner.admin.instance.v1.Instance.InstanceType result = + com.google.spanner.admin.instance.v1.Instance.InstanceType.forNumber(instanceType_); + return result == null + ? com.google.spanner.admin.instance.v1.Instance.InstanceType.UNRECOGNIZED + : result; + } + /** + * + * + *+ * The `InstanceType` of the current instance. + *+ * + *.google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
+ * + * @param value The instanceType to set. + * @return This builder for chaining. + */ + public Builder setInstanceType( + com.google.spanner.admin.instance.v1.Instance.InstanceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + instanceType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *+ * The `InstanceType` of the current instance. + *+ * + *.google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
+ * + * @return This builder for chaining. + */ + public Builder clearInstanceType() { + bitField0_ = (bitField0_ & ~0x00000200); + instanceType_ = 0; + onChanged(); + return this; + } + private com.google.protobuf.LazyStringArrayList endpointUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -3985,7 +4374,7 @@ private void ensureEndpointUrisIsMutable() { if (!endpointUris_.isModifiable()) { endpointUris_ = new com.google.protobuf.LazyStringArrayList(endpointUris_); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } /** * @@ -4065,7 +4454,7 @@ public Builder setEndpointUris(int index, java.lang.String value) { } ensureEndpointUrisIsMutable(); endpointUris_.set(index, value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4087,7 +4476,7 @@ public Builder addEndpointUris(java.lang.String value) { } ensureEndpointUrisIsMutable(); endpointUris_.add(value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4106,7 +4495,7 @@ public Builder addEndpointUris(java.lang.String value) { public Builder addAllEndpointUris(java.lang.Iterablevalues) { ensureEndpointUrisIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endpointUris_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4123,7 +4512,7 @@ public Builder addAllEndpointUris(java.lang.Iterable values) { */ public Builder clearEndpointUris() { endpointUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); ; onChanged(); return this; @@ -4147,7 +4536,7 @@ public Builder addEndpointUrisBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureEndpointUrisIsMutable(); endpointUris_.add(value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4172,7 +4561,7 @@ public Builder addEndpointUrisBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -4216,7 +4605,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4237,7 +4626,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4254,7 +4643,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -4265,7 +4654,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -4282,7 +4671,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * + * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ * + * @return Whether the freeInstanceMetadata field is set. + */ + public boolean hasFreeInstanceMetadata() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * + * + *+ * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ * + * @return The freeInstanceMetadata. + */ + public com.google.spanner.admin.instance.v1.FreeInstanceMetadata getFreeInstanceMetadata() { + if (freeInstanceMetadataBuilder_ == null) { + return freeInstanceMetadata_ == null + ? com.google.spanner.admin.instance.v1.FreeInstanceMetadata.getDefaultInstance() + : freeInstanceMetadata_; + } else { + return freeInstanceMetadataBuilder_.getMessage(); + } + } + /** + * + * + *+ * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ */ + public Builder setFreeInstanceMetadata( + com.google.spanner.admin.instance.v1.FreeInstanceMetadata value) { + if (freeInstanceMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + freeInstanceMetadata_ = value; + } else { + freeInstanceMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *+ * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ */ + public Builder setFreeInstanceMetadata( + com.google.spanner.admin.instance.v1.FreeInstanceMetadata.Builder builderForValue) { + if (freeInstanceMetadataBuilder_ == null) { + freeInstanceMetadata_ = builderForValue.build(); + } else { + freeInstanceMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *+ * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ */ + public Builder mergeFreeInstanceMetadata( + com.google.spanner.admin.instance.v1.FreeInstanceMetadata value) { + if (freeInstanceMetadataBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && freeInstanceMetadata_ != null + && freeInstanceMetadata_ + != com.google.spanner.admin.instance.v1.FreeInstanceMetadata.getDefaultInstance()) { + getFreeInstanceMetadataBuilder().mergeFrom(value); + } else { + freeInstanceMetadata_ = value; + } + } else { + freeInstanceMetadataBuilder_.mergeFrom(value); + } + if (freeInstanceMetadata_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + * + * + *+ * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ */ + public Builder clearFreeInstanceMetadata() { + bitField0_ = (bitField0_ & ~0x00002000); + freeInstanceMetadata_ = null; + if (freeInstanceMetadataBuilder_ != null) { + freeInstanceMetadataBuilder_.dispose(); + freeInstanceMetadataBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *+ * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ */ + public com.google.spanner.admin.instance.v1.FreeInstanceMetadata.Builder + getFreeInstanceMetadataBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getFreeInstanceMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *+ * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ */ + public com.google.spanner.admin.instance.v1.FreeInstanceMetadataOrBuilder + getFreeInstanceMetadataOrBuilder() { + if (freeInstanceMetadataBuilder_ != null) { + return freeInstanceMetadataBuilder_.getMessageOrBuilder(); + } else { + return freeInstanceMetadata_ == null + ? com.google.spanner.admin.instance.v1.FreeInstanceMetadata.getDefaultInstance() + : freeInstanceMetadata_; + } + } + /** + * + * + *+ * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.instance.v1.FreeInstanceMetadata, + com.google.spanner.admin.instance.v1.FreeInstanceMetadata.Builder, + com.google.spanner.admin.instance.v1.FreeInstanceMetadataOrBuilder> + getFreeInstanceMetadataFieldBuilder() { + if (freeInstanceMetadataBuilder_ == null) { + freeInstanceMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.spanner.admin.instance.v1.FreeInstanceMetadata, + com.google.spanner.admin.instance.v1.FreeInstanceMetadata.Builder, + com.google.spanner.admin.instance.v1.FreeInstanceMetadataOrBuilder>( + getFreeInstanceMetadata(), getParentForChildren(), isClean()); + freeInstanceMetadata_ = null; + } + return freeInstanceMetadataBuilder_; + } + private int edition_ = 0; /** * @@ -4592,7 +5181,7 @@ public int getEditionValue() { */ public Builder setEditionValue(int value) { edition_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4635,7 +5224,7 @@ public Builder setEdition(com.google.spanner.admin.instance.v1.Instance.Edition if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00004000; edition_ = value.getNumber(); onChanged(); return this; @@ -4654,7 +5243,7 @@ public Builder setEdition(com.google.spanner.admin.instance.v1.Instance.Edition * @return This builder for chaining. */ public Builder clearEdition() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00004000); edition_ = 0; onChanged(); return this; @@ -4665,15 +5254,16 @@ public Builder clearEdition() { * * *- * Optional. Controls the default backup behavior for new databases within the - * instance. + * 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 `AUTOMATIC` is not permitted for free instances, as backups and - * backup schedules are not allowed for free instances. + * 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. ** *@@ -4690,15 +5280,16 @@ public int getDefaultBackupScheduleTypeValue() { * * *
- * Optional. Controls the default backup behavior for new databases within the - * instance. + * 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 `AUTOMATIC` is not permitted for free instances, as backups and - * backup schedules are not allowed for free instances. + * 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. ** *@@ -4710,7 +5301,7 @@ public int getDefaultBackupScheduleTypeValue() { */ public Builder setDefaultBackupScheduleTypeValue(int value) { defaultBackupScheduleType_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4718,15 +5309,16 @@ public Builder setDefaultBackupScheduleTypeValue(int value) { * * *
- * Optional. Controls the default backup behavior for new databases within the - * instance. + * 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 `AUTOMATIC` is not permitted for free instances, as backups and - * backup schedules are not allowed for free instances. + * 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. ** *@@ -4749,15 +5341,16 @@ public Builder setDefaultBackupScheduleTypeValue(int value) { * * *
- * Optional. Controls the default backup behavior for new databases within the - * instance. + * 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 `AUTOMATIC` is not permitted for free instances, as backups and - * backup schedules are not allowed for free instances. + * 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. ** *@@ -4772,7 +5365,7 @@ public Builder setDefaultBackupScheduleType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00008000; defaultBackupScheduleType_ = value.getNumber(); onChanged(); return this; @@ -4781,15 +5374,16 @@ public Builder setDefaultBackupScheduleType( * * *
- * Optional. Controls the default backup behavior for new databases within the - * instance. + * 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 `AUTOMATIC` is not permitted for free instances, as backups and - * backup schedules are not allowed for free instances. + * 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. ** *@@ -4799,7 +5393,7 @@ public Builder setDefaultBackupScheduleType( * @return This builder for chaining. */ public Builder clearDefaultBackupScheduleType() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00008000); defaultBackupScheduleType_ = 0; onChanged(); return this; diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java index fe9c5c59c31..8840002694a 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfig.java @@ -49,6 +49,8 @@ private InstanceConfig() { etag_ = ""; leaderOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); state_ = 0; + freeInstanceAvailability_ = 0; + quorumType_ = 0; } @java.lang.Override @@ -108,7 +110,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * * *
- * Google managed configuration. + * Google-managed configuration. ** *GOOGLE_MANAGED = 1;
@@ -118,7 +120,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * * *- * User managed configuration. + * User-managed configuration. ** *USER_MANAGED = 2;
@@ -141,7 +143,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * * *- * Google managed configuration. + * Google-managed configuration. ** *GOOGLE_MANAGED = 1;
@@ -151,7 +153,7 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * * *- * User managed configuration. + * User-managed configuration. ** *USER_MANAGED = 2;
@@ -404,6 +406,420 @@ private State(int value) { // @@protoc_insertion_point(enum_scope:google.spanner.admin.instance.v1.InstanceConfig.State) } + /** + * + * + *+ * Describes the availability for free instances to be created in an instance + * configuration. + *+ * + * Protobuf enum {@code google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability} + */ + public enum FreeInstanceAvailability implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *+ * Not specified. + *+ * + *FREE_INSTANCE_AVAILABILITY_UNSPECIFIED = 0;
+ */ + FREE_INSTANCE_AVAILABILITY_UNSPECIFIED(0), + /** + * + * + *+ * Indicates that free instances are available to be created in this + * instance configuration. + *+ * + *AVAILABLE = 1;
+ */ + AVAILABLE(1), + /** + * + * + *+ * Indicates that free instances are not supported in this instance + * configuration. + *+ * + *UNSUPPORTED = 2;
+ */ + UNSUPPORTED(2), + /** + * + * + *+ * Indicates that free instances are currently not available to be created + * in this instance configuration. + *+ * + *DISABLED = 3;
+ */ + DISABLED(3), + /** + * + * + *+ * Indicates that additional free instances cannot be created in this + * instance configuration because the project has reached its limit of free + * instances. + *+ * + *QUOTA_EXCEEDED = 4;
+ */ + QUOTA_EXCEEDED(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *+ * Not specified. + *+ * + *FREE_INSTANCE_AVAILABILITY_UNSPECIFIED = 0;
+ */ + public static final int FREE_INSTANCE_AVAILABILITY_UNSPECIFIED_VALUE = 0; + /** + * + * + *+ * Indicates that free instances are available to be created in this + * instance configuration. + *+ * + *AVAILABLE = 1;
+ */ + public static final int AVAILABLE_VALUE = 1; + /** + * + * + *+ * Indicates that free instances are not supported in this instance + * configuration. + *+ * + *UNSUPPORTED = 2;
+ */ + public static final int UNSUPPORTED_VALUE = 2; + /** + * + * + *+ * Indicates that free instances are currently not available to be created + * in this instance configuration. + *+ * + *DISABLED = 3;
+ */ + public static final int DISABLED_VALUE = 3; + /** + * + * + *+ * Indicates that additional free instances cannot be created in this + * instance configuration because the project has reached its limit of free + * instances. + *+ * + *QUOTA_EXCEEDED = 4;
+ */ + public static final int QUOTA_EXCEEDED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FreeInstanceAvailability valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FreeInstanceAvailability forNumber(int value) { + switch (value) { + case 0: + return FREE_INSTANCE_AVAILABILITY_UNSPECIFIED; + case 1: + return AVAILABLE; + case 2: + return UNSUPPORTED; + case 3: + return DISABLED; + case 4: + return QUOTA_EXCEEDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap+ internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public FreeInstanceAvailability findValueByNumber(int number) { + return FreeInstanceAvailability.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.spanner.admin.instance.v1.InstanceConfig.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final FreeInstanceAvailability[] VALUES = values(); + + public static FreeInstanceAvailability valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FreeInstanceAvailability(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability) + } + + /** + * + * + * + * Indicates the quorum type of this instance configuration. + *+ * + * Protobuf enum {@code google.spanner.admin.instance.v1.InstanceConfig.QuorumType} + */ + public enum QuorumType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *+ * Quorum type not specified. + *+ * + *QUORUM_TYPE_UNSPECIFIED = 0;
+ */ + QUORUM_TYPE_UNSPECIFIED(0), + /** + * + * + *+ * An instance configuration tagged with `REGION` quorum type forms a write + * quorum in a single region. + *+ * + *REGION = 1;
+ */ + REGION(1), + /** + * + * + *+ * An instance configuration tagged with the `DUAL_REGION` quorum type forms + * a write quorum with exactly two read-write regions in a multi-region + * configuration. + * + * This instance configuration requires failover in the event of + * regional failures. + *+ * + *DUAL_REGION = 2;
+ */ + DUAL_REGION(2), + /** + * + * + *+ * An instance configuration tagged with the `MULTI_REGION` quorum type + * forms a write quorum from replicas that are spread across more than one + * region in a multi-region configuration. + *+ * + *MULTI_REGION = 3;
+ */ + MULTI_REGION(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *+ * Quorum type not specified. + *+ * + *QUORUM_TYPE_UNSPECIFIED = 0;
+ */ + public static final int QUORUM_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *+ * An instance configuration tagged with `REGION` quorum type forms a write + * quorum in a single region. + *+ * + *REGION = 1;
+ */ + public static final int REGION_VALUE = 1; + /** + * + * + *+ * An instance configuration tagged with the `DUAL_REGION` quorum type forms + * a write quorum with exactly two read-write regions in a multi-region + * configuration. + * + * This instance configuration requires failover in the event of + * regional failures. + *+ * + *DUAL_REGION = 2;
+ */ + public static final int DUAL_REGION_VALUE = 2; + /** + * + * + *+ * An instance configuration tagged with the `MULTI_REGION` quorum type + * forms a write quorum from replicas that are spread across more than one + * region in a multi-region configuration. + *+ * + *MULTI_REGION = 3;
+ */ + public static final int MULTI_REGION_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static QuorumType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static QuorumType forNumber(int value) { + switch (value) { + case 0: + return QUORUM_TYPE_UNSPECIFIED; + case 1: + return REGION; + case 2: + return DUAL_REGION; + case 3: + return MULTI_REGION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMapinternalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap () { + public QuorumType findValueByNumber(int number) { + return QuorumType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.spanner.admin.instance.v1.InstanceConfig.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final QuorumType[] VALUES = values(); + + public static QuorumType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private QuorumType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.spanner.admin.instance.v1.InstanceConfig.QuorumType) + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -567,6 +983,11 @@ public com.google.spanner.admin.instance.v1.InstanceConfig.Type getConfigType() * * 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -581,6 +1002,11 @@ public java.util.ListgetRepli * * 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -596,6 +1022,11 @@ public java.util.ListgetRepli * * 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -610,6 +1041,11 @@ public int getReplicasCount() { ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -624,6 +1060,11 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) { ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -641,8 +1082,8 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBu * * *- * 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. ** *@@ -658,8 +1099,8 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBu * * *
- * 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. ** *@@ -675,8 +1116,8 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBu * * *
- * 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. ** *@@ -691,8 +1132,8 @@ public int getOptionalReplicasCount() { * * *
- * 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. ** *@@ -707,8 +1148,8 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo getOptionalReplicas(int * * *
- * 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. ** *@@ -730,9 +1171,9 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getOptionalRepl * *
* Base configuration name, e.g. projects/<project_name>/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. ** *string base_config = 7 [(.google.api.resource_reference) = { ... }
@@ -756,9 +1197,9 @@ public java.lang.String getBaseConfig() { * ** Base configuration name, e.g. projects/<project_name>/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. ** *string base_config = 7 [(.google.api.resource_reference) = { ... }
@@ -1110,56 +1551,162 @@ public com.google.protobuf.ByteString getLeaderOptionsBytes(int index) { * configuration. *bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *bool reconciling = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * + * @return The reconciling. + */ + @java.lang.Override + public boolean getReconciling() { + return reconciling_; + } + + public static final int STATE_FIELD_NUMBER = 11; + private int state_ = 0; + /** + * + * + *+ * Output only. The current instance configuration state. Applicable only for + * `USER_MANAGED` configurations. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *+ * Output only. The current instance configuration state. Applicable only for + * `USER_MANAGED` configurations. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The state. + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.InstanceConfig.State getState() { + com.google.spanner.admin.instance.v1.InstanceConfig.State result = + com.google.spanner.admin.instance.v1.InstanceConfig.State.forNumber(state_); + return result == null + ? com.google.spanner.admin.instance.v1.InstanceConfig.State.UNRECOGNIZED + : result; + } + + public static final int FREE_INSTANCE_AVAILABILITY_FIELD_NUMBER = 12; + private int freeInstanceAvailability_ = 0; + /** + * + * + *+ * Output only. Describes whether free instances are available to be created + * in this instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The enum numeric value on the wire for freeInstanceAvailability. + */ + @java.lang.Override + public int getFreeInstanceAvailabilityValue() { + return freeInstanceAvailability_; + } + /** + * + * + *+ * Output only. Describes whether free instances are available to be created + * in this instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The freeInstanceAvailability. + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability + getFreeInstanceAvailability() { + com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability result = + com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability.forNumber( + freeInstanceAvailability_); + return result == null + ? com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability.UNRECOGNIZED + : result; + } + + public static final int QUORUM_TYPE_FIELD_NUMBER = 18; + private int quorumType_ = 0; + /** + * + * + *+ * Output only. The `QuorumType` of the instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
* - * @return The reconciling. + * @return The enum numeric value on the wire for quorumType. */ @java.lang.Override - public boolean getReconciling() { - return reconciling_; + public int getQuorumTypeValue() { + return quorumType_; } - - public static final int STATE_FIELD_NUMBER = 11; - private int state_ = 0; /** * * *- * Output only. The current instance configuration state. Applicable only for - * `USER_MANAGED` configurations. + * Output only. The `QuorumType` of the instance configuration. ** *- * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; *
* - * @return The enum numeric value on the wire for state. + * @return The quorumType. */ @java.lang.Override - public int getStateValue() { - return state_; + public com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType getQuorumType() { + com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType result = + com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType.forNumber(quorumType_); + return result == null + ? com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType.UNRECOGNIZED + : result; } + + public static final int STORAGE_LIMIT_PER_PROCESSING_UNIT_FIELD_NUMBER = 19; + private long storageLimitPerProcessingUnit_ = 0L; /** * * *- * Output only. The current instance configuration state. Applicable only for - * `USER_MANAGED` configurations. + * Output only. The storage limit in bytes per processing unit. ** *- * .google.spanner.admin.instance.v1.InstanceConfig.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * int64 storage_limit_per_processing_unit = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; *
* - * @return The state. + * @return The storageLimitPerProcessingUnit. */ @java.lang.Override - public com.google.spanner.admin.instance.v1.InstanceConfig.State getState() { - com.google.spanner.admin.instance.v1.InstanceConfig.State result = - com.google.spanner.admin.instance.v1.InstanceConfig.State.forNumber(state_); - return result == null - ? com.google.spanner.admin.instance.v1.InstanceConfig.State.UNRECOGNIZED - : result; + public long getStorageLimitPerProcessingUnit() { + return storageLimitPerProcessingUnit_; } private byte memoizedIsInitialized = -1; @@ -1211,6 +1758,20 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(11, state_); } + if (freeInstanceAvailability_ + != com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability + .FREE_INSTANCE_AVAILABILITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(12, freeInstanceAvailability_); + } + if (quorumType_ + != com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType.QUORUM_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(18, quorumType_); + } + if (storageLimitPerProcessingUnit_ != 0L) { + output.writeInt64(19, storageLimitPerProcessingUnit_); + } getUnknownFields().writeTo(output); } @@ -1268,6 +1829,22 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, state_); } + if (freeInstanceAvailability_ + != com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability + .FREE_INSTANCE_AVAILABILITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, freeInstanceAvailability_); + } + if (quorumType_ + != com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType.QUORUM_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(18, quorumType_); + } + if (storageLimitPerProcessingUnit_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 19, storageLimitPerProcessingUnit_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1295,6 +1872,10 @@ public boolean equals(final java.lang.Object obj) { if (!getLeaderOptionsList().equals(other.getLeaderOptionsList())) return false; if (getReconciling() != other.getReconciling()) return false; if (state_ != other.state_) return false; + if (freeInstanceAvailability_ != other.freeInstanceAvailability_) return false; + if (quorumType_ != other.quorumType_) return false; + if (getStorageLimitPerProcessingUnit() != other.getStorageLimitPerProcessingUnit()) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1336,6 +1917,12 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReconciling()); hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + state_; + hash = (37 * hash) + FREE_INSTANCE_AVAILABILITY_FIELD_NUMBER; + hash = (53 * hash) + freeInstanceAvailability_; + hash = (37 * hash) + QUORUM_TYPE_FIELD_NUMBER; + hash = (53 * hash) + quorumType_; + hash = (37 * hash) + STORAGE_LIMIT_PER_PROCESSING_UNIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStorageLimitPerProcessingUnit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1521,6 +2108,9 @@ public Builder clear() { leaderOptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); reconciling_ = false; state_ = 0; + freeInstanceAvailability_ = 0; + quorumType_ = 0; + storageLimitPerProcessingUnit_ = 0L; return this; } @@ -1609,6 +2199,15 @@ private void buildPartial0(com.google.spanner.admin.instance.v1.InstanceConfig r if (((from_bitField0_ & 0x00000400) != 0)) { result.state_ = state_; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.freeInstanceAvailability_ = freeInstanceAvailability_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.quorumType_ = quorumType_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.storageLimitPerProcessingUnit_ = storageLimitPerProcessingUnit_; + } } @java.lang.Override @@ -1752,6 +2351,15 @@ public Builder mergeFrom(com.google.spanner.admin.instance.v1.InstanceConfig oth if (other.state_ != 0) { setStateValue(other.getStateValue()); } + if (other.freeInstanceAvailability_ != 0) { + setFreeInstanceAvailabilityValue(other.getFreeInstanceAvailabilityValue()); + } + if (other.quorumType_ != 0) { + setQuorumTypeValue(other.getQuorumTypeValue()); + } + if (other.getStorageLimitPerProcessingUnit() != 0L) { + setStorageLimitPerProcessingUnit(other.getStorageLimitPerProcessingUnit()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1867,6 +2475,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; break; } // case 88 + case 96: + { + freeInstanceAvailability_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 144: + { + quorumType_ = input.readEnum(); + bitField0_ |= 0x00001000; + break; + } // case 144 + case 152: + { + storageLimitPerProcessingUnit_ = input.readInt64(); + bitField0_ |= 0x00002000; + break; + } // case 152 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2248,6 +2874,11 @@ private void ensureReplicasIsMutable() { ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2265,6 +2896,11 @@ public java.util.ListgetRepli * * 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2282,6 +2918,11 @@ public int getReplicasCount() { ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2299,6 +2940,11 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) { ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2322,6 +2968,11 @@ public Builder setReplicas(int index, com.google.spanner.admin.instance.v1.Repli ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2343,6 +2994,11 @@ public Builder setReplicas( ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2366,6 +3022,11 @@ public Builder addReplicas(com.google.spanner.admin.instance.v1.ReplicaInfo valu ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2389,6 +3050,11 @@ public Builder addReplicas(int index, com.google.spanner.admin.instance.v1.Repli ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2410,6 +3076,11 @@ public Builder addReplicas( ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2431,6 +3102,11 @@ public Builder addReplicas( ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2452,6 +3128,11 @@ public Builder addAllReplicas( ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2472,6 +3153,11 @@ public Builder clearReplicas() { ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2492,6 +3178,11 @@ public Builder removeReplicas(int index) { ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2505,6 +3196,11 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder getReplicasBuild ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2523,6 +3219,11 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBu ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2541,6 +3242,11 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBu ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2555,6 +3261,11 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuild ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2569,6 +3280,11 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuild ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -2617,8 +3333,8 @@ private void ensureOptionalReplicasIsMutable() { * * *- * 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. ** *@@ -2637,8 +3353,8 @@ private void ensureOptionalReplicasIsMutable() { * * *
- * 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. ** *@@ -2656,8 +3372,8 @@ public int getOptionalReplicasCount() { * * *
- * 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. ** *@@ -2675,8 +3391,8 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo getOptionalReplicas(int * * *
- * 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. ** *@@ -2701,8 +3417,8 @@ public Builder setOptionalReplicas( * * *
- * 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. ** *@@ -2724,8 +3440,8 @@ public Builder setOptionalReplicas( * * *
- * 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. ** *@@ -2749,8 +3465,8 @@ public Builder addOptionalReplicas(com.google.spanner.admin.instance.v1.ReplicaI * * *
- * 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. ** *@@ -2775,8 +3491,8 @@ public Builder addOptionalReplicas( * * *
- * 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. ** *@@ -2798,8 +3514,8 @@ public Builder addOptionalReplicas( * * *
- * 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. ** *@@ -2821,8 +3537,8 @@ public Builder addOptionalReplicas( * * *
- * 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. ** *@@ -2844,8 +3560,8 @@ public Builder addAllOptionalReplicas( * * *
- * 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. ** *@@ -2866,8 +3582,8 @@ public Builder clearOptionalReplicas() { * * *
- * 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. ** *@@ -2888,8 +3604,8 @@ public Builder removeOptionalReplicas(int index) { * * *
- * 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. ** *@@ -2904,8 +3620,8 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder getOptionalRepli * * *
- * 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. ** *@@ -2924,8 +3640,8 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getOptionalRepl * * *
- * 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. ** *@@ -2944,8 +3660,8 @@ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getOptionalRepl * * *
- * 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. ** *@@ -2960,8 +3676,8 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addOptionalRepli * * *
- * 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. ** *@@ -2977,8 +3693,8 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addOptionalRepli * * *
- * 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. ** *@@ -3016,9 +3732,9 @@ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addOptionalRepli * *
* Base configuration name, e.g. projects/<project_name>/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. ** *string base_config = 7 [(.google.api.resource_reference) = { ... }
@@ -3041,9 +3757,9 @@ public java.lang.String getBaseConfig() { * ** Base configuration name, e.g. projects/<project_name>/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. ** *string base_config = 7 [(.google.api.resource_reference) = { ... }
@@ -3066,9 +3782,9 @@ public com.google.protobuf.ByteString getBaseConfigBytes() { * ** Base configuration name, e.g. projects/<project_name>/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. ** *string base_config = 7 [(.google.api.resource_reference) = { ... }
@@ -3090,9 +3806,9 @@ public Builder setBaseConfig(java.lang.String value) { * ** Base configuration name, e.g. projects/<project_name>/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. ** *string base_config = 7 [(.google.api.resource_reference) = { ... }
@@ -3110,9 +3826,9 @@ public Builder clearBaseConfig() { * ** Base configuration name, e.g. projects/<project_name>/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. ** *string base_config = 7 [(.google.api.resource_reference) = { ... }
@@ -3939,6 +4655,279 @@ public Builder clearState() { return this; } + private int freeInstanceAvailability_ = 0; + /** + * + * + *+ * Output only. Describes whether free instances are available to be created + * in this instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The enum numeric value on the wire for freeInstanceAvailability. + */ + @java.lang.Override + public int getFreeInstanceAvailabilityValue() { + return freeInstanceAvailability_; + } + /** + * + * + *+ * Output only. Describes whether free instances are available to be created + * in this instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @param value The enum numeric value on the wire for freeInstanceAvailability to set. + * @return This builder for chaining. + */ + public Builder setFreeInstanceAvailabilityValue(int value) { + freeInstanceAvailability_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *+ * Output only. Describes whether free instances are available to be created + * in this instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The freeInstanceAvailability. + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability + getFreeInstanceAvailability() { + com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability result = + com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability.forNumber( + freeInstanceAvailability_); + return result == null + ? com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability + .UNRECOGNIZED + : result; + } + /** + * + * + *+ * Output only. Describes whether free instances are available to be created + * in this instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @param value The freeInstanceAvailability to set. + * @return This builder for chaining. + */ + public Builder setFreeInstanceAvailability( + com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + freeInstanceAvailability_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *+ * Output only. Describes whether free instances are available to be created + * in this instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return This builder for chaining. + */ + public Builder clearFreeInstanceAvailability() { + bitField0_ = (bitField0_ & ~0x00000800); + freeInstanceAvailability_ = 0; + onChanged(); + return this; + } + + private int quorumType_ = 0; + /** + * + * + *+ * Output only. The `QuorumType` of the instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The enum numeric value on the wire for quorumType. + */ + @java.lang.Override + public int getQuorumTypeValue() { + return quorumType_; + } + /** + * + * + *+ * Output only. The `QuorumType` of the instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @param value The enum numeric value on the wire for quorumType to set. + * @return This builder for chaining. + */ + public Builder setQuorumTypeValue(int value) { + quorumType_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *+ * Output only. The `QuorumType` of the instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The quorumType. + */ + @java.lang.Override + public com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType getQuorumType() { + com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType result = + com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType.forNumber(quorumType_); + return result == null + ? com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType.UNRECOGNIZED + : result; + } + /** + * + * + *+ * Output only. The `QuorumType` of the instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @param value The quorumType to set. + * @return This builder for chaining. + */ + public Builder setQuorumType( + com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00001000; + quorumType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *+ * Output only. The `QuorumType` of the instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return This builder for chaining. + */ + public Builder clearQuorumType() { + bitField0_ = (bitField0_ & ~0x00001000); + quorumType_ = 0; + onChanged(); + return this; + } + + private long storageLimitPerProcessingUnit_; + /** + * + * + *+ * Output only. The storage limit in bytes per processing unit. + *+ * + *+ * int64 storage_limit_per_processing_unit = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The storageLimitPerProcessingUnit. + */ + @java.lang.Override + public long getStorageLimitPerProcessingUnit() { + return storageLimitPerProcessingUnit_; + } + /** + * + * + *+ * Output only. The storage limit in bytes per processing unit. + *+ * + *+ * int64 storage_limit_per_processing_unit = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @param value The storageLimitPerProcessingUnit to set. + * @return This builder for chaining. + */ + public Builder setStorageLimitPerProcessingUnit(long value) { + + storageLimitPerProcessingUnit_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * + * + *+ * Output only. The storage limit in bytes per processing unit. + *+ * + *+ * int64 storage_limit_per_processing_unit = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return This builder for chaining. + */ + public Builder clearStorageLimitPerProcessingUnit() { + bitField0_ = (bitField0_ & ~0x00002000); + storageLimitPerProcessingUnit_ = 0L; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java index ed36ecec926..f5e931c1d7a 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceConfigOrBuilder.java @@ -119,6 +119,11 @@ public interface InstanceConfigOrBuilder ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -130,6 +135,11 @@ public interface InstanceConfigOrBuilder ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -141,6 +151,11 @@ public interface InstanceConfigOrBuilder ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -152,6 +167,11 @@ public interface InstanceConfigOrBuilder ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -164,6 +184,11 @@ public interface InstanceConfigOrBuilder ** 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`. ** *repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 3;
@@ -174,8 +199,8 @@ public interface InstanceConfigOrBuilder * * *- * 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. ** *@@ -187,8 +212,8 @@ public interface InstanceConfigOrBuilder * * *
- * 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. ** *@@ -200,8 +225,8 @@ public interface InstanceConfigOrBuilder * * *
- * 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. ** *@@ -213,8 +238,8 @@ public interface InstanceConfigOrBuilder * * *
- * 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. ** *@@ -227,8 +252,8 @@ public interface InstanceConfigOrBuilder * * *
- * 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. ** *@@ -242,9 +267,9 @@ public interface InstanceConfigOrBuilder * *
* Base configuration name, e.g. projects/<project_name>/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. ** *string base_config = 7 [(.google.api.resource_reference) = { ... }
@@ -257,9 +282,9 @@ public interface InstanceConfigOrBuilder * ** Base configuration name, e.g. projects/<project_name>/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. ** *string base_config = 7 [(.google.api.resource_reference) = { ... }
@@ -571,4 +596,80 @@ java.lang.String getLabelsOrDefault( * @return The state. */ com.google.spanner.admin.instance.v1.InstanceConfig.State getState(); + + /** + * + * + *+ * Output only. Describes whether free instances are available to be created + * in this instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The enum numeric value on the wire for freeInstanceAvailability. + */ + int getFreeInstanceAvailabilityValue(); + /** + * + * + *+ * Output only. Describes whether free instances are available to be created + * in this instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability free_instance_availability = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The freeInstanceAvailability. + */ + com.google.spanner.admin.instance.v1.InstanceConfig.FreeInstanceAvailability + getFreeInstanceAvailability(); + + /** + * + * + *+ * Output only. The `QuorumType` of the instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The enum numeric value on the wire for quorumType. + */ + int getQuorumTypeValue(); + /** + * + * + *+ * Output only. The `QuorumType` of the instance configuration. + *+ * + *+ * .google.spanner.admin.instance.v1.InstanceConfig.QuorumType quorum_type = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The quorumType. + */ + com.google.spanner.admin.instance.v1.InstanceConfig.QuorumType getQuorumType(); + + /** + * + * + *+ * Output only. The storage limit in bytes per processing unit. + *+ * + *+ * int64 storage_limit_per_processing_unit = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * + * @return The storageLimitPerProcessingUnit. + */ + long getStorageLimitPerProcessingUnit(); } diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java index 6ebc4e67d45..78eaaf46528 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstanceOrBuilder.java @@ -133,9 +133,6 @@ public interface InstanceOrBuilder * 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 @@ -165,10 +162,6 @@ public interface InstanceOrBuilder * 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 @@ -500,6 +493,31 @@ java.lang.String getLabelsOrDefault( */ java.lang.String getLabelsOrThrow(java.lang.String key); + /** + * + * + *+ * The `InstanceType` of the current instance. + *+ * + *.google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
+ * + * @return The enum numeric value on the wire for instanceType. + */ + int getInstanceTypeValue(); + /** + * + * + *+ * The `InstanceType` of the current instance. + *+ * + *.google.spanner.admin.instance.v1.Instance.InstanceType instance_type = 10;
+ * + * @return The instanceType. + */ + com.google.spanner.admin.instance.v1.Instance.InstanceType getInstanceType(); + /** * * @@ -627,6 +645,45 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + /** + * + * + *+ * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ * + * @return Whether the freeInstanceMetadata field is set. + */ + boolean hasFreeInstanceMetadata(); + /** + * + * + *+ * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ * + * @return The freeInstanceMetadata. + */ + com.google.spanner.admin.instance.v1.FreeInstanceMetadata getFreeInstanceMetadata(); + /** + * + * + *+ * Free instance metadata. Only populated for free instances. + *+ * + *.google.spanner.admin.instance.v1.FreeInstanceMetadata free_instance_metadata = 13; + *
+ */ + com.google.spanner.admin.instance.v1.FreeInstanceMetadataOrBuilder + getFreeInstanceMetadataOrBuilder(); + /** * * @@ -660,15 +717,16 @@ java.lang.String getLabelsOrDefault( * * *- * Optional. Controls the default backup behavior for new databases within the - * instance. + * 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 `AUTOMATIC` is not permitted for free instances, as backups and - * backup schedules are not allowed for free instances. + * 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. ** *@@ -682,15 +740,16 @@ java.lang.String getLabelsOrDefault( * * *
- * Optional. Controls the default backup behavior for new databases within the - * instance. + * 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 `AUTOMATIC` is not permitted for free instances, as backups and - * backup schedules are not allowed for free instances. + * 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. ** *diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartition.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartition.java index bd5ea351202..3325b4816fa 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartition.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartition.java @@ -467,8 +467,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { *
* 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`. @@ -488,8 +488,8 @@ public boolean hasNodeCount() { ** @@ -1655,7 +1656,8 @@ public Builder mergeInstancePartitionDeadline(com.google.protobuf.Timestamp valu * 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]. ** 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`. @@ -514,11 +514,11 @@ public int getNodeCount() { ** @@ -1622,7 +1622,8 @@ public Builder setInstancePartitionDeadline( * 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]. ** 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. + * 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`. + * This might be zero in API responses for instance partitions that are not + * yet in the `READY` state. ** *int32 processing_units = 6;
@@ -535,11 +535,11 @@ public boolean 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. + * 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`. + * This might be zero in API responses for instance partitions that are not + * yet in the `READY` state. ** *int32 processing_units = 6;
@@ -785,17 +785,22 @@ public com.google.protobuf.ByteString getReferencingDatabasesBytes(int index) { * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @return A list containing the referencingBackups. */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getReferencingBackupsList() { return referencingBackups_; } @@ -803,17 +808,22 @@ public com.google.protobuf.ProtocolStringList getReferencingBackupsList() { * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @return The count of referencingBackups. */ + @java.lang.Deprecated public int getReferencingBackupsCount() { return referencingBackups_.size(); } @@ -821,18 +831,23 @@ public int getReferencingBackupsCount() { * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @param index The index of the element to return. * @return The referencingBackups at the given index. */ + @java.lang.Deprecated public java.lang.String getReferencingBackups(int index) { return referencingBackups_.get(index); } @@ -840,18 +855,23 @@ public java.lang.String getReferencingBackups(int index) { * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @param index The index of the value to return. * @return The bytes of the referencingBackups at the given index. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getReferencingBackupsBytes(int index) { return referencingBackups_.getByteString(index); } @@ -1988,8 +2008,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { ** 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`. @@ -2008,8 +2028,8 @@ public boolean hasNodeCount() { ** @@ -1596,7 +1595,8 @@ public Builder setInstancePartitionDeadline(com.google.protobuf.Timestamp value) * 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]. ** 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`. @@ -2031,8 +2051,8 @@ public int getNodeCount() { ** @@ -1568,7 +1566,8 @@ public com.google.protobuf.Timestamp getInstancePartitionDeadline() { * 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]. ** 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`. @@ -2056,8 +2076,8 @@ public Builder setNodeCount(int value) { ** @@ -1542,7 +1539,8 @@ public boolean hasInstancePartitionDeadline() { * 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]. ** 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`. @@ -2082,11 +2102,11 @@ public Builder clearNodeCount() { ** @@ -1024,8 +1025,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * 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. @@ -1088,8 +1088,7 @@ public java.lang.String getFilter() { * 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. @@ -1152,8 +1151,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * 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. @@ -1215,8 +1213,7 @@ public Builder setFilter(java.lang.String value) { * 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. @@ -1274,8 +1271,7 @@ public Builder clearFilter() { * 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. @@ -1522,7 +1518,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * 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]. ** 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. + * 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`. + * This might be zero in API responses for instance partitions that are not + * yet in the `READY` state. ** *int32 processing_units = 6;
@@ -2102,11 +2122,11 @@ public boolean 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. + * 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`. + * This might be zero in API responses for instance partitions that are not + * yet in the `READY` state. ** *int32 processing_units = 6;
@@ -2125,11 +2145,11 @@ public int getProcessingUnits() { ** 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. + * 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`. + * This might be zero in API responses for instance partitions that are not + * yet in the `READY` state. ** *int32 processing_units = 6;
@@ -2150,11 +2170,11 @@ public Builder setProcessingUnits(int value) { ** 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. + * 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`. + * This might be zero in API responses for instance partitions that are not + * yet in the `READY` state. ** *int32 processing_units = 6;
@@ -2919,17 +2939,22 @@ private void ensureReferencingBackupsIsMutable() { * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @return A list containing the referencingBackups. */ + @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getReferencingBackupsList() { referencingBackups_.makeImmutable(); return referencingBackups_; @@ -2938,17 +2963,22 @@ public com.google.protobuf.ProtocolStringList getReferencingBackupsList() { * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @return The count of referencingBackups. */ + @java.lang.Deprecated public int getReferencingBackupsCount() { return referencingBackups_.size(); } @@ -2956,18 +2986,23 @@ public int getReferencingBackupsCount() { * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @param index The index of the element to return. * @return The referencingBackups at the given index. */ + @java.lang.Deprecated public java.lang.String getReferencingBackups(int index) { return referencingBackups_.get(index); } @@ -2975,18 +3010,23 @@ public java.lang.String getReferencingBackups(int index) { * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @param index The index of the value to return. * @return The bytes of the referencingBackups at the given index. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getReferencingBackupsBytes(int index) { return referencingBackups_.getByteString(index); } @@ -2994,19 +3034,24 @@ public com.google.protobuf.ByteString getReferencingBackupsBytes(int index) { * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @param index The index to set the value at. * @param value The referencingBackups to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setReferencingBackups(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -3021,18 +3066,23 @@ public Builder setReferencingBackups(int index, java.lang.String value) { * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @param value The referencingBackups to add. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder addReferencingBackups(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -3047,18 +3097,23 @@ public Builder addReferencingBackups(java.lang.String value) { * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @param values The referencingBackups to add. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder addAllReferencingBackups(java.lang.Iterablevalues) { ensureReferencingBackupsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referencingBackups_); @@ -3070,17 +3125,22 @@ public Builder addAllReferencingBackups(java.lang.Iterable val * * * + * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearReferencingBackups() { referencingBackups_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000200); @@ -3092,18 +3152,23 @@ public Builder clearReferencingBackups() { * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @param value The bytes of the referencingBackups to add. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder addReferencingBackupsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartitionOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartitionOrBuilder.java index 8299ee692be..a620baac70d 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartitionOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/InstancePartitionOrBuilder.java @@ -127,8 +127,8 @@ public interface InstancePartitionOrBuilder ** 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`. @@ -145,8 +145,8 @@ public interface InstancePartitionOrBuilder ** @@ -393,7 +393,8 @@ public com.google.protobuf.Timestamp getInstancePartitionDeadline() { * 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]. ** 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`. @@ -164,11 +164,11 @@ public interface InstancePartitionOrBuilder ** @@ -370,7 +369,8 @@ public boolean hasInstancePartitionDeadline() { * 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]. ** 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. + * 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`. + * This might be zero in API responses for instance partitions that are not + * yet in the `READY` state. ** *int32 processing_units = 6;
@@ -182,11 +182,11 @@ public interface InstancePartitionOrBuilder ** 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. + * 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`. + * This might be zero in API responses for instance partitions that are not + * yet in the `READY` state. ** *int32 processing_units = 6;
@@ -374,67 +374,87 @@ public interface InstancePartitionOrBuilder * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @return A list containing the referencingBackups. */ + @java.lang.Deprecated java.util.ListgetReferencingBackupsList(); /** * * * + * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @return The count of referencingBackups. */ + @java.lang.Deprecated int getReferencingBackupsCount(); /** * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @param index The index of the element to return. * @return The referencingBackups at the given index. */ + @java.lang.Deprecated java.lang.String getReferencingBackups(int index); /** * * *+ * 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. ** - *repeated string referencing_backups = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + *
+ * repeated string referencing_backups = 11 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; *
* + * @deprecated google.spanner.admin.instance.v1.InstancePartition.referencing_backups is + * deprecated. See google/spanner/admin/instance/v1/spanner_instance_admin.proto;l=1781 * @param index The index of the value to return. * @return The bytes of the referencingBackups at the given index. */ + @java.lang.Deprecated com.google.protobuf.ByteString getReferencingBackupsBytes(int index); /** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequest.java index 7790d99d7a3..f9084b565ba 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequest.java @@ -141,8 +141,7 @@ public com.google.protobuf.ByteString getParentBytes() { * 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. @@ -206,8 +205,7 @@ public java.lang.String getFilter() { * 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. @@ -898,8 +896,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * 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. @@ -962,8 +959,7 @@ public java.lang.String getFilter() { * 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. @@ -1026,8 +1022,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * 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. @@ -1089,8 +1084,7 @@ public Builder setFilter(java.lang.String value) { * 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. @@ -1148,8 +1142,7 @@ public Builder clearFilter() { * 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. diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequestOrBuilder.java index 8aa43b97043..cb23836447e 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsRequestOrBuilder.java @@ -67,8 +67,7 @@ public interface ListInstanceConfigOperationsRequestOrBuilder * 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. @@ -121,8 +120,7 @@ public interface ListInstanceConfigOperationsRequestOrBuilder * 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. diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponse.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponse.java index eb10ad4f5b8..227e7ba9569 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponse.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponse.java @@ -76,10 +76,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *- * 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. ** @@ -93,10 +93,10 @@ public java.util.ListgetOperationsList() { * * * - * 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. ** @@ -111,10 +111,10 @@ public java.util.ListgetOperationsList() { * * * - * 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. ** @@ -128,10 +128,10 @@ public int getOperationsCount() { * * *- * 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. ** @@ -145,10 +145,10 @@ public com.google.longrunning.Operation getOperations(int index) { * * *- * 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. ** @@ -662,10 +662,10 @@ private void ensureOperationsIsMutable() { * * *- * 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. ** @@ -682,10 +682,10 @@ public java.util.ListgetOperationsList() { * * * - * 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. ** @@ -702,10 +702,10 @@ public int getOperationsCount() { * * *- * 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. ** @@ -722,10 +722,10 @@ public com.google.longrunning.Operation getOperations(int index) { * * *- * 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. ** @@ -748,10 +748,10 @@ public Builder setOperations(int index, com.google.longrunning.Operation value) * * *- * 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. ** @@ -772,10 +772,10 @@ public Builder setOperations( * * *- * 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. ** @@ -798,10 +798,10 @@ public Builder addOperations(com.google.longrunning.Operation value) { * * *- * 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. ** @@ -824,10 +824,10 @@ public Builder addOperations(int index, com.google.longrunning.Operation value) * * *- * 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. ** @@ -847,10 +847,10 @@ public Builder addOperations(com.google.longrunning.Operation.Builder builderFor * * *- * 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. ** @@ -871,10 +871,10 @@ public Builder addOperations( * * *- * 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. ** @@ -895,10 +895,10 @@ public Builder addAllOperations( * * *- * 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. ** @@ -918,10 +918,10 @@ public Builder clearOperations() { * * *- * 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. ** @@ -941,10 +941,10 @@ public Builder removeOperations(int index) { * * *- * 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. ** @@ -957,10 +957,10 @@ public com.google.longrunning.Operation.Builder getOperationsBuilder(int index) * * *- * 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. ** @@ -977,10 +977,10 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde * * *- * 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. ** @@ -998,10 +998,10 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde * * *- * 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. ** @@ -1015,10 +1015,10 @@ public com.google.longrunning.Operation.Builder addOperationsBuilder() { * * *- * 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. ** @@ -1032,10 +1032,10 @@ public com.google.longrunning.Operation.Builder addOperationsBuilder(int index) * * *- * 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. ** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponseOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponseOrBuilder.java index 0636115bd47..29bdde29607 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponseOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstanceConfigOperationsResponseOrBuilder.java @@ -28,10 +28,10 @@ public interface ListInstanceConfigOperationsResponseOrBuilder * * *- * 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. ** @@ -42,10 +42,10 @@ public interface ListInstanceConfigOperationsResponseOrBuilder * * *- * 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. ** @@ -56,10 +56,10 @@ public interface ListInstanceConfigOperationsResponseOrBuilder * * *- * 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. ** @@ -70,10 +70,10 @@ public interface ListInstanceConfigOperationsResponseOrBuilder * * *- * 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. ** @@ -84,10 +84,10 @@ public interface ListInstanceConfigOperationsResponseOrBuilder * * *- * 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. ** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsRequest.java index 0ed4d357a7e..f8416eda4d0 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsRequest.java @@ -143,8 +143,7 @@ public com.google.protobuf.ByteString getParentBytes() { * 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. @@ -208,8 +207,7 @@ public java.lang.String getFilter() { * 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. @@ -349,7 +347,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * 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]. *- * 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. ** @@ -94,10 +94,10 @@ public java.util.ListgetOperationsList() { * * * - * 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. ** @@ -112,10 +112,10 @@ public java.util.ListgetOperationsList() { * * * - * 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. ** @@ -129,10 +129,10 @@ public int getOperationsCount() { * * *- * 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. ** @@ -146,10 +146,10 @@ public com.google.longrunning.Operation getOperations(int index) { * * *- * 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. ** @@ -784,10 +784,10 @@ private void ensureOperationsIsMutable() { * * *- * 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. ** @@ -804,10 +804,10 @@ public java.util.ListgetOperationsList() { * * * - * 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. ** @@ -824,10 +824,10 @@ public int getOperationsCount() { * * *- * 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. ** @@ -844,10 +844,10 @@ public com.google.longrunning.Operation getOperations(int index) { * * *- * 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. ** @@ -870,10 +870,10 @@ public Builder setOperations(int index, com.google.longrunning.Operation value) * * *- * 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. ** @@ -894,10 +894,10 @@ public Builder setOperations( * * *- * 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. ** @@ -920,10 +920,10 @@ public Builder addOperations(com.google.longrunning.Operation value) { * * *- * 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. ** @@ -946,10 +946,10 @@ public Builder addOperations(int index, com.google.longrunning.Operation value) * * *- * 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. ** @@ -969,10 +969,10 @@ public Builder addOperations(com.google.longrunning.Operation.Builder builderFor * * *- * 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. ** @@ -993,10 +993,10 @@ public Builder addOperations( * * *- * 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. ** @@ -1017,10 +1017,10 @@ public Builder addAllOperations( * * *- * 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. ** @@ -1040,10 +1040,10 @@ public Builder clearOperations() { * * *- * 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. ** @@ -1063,10 +1063,10 @@ public Builder removeOperations(int index) { * * *- * 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. ** @@ -1079,10 +1079,10 @@ public com.google.longrunning.Operation.Builder getOperationsBuilder(int index) * * *- * 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. ** @@ -1099,10 +1099,10 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde * * *- * 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. ** @@ -1120,10 +1120,10 @@ public com.google.longrunning.OperationOrBuilder getOperationsOrBuilder(int inde * * *- * 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. ** @@ -1137,10 +1137,10 @@ public com.google.longrunning.Operation.Builder addOperationsBuilder() { * * *- * 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. ** @@ -1154,10 +1154,10 @@ public com.google.longrunning.Operation.Builder addOperationsBuilder(int index) * * *- * 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. ** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsResponseOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsResponseOrBuilder.java index 532d290414a..84cdafefa5b 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsResponseOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionOperationsResponseOrBuilder.java @@ -28,10 +28,10 @@ public interface ListInstancePartitionOperationsResponseOrBuilder * * *- * 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. ** @@ -42,10 +42,10 @@ public interface ListInstancePartitionOperationsResponseOrBuilder * * *- * 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. ** @@ -56,10 +56,10 @@ public interface ListInstancePartitionOperationsResponseOrBuilder * * *- * 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. ** @@ -70,10 +70,10 @@ public interface ListInstancePartitionOperationsResponseOrBuilder * * *- * 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. ** @@ -84,10 +84,10 @@ public interface ListInstancePartitionOperationsResponseOrBuilder * * *- * 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. ** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsRequest.java index dd4b5784fbd..db26b6f2ce8 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsRequest.java @@ -75,7 +75,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * ** Required. The instance whose instance partitions should be listed. Values - * are of the form `projects/<project>/instances/<instance>`. + * are of the form `projects/<project>/instances/<instance>`. Use `{instance} + * = '-'` to list instance partitions for all Instances in a project, e.g., + * `projects/myproject/instances/-`. ** *@@ -101,7 +103,9 @@ public java.lang.String getParent() { * *
* Required. The instance whose instance partitions should be listed. Values - * are of the form `projects/<project>/instances/<instance>`. + * are of the form `projects/<project>/instances/<instance>`. Use `{instance} + * = '-'` to list instance partitions for all Instances in a project, e.g., + * `projects/myproject/instances/-`. ** *@@ -724,7 +728,9 @@ public Builder mergeFrom( * *
* Required. The instance whose instance partitions should be listed. Values - * are of the form `projects/<project>/instances/<instance>`. + * are of the form `projects/<project>/instances/<instance>`. Use `{instance} + * = '-'` to list instance partitions for all Instances in a project, e.g., + * `projects/myproject/instances/-`. ** *@@ -749,7 +755,9 @@ public java.lang.String getParent() { * *
* Required. The instance whose instance partitions should be listed. Values - * are of the form `projects/<project>/instances/<instance>`. + * are of the form `projects/<project>/instances/<instance>`. Use `{instance} + * = '-'` to list instance partitions for all Instances in a project, e.g., + * `projects/myproject/instances/-`. ** *@@ -774,7 +782,9 @@ public com.google.protobuf.ByteString getParentBytes() { * *
* Required. The instance whose instance partitions should be listed. Values - * are of the form `projects/<project>/instances/<instance>`. + * are of the form `projects/<project>/instances/<instance>`. Use `{instance} + * = '-'` to list instance partitions for all Instances in a project, e.g., + * `projects/myproject/instances/-`. ** *@@ -798,7 +808,9 @@ public Builder setParent(java.lang.String value) { * *
* Required. The instance whose instance partitions should be listed. Values - * are of the form `projects/<project>/instances/<instance>`. + * are of the form `projects/<project>/instances/<instance>`. Use `{instance} + * = '-'` to list instance partitions for all Instances in a project, e.g., + * `projects/myproject/instances/-`. ** *@@ -818,7 +830,9 @@ public Builder clearParent() { * *
* Required. The instance whose instance partitions should be listed. Values - * are of the form `projects/<project>/instances/<instance>`. + * are of the form `projects/<project>/instances/<instance>`. Use `{instance} + * = '-'` to list instance partitions for all Instances in a project, e.g., + * `projects/myproject/instances/-`. ** *diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsRequestOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsRequestOrBuilder.java index c305bad2129..63cdee2ba60 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsRequestOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsRequestOrBuilder.java @@ -29,7 +29,9 @@ public interface ListInstancePartitionsRequestOrBuilder * *
* Required. The instance whose instance partitions should be listed. Values - * are of the form `projects/<project>/instances/<instance>`. + * are of the form `projects/<project>/instances/<instance>`. Use `{instance} + * = '-'` to list instance partitions for all Instances in a project, e.g., + * `projects/myproject/instances/-`. ** *@@ -44,7 +46,9 @@ public interface ListInstancePartitionsRequestOrBuilder * *
* Required. The instance whose instance partitions should be listed. Values - * are of the form `projects/<project>/instances/<instance>`. + * are of the form `projects/<project>/instances/<instance>`. Use `{instance} + * = '-'` to list instance partitions for all Instances in a project, e.g., + * `projects/myproject/instances/-`. ** *diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsResponse.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsResponse.java index 77fadf1fe14..743c8c48393 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsResponse.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsResponse.java @@ -210,9 +210,9 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * * *
- * 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]. ** @@ -227,9 +227,9 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *- * 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]. ** @@ -244,9 +244,9 @@ public int getUnreachableCount() { * * *- * 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]. ** @@ -262,9 +262,9 @@ public java.lang.String getUnreachable(int index) { * * *- * 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]. ** @@ -1253,9 +1253,9 @@ private void ensureUnreachableIsMutable() { * * *- * 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]. ** @@ -1271,9 +1271,9 @@ public com.google.protobuf.ProtocolStringList getUnreachableList() { * * *- * 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]. ** @@ -1288,9 +1288,9 @@ public int getUnreachableCount() { * * *- * 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]. ** @@ -1306,9 +1306,9 @@ public java.lang.String getUnreachable(int index) { * * *- * 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]. ** @@ -1324,9 +1324,9 @@ public com.google.protobuf.ByteString getUnreachableBytes(int index) { * * *- * 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]. ** @@ -1350,9 +1350,9 @@ public Builder setUnreachable(int index, java.lang.String value) { * * *- * 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]. ** @@ -1375,9 +1375,9 @@ public Builder addUnreachable(java.lang.String value) { * * *- * 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]. ** @@ -1397,9 +1397,9 @@ public Builder addAllUnreachable(java.lang.Iterablevalues) { * * * - * 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]. ** @@ -1418,9 +1418,9 @@ public Builder clearUnreachable() { * * *- * 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]. ** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsResponseOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsResponseOrBuilder.java index 2ad1ffb742a..2197a85a70a 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsResponseOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ListInstancePartitionsResponseOrBuilder.java @@ -116,9 +116,9 @@ com.google.spanner.admin.instance.v1.InstancePartitionOrBuilder getInstanceParti * * *- * 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]. ** @@ -131,9 +131,9 @@ com.google.spanner.admin.instance.v1.InstancePartitionOrBuilder getInstanceParti * * *- * 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]. ** @@ -146,9 +146,9 @@ com.google.spanner.admin.instance.v1.InstancePartitionOrBuilder getInstanceParti * * *- * 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]. ** @@ -162,9 +162,9 @@ com.google.spanner.admin.instance.v1.InstancePartitionOrBuilder getInstanceParti * * *- * 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]. ** diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfo.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfo.java index 1c633dded9a..90a336cc4e1 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfo.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfo.java @@ -279,7 +279,7 @@ private ReplicaType(int value) { * * *- * The location of the serving resources, e.g. "us-central1". + * The location of the serving resources, e.g., "us-central1". ** *string location = 1;
@@ -302,7 +302,7 @@ public java.lang.String getLocation() { * * *- * The location of the serving resources, e.g. "us-central1". + * The location of the serving resources, e.g., "us-central1". ** *string location = 1;
@@ -767,7 +767,7 @@ public Builder mergeFrom( * * *- * The location of the serving resources, e.g. "us-central1". + * The location of the serving resources, e.g., "us-central1". ** *string location = 1;
@@ -789,7 +789,7 @@ public java.lang.String getLocation() { * * *- * The location of the serving resources, e.g. "us-central1". + * The location of the serving resources, e.g., "us-central1". ** *string location = 1;
@@ -811,7 +811,7 @@ public com.google.protobuf.ByteString getLocationBytes() { * * *- * The location of the serving resources, e.g. "us-central1". + * The location of the serving resources, e.g., "us-central1". ** *string location = 1;
@@ -832,7 +832,7 @@ public Builder setLocation(java.lang.String value) { * * *- * The location of the serving resources, e.g. "us-central1". + * The location of the serving resources, e.g., "us-central1". ** *string location = 1;
@@ -849,7 +849,7 @@ public Builder clearLocation() { * * *- * The location of the serving resources, e.g. "us-central1". + * The location of the serving resources, e.g., "us-central1". ** *string location = 1;
diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfoOrBuilder.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfoOrBuilder.java index ec4219e4c17..767e0de3089 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfoOrBuilder.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/ReplicaInfoOrBuilder.java @@ -28,7 +28,7 @@ public interface ReplicaInfoOrBuilder * * *- * The location of the serving resources, e.g. "us-central1". + * The location of the serving resources, e.g., "us-central1". ** *string location = 1;
@@ -40,7 +40,7 @@ public interface ReplicaInfoOrBuilder * * *- * The location of the serving resources, e.g. "us-central1". + * The location of the serving resources, e.g., "us-central1". ** *string location = 1;
diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java index b286514fd32..b525827c82e 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/SpannerInstanceAdminProto.java @@ -136,6 +136,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_spanner_admin_instance_v1_UpdateInstanceMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_spanner_admin_instance_v1_FreeInstanceMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_spanner_admin_instance_v1_FreeInstanceMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -225,7 +229,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "min.instance.v1.ReplicaInfo.ReplicaType\022" + "\037\n\027default_leader_location\030\003 \001(\010\"O\n\013Repl" + "icaType\022\024\n\020TYPE_UNSPECIFIED\020\000\022\016\n\nREAD_WR" - + "ITE\020\001\022\r\n\tREAD_ONLY\020\002\022\013\n\007WITNESS\020\003\"\276\006\n\016In" + + "ITE\020\001\022\r\n\tREAD_ONLY\020\002\022\013\n\007WITNESS\020\003\"\300\n\n\016In" + "stanceConfig\022\014\n\004name\030\001 \001(\t\022\024\n\014display_na" + "me\030\002 \001(\t\022O\n\013config_type\030\005 \001(\01625.google.s" + "panner.admin.instance.v1.InstanceConfig." @@ -239,361 +243,390 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nfig.LabelsEntry\022\014\n\004etag\030\t \001(\t\022\026\n\016leader" + "_options\030\004 \003(\t\022\030\n\013reconciling\030\n \001(\010B\003\340A\003" + "\022J\n\005state\030\013 \001(\01626.google.spanner.admin.i" - + "nstance.v1.InstanceConfig.StateB\003\340A\003\032-\n\013" - + "LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\"B\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016GOO" - + "GLE_MANAGED\020\001\022\020\n\014USER_MANAGED\020\002\"7\n\005State" - + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n" - + "\005READY\020\002:`\352A]\n%spanner.googleapis.com/In" - + "stanceConfig\0224projects/{project}/instanc" - + "eConfigs/{instance_config}\"\262\001\n\026ReplicaCo" - + "mputeCapacity\022R\n\021replica_selection\030\001 \001(\013" - + "22.google.spanner.admin.instance.v1.Repl" - + "icaSelectionB\003\340A\002\022\024\n\nnode_count\030\002 \001(\005H\000\022" - + "\032\n\020processing_units\030\003 \001(\005H\000B\022\n\020compute_c" - + "apacity\"\270\010\n\021AutoscalingConfig\022f\n\022autosca" + + "nstance.v1.InstanceConfig.StateB\003\340A\003\022r\n\032" + + "free_instance_availability\030\014 \001(\0162I.googl" + + "e.spanner.admin.instance.v1.InstanceConf" + + "ig.FreeInstanceAvailabilityB\003\340A\003\022U\n\013quor" + + "um_type\030\022 \001(\0162;.google.spanner.admin.ins" + + "tance.v1.InstanceConfig.QuorumTypeB\003\340A\003\022" + + ".\n!storage_limit_per_processing_unit\030\023 \001" + + "(\003B\003\340A\003\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"B\n\004Type\022\024\n\020TYPE_UNSPECIFI" + + "ED\020\000\022\022\n\016GOOGLE_MANAGED\020\001\022\020\n\014USER_MANAGED" + + "\020\002\"7\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CR" + + "EATING\020\001\022\t\n\005READY\020\002\"\210\001\n\030FreeInstanceAvai" + + "lability\022*\n&FREE_INSTANCE_AVAILABILITY_U" + + "NSPECIFIED\020\000\022\r\n\tAVAILABLE\020\001\022\017\n\013UNSUPPORT" + + "ED\020\002\022\014\n\010DISABLED\020\003\022\022\n\016QUOTA_EXCEEDED\020\004\"X" + + "\n\nQuorumType\022\033\n\027QUORUM_TYPE_UNSPECIFIED\020" + + "\000\022\n\n\006REGION\020\001\022\017\n\013DUAL_REGION\020\002\022\020\n\014MULTI_" + + "REGION\020\003:\201\001\352A~\n%spanner.googleapis.com/I" + + "nstanceConfig\0224projects/{project}/instan" + + "ceConfigs/{instance_config}*\017instanceCon" + + "figs2\016instanceConfig\"\262\001\n\026ReplicaComputeC" + + "apacity\022R\n\021replica_selection\030\001 \001(\01322.goo" + + "gle.spanner.admin.instance.v1.ReplicaSel" + + "ectionB\003\340A\002\022\024\n\nnode_count\030\002 \001(\005H\000\022\032\n\020pro" + + "cessing_units\030\003 \001(\005H\000B\022\n\020compute_capacit" + + "y\"\270\010\n\021AutoscalingConfig\022f\n\022autoscaling_l" + + "imits\030\001 \001(\0132E.google.spanner.admin.insta" + + "nce.v1.AutoscalingConfig.AutoscalingLimi" + + "tsB\003\340A\002\022h\n\023autoscaling_targets\030\002 \001(\0132F.g" + + "oogle.spanner.admin.instance.v1.Autoscal" + + "ingConfig.AutoscalingTargetsB\003\340A\002\022|\n\036asy" + + "mmetric_autoscaling_options\030\003 \003(\0132O.goog" + + "le.spanner.admin.instance.v1.Autoscaling" + + "Config.AsymmetricAutoscalingOptionB\003\340A\001\032" + + "\227\001\n\021AutoscalingLimits\022\023\n\tmin_nodes\030\001 \001(\005" + + "H\000\022\036\n\024min_processing_units\030\002 \001(\005H\000\022\023\n\tma" + + "x_nodes\030\003 \001(\005H\001\022\036\n\024max_processing_units\030" + + "\004 \001(\005H\001B\013\n\tmin_limitB\013\n\tmax_limit\032r\n\022Aut" + + "oscalingTargets\0222\n%high_priority_cpu_uti" + + "lization_percent\030\001 \001(\005B\003\340A\002\022(\n\033storage_u" + + "tilization_percent\030\002 \001(\005B\003\340A\002\032\304\003\n\033Asymme" + + "tricAutoscalingOption\022R\n\021replica_selecti" + + "on\030\001 \001(\01322.google.spanner.admin.instance" + + ".v1.ReplicaSelectionB\003\340A\002\022\202\001\n\toverrides\030" + + "\002 \001(\0132j.google.spanner.admin.instance.v1" + + ".AutoscalingConfig.AsymmetricAutoscaling" + + "Option.AutoscalingConfigOverridesB\003\340A\001\032\313" + + "\001\n\032AutoscalingConfigOverrides\022f\n\022autosca" + "ling_limits\030\001 \001(\0132E.google.spanner.admin" + ".instance.v1.AutoscalingConfig.Autoscali" - + "ngLimitsB\003\340A\002\022h\n\023autoscaling_targets\030\002 \001" - + "(\0132F.google.spanner.admin.instance.v1.Au" - + "toscalingConfig.AutoscalingTargetsB\003\340A\002\022" - + "|\n\036asymmetric_autoscaling_options\030\003 \003(\0132" - + "O.google.spanner.admin.instance.v1.Autos" - + "calingConfig.AsymmetricAutoscalingOption" - + "B\003\340A\001\032\227\001\n\021AutoscalingLimits\022\023\n\tmin_nodes" - + "\030\001 \001(\005H\000\022\036\n\024min_processing_units\030\002 \001(\005H\000" - + "\022\023\n\tmax_nodes\030\003 \001(\005H\001\022\036\n\024max_processing_" - + "units\030\004 \001(\005H\001B\013\n\tmin_limitB\013\n\tmax_limit\032" - + "r\n\022AutoscalingTargets\0222\n%high_priority_c" - + "pu_utilization_percent\030\001 \001(\005B\003\340A\002\022(\n\033sto" - + "rage_utilization_percent\030\002 \001(\005B\003\340A\002\032\304\003\n\033" - + "AsymmetricAutoscalingOption\022R\n\021replica_s" - + "election\030\001 \001(\01322.google.spanner.admin.in" - + "stance.v1.ReplicaSelectionB\003\340A\002\022\202\001\n\tover" - + "rides\030\002 \001(\0132j.google.spanner.admin.insta" - + "nce.v1.AutoscalingConfig.AsymmetricAutos" - + "calingOption.AutoscalingConfigOverridesB" - + "\003\340A\001\032\313\001\n\032AutoscalingConfigOverrides\022f\n\022a" - + "utoscaling_limits\030\001 \001(\0132E.google.spanner" - + ".admin.instance.v1.AutoscalingConfig.Aut" - + "oscalingLimitsB\003\340A\001\022E\n8autoscaling_targe" - + "t_high_priority_cpu_utilization_percent\030" - + "\002 \001(\005B\003\340A\001\"\232\t\n\010Instance\022\021\n\004name\030\001 \001(\tB\003\340" - + "A\002\022=\n\006config\030\002 \001(\tB-\340A\002\372A\'\n%spanner.goog" - + "leapis.com/InstanceConfig\022\031\n\014display_nam" - + "e\030\003 \001(\tB\003\340A\002\022\022\n\nnode_count\030\005 \001(\005\022\030\n\020proc" - + "essing_units\030\t \001(\005\022_\n\030replica_compute_ca" - + "pacity\030\023 \003(\01328.google.spanner.admin.inst" - + "ance.v1.ReplicaComputeCapacityB\003\340A\003\022T\n\022a" - + "utoscaling_config\030\021 \001(\01323.google.spanner" - + ".admin.instance.v1.AutoscalingConfigB\003\340A" - + "\001\022D\n\005state\030\006 \001(\01620.google.spanner.admin." - + "instance.v1.Instance.StateB\003\340A\003\022F\n\006label" - + "s\030\007 \003(\01326.google.spanner.admin.instance." - + "v1.Instance.LabelsEntry\022\025\n\rendpoint_uris" - + "\030\010 \003(\t\0224\n\013create_time\030\013 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\014 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022H\n\007ed" - + "ition\030\024 \001(\01622.google.spanner.admin.insta" - + "nce.v1.Instance.EditionB\003\340A\001\022o\n\034default_" - + "backup_schedule_type\030\027 \001(\0162D.google.span" - + "ner.admin.instance.v1.Instance.DefaultBa" - + "ckupScheduleTypeB\003\340A\001\032-\n\013LabelsEntry\022\013\n\003" - + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005RE" - + "ADY\020\002\"U\n\007Edition\022\027\n\023EDITION_UNSPECIFIED\020" - + "\000\022\014\n\010STANDARD\020\001\022\016\n\nENTERPRISE\020\002\022\023\n\017ENTER" - + "PRISE_PLUS\020\003\"b\n\031DefaultBackupScheduleTyp" - + "e\022,\n(DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPEC" - + "IFIED\020\000\022\010\n\004NONE\020\001\022\r\n\tAUTOMATIC\020\002:M\352AJ\n\037s" - + "panner.googleapis.com/Instance\022\'projects" - + "/{project}/instances/{instance}\"\210\001\n\032List" - + "InstanceConfigsRequest\022C\n\006parent\030\001 \001(\tB3" - + "\340A\002\372A-\n+cloudresourcemanager.googleapis." - + "com/Project\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"\202\001\n\033ListInstanceConfigsRespon" - + "se\022J\n\020instance_configs\030\001 \003(\01320.google.sp" - + "anner.admin.instance.v1.InstanceConfig\022\027" - + "\n\017next_page_token\030\002 \001(\t\"W\n\030GetInstanceCo" - + "nfigRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%spann" - + "er.googleapis.com/InstanceConfig\"\352\001\n\033Cre" - + "ateInstanceConfigRequest\022C\n\006parent\030\001 \001(\t" - + "B3\340A\002\372A-\n+cloudresourcemanager.googleapi" - + "s.com/Project\022\037\n\022instance_config_id\030\002 \001(" - + "\tB\003\340A\002\022N\n\017instance_config\030\003 \001(\01320.google" - + ".spanner.admin.instance.v1.InstanceConfi" - + "gB\003\340A\002\022\025\n\rvalidate_only\030\004 \001(\010\"\272\001\n\033Update" - + "InstanceConfigRequest\022N\n\017instance_config" - + "\030\001 \001(\01320.google.spanner.admin.instance.v" - + "1.InstanceConfigB\003\340A\002\0224\n\013update_mask\030\002 \001" - + "(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\025\n\rv" - + "alidate_only\030\003 \001(\010\"\177\n\033DeleteInstanceConf" - + "igRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%spanner" - + ".googleapis.com/InstanceConfig\022\014\n\004etag\030\002" - + " \001(\t\022\025\n\rvalidate_only\030\003 \001(\010\"\241\001\n#ListInst" - + "anceConfigOperationsRequest\022C\n\006parent\030\001 " - + "\001(\tB3\340A\002\372A-\n+cloudresourcemanager.google" - + "apis.com/Project\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage" - + "_size\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"r\n$ListI" - + "nstanceConfigOperationsResponse\0221\n\nopera" - + "tions\030\001 \003(\0132\035.google.longrunning.Operati" - + "on\022\027\n\017next_page_token\030\002 \001(\t\"{\n\022GetInstan" - + "ceRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037spanner" - + ".googleapis.com/Instance\022.\n\nfield_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMask\"\271\001\n\025Cre" - + "ateInstanceRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372" - + "A-\n+cloudresourcemanager.googleapis.com/" - + "Project\022\030\n\013instance_id\030\002 \001(\tB\003\340A\002\022A\n\010ins" - + "tance\030\003 \001(\0132*.google.spanner.admin.insta" - + "nce.v1.InstanceB\003\340A\002\"\311\001\n\024ListInstancesRe" - + "quest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudreso" - + "urcemanager.googleapis.com/Project\022\021\n\tpa" - + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006fil" - + "ter\030\004 \001(\t\0225\n\021instance_deadline\030\005 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\"\204\001\n\025ListInstanc" - + "esResponse\022=\n\tinstances\030\001 \003(\0132*.google.s" - + "panner.admin.instance.v1.Instance\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"" - + "\217\001\n\025UpdateInstanceRequest\022A\n\010instance\030\001 " - + "\001(\0132*.google.spanner.admin.instance.v1.I" - + "nstanceB\003\340A\002\0223\n\nfield_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\003\340A\002\"N\n\025DeleteInsta" - + "nceRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037spanne" - + "r.googleapis.com/Instance\"\277\002\n\026CreateInst" - + "anceMetadata\022<\n\010instance\030\001 \001(\0132*.google." - + "spanner.admin.instance.v1.Instance\022.\n\nst" - + "art_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mp\022/\n\013cancel_time\030\003 \001(\0132\032.google.protobu" - + "f.Timestamp\022,\n\010end_time\030\004 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022X\n\033expected_fulfillmen" - + "t_period\030\005 \001(\01623.google.spanner.admin.in" - + "stance.v1.FulfillmentPeriod\"\277\002\n\026UpdateIn" - + "stanceMetadata\022<\n\010instance\030\001 \001(\0132*.googl" - + "e.spanner.admin.instance.v1.Instance\022.\n\n" - + "start_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tamp\022/\n\013cancel_time\030\003 \001(\0132\032.google.proto" - + "buf.Timestamp\022,\n\010end_time\030\004 \001(\0132\032.google" - + ".protobuf.Timestamp\022X\n\033expected_fulfillm" - + "ent_period\030\005 \001(\01623.google.spanner.admin." - + "instance.v1.FulfillmentPeriod\"\341\001\n\034Create" - + "InstanceConfigMetadata\022I\n\017instance_confi" - + "g\030\001 \001(\01320.google.spanner.admin.instance." - + "v1.InstanceConfig\022E\n\010progress\030\002 \001(\01323.go" - + "ogle.spanner.admin.instance.v1.Operation" - + "Progress\022/\n\013cancel_time\030\003 \001(\0132\032.google.p" - + "rotobuf.Timestamp\"\341\001\n\034UpdateInstanceConf" - + "igMetadata\022I\n\017instance_config\030\001 \001(\01320.go" - + "ogle.spanner.admin.instance.v1.InstanceC" - + "onfig\022E\n\010progress\030\002 \001(\01323.google.spanner" - + ".admin.instance.v1.OperationProgress\022/\n\013" - + "cancel_time\030\003 \001(\0132\032.google.protobuf.Time" - + "stamp\"\216\005\n\021InstancePartition\022\021\n\004name\030\001 \001(" - + "\tB\003\340A\002\022=\n\006config\030\002 \001(\tB-\340A\002\372A\'\n%spanner." - + "googleapis.com/InstanceConfig\022\031\n\014display" - + "_name\030\003 \001(\tB\003\340A\002\022\024\n\nnode_count\030\005 \001(\005H\000\022\032" - + "\n\020processing_units\030\006 \001(\005H\000\022M\n\005state\030\007 \001(" - + "\01629.google.spanner.admin.instance.v1.Ins" - + "tancePartition.StateB\003\340A\003\0224\n\013create_time" - + "\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "4\n\013update_time\030\t \001(\0132\032.google.protobuf.T" - + "imestampB\003\340A\003\022\"\n\025referencing_databases\030\n" - + " \003(\tB\003\340A\003\022 \n\023referencing_backups\030\013 \003(\tB\003" - + "\340A\003\022\014\n\004etag\030\014 \001(\t\"7\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002:~\352A{\n" - + "(spanner.googleapis.com/InstancePartitio" - + "n\022Oprojects/{project}/instances/{instanc" - + "e}/instancePartitions/{instance_partitio" - + "n}B\022\n\020compute_capacity\"\201\002\n\037CreateInstanc" - + "ePartitionMetadata\022O\n\022instance_partition" - + "\030\001 \001(\01323.google.spanner.admin.instance.v" - + "1.InstancePartition\022.\n\nstart_time\030\002 \001(\0132" - + "\032.google.protobuf.Timestamp\022/\n\013cancel_ti" - + "me\030\003 \001(\0132\032.google.protobuf.Timestamp\022,\n\010" - + "end_time\030\004 \001(\0132\032.google.protobuf.Timesta" - + "mp\"\323\001\n\036CreateInstancePartitionRequest\0227\n" - + "\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.googleapi" - + "s.com/Instance\022\"\n\025instance_partition_id\030" - + "\002 \001(\tB\003\340A\002\022T\n\022instance_partition\030\003 \001(\01323" + + "ngLimitsB\003\340A\001\022E\n8autoscaling_target_high" + + "_priority_cpu_utilization_percent\030\002 \001(\005B" + + "\003\340A\001\"\252\013\n\010Instance\022\021\n\004name\030\001 \001(\tB\003\340A\002\022=\n\006" + + "config\030\002 \001(\tB-\340A\002\372A\'\n%spanner.googleapis" + + ".com/InstanceConfig\022\031\n\014display_name\030\003 \001(" + + "\tB\003\340A\002\022\022\n\nnode_count\030\005 \001(\005\022\030\n\020processing" + + "_units\030\t \001(\005\022_\n\030replica_compute_capacity" + + "\030\023 \003(\01328.google.spanner.admin.instance.v" + + "1.ReplicaComputeCapacityB\003\340A\003\022T\n\022autosca" + + "ling_config\030\021 \001(\01323.google.spanner.admin" + + ".instance.v1.AutoscalingConfigB\003\340A\001\022D\n\005s" + + "tate\030\006 \001(\01620.google.spanner.admin.instan" + + "ce.v1.Instance.StateB\003\340A\003\022F\n\006labels\030\007 \003(" + + "\01326.google.spanner.admin.instance.v1.Ins" + + "tance.LabelsEntry\022N\n\rinstance_type\030\n \001(\016" + + "27.google.spanner.admin.instance.v1.Inst" + + "ance.InstanceType\022\025\n\rendpoint_uris\030\010 \003(\t" + + "\0224\n\013create_time\030\013 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0224\n\013update_time\030\014 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022V\n\026free_ins" + + "tance_metadata\030\r \001(\01326.google.spanner.ad" + + "min.instance.v1.FreeInstanceMetadata\022H\n\007" + + "edition\030\024 \001(\01622.google.spanner.admin.ins" + + "tance.v1.Instance.EditionB\003\340A\001\022o\n\034defaul" + + "t_backup_schedule_type\030\027 \001(\0162D.google.sp" + + "anner.admin.instance.v1.Instance.Default" + + "BackupScheduleTypeB\003\340A\001\032-\n\013LabelsEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005" + + "READY\020\002\"Q\n\014InstanceType\022\035\n\031INSTANCE_TYPE" + + "_UNSPECIFIED\020\000\022\017\n\013PROVISIONED\020\001\022\021\n\rFREE_" + + "INSTANCE\020\002\"U\n\007Edition\022\027\n\023EDITION_UNSPECI" + + "FIED\020\000\022\014\n\010STANDARD\020\001\022\016\n\nENTERPRISE\020\002\022\023\n\017" + + "ENTERPRISE_PLUS\020\003\"b\n\031DefaultBackupSchedu" + + "leType\022,\n(DEFAULT_BACKUP_SCHEDULE_TYPE_U" + + "NSPECIFIED\020\000\022\010\n\004NONE\020\001\022\r\n\tAUTOMATIC\020\002:b\352" + + "A_\n\037spanner.googleapis.com/Instance\022\'pro" + + "jects/{project}/instances/{instance}*\tin" + + "stances2\010instance\"\210\001\n\032ListInstanceConfig" + + "sRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudr" + + "esourcemanager.googleapis.com/Project\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n" + + "\033ListInstanceConfigsResponse\022J\n\020instance" + + "_configs\030\001 \003(\01320.google.spanner.admin.in" + + "stance.v1.InstanceConfig\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"W\n\030GetInstanceConfigRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n%spanner.googleapis." + + "com/InstanceConfig\"\352\001\n\033CreateInstanceCon" + + "figRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+clou" + + "dresourcemanager.googleapis.com/Project\022" + + "\037\n\022instance_config_id\030\002 \001(\tB\003\340A\002\022N\n\017inst" + + "ance_config\030\003 \001(\01320.google.spanner.admin" + + ".instance.v1.InstanceConfigB\003\340A\002\022\025\n\rvali" + + "date_only\030\004 \001(\010\"\272\001\n\033UpdateInstanceConfig" + + "Request\022N\n\017instance_config\030\001 \001(\01320.googl" + + "e.spanner.admin.instance.v1.InstanceConf" + + "igB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\003\340A\002\022\025\n\rvalidate_only\030\003" + + " \001(\010\"\177\n\033DeleteInstanceConfigRequest\022;\n\004n" + + "ame\030\001 \001(\tB-\340A\002\372A\'\n%spanner.googleapis.co" + + "m/InstanceConfig\022\014\n\004etag\030\002 \001(\t\022\025\n\rvalida" + + "te_only\030\003 \001(\010\"\241\001\n#ListInstanceConfigOper" + + "ationsRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+c" + + "loudresourcemanager.googleapis.com/Proje" + + "ct\022\016\n\006filter\030\002 \001(\t\022\021\n\tpage_size\030\003 \001(\005\022\022\n" + + "\npage_token\030\004 \001(\t\"r\n$ListInstanceConfigO" + + "perationsResponse\0221\n\noperations\030\001 \003(\0132\035." + + "google.longrunning.Operation\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"{\n\022GetInstanceRequest\0225\n\004n" + + "ame\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.googleapis.co" + + "m/Instance\022.\n\nfield_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMask\"\271\001\n\025CreateInstanceReq" + + "uest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresou" + + "rcemanager.googleapis.com/Project\022\030\n\013ins" + + "tance_id\030\002 \001(\tB\003\340A\002\022A\n\010instance\030\003 \001(\0132*." + + "google.spanner.admin.instance.v1.Instanc" + + "eB\003\340A\002\"\311\001\n\024ListInstancesRequest\022C\n\006paren" + + "t\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager.go" + + "ogleapis.com/Project\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\0225\n\021i" + + "nstance_deadline\030\005 \001(\0132\032.google.protobuf" + + ".Timestamp\"\204\001\n\025ListInstancesResponse\022=\n\t" + + "instances\030\001 \003(\0132*.google.spanner.admin.i" + + "nstance.v1.Instance\022\027\n\017next_page_token\030\002" + + " \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\217\001\n\025UpdateInst" + + "anceRequest\022A\n\010instance\030\001 \001(\0132*.google.s" + + "panner.admin.instance.v1.InstanceB\003\340A\002\0223" + + "\n\nfield_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\003\340A\002\"N\n\025DeleteInstanceRequest\0225\n\004" + + "name\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.googleapis.c" + + "om/Instance\"\277\002\n\026CreateInstanceMetadata\022<" + + "\n\010instance\030\001 \001(\0132*.google.spanner.admin." + + "instance.v1.Instance\022.\n\nstart_time\030\002 \001(\013" + + "2\032.google.protobuf.Timestamp\022/\n\013cancel_t" + + "ime\030\003 \001(\0132\032.google.protobuf.Timestamp\022,\n" + + "\010end_time\030\004 \001(\0132\032.google.protobuf.Timest" + + "amp\022X\n\033expected_fulfillment_period\030\005 \001(\016" + + "23.google.spanner.admin.instance.v1.Fulf" + + "illmentPeriod\"\277\002\n\026UpdateInstanceMetadata" + + "\022<\n\010instance\030\001 \001(\0132*.google.spanner.admi" + + "n.instance.v1.Instance\022.\n\nstart_time\030\002 \001" + + "(\0132\032.google.protobuf.Timestamp\022/\n\013cancel" + + "_time\030\003 \001(\0132\032.google.protobuf.Timestamp\022" + + ",\n\010end_time\030\004 \001(\0132\032.google.protobuf.Time" + + "stamp\022X\n\033expected_fulfillment_period\030\005 \001" + + "(\01623.google.spanner.admin.instance.v1.Fu" + + "lfillmentPeriod\"\316\002\n\024FreeInstanceMetadata" + + "\0224\n\013expire_time\030\001 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0225\n\014upgrade_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022^\n\017expire_" + + "behavior\030\003 \001(\0162E.google.spanner.admin.in" + + "stance.v1.FreeInstanceMetadata.ExpireBeh" + + "avior\"i\n\016ExpireBehavior\022\037\n\033EXPIRE_BEHAVI" + + "OR_UNSPECIFIED\020\000\022\027\n\023FREE_TO_PROVISIONED\020" + + "\001\022\035\n\031REMOVE_AFTER_GRACE_PERIOD\020\002\"\341\001\n\034Cre" + + "ateInstanceConfigMetadata\022I\n\017instance_co" + + "nfig\030\001 \001(\01320.google.spanner.admin.instan" + + "ce.v1.InstanceConfig\022E\n\010progress\030\002 \001(\01323" + + ".google.spanner.admin.instance.v1.Operat" + + "ionProgress\022/\n\013cancel_time\030\003 \001(\0132\032.googl" + + "e.protobuf.Timestamp\"\341\001\n\034UpdateInstanceC" + + "onfigMetadata\022I\n\017instance_config\030\001 \001(\01320" + ".google.spanner.admin.instance.v1.Instan" - + "cePartitionB\003\340A\002\"n\n\036DeleteInstancePartit" - + "ionRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(spanne" - + "r.googleapis.com/InstancePartition\022\014\n\004et" - + "ag\030\002 \001(\t\"]\n\033GetInstancePartitionRequest\022" - + ">\n\004name\030\001 \001(\tB0\340A\002\372A*\n(spanner.googleapi" - + "s.com/InstancePartition\"\253\001\n\036UpdateInstan" - + "cePartitionRequest\022T\n\022instance_partition" - + "\030\001 \001(\01323.google.spanner.admin.instance.v" - + "1.InstancePartitionB\003\340A\002\0223\n\nfield_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\201\002" - + "\n\037UpdateInstancePartitionMetadata\022O\n\022ins" - + "tance_partition\030\001 \001(\01323.google.spanner.a" - + "dmin.instance.v1.InstancePartition\022.\n\nst" - + "art_time\030\002 \001(\0132\032.google.protobuf.Timesta" - + "mp\022/\n\013cancel_time\030\003 \001(\0132\032.google.protobu" - + "f.Timestamp\022,\n\010end_time\030\004 \001(\0132\032.google.p" - + "rotobuf.Timestamp\"\305\001\n\035ListInstancePartit" - + "ionsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037spa" - + "nner.googleapis.com/Instance\022\021\n\tpage_siz" - + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022D\n\033instance_" - + "partition_deadline\030\004 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\001\"\240\001\n\036ListInstancePartit" - + "ionsResponse\022P\n\023instance_partitions\030\001 \003(" - + "\01323.google.spanner.admin.instance.v1.Ins" - + "tancePartition\022\027\n\017next_page_token\030\002 \001(\t\022" - + "\023\n\013unreachable\030\003 \003(\t\"\355\001\n&ListInstancePar" - + "titionOperationsRequest\0227\n\006parent\030\001 \001(\tB" - + "\'\340A\002\372A!\n\037spanner.googleapis.com/Instance" - + "\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005" - + "B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\022D\n\033instan" - + "ce_partition_deadline\030\005 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\001\"\236\001\n\'ListInstancePar" - + "titionOperationsResponse\0221\n\noperations\030\001" - + " \003(\0132\035.google.longrunning.Operation\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\022\'\n\037unreachable_inst" - + "ance_partitions\030\003 \003(\t\"\222\001\n\023MoveInstanceRe" - + "quest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.goo" - + "gleapis.com/Instance\022D\n\rtarget_config\030\002 " - + "\001(\tB-\340A\002\372A\'\n%spanner.googleapis.com/Inst" - + "anceConfig\"\026\n\024MoveInstanceResponse\"\245\001\n\024M" - + "oveInstanceMetadata\022\025\n\rtarget_config\030\001 \001" - + "(\t\022E\n\010progress\030\002 \001(\01323.google.spanner.ad" - + "min.instance.v1.OperationProgress\022/\n\013can" + + "ceConfig\022E\n\010progress\030\002 \001(\01323.google.span" + + "ner.admin.instance.v1.OperationProgress\022" + + "/\n\013cancel_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestamp\"\271\005\n\021InstancePartition\022\021\n\004name\030\001" + + " \001(\tB\003\340A\002\022=\n\006config\030\002 \001(\tB-\340A\002\372A\'\n%spann" + + "er.googleapis.com/InstanceConfig\022\031\n\014disp" + + "lay_name\030\003 \001(\tB\003\340A\002\022\024\n\nnode_count\030\005 \001(\005H" + + "\000\022\032\n\020processing_units\030\006 \001(\005H\000\022M\n\005state\030\007" + + " \001(\01629.google.spanner.admin.instance.v1." + + "InstancePartition.StateB\003\340A\003\0224\n\013create_t" + + "ime\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0224\n\013update_time\030\t \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022\"\n\025referencing_database" + + "s\030\n \003(\tB\003\340A\003\022\"\n\023referencing_backups\030\013 \003(" + + "\tB\005\030\001\340A\003\022\014\n\004etag\030\014 \001(\t\"7\n\005State\022\025\n\021STATE" + + "_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002:" + + "\246\001\352A\242\001\n(spanner.googleapis.com/InstanceP" + + "artition\022Oprojects/{project}/instances/{" + + "instance}/instancePartitions/{instance_p" + + "artition}*\022instancePartitions2\021instanceP" + + "artitionB\022\n\020compute_capacity\"\201\002\n\037CreateI" + + "nstancePartitionMetadata\022O\n\022instance_par" + + "tition\030\001 \001(\01323.google.spanner.admin.inst" + + "ance.v1.InstancePartition\022.\n\nstart_time\030" + + "\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013can" + "cel_time\030\003 \001(\0132\032.google.protobuf.Timesta" - + "mp2\332\'\n\rInstanceAdmin\022\314\001\n\023ListInstanceCon" - + "figs\022<.google.spanner.admin.instance.v1." - + "ListInstanceConfigsRequest\032=.google.span" - + "ner.admin.instance.v1.ListInstanceConfig" - + "sResponse\"8\332A\006parent\202\323\344\223\002)\022\'/v1/{parent=" - + "projects/*}/instanceConfigs\022\271\001\n\021GetInsta" - + "nceConfig\022:.google.spanner.admin.instanc" - + "e.v1.GetInstanceConfigRequest\0320.google.s" - + "panner.admin.instance.v1.InstanceConfig\"" - + "6\332A\004name\202\323\344\223\002)\022\'/v1/{name=projects/*/ins" - + "tanceConfigs/*}\022\310\002\n\024CreateInstanceConfig" - + "\022=.google.spanner.admin.instance.v1.Crea" - + "teInstanceConfigRequest\032\035.google.longrun" - + "ning.Operation\"\321\001\312Ap\n/google.spanner.adm" - + "in.instance.v1.InstanceConfig\022=google.sp" - + "anner.admin.instance.v1.CreateInstanceCo" - + "nfigMetadata\332A)parent,instance_config,in" - + "stance_config_id\202\323\344\223\002,\"\'/v1/{parent=proj" - + "ects/*}/instanceConfigs:\001*\022\312\002\n\024UpdateIns" - + "tanceConfig\022=.google.spanner.admin.insta" - + "nce.v1.UpdateInstanceConfigRequest\032\035.goo" - + "gle.longrunning.Operation\"\323\001\312Ap\n/google." - + "spanner.admin.instance.v1.InstanceConfig" - + "\022=google.spanner.admin.instance.v1.Updat" - + "eInstanceConfigMetadata\332A\033instance_confi" - + "g,update_mask\202\323\344\223\002<27/v1/{instance_confi" - + "g.name=projects/*/instanceConfigs/*}:\001*\022" - + "\245\001\n\024DeleteInstanceConfig\022=.google.spanne" - + "r.admin.instance.v1.DeleteInstanceConfig" - + "Request\032\026.google.protobuf.Empty\"6\332A\004name" - + "\202\323\344\223\002)*\'/v1/{name=projects/*/instanceCon" - + "figs/*}\022\360\001\n\034ListInstanceConfigOperations" - + "\022E.google.spanner.admin.instance.v1.List" - + "InstanceConfigOperationsRequest\032F.google" - + ".spanner.admin.instance.v1.ListInstanceC" - + "onfigOperationsResponse\"A\332A\006parent\202\323\344\223\0022" - + "\0220/v1/{parent=projects/*}/instanceConfig" - + "Operations\022\264\001\n\rListInstances\0226.google.sp" - + "anner.admin.instance.v1.ListInstancesReq" - + "uest\0327.google.spanner.admin.instance.v1." - + "ListInstancesResponse\"2\332A\006parent\202\323\344\223\002#\022!" - + "/v1/{parent=projects/*}/instances\022\344\001\n\026Li" - + "stInstancePartitions\022?.google.spanner.ad" - + "min.instance.v1.ListInstancePartitionsRe" - + "quest\032@.google.spanner.admin.instance.v1" - + ".ListInstancePartitionsResponse\"G\332A\006pare" - + "nt\202\323\344\223\0028\0226/v1/{parent=projects/*/instanc" - + "es/*}/instancePartitions\022\241\001\n\013GetInstance" - + "\0224.google.spanner.admin.instance.v1.GetI" - + "nstanceRequest\032*.google.spanner.admin.in" - + "stance.v1.Instance\"0\332A\004name\202\323\344\223\002#\022!/v1/{" - + "name=projects/*/instances/*}\022\234\002\n\016CreateI" - + "nstance\0227.google.spanner.admin.instance." - + "v1.CreateInstanceRequest\032\035.google.longru" - + "nning.Operation\"\261\001\312Ad\n)google.spanner.ad" - + "min.instance.v1.Instance\0227google.spanner" - + ".admin.instance.v1.CreateInstanceMetadat" - + "a\332A\033parent,instance_id,instance\202\323\344\223\002&\"!/" - + "v1/{parent=projects/*}/instances:\001*\022\235\002\n\016" - + "UpdateInstance\0227.google.spanner.admin.in" - + "stance.v1.UpdateInstanceRequest\032\035.google" - + ".longrunning.Operation\"\262\001\312Ad\n)google.spa" - + "nner.admin.instance.v1.Instance\0227google." - + "spanner.admin.instance.v1.UpdateInstance" - + "Metadata\332A\023instance,field_mask\202\323\344\223\002/2*/v" - + "1/{instance.name=projects/*/instances/*}" - + ":\001*\022\223\001\n\016DeleteInstance\0227.google.spanner." - + "admin.instance.v1.DeleteInstanceRequest\032" - + "\026.google.protobuf.Empty\"0\332A\004name\202\323\344\223\002#*!" - + "/v1/{name=projects/*/instances/*}\022\232\001\n\014Se" - + "tIamPolicy\022\".google.iam.v1.SetIamPolicyR" - + "equest\032\025.google.iam.v1.Policy\"O\332A\017resour" - + "ce,policy\202\323\344\223\0027\"2/v1/{resource=projects/" - + "*/instances/*}:setIamPolicy:\001*\022\223\001\n\014GetIa" - + "mPolicy\022\".google.iam.v1.GetIamPolicyRequ" - + "est\032\025.google.iam.v1.Policy\"H\332A\010resource\202" - + "\323\344\223\0027\"2/v1/{resource=projects/*/instance" - + "s/*}:getIamPolicy:\001*\022\305\001\n\022TestIamPermissi" - + "ons\022(.google.iam.v1.TestIamPermissionsRe" - + "quest\032).google.iam.v1.TestIamPermissions" - + "Response\"Z\332A\024resource,permissions\202\323\344\223\002=\"" - + "8/v1/{resource=projects/*/instances/*}:t" - + "estIamPermissions:\001*\022\321\001\n\024GetInstancePart" - + "ition\022=.google.spanner.admin.instance.v1" - + ".GetInstancePartitionRequest\0323.google.sp" - + "anner.admin.instance.v1.InstancePartitio" - + "n\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=projects/*/i" - + "nstances/*/instancePartitions/*}\022\351\002\n\027Cre" - + "ateInstancePartition\022@.google.spanner.ad" - + "min.instance.v1.CreateInstancePartitionR" - + "equest\032\035.google.longrunning.Operation\"\354\001" - + "\312Av\n2google.spanner.admin.instance.v1.In" - + "stancePartition\022@google.spanner.admin.in" - + "stance.v1.CreateInstancePartitionMetadat" - + "a\332A/parent,instance_partition,instance_p" - + "artition_id\202\323\344\223\002;\"6/v1/{parent=projects/" - + "*/instances/*}/instancePartitions:\001*\022\272\001\n" - + "\027DeleteInstancePartition\022@.google.spanne" - + "r.admin.instance.v1.DeleteInstancePartit" - + "ionRequest\032\026.google.protobuf.Empty\"E\332A\004n" - + "ame\202\323\344\223\0028*6/v1/{name=projects/*/instance" - + "s/*/instancePartitions/*}\022\352\002\n\027UpdateInst" - + "ancePartition\022@.google.spanner.admin.ins" - + "tance.v1.UpdateInstancePartitionRequest\032" - + "\035.google.longrunning.Operation\"\355\001\312Av\n2go" - + "ogle.spanner.admin.instance.v1.InstanceP" - + "artition\022@google.spanner.admin.instance." - + "v1.UpdateInstancePartitionMetadata\332A\035ins" - + "tance_partition,field_mask\202\323\344\223\002N2I/v1/{i" - + "nstance_partition.name=projects/*/instan" - + "ces/*/instancePartitions/*}:\001*\022\210\002\n\037ListI" - + "nstancePartitionOperations\022H.google.span" + + "mp\022,\n\010end_time\030\004 \001(\0132\032.google.protobuf.T" + + "imestamp\"\323\001\n\036CreateInstancePartitionRequ" + + "est\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\n\037spanner.goo" + + "gleapis.com/Instance\022\"\n\025instance_partiti" + + "on_id\030\002 \001(\tB\003\340A\002\022T\n\022instance_partition\030\003" + + " \001(\01323.google.spanner.admin.instance.v1." + + "InstancePartitionB\003\340A\002\"n\n\036DeleteInstance" + + "PartitionRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(" + + "spanner.googleapis.com/InstancePartition" + + "\022\014\n\004etag\030\002 \001(\t\"]\n\033GetInstancePartitionRe" + + "quest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(spanner.goo" + + "gleapis.com/InstancePartition\"\253\001\n\036Update" + + "InstancePartitionRequest\022T\n\022instance_par" + + "tition\030\001 \001(\01323.google.spanner.admin.inst" + + "ance.v1.InstancePartitionB\003\340A\002\0223\n\nfield_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003" + + "\340A\002\"\201\002\n\037UpdateInstancePartitionMetadata\022" + + "O\n\022instance_partition\030\001 \001(\01323.google.spa" + + "nner.admin.instance.v1.InstancePartition" + + "\022.\n\nstart_time\030\002 \001(\0132\032.google.protobuf.T" + + "imestamp\022/\n\013cancel_time\030\003 \001(\0132\032.google.p" + + "rotobuf.Timestamp\022,\n\010end_time\030\004 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\"\305\001\n\035ListInstance" + + "PartitionsRequest\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A" + + "!\n\037spanner.googleapis.com/Instance\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022D\n\033ins" + + "tance_partition_deadline\030\004 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\001\"\240\001\n\036ListInstance" + + "PartitionsResponse\022P\n\023instance_partition" + + "s\030\001 \003(\01323.google.spanner.admin.instance." + + "v1.InstancePartition\022\027\n\017next_page_token\030" + + "\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"\355\001\n&ListInsta" + + "ncePartitionOperationsRequest\0227\n\006parent\030" + + "\001 \001(\tB\'\340A\002\372A!\n\037spanner.googleapis.com/In" + + "stance\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size" + + "\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\022D\n\033" + + "instance_partition_deadline\030\005 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\001\"\236\001\n\'ListInsta" + + "ncePartitionOperationsResponse\0221\n\noperat" + + "ions\030\001 \003(\0132\035.google.longrunning.Operatio" + + "n\022\027\n\017next_page_token\030\002 \001(\t\022\'\n\037unreachabl" + + "e_instance_partitions\030\003 \003(\t\"\222\001\n\023MoveInst" + + "anceRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037spann" + + "er.googleapis.com/Instance\022D\n\rtarget_con" + + "fig\030\002 \001(\tB-\340A\002\372A\'\n%spanner.googleapis.co" + + "m/InstanceConfig\"\026\n\024MoveInstanceResponse" + + "\"\245\001\n\024MoveInstanceMetadata\022\025\n\rtarget_conf" + + "ig\030\001 \001(\t\022E\n\010progress\030\002 \001(\01323.google.span" + + "ner.admin.instance.v1.OperationProgress\022" + + "/\n\013cancel_time\030\003 \001(\0132\032.google.protobuf.T" + + "imestamp2\332\'\n\rInstanceAdmin\022\314\001\n\023ListInsta" + + "nceConfigs\022<.google.spanner.admin.instan" + + "ce.v1.ListInstanceConfigsRequest\032=.googl" + + "e.spanner.admin.instance.v1.ListInstance" + + "ConfigsResponse\"8\332A\006parent\202\323\344\223\002)\022\'/v1/{p" + + "arent=projects/*}/instanceConfigs\022\271\001\n\021Ge" + + "tInstanceConfig\022:.google.spanner.admin.i" + + "nstance.v1.GetInstanceConfigRequest\0320.go" + + "ogle.spanner.admin.instance.v1.InstanceC" + + "onfig\"6\332A\004name\202\323\344\223\002)\022\'/v1/{name=projects" + + "/*/instanceConfigs/*}\022\310\002\n\024CreateInstance" + + "Config\022=.google.spanner.admin.instance.v" + + "1.CreateInstanceConfigRequest\032\035.google.l" + + "ongrunning.Operation\"\321\001\312Ap\n/google.spann" + + "er.admin.instance.v1.InstanceConfig\022=goo" + + "gle.spanner.admin.instance.v1.CreateInst" + + "anceConfigMetadata\332A)parent,instance_con" + + "fig,instance_config_id\202\323\344\223\002,\"\'/v1/{paren" + + "t=projects/*}/instanceConfigs:\001*\022\312\002\n\024Upd" + + "ateInstanceConfig\022=.google.spanner.admin" + + ".instance.v1.UpdateInstanceConfigRequest" + + "\032\035.google.longrunning.Operation\"\323\001\312Ap\n/g" + + "oogle.spanner.admin.instance.v1.Instance" + + "Config\022=google.spanner.admin.instance.v1" + + ".UpdateInstanceConfigMetadata\332A\033instance" + + "_config,update_mask\202\323\344\223\002<27/v1/{instance" + + "_config.name=projects/*/instanceConfigs/" + + "*}:\001*\022\245\001\n\024DeleteInstanceConfig\022=.google." + + "spanner.admin.instance.v1.DeleteInstance" + + "ConfigRequest\032\026.google.protobuf.Empty\"6\332" + + "A\004name\202\323\344\223\002)*\'/v1/{name=projects/*/insta" + + "nceConfigs/*}\022\360\001\n\034ListInstanceConfigOper" + + "ations\022E.google.spanner.admin.instance.v" + + "1.ListInstanceConfigOperationsRequest\032F." + + "google.spanner.admin.instance.v1.ListIns" + + "tanceConfigOperationsResponse\"A\332A\006parent" + + "\202\323\344\223\0022\0220/v1/{parent=projects/*}/instance" + + "ConfigOperations\022\264\001\n\rListInstances\0226.goo" + + "gle.spanner.admin.instance.v1.ListInstan" + + "cesRequest\0327.google.spanner.admin.instan" + + "ce.v1.ListInstancesResponse\"2\332A\006parent\202\323" + + "\344\223\002#\022!/v1/{parent=projects/*}/instances\022" + + "\344\001\n\026ListInstancePartitions\022?.google.span" + + "ner.admin.instance.v1.ListInstancePartit" + + "ionsRequest\032@.google.spanner.admin.insta" + + "nce.v1.ListInstancePartitionsResponse\"G\332" + + "A\006parent\202\323\344\223\0028\0226/v1/{parent=projects/*/i" + + "nstances/*}/instancePartitions\022\241\001\n\013GetIn" + + "stance\0224.google.spanner.admin.instance.v" + + "1.GetInstanceRequest\032*.google.spanner.ad" + + "min.instance.v1.Instance\"0\332A\004name\202\323\344\223\002#\022" + + "!/v1/{name=projects/*/instances/*}\022\234\002\n\016C" + + "reateInstance\0227.google.spanner.admin.ins" + + "tance.v1.CreateInstanceRequest\032\035.google." + + "longrunning.Operation\"\261\001\312Ad\n)google.span" + + "ner.admin.instance.v1.Instance\0227google.s" + + "panner.admin.instance.v1.CreateInstanceM" + + "etadata\332A\033parent,instance_id,instance\202\323\344" + + "\223\002&\"!/v1/{parent=projects/*}/instances:\001" + + "*\022\235\002\n\016UpdateInstance\0227.google.spanner.ad" + + "min.instance.v1.UpdateInstanceRequest\032\035." + + "google.longrunning.Operation\"\262\001\312Ad\n)goog" + + "le.spanner.admin.instance.v1.Instance\0227g" + + "oogle.spanner.admin.instance.v1.UpdateIn" + + "stanceMetadata\332A\023instance,field_mask\202\323\344\223" + + "\002/2*/v1/{instance.name=projects/*/instan" + + "ces/*}:\001*\022\223\001\n\016DeleteInstance\0227.google.sp" + + "anner.admin.instance.v1.DeleteInstanceRe" + + "quest\032\026.google.protobuf.Empty\"0\332A\004name\202\323" + + "\344\223\002#*!/v1/{name=projects/*/instances/*}\022" + + "\232\001\n\014SetIamPolicy\022\".google.iam.v1.SetIamP" + + "olicyRequest\032\025.google.iam.v1.Policy\"O\332A\017" + + "resource,policy\202\323\344\223\0027\"2/v1/{resource=pro" + + "jects/*/instances/*}:setIamPolicy:\001*\022\223\001\n" + + "\014GetIamPolicy\022\".google.iam.v1.GetIamPoli" + + "cyRequest\032\025.google.iam.v1.Policy\"H\332A\010res" + + "ource\202\323\344\223\0027\"2/v1/{resource=projects/*/in" + + "stances/*}:getIamPolicy:\001*\022\305\001\n\022TestIamPe" + + "rmissions\022(.google.iam.v1.TestIamPermiss" + + "ionsRequest\032).google.iam.v1.TestIamPermi" + + "ssionsResponse\"Z\332A\024resource,permissions\202" + + "\323\344\223\002=\"8/v1/{resource=projects/*/instance" + + "s/*}:testIamPermissions:\001*\022\321\001\n\024GetInstan" + + "cePartition\022=.google.spanner.admin.insta" + + "nce.v1.GetInstancePartitionRequest\0323.goo" + + "gle.spanner.admin.instance.v1.InstancePa" + + "rtition\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=projec" + + "ts/*/instances/*/instancePartitions/*}\022\351" + + "\002\n\027CreateInstancePartition\022@.google.span" + + "ner.admin.instance.v1.CreateInstancePart" + + "itionRequest\032\035.google.longrunning.Operat" + + "ion\"\354\001\312Av\n2google.spanner.admin.instance" + + ".v1.InstancePartition\022@google.spanner.ad" + + "min.instance.v1.CreateInstancePartitionM" + + "etadata\332A/parent,instance_partition,inst" + + "ance_partition_id\202\323\344\223\002;\"6/v1/{parent=pro" + + "jects/*/instances/*}/instancePartitions:" + + "\001*\022\272\001\n\027DeleteInstancePartition\022@.google." + + "spanner.admin.instance.v1.DeleteInstance" + + "PartitionRequest\032\026.google.protobuf.Empty" + + "\"E\332A\004name\202\323\344\223\0028*6/v1/{name=projects/*/in" + + "stances/*/instancePartitions/*}\022\352\002\n\027Upda" + + "teInstancePartition\022@.google.spanner.adm" + + "in.instance.v1.UpdateInstancePartitionRe" + + "quest\032\035.google.longrunning.Operation\"\355\001\312" + + "Av\n2google.spanner.admin.instance.v1.Ins" + + "tancePartition\022@google.spanner.admin.ins" + + "tance.v1.UpdateInstancePartitionMetadata" + + "\332A\035instance_partition,field_mask\202\323\344\223\002N2I" + + "/v1/{instance_partition.name=projects/*/" + + "instances/*/instancePartitions/*}:\001*\022\210\002\n" + + "\037ListInstancePartitionOperations\022H.googl" + + "e.spanner.admin.instance.v1.ListInstance" + + "PartitionOperationsRequest\032I.google.span" + "ner.admin.instance.v1.ListInstancePartit" - + "ionOperationsRequest\032I.google.spanner.ad" - + "min.instance.v1.ListInstancePartitionOpe" - + "rationsResponse\"P\332A\006parent\202\323\344\223\002A\022?/v1/{p" - + "arent=projects/*/instances/*}/instancePa" - + "rtitionOperations\022\211\002\n\014MoveInstance\0225.goo" - + "gle.spanner.admin.instance.v1.MoveInstan" - + "ceRequest\032\035.google.longrunning.Operation" - + "\"\242\001\312An\n5google.spanner.admin.instance.v1" - + ".MoveInstanceResponse\0225google.spanner.ad" - + "min.instance.v1.MoveInstanceMetadata\202\323\344\223" - + "\002+\"&/v1/{name=projects/*/instances/*}:mo" - + "ve:\001*\032x\312A\026spanner.googleapis.com\322A\\https" - + "://www.googleapis.com/auth/cloud-platfor" - + "m,https://www.googleapis.com/auth/spanne" - + "r.adminB\213\002\n$com.google.spanner.admin.ins" - + "tance.v1B\031SpannerInstanceAdminProtoP\001ZFc" - + "loud.google.com/go/spanner/admin/instanc" - + "e/apiv1/instancepb;instancepb\252\002&Google.C" - + "loud.Spanner.Admin.Instance.V1\312\002&Google\\" - + "Cloud\\Spanner\\Admin\\Instance\\V1\352\002+Google" - + "::Cloud::Spanner::Admin::Instance::V1b\006p" - + "roto3" + + "ionOperationsResponse\"P\332A\006parent\202\323\344\223\002A\022?" + + "/v1/{parent=projects/*/instances/*}/inst" + + "ancePartitionOperations\022\211\002\n\014MoveInstance" + + "\0225.google.spanner.admin.instance.v1.Move" + + "InstanceRequest\032\035.google.longrunning.Ope" + + "ration\"\242\001\312An\n5google.spanner.admin.insta", + "nce.v1.MoveInstanceResponse\0225google.span" + + "ner.admin.instance.v1.MoveInstanceMetada" + + "ta\202\323\344\223\002+\"&/v1/{name=projects/*/instances" + + "/*}:move:\001*\032x\312A\026spanner.googleapis.com\322A" + + "\\https://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "spanner.adminB\213\002\n$com.google.spanner.adm" + + "in.instance.v1B\031SpannerInstanceAdminProt" + + "oP\001ZFcloud.google.com/go/spanner/admin/i" + + "nstance/apiv1/instancepb;instancepb\252\002&Go" + + "ogle.Cloud.Spanner.Admin.Instance.V1\312\002&G" + + "oogle\\Cloud\\Spanner\\Admin\\Instance\\V1\352\002+" + + "Google::Cloud::Spanner::Admin::Instance:" + + ":V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -636,6 +669,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LeaderOptions", "Reconciling", "State", + "FreeInstanceAvailability", + "QuorumType", + "StorageLimitPerProcessingUnit", }); internal_static_google_spanner_admin_instance_v1_InstanceConfig_LabelsEntry_descriptor = internal_static_google_spanner_admin_instance_v1_InstanceConfig_descriptor @@ -723,9 +759,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AutoscalingConfig", "State", "Labels", + "InstanceType", "EndpointUris", "CreateTime", "UpdateTime", + "FreeInstanceMetadata", "Edition", "DefaultBackupScheduleType", }); @@ -867,8 +905,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Instance", "StartTime", "CancelTime", "EndTime", "ExpectedFulfillmentPeriod", }); - internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_descriptor = + internal_static_google_spanner_admin_instance_v1_FreeInstanceMetadata_descriptor = getDescriptor().getMessageTypes().get(21); + internal_static_google_spanner_admin_instance_v1_FreeInstanceMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_spanner_admin_instance_v1_FreeInstanceMetadata_descriptor, + new java.lang.String[] { + "ExpireTime", "UpgradeTime", "ExpireBehavior", + }); + internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_descriptor = + getDescriptor().getMessageTypes().get(22); internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_CreateInstanceConfigMetadata_descriptor, @@ -876,7 +922,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceConfig", "Progress", "CancelTime", }); internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_UpdateInstanceConfigMetadata_descriptor, @@ -884,7 +930,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstanceConfig", "Progress", "CancelTime", }); internal_static_google_spanner_admin_instance_v1_InstancePartition_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_spanner_admin_instance_v1_InstancePartition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_InstancePartition_descriptor, @@ -903,7 +949,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ComputeCapacity", }); internal_static_google_spanner_admin_instance_v1_CreateInstancePartitionMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_spanner_admin_instance_v1_CreateInstancePartitionMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_CreateInstancePartitionMetadata_descriptor, @@ -911,7 +957,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstancePartition", "StartTime", "CancelTime", "EndTime", }); internal_static_google_spanner_admin_instance_v1_CreateInstancePartitionRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_spanner_admin_instance_v1_CreateInstancePartitionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_CreateInstancePartitionRequest_descriptor, @@ -919,7 +965,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "InstancePartitionId", "InstancePartition", }); internal_static_google_spanner_admin_instance_v1_DeleteInstancePartitionRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_spanner_admin_instance_v1_DeleteInstancePartitionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_DeleteInstancePartitionRequest_descriptor, @@ -927,7 +973,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Etag", }); internal_static_google_spanner_admin_instance_v1_GetInstancePartitionRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_spanner_admin_instance_v1_GetInstancePartitionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_GetInstancePartitionRequest_descriptor, @@ -935,7 +981,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_spanner_admin_instance_v1_UpdateInstancePartitionRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_spanner_admin_instance_v1_UpdateInstancePartitionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_UpdateInstancePartitionRequest_descriptor, @@ -943,7 +989,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstancePartition", "FieldMask", }); internal_static_google_spanner_admin_instance_v1_UpdateInstancePartitionMetadata_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_spanner_admin_instance_v1_UpdateInstancePartitionMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_UpdateInstancePartitionMetadata_descriptor, @@ -951,7 +997,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstancePartition", "StartTime", "CancelTime", "EndTime", }); internal_static_google_spanner_admin_instance_v1_ListInstancePartitionsRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_spanner_admin_instance_v1_ListInstancePartitionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_ListInstancePartitionsRequest_descriptor, @@ -959,7 +1005,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "InstancePartitionDeadline", }); internal_static_google_spanner_admin_instance_v1_ListInstancePartitionsResponse_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_spanner_admin_instance_v1_ListInstancePartitionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_ListInstancePartitionsResponse_descriptor, @@ -967,7 +1013,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InstancePartitions", "NextPageToken", "Unreachable", }); internal_static_google_spanner_admin_instance_v1_ListInstancePartitionOperationsRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_spanner_admin_instance_v1_ListInstancePartitionOperationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_ListInstancePartitionOperationsRequest_descriptor, @@ -975,7 +1021,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "InstancePartitionDeadline", }); internal_static_google_spanner_admin_instance_v1_ListInstancePartitionOperationsResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_spanner_admin_instance_v1_ListInstancePartitionOperationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_ListInstancePartitionOperationsResponse_descriptor, @@ -983,7 +1029,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Operations", "NextPageToken", "UnreachableInstancePartitions", }); internal_static_google_spanner_admin_instance_v1_MoveInstanceRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_spanner_admin_instance_v1_MoveInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_MoveInstanceRequest_descriptor, @@ -991,13 +1037,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "TargetConfig", }); internal_static_google_spanner_admin_instance_v1_MoveInstanceResponse_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_spanner_admin_instance_v1_MoveInstanceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_MoveInstanceResponse_descriptor, new java.lang.String[] {}); internal_static_google_spanner_admin_instance_v1_MoveInstanceMetadata_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_spanner_admin_instance_v1_MoveInstanceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_spanner_admin_instance_v1_MoveInstanceMetadata_descriptor, diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequest.java b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequest.java index 116b52ef5c3..4ff645580da 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequest.java +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/java/com/google/spanner/admin/instance/v1/UpdateInstanceConfigRequest.java @@ -24,7 +24,7 @@ * ** The request for - * [UpdateInstanceConfigRequest][InstanceAdmin.UpdateInstanceConfigRequest]. + * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig]. ** * Protobuf type {@code google.spanner.admin.instance.v1.UpdateInstanceConfigRequest} @@ -413,7 +413,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * ** The request for - * [UpdateInstanceConfigRequest][InstanceAdmin.UpdateInstanceConfigRequest]. + * [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig]. ** * Protobuf type {@code google.spanner.admin.instance.v1.UpdateInstanceConfigRequest} diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/common.proto b/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/common.proto index 69717ec228a..11e00368cc8 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/common.proto +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/common.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.spanner.admin.instance.v1; import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.Spanner.Admin.Instance.V1"; diff --git a/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto b/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto index ba6726b31ba..615a86c6f80 100644 --- a/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto +++ b/proto-google-cloud-spanner-admin-instance-v1/src/main/proto/google/spanner/admin/instance/v1/spanner_instance_admin.proto @@ -64,6 +64,9 @@ service InstanceAdmin { "https://www.googleapis.com/auth/spanner.admin"; // Lists the supported instance configurations for a given project. + // + // Returns both Google-managed configurations and user-managed + // configurations. rpc ListInstanceConfigs(ListInstanceConfigsRequest) returns (ListInstanceConfigsResponse) { option (google.api.http) = { @@ -81,7 +84,7 @@ service InstanceAdmin { } // 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, @@ -108,13 +111,13 @@ service InstanceAdmin { // [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. // @@ -136,7 +139,7 @@ service InstanceAdmin { } // 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`. // @@ -167,13 +170,13 @@ service InstanceAdmin { // [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. // @@ -208,12 +211,12 @@ service InstanceAdmin { option (google.api.method_signature) = "name"; } - // 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 @@ -253,7 +256,7 @@ service InstanceAdmin { } // 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 @@ -279,12 +282,12 @@ service InstanceAdmin { // * 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. rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) { @@ -300,8 +303,7 @@ service InstanceAdmin { } // 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`. // @@ -329,12 +331,12 @@ service InstanceAdmin { // 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 @@ -423,7 +425,7 @@ service InstanceAdmin { } // 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 @@ -450,13 +452,13 @@ service InstanceAdmin { // 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. rpc CreateInstancePartition(CreateInstancePartitionRequest) @@ -489,8 +491,7 @@ service InstanceAdmin { } // 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`. // @@ -519,13 +520,13 @@ service InstanceAdmin { // 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. // @@ -545,12 +546,11 @@ service InstanceAdmin { }; } - // 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 @@ -569,7 +569,7 @@ service InstanceAdmin { } // 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 @@ -600,13 +600,13 @@ service InstanceAdmin { // 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 @@ -676,7 +676,7 @@ message ReplicaInfo { WITNESS = 3; } - // The location of the serving resources, e.g. "us-central1". + // The location of the serving resources, e.g., "us-central1". string location = 1; // The type of replica. @@ -695,6 +695,8 @@ message InstanceConfig { option (google.api.resource) = { type: "spanner.googleapis.com/InstanceConfig" pattern: "projects/{project}/instanceConfigs/{instance_config}" + plural: "instanceConfigs" + singular: "instanceConfig" }; // The type of this configuration. @@ -702,10 +704,10 @@ message InstanceConfig { // Unspecified. TYPE_UNSPECIFIED = 0; - // Google managed configuration. + // Google-managed configuration. GOOGLE_MANAGED = 1; - // User managed configuration. + // User-managed configuration. USER_MANAGED = 2; } @@ -722,6 +724,53 @@ message InstanceConfig { READY = 2; } + // Describes the availability for free instances to be created in an instance + // configuration. + enum FreeInstanceAvailability { + // Not specified. + FREE_INSTANCE_AVAILABILITY_UNSPECIFIED = 0; + + // Indicates that free instances are available to be created in this + // instance configuration. + AVAILABLE = 1; + + // Indicates that free instances are not supported in this instance + // configuration. + UNSUPPORTED = 2; + + // Indicates that free instances are currently not available to be created + // in this instance configuration. + DISABLED = 3; + + // Indicates that additional free instances cannot be created in this + // instance configuration because the project has reached its limit of free + // instances. + QUOTA_EXCEEDED = 4; + } + + // Indicates the quorum type of this instance configuration. + enum QuorumType { + // Quorum type not specified. + QUORUM_TYPE_UNSPECIFIED = 0; + + // An instance configuration tagged with `REGION` quorum type forms a write + // quorum in a single region. + REGION = 1; + + // An instance configuration tagged with the `DUAL_REGION` quorum type forms + // a write quorum with exactly two read-write regions in a multi-region + // configuration. + // + // This instance configuration requires failover in the event of + // regional failures. + DUAL_REGION = 2; + + // An instance configuration tagged with the `MULTI_REGION` quorum type + // forms a write quorum from replicas that are spread across more than one + // region in a multi-region configuration. + MULTI_REGION = 3; + } + // A unique identifier for the instance configuration. Values // are of the form // `projects/ /instanceConfigs/[a-z][-a-z0-9]*`. @@ -738,17 +787,22 @@ message InstanceConfig { // 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`. repeated ReplicaInfo replicas = 3; - // 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. repeated ReplicaInfo optional_replicas = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // 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. string base_config = 7 [(google.api.resource_reference) = { type: "spanner.googleapis.com/InstanceConfig" }]; @@ -801,6 +855,18 @@ message InstanceConfig { // Output only. The current instance configuration state. Applicable only for // `USER_MANAGED` configurations. State state = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Describes whether free instances are available to be created + // in this instance configuration. + FreeInstanceAvailability free_instance_availability = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The `QuorumType` of the instance configuration. + QuorumType quorum_type = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The storage limit in bytes per processing unit. + int64 storage_limit_per_processing_unit = 19 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // ReplicaComputeCapacity describes the amount of server resources that are @@ -877,7 +943,7 @@ message AutoscalingConfig { // 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. int32 storage_utilization_percent = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -939,6 +1005,8 @@ message Instance { option (google.api.resource) = { type: "spanner.googleapis.com/Instance" pattern: "projects/{project}/instances/{instance}" + plural: "instances" + singular: "instance" }; // Indicates the current state of the instance. @@ -956,6 +1024,24 @@ message Instance { READY = 2; } + // The type of this instance. The type can be used to distinguish product + // variants, that can affect aspects like: usage restrictions, quotas and + // billing. Currently this is used to distinguish FREE_INSTANCE vs PROVISIONED + // instances. + enum InstanceType { + // Not specified. + INSTANCE_TYPE_UNSPECIFIED = 0; + + // Provisioned instances have dedicated resources, standard usage limits and + // support. + PROVISIONED = 1; + + // Free instances provide no guarantee for dedicated resources, + // [node_count, processing_units] should be 0. They come + // with stricter usage limits and limited support. + FREE_INSTANCE = 2; + } + // The edition selected for this instance. Different editions provide // different capabilities at different price points. enum Edition { @@ -972,21 +1058,22 @@ message Instance { ENTERPRISE_PLUS = 3; } - // 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. enum DefaultBackupScheduleType { // Not specified. 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. 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. AUTOMATIC = 2; } @@ -1023,9 +1110,6 @@ message 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 @@ -1045,10 +1129,6 @@ message 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 @@ -1098,6 +1178,9 @@ message Instance { // allow "_" in a future release. map labels = 7; + // The `InstanceType` of the current instance. + InstanceType instance_type = 10; + // Deprecated. This field is not populated. repeated string endpoint_uris = 8; @@ -1109,18 +1192,22 @@ message Instance { google.protobuf.Timestamp update_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Free instance metadata. Only populated for free instances. + FreeInstanceMetadata free_instance_metadata = 13; + // Optional. The `Edition` of the current instance. Edition edition = 20 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Controls the default backup behavior for new databases within the - // instance. + // 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 `AUTOMATIC` is not permitted for free instances, as backups and - // backup schedules are not allowed for free instances. + // 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. DefaultBackupScheduleType default_backup_schedule_type = 23 [(google.api.field_behavior) = OPTIONAL]; } @@ -1175,7 +1262,7 @@ message GetInstanceConfigRequest { } // The request for -// [CreateInstanceConfigRequest][InstanceAdmin.CreateInstanceConfigRequest]. +// [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig]. message CreateInstanceConfigRequest { // Required. The name of the project in which to create the instance // configuration. Values are of the form `projects/ `. @@ -1192,10 +1279,10 @@ message CreateInstanceConfigRequest { // conflicts with Google-managed configurations. string instance_config_id = 2 [(google.api.field_behavior) = REQUIRED]; - // 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. InstanceConfig instance_config = 3 [(google.api.field_behavior) = REQUIRED]; @@ -1205,7 +1292,7 @@ message CreateInstanceConfigRequest { } // The request for -// [UpdateInstanceConfigRequest][InstanceAdmin.UpdateInstanceConfigRequest]. +// [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig]. message UpdateInstanceConfigRequest { // Required. The user instance configuration to update, which must always // include the instance configuration name. Otherwise, only fields mentioned @@ -1231,7 +1318,7 @@ message UpdateInstanceConfigRequest { } // The request for -// [DeleteInstanceConfigRequest][InstanceAdmin.DeleteInstanceConfigRequest]. +// [DeleteInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstanceConfig]. message DeleteInstanceConfigRequest { // Required. The name of the instance configuration to be deleted. // Values are of the form @@ -1277,8 +1364,7 @@ message ListInstanceConfigOperationsRequest { // 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. @@ -1329,10 +1415,10 @@ message ListInstanceConfigOperationsRequest { // The response for // [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations]. message ListInstanceConfigOperationsResponse { - // 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. repeated google.longrunning.Operation operations = 1; @@ -1530,6 +1616,41 @@ message UpdateInstanceMetadata { FulfillmentPeriod expected_fulfillment_period = 5; } +// Free instance specific metadata that is kept even after an instance has been +// upgraded for tracking purposes. +message FreeInstanceMetadata { + // Allows users to change behavior when a free instance expires. + enum ExpireBehavior { + // Not specified. + EXPIRE_BEHAVIOR_UNSPECIFIED = 0; + + // When the free instance expires, upgrade the instance to a provisioned + // instance. + FREE_TO_PROVISIONED = 1; + + // When the free instance expires, disable the instance, and delete it + // after the grace period passes if it has not been upgraded. + REMOVE_AFTER_GRACE_PERIOD = 2; + } + + // Output only. Timestamp after which the instance will either be upgraded or + // scheduled for deletion after a grace period. ExpireBehavior is used to + // choose between upgrading or scheduling the free instance for deletion. This + // timestamp is set during the creation of a free instance. + google.protobuf.Timestamp expire_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If present, the timestamp at which the free instance was + // upgraded to a provisioned instance. + google.protobuf.Timestamp upgrade_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Specifies the expiration behavior of a free instance. The default of + // ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during + // or after creation, and before expiration. + ExpireBehavior expire_behavior = 3; +} + // Metadata type for the operation returned by // [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig]. message CreateInstanceConfigMetadata { @@ -1566,6 +1687,8 @@ message InstancePartition { option (google.api.resource) = { type: "spanner.googleapis.com/InstancePartition" pattern: "projects/{project}/instances/{instance}/instancePartitions/{instance_partition}" + plural: "instancePartitions" + singular: "instancePartition" }; // Indicates the current state of the instance partition. @@ -1607,15 +1730,16 @@ message InstancePartition { string display_name = 3 [(google.api.field_behavior) = REQUIRED]; // Compute capacity defines amount of server and storage resources that are - // available to the databases in an instance partition. At most one of either - // node_count or processing_units should be present in the message. See [the - // documentation](https://cloud.google.com/spanner/docs/compute-capacity) - // for more information about nodes and processing units. + // available to the databases in an instance partition. At most, one of either + // `node_count` or` processing_units` should be present in the message. For + // more information, see + // [Compute capacity, nodes, and processing + // units](https://cloud.google.com/spanner/docs/compute-capacity). oneof compute_capacity { // 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`. @@ -1623,11 +1747,11 @@ message InstancePartition { // 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. + // 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`. + // This might be zero in API responses for instance partitions that are not + // yet in the `READY` state. int32 processing_units = 6; } @@ -1650,12 +1774,13 @@ message InstancePartition { repeated string referencing_databases = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // 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. repeated string referencing_backups = 11 - [(google.api.field_behavior) = OUTPUT_ONLY]; + [deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY]; // Used for optimistic concurrency control as a way // to help prevent simultaneous updates of a instance partition from @@ -1793,7 +1918,9 @@ message UpdateInstancePartitionMetadata { // [ListInstancePartitions][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitions]. message ListInstancePartitionsRequest { // 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/-`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -1832,9 +1959,9 @@ message ListInstancePartitionsResponse { // call to fetch more of the matching instance partitions. string next_page_token = 2; - // 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]. repeated string unreachable = 3; } @@ -1859,8 +1986,7 @@ message ListInstancePartitionOperationsRequest { // 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. @@ -1910,7 +2036,8 @@ message ListInstancePartitionOperationsRequest { // 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]. google.protobuf.Timestamp instance_partition_deadline = 5 [(google.api.field_behavior) = OPTIONAL]; @@ -1919,10 +2046,10 @@ message ListInstancePartitionOperationsRequest { // The response for // [ListInstancePartitionOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitionOperations]. message ListInstancePartitionOperationsResponse { - // 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. repeated google.longrunning.Operation operations = 1;