diff --git a/clients/google-api-services-spanner/v1/2.0.0/README.md b/clients/google-api-services-spanner/v1/2.0.0/README.md index af8928a796b..8fe95880b75 100644 --- a/clients/google-api-services-spanner/v1/2.0.0/README.md +++ b/clients/google-api-services-spanner/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-spanner - v1-rev20261006-2.9.2 + v1-rev20261115-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-spanner:v1-rev20261006-2.9.2' + implementation 'com.google.apis:google-api-services-spanner:v1-rev20261115-2.9.2' } ``` diff --git a/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/AllowedProcessingUnits.java b/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/AllowedProcessingUnits.java new file mode 100644 index 00000000000..1edc993e898 --- /dev/null +++ b/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/AllowedProcessingUnits.java @@ -0,0 +1,120 @@ +/* + * 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 + * + * http://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. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.spanner.v1.model; + +/** + * Defines a range of processing units supported by an instance configuration. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Cloud Spanner API. For a detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AllowedProcessingUnits extends com.google.api.client.json.GenericJson { + + /** + * The maximum value of processing units applicable to this interval, inclusive. If unset, there + * is no predefined limit to the supported number of processing units, although project quota + * limits still apply. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxProcessingUnits; + + /** + * The minimum value of processing units applicable to this interval, inclusive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer minProcessingUnits; + + /** + * Allowed increments of processing units between “min” and “max”. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer processingUnitIncrement; + + /** + * The maximum value of processing units applicable to this interval, inclusive. If unset, there + * is no predefined limit to the supported number of processing units, although project quota + * limits still apply. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxProcessingUnits() { + return maxProcessingUnits; + } + + /** + * The maximum value of processing units applicable to this interval, inclusive. If unset, there + * is no predefined limit to the supported number of processing units, although project quota + * limits still apply. + * @param maxProcessingUnits maxProcessingUnits or {@code null} for none + */ + public AllowedProcessingUnits setMaxProcessingUnits(java.lang.Integer maxProcessingUnits) { + this.maxProcessingUnits = maxProcessingUnits; + return this; + } + + /** + * The minimum value of processing units applicable to this interval, inclusive. + * @return value or {@code null} for none + */ + public java.lang.Integer getMinProcessingUnits() { + return minProcessingUnits; + } + + /** + * The minimum value of processing units applicable to this interval, inclusive. + * @param minProcessingUnits minProcessingUnits or {@code null} for none + */ + public AllowedProcessingUnits setMinProcessingUnits(java.lang.Integer minProcessingUnits) { + this.minProcessingUnits = minProcessingUnits; + return this; + } + + /** + * Allowed increments of processing units between “min” and “max”. + * @return value or {@code null} for none + */ + public java.lang.Integer getProcessingUnitIncrement() { + return processingUnitIncrement; + } + + /** + * Allowed increments of processing units between “min” and “max”. + * @param processingUnitIncrement processingUnitIncrement or {@code null} for none + */ + public AllowedProcessingUnits setProcessingUnitIncrement(java.lang.Integer processingUnitIncrement) { + this.processingUnitIncrement = processingUnitIncrement; + return this; + } + + @Override + public AllowedProcessingUnits set(String fieldName, Object value) { + return (AllowedProcessingUnits) super.set(fieldName, value); + } + + @Override + public AllowedProcessingUnits clone() { + return (AllowedProcessingUnits) super.clone(); + } + +} diff --git a/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/BatchWriteRequest.java b/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/BatchWriteRequest.java index b70096da3b2..cacf4bfb5eb 100644 --- a/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/BatchWriteRequest.java +++ b/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/BatchWriteRequest.java @@ -30,9 +30,14 @@ public final class BatchWriteRequest extends com.google.api.client.json.GenericJson { /** - * Optional. If you don't set the `exclude_txn_from_change_streams` option or if it's set to - * `false`, then any change streams monitoring columns modified by transactions will capture the - * updates made within that transaction. + * Optional. For change streams monitoring columns modified by transactions, when + * `exclude_txn_from_change_streams` is set to `true`, two scenarios are possible: * If the DDL + * option `allow_txn_exclusion` is set to `true`, then the updates made within all transactions in + * this batch write aren't recorded in the change stream. * If you don't set the DDL option + * `allow_txn_exclusion` or if it's set to `false`, then the updates made within this transaction + * are recorded in the change stream. If you don't set the `exclude_txn_from_change_streams` + * option or if it's set to `false`, then any change streams monitoring columns modified by + * transactions will capture the updates made within that transaction. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -53,9 +58,14 @@ public final class BatchWriteRequest extends com.google.api.client.json.GenericJ private RequestOptions requestOptions; /** - * Optional. If you don't set the `exclude_txn_from_change_streams` option or if it's set to - * `false`, then any change streams monitoring columns modified by transactions will capture the - * updates made within that transaction. + * Optional. For change streams monitoring columns modified by transactions, when + * `exclude_txn_from_change_streams` is set to `true`, two scenarios are possible: * If the DDL + * option `allow_txn_exclusion` is set to `true`, then the updates made within all transactions in + * this batch write aren't recorded in the change stream. * If you don't set the DDL option + * `allow_txn_exclusion` or if it's set to `false`, then the updates made within this transaction + * are recorded in the change stream. If you don't set the `exclude_txn_from_change_streams` + * option or if it's set to `false`, then any change streams monitoring columns modified by + * transactions will capture the updates made within that transaction. * @return value or {@code null} for none */ public java.lang.Boolean getExcludeTxnFromChangeStreams() { @@ -63,9 +73,14 @@ public java.lang.Boolean getExcludeTxnFromChangeStreams() { } /** - * Optional. If you don't set the `exclude_txn_from_change_streams` option or if it's set to - * `false`, then any change streams monitoring columns modified by transactions will capture the - * updates made within that transaction. + * Optional. For change streams monitoring columns modified by transactions, when + * `exclude_txn_from_change_streams` is set to `true`, two scenarios are possible: * If the DDL + * option `allow_txn_exclusion` is set to `true`, then the updates made within all transactions in + * this batch write aren't recorded in the change stream. * If you don't set the DDL option + * `allow_txn_exclusion` or if it's set to `false`, then the updates made within this transaction + * are recorded in the change stream. If you don't set the `exclude_txn_from_change_streams` + * option or if it's set to `false`, then any change streams monitoring columns modified by + * transactions will capture the updates made within that transaction. * @param excludeTxnFromChangeStreams excludeTxnFromChangeStreams or {@code null} for none */ public BatchWriteRequest setExcludeTxnFromChangeStreams(java.lang.Boolean excludeTxnFromChangeStreams) { diff --git a/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/Database.java b/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/Database.java index 4273ad8f7f2..3f27d4dfed0 100644 --- a/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/Database.java +++ b/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/Database.java @@ -52,6 +52,25 @@ public final class Database extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private java.lang.String defaultLeader; + /** + * Output only. The default read lock mode for transactions. If not configured via DDL, + * `READ_LOCK_MODE_UNSPECIFIED` will be returned. For transactions, if lock mode is unspecified, + * it defaults to `PESSIMISTIC` for `SERIALIZABLE` isolation and `OPTIMISTIC` for + * `REPEATABLE_READ` isolation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultReadLockMode; + + /** + * Output only. The default isolation level for transactions in this database. If not configured + * via DDL, `ISOLATION_LEVEL_UNSPECIFIED` will be returned. For transactions, if isolation level + * is unspecified, it defaults to `SERIALIZABLE`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultTransactionIsolation; + /** * Output only. Earliest timestamp at which older versions of the data can be read. This value is * continuously updated by Cloud Spanner and becomes stale the moment it is queried. If you are @@ -196,6 +215,50 @@ public Database setDefaultLeader(java.lang.String defaultLeader) { return this; } + /** + * Output only. The default read lock mode for transactions. If not configured via DDL, + * `READ_LOCK_MODE_UNSPECIFIED` will be returned. For transactions, if lock mode is unspecified, + * it defaults to `PESSIMISTIC` for `SERIALIZABLE` isolation and `OPTIMISTIC` for + * `REPEATABLE_READ` isolation. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultReadLockMode() { + return defaultReadLockMode; + } + + /** + * Output only. The default read lock mode for transactions. If not configured via DDL, + * `READ_LOCK_MODE_UNSPECIFIED` will be returned. For transactions, if lock mode is unspecified, + * it defaults to `PESSIMISTIC` for `SERIALIZABLE` isolation and `OPTIMISTIC` for + * `REPEATABLE_READ` isolation. + * @param defaultReadLockMode defaultReadLockMode or {@code null} for none + */ + public Database setDefaultReadLockMode(java.lang.String defaultReadLockMode) { + this.defaultReadLockMode = defaultReadLockMode; + return this; + } + + /** + * Output only. The default isolation level for transactions in this database. If not configured + * via DDL, `ISOLATION_LEVEL_UNSPECIFIED` will be returned. For transactions, if isolation level + * is unspecified, it defaults to `SERIALIZABLE`. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultTransactionIsolation() { + return defaultTransactionIsolation; + } + + /** + * Output only. The default isolation level for transactions in this database. If not configured + * via DDL, `ISOLATION_LEVEL_UNSPECIFIED` will be returned. For transactions, if isolation level + * is unspecified, it defaults to `SERIALIZABLE`. + * @param defaultTransactionIsolation defaultTransactionIsolation or {@code null} for none + */ + public Database setDefaultTransactionIsolation(java.lang.String defaultTransactionIsolation) { + this.defaultTransactionIsolation = defaultTransactionIsolation; + return this; + } + /** * Output only. Earliest timestamp at which older versions of the data can be read. This value is * continuously updated by Cloud Spanner and becomes stale the moment it is queried. If you are diff --git a/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/InstanceConfig.java b/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/InstanceConfig.java index 6187893d08b..1f5c1ef8581 100644 --- a/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/InstanceConfig.java +++ b/clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/InstanceConfig.java @@ -30,6 +30,27 @@ @SuppressWarnings("javadoc") public final class InstanceConfig extends com.google.api.client.json.GenericJson { + /** + * Output only. Defines the ranges of allowed processing units supported by this instance + * configuration. If multiple ranges are specified, an instance using this configuration may use a + * valid increment in any of the given ranges. For example, an allowed_processing_units + * specification of `[{min_processing_units:100, max_processing_units:900, + * processing_unit_increment:100}, {min_processing_units:1000, processing_unit_increment:1000}]` + * specifies that the instance configuration supports instances with quantities of processing + * units in multiples of 100 processing units (100, 200, 300 and so on) up to and including 900 + * processing units and quantities that are at least 1000 processing units and multiples of 1000 + * processing units (1000, 2000, 3000 and so on). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedProcessingUnits; + + static { + // hack to force ProGuard to consider AllowedProcessingUnits used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(AllowedProcessingUnits.class); + } + /** * Base configuration name, e.g. projects//instanceConfigs/nam3, based on which this configuration * is created. Only set for user-managed configurations. `base_config` must refer to a @@ -159,6 +180,39 @@ public final class InstanceConfig extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key @com.google.api.client.json.JsonString private java.lang.Long storageLimitPerProcessingUnit; + /** + * Output only. Defines the ranges of allowed processing units supported by this instance + * configuration. If multiple ranges are specified, an instance using this configuration may use a + * valid increment in any of the given ranges. For example, an allowed_processing_units + * specification of `[{min_processing_units:100, max_processing_units:900, + * processing_unit_increment:100}, {min_processing_units:1000, processing_unit_increment:1000}]` + * specifies that the instance configuration supports instances with quantities of processing + * units in multiples of 100 processing units (100, 200, 300 and so on) up to and including 900 + * processing units and quantities that are at least 1000 processing units and multiples of 1000 + * processing units (1000, 2000, 3000 and so on). + * @return value or {@code null} for none + */ + public java.util.List getAllowedProcessingUnits() { + return allowedProcessingUnits; + } + + /** + * Output only. Defines the ranges of allowed processing units supported by this instance + * configuration. If multiple ranges are specified, an instance using this configuration may use a + * valid increment in any of the given ranges. For example, an allowed_processing_units + * specification of `[{min_processing_units:100, max_processing_units:900, + * processing_unit_increment:100}, {min_processing_units:1000, processing_unit_increment:1000}]` + * specifies that the instance configuration supports instances with quantities of processing + * units in multiples of 100 processing units (100, 200, 300 and so on) up to and including 900 + * processing units and quantities that are at least 1000 processing units and multiples of 1000 + * processing units (1000, 2000, 3000 and so on). + * @param allowedProcessingUnits allowedProcessingUnits or {@code null} for none + */ + public InstanceConfig setAllowedProcessingUnits(java.util.List allowedProcessingUnits) { + this.allowedProcessingUnits = allowedProcessingUnits; + return this; + } + /** * Base configuration name, e.g. projects//instanceConfigs/nam3, based on which this configuration * is created. Only set for user-managed configurations. `base_config` must refer to a diff --git a/clients/google-api-services-spanner/v1/2.0.0/pom.xml b/clients/google-api-services-spanner/v1/2.0.0/pom.xml index 0c4581f58db..20c66fa52c6 100644 --- a/clients/google-api-services-spanner/v1/2.0.0/pom.xml +++ b/clients/google-api-services-spanner/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-spanner - v1-rev20261006-2.9.2 - Cloud Spanner API v1-rev20261006-2.9.2 + v1-rev20261115-2.9.2 + Cloud Spanner API v1-rev20261115-2.9.2 jar 2011 diff --git a/clients/google-api-services-spanner/v1/README.md b/clients/google-api-services-spanner/v1/README.md index af8928a796b..8fe95880b75 100644 --- a/clients/google-api-services-spanner/v1/README.md +++ b/clients/google-api-services-spanner/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-spanner - v1-rev20261006-2.9.2 + v1-rev20261115-2.9.2 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-spanner:v1-rev20261006-2.9.2' + implementation 'com.google.apis:google-api-services-spanner:v1-rev20261115-2.9.2' } ```