Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-spanner/v1/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-spanner</artifactId>
<version>v1-rev20261006-2.9.2</version>
<version>v1-rev20261115-2.9.2</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
* <p> 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:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @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();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -53,19 +58,29 @@ 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() {
return excludeTxnFromChangeStreams;
}

/**
* 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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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> 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
Expand Down Expand Up @@ -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<AllowedProcessingUnits> 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> 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
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-spanner/v1/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-spanner</artifactId>
<version>v1-rev20261006-2.9.2</version>
<name>Cloud Spanner API v1-rev20261006-2.9.2</name>
<version>v1-rev20261115-2.9.2</version>
<name>Cloud Spanner API v1-rev20261115-2.9.2</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-spanner/v1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-spanner</artifactId>
<version>v1-rev20261006-2.9.2</version>
<version>v1-rev20261115-2.9.2</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Loading