Skip to content

Commit ca2b8ce

Browse files
1 parent 1085d5a commit ca2b8ce

16 files changed

+246
-139
lines changed

clients/google-api-services-spanner/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-spanner</artifactId>
25-
<version>v1-rev20250708-2.0.0</version>
25+
<version>v1-rev20250920-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-spanner:v1-rev20250708-2.0.0'
38+
implementation 'com.google.apis:google-api-services-spanner:v1-rev20250920-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/Spanner.java

Lines changed: 54 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4692,10 +4692,10 @@ public Copy set(String parameterName, Object value) {
46924692
* This request holds the parameters needed by the spanner server. After setting any optional
46934693
* parameters, call the {@link Create#execute()} method to invoke the remote operation.
46944694
*
4695-
* @param parent Required. The name of the instance in which the backup will be created. This must be the same
4696-
* instance that contains the database the backup will be created from. The backup will be
4697-
* stored in the location(s) specified in the instance configuration of this instance. Values
4698-
* are of the form `projects//instances/`.
4695+
* @param parent Required. The name of the instance in which the backup is created. This must be the same instance
4696+
* that contains the database the backup is created from. The backup will be stored in the
4697+
* locations specified in the instance configuration of this instance. Values are of the form
4698+
* `projects//instances/`.
46994699
* @param content the {@link com.google.api.services.spanner.v1.model.Backup}
47004700
* @return the request
47014701
*/
@@ -4727,10 +4727,10 @@ public class Create extends SpannerRequest<com.google.api.services.spanner.v1.mo
47274727
* Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
47284728
* be called to initialize this instance immediately after invoking the constructor. </p>
47294729
*
4730-
* @param parent Required. The name of the instance in which the backup will be created. This must be the same
4731-
* instance that contains the database the backup will be created from. The backup will be
4732-
* stored in the location(s) specified in the instance configuration of this instance. Values
4733-
* are of the form `projects//instances/`.
4730+
* @param parent Required. The name of the instance in which the backup is created. This must be the same instance
4731+
* that contains the database the backup is created from. The backup will be stored in the
4732+
* locations specified in the instance configuration of this instance. Values are of the form
4733+
* `projects//instances/`.
47344734
* @param content the {@link com.google.api.services.spanner.v1.model.Backup}
47354735
* @since 1.13
47364736
*/
@@ -4800,28 +4800,28 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) {
48004800
}
48014801

48024802
/**
4803-
* Required. The name of the instance in which the backup will be created. This must be
4804-
* the same instance that contains the database the backup will be created from. The
4805-
* backup will be stored in the location(s) specified in the instance configuration of
4806-
* this instance. Values are of the form `projects//instances/`.
4803+
* Required. The name of the instance in which the backup is created. This must be the
4804+
* same instance that contains the database the backup is created from. The backup will be
4805+
* stored in the locations specified in the instance configuration of this instance.
4806+
* Values are of the form `projects//instances/`.
48074807
*/
48084808
@com.google.api.client.util.Key
48094809
private java.lang.String parent;
48104810

4811-
/** Required. The name of the instance in which the backup will be created. This must be the same
4812-
instance that contains the database the backup will be created from. The backup will be stored in
4813-
the location(s) specified in the instance configuration of this instance. Values are of the form
4811+
/** Required. The name of the instance in which the backup is created. This must be the same instance
4812+
that contains the database the backup is created from. The backup will be stored in the locations
4813+
specified in the instance configuration of this instance. Values are of the form
48144814
`projects//instances/`.
48154815
*/
48164816
public java.lang.String getParent() {
48174817
return parent;
48184818
}
48194819

48204820
/**
4821-
* Required. The name of the instance in which the backup will be created. This must be
4822-
* the same instance that contains the database the backup will be created from. The
4823-
* backup will be stored in the location(s) specified in the instance configuration of
4824-
* this instance. Values are of the form `projects//instances/`.
4821+
* Required. The name of the instance in which the backup is created. This must be the
4822+
* same instance that contains the database the backup is created from. The backup will be
4823+
* stored in the locations specified in the instance configuration of this instance.
4824+
* Values are of the form `projects//instances/`.
48254825
*/
48264826
public Create setParent(java.lang.String parent) {
48274827
if (!getSuppressPatternChecks()) {
@@ -4873,14 +4873,23 @@ public Create setEncryptionConfigEncryptionType(java.lang.String encryptionConfi
48734873
}
48744874

48754875
/**
4876-
* Optional. The Cloud KMS key that will be used to protect the backup. This field should
4877-
* be set only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the
4878-
* form `projects//locations//keyRings//cryptoKeys/`.
4876+
* Optional. This field is maintained for backwards compatibility. For new callers, we
4877+
* recommend using `kms_key_names` to specify the KMS key. Only use `kms_key_name` if the
4878+
* location of the KMS key matches the database instance's configuration (location)
4879+
* exactly. For example, if the KMS location is in `us-central1` or `nam3`, then the
4880+
* database instance must also be in `us-central1` or `nam3`. The Cloud KMS key that is
4881+
* used to encrypt and decrypt the restored database. Set this field only when
4882+
* encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
4883+
* `projects//locations//keyRings//cryptoKeys/`.
48794884
*/
48804885
@com.google.api.client.util.Key("encryptionConfig.kmsKeyName")
48814886
private java.lang.String encryptionConfigKmsKeyName;
48824887

4883-
/** Optional. The Cloud KMS key that will be used to protect the backup. This field should be set only
4888+
/** Optional. This field is maintained for backwards compatibility. For new callers, we recommend using
4889+
`kms_key_names` to specify the KMS key. Only use `kms_key_name` if the location of the KMS key
4890+
matches the database instance's configuration (location) exactly. For example, if the KMS location
4891+
is in `us-central1` or `nam3`, then the database instance must also be in `us-central1` or `nam3`.
4892+
The Cloud KMS key that is used to encrypt and decrypt the restored database. Set this field only
48844893
when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
48854894
`projects//locations//keyRings//cryptoKeys/`.
48864895
*/
@@ -4889,9 +4898,14 @@ public java.lang.String getEncryptionConfigKmsKeyName() {
48894898
}
48904899

48914900
/**
4892-
* Optional. The Cloud KMS key that will be used to protect the backup. This field should
4893-
* be set only when encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the
4894-
* form `projects//locations//keyRings//cryptoKeys/`.
4901+
* Optional. This field is maintained for backwards compatibility. For new callers, we
4902+
* recommend using `kms_key_names` to specify the KMS key. Only use `kms_key_name` if the
4903+
* location of the KMS key matches the database instance's configuration (location)
4904+
* exactly. For example, if the KMS location is in `us-central1` or `nam3`, then the
4905+
* database instance must also be in `us-central1` or `nam3`. The Cloud KMS key that is
4906+
* used to encrypt and decrypt the restored database. Set this field only when
4907+
* encryption_type is `CUSTOMER_MANAGED_ENCRYPTION`. Values are of the form
4908+
* `projects//locations//keyRings//cryptoKeys/`.
48954909
*/
48964910
public Create setEncryptionConfigKmsKeyName(java.lang.String encryptionConfigKmsKeyName) {
48974911
this.encryptionConfigKmsKeyName = encryptionConfigKmsKeyName;
@@ -5799,28 +5813,28 @@ public Patch setName(java.lang.String name) {
57995813
}
58005814

58015815
/**
5802-
* Required. A mask specifying which fields (e.g. `expire_time`) in the Backup resource
5803-
* should be updated. This mask is relative to the Backup resource, not to the request
5804-
* message. The field mask must always be specified; this prevents any future fields from
5805-
* being erased accidentally by clients that do not know about them.
5816+
* Required. A mask specifying which fields (for example, `expire_time`) in the backup
5817+
* resource should be updated. This mask is relative to the backup resource, not to the
5818+
* request message. The field mask must always be specified; this prevents any future
5819+
* fields from being erased accidentally by clients that do not know about them.
58065820
*/
58075821
@com.google.api.client.util.Key
58085822
private String updateMask;
58095823

5810-
/** Required. A mask specifying which fields (e.g. `expire_time`) in the Backup resource should be
5811-
updated. This mask is relative to the Backup resource, not to the request message. The field mask
5812-
must always be specified; this prevents any future fields from being erased accidentally by clients
5813-
that do not know about them.
5824+
/** Required. A mask specifying which fields (for example, `expire_time`) in the backup resource should
5825+
be updated. This mask is relative to the backup resource, not to the request message. The field
5826+
mask must always be specified; this prevents any future fields from being erased accidentally by
5827+
clients that do not know about them.
58145828
*/
58155829
public String getUpdateMask() {
58165830
return updateMask;
58175831
}
58185832

58195833
/**
5820-
* Required. A mask specifying which fields (e.g. `expire_time`) in the Backup resource
5821-
* should be updated. This mask is relative to the Backup resource, not to the request
5822-
* message. The field mask must always be specified; this prevents any future fields from
5823-
* being erased accidentally by clients that do not know about them.
5834+
* Required. A mask specifying which fields (for example, `expire_time`) in the backup
5835+
* resource should be updated. This mask is relative to the backup resource, not to the
5836+
* request message. The field mask must always be specified; this prevents any future
5837+
* fields from being erased accidentally by clients that do not know about them.
58245838
*/
58255839
public Patch setUpdateMask(String updateMask) {
58265840
this.updateMask = updateMask;
@@ -9177,7 +9191,7 @@ public TestIamPermissions set(String parameterName, Object value) {
91779191
/**
91789192
* Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns,
91799193
* indexes, etc. The returned long-running operation will have a name of the format `/operations/`
9180-
* and can be used to track execution of the schema change(s). The metadata field type is
9194+
* and can be used to track execution of the schema changes. The metadata field type is
91819195
* UpdateDatabaseDdlMetadata. The operation has no response.
91829196
*
91839197
* Create a request for the method "databases.updateDdl".
@@ -9205,7 +9219,7 @@ public class UpdateDdl extends SpannerRequest<com.google.api.services.spanner.v1
92059219
/**
92069220
* Updates the schema of a Cloud Spanner database by creating/altering/dropping tables, columns,
92079221
* indexes, etc. The returned long-running operation will have a name of the format `/operations/`
9208-
* and can be used to track execution of the schema change(s). The metadata field type is
9222+
* and can be used to track execution of the schema changes. The metadata field type is
92099223
* UpdateDatabaseDdlMetadata. The operation has no response.
92109224
*
92119225
* Create a request for the method "databases.updateDdl".

clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/AdaptMessageResponse.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@
2929
@SuppressWarnings("javadoc")
3030
public final class AdaptMessageResponse extends com.google.api.client.json.GenericJson {
3131

32+
/**
33+
* Optional. Indicates whether this is the last AdaptMessageResponse in the stream. This field may
34+
* be optionally set by the server. Clients should not rely on this field being set in all cases.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.Boolean last;
39+
3240
/**
3341
* Optional. Uninterpreted bytes from the underlying wire protocol.
3442
* The value may be {@code null}.
@@ -43,6 +51,25 @@ public final class AdaptMessageResponse extends com.google.api.client.json.Gener
4351
@com.google.api.client.util.Key
4452
private java.util.Map<String, java.lang.String> stateUpdates;
4553

54+
/**
55+
* Optional. Indicates whether this is the last AdaptMessageResponse in the stream. This field may
56+
* be optionally set by the server. Clients should not rely on this field being set in all cases.
57+
* @return value or {@code null} for none
58+
*/
59+
public java.lang.Boolean getLast() {
60+
return last;
61+
}
62+
63+
/**
64+
* Optional. Indicates whether this is the last AdaptMessageResponse in the stream. This field may
65+
* be optionally set by the server. Clients should not rely on this field being set in all cases.
66+
* @param last last or {@code null} for none
67+
*/
68+
public AdaptMessageResponse setLast(java.lang.Boolean last) {
69+
this.last = last;
70+
return this;
71+
}
72+
4673
/**
4774
* Optional. Uninterpreted bytes from the underlying wire protocol.
4875
* @see #decodePayload()

clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/Backup.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ public final class Backup extends com.google.api.client.json.GenericJson {
127127
private java.lang.String incrementalBackupChainId;
128128

129129
/**
130-
* Output only. The instance partition(s) storing the backup. This is the same as the list of the
131-
* instance partition(s) that the database had footprint in at the backup's `version_time`.
130+
* Output only. The instance partition storing the backup. This is the same as the list of the
131+
* instance partitions that the database recorded at the backup's `version_time`.
132132
* The value may be {@code null}.
133133
*/
134134
@com.google.api.client.util.Key
@@ -438,17 +438,17 @@ public Backup setIncrementalBackupChainId(java.lang.String incrementalBackupChai
438438
}
439439

440440
/**
441-
* Output only. The instance partition(s) storing the backup. This is the same as the list of the
442-
* instance partition(s) that the database had footprint in at the backup's `version_time`.
441+
* Output only. The instance partition storing the backup. This is the same as the list of the
442+
* instance partitions that the database recorded at the backup's `version_time`.
443443
* @return value or {@code null} for none
444444
*/
445445
public java.util.List<BackupInstancePartition> getInstancePartitions() {
446446
return instancePartitions;
447447
}
448448

449449
/**
450-
* Output only. The instance partition(s) storing the backup. This is the same as the list of the
451-
* instance partition(s) that the database had footprint in at the backup's `version_time`.
450+
* Output only. The instance partition storing the backup. This is the same as the list of the
451+
* instance partitions that the database recorded at the backup's `version_time`.
452452
* @param instancePartitions instancePartitions or {@code null} for none
453453
*/
454454
public Backup setInstancePartitions(java.util.List<BackupInstancePartition> instancePartitions) {

clients/google-api-services-spanner/v1/2.0.0/com/google/api/services/spanner/v1/model/CommitResponse.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ public final class CommitResponse extends com.google.api.client.json.GenericJson
5252
@com.google.api.client.util.Key
5353
private MultiplexedSessionPrecommitToken precommitToken;
5454

55+
/**
56+
* If `TransactionOptions.isolation_level` is set to `IsolationLevel.REPEATABLE_READ`, then the
57+
* snapshot timestamp is the timestamp at which all reads in the transaction ran. This timestamp
58+
* is never returned.
59+
* The value may be {@code null}.
60+
*/
61+
@com.google.api.client.util.Key
62+
private String snapshotTimestamp;
63+
5564
/**
5665
* The statistics about this `Commit`. Not returned by default. For more information, see
5766
* CommitRequest.return_commit_stats.
@@ -107,6 +116,27 @@ public CommitResponse setPrecommitToken(MultiplexedSessionPrecommitToken precomm
107116
return this;
108117
}
109118

119+
/**
120+
* If `TransactionOptions.isolation_level` is set to `IsolationLevel.REPEATABLE_READ`, then the
121+
* snapshot timestamp is the timestamp at which all reads in the transaction ran. This timestamp
122+
* is never returned.
123+
* @return value or {@code null} for none
124+
*/
125+
public String getSnapshotTimestamp() {
126+
return snapshotTimestamp;
127+
}
128+
129+
/**
130+
* If `TransactionOptions.isolation_level` is set to `IsolationLevel.REPEATABLE_READ`, then the
131+
* snapshot timestamp is the timestamp at which all reads in the transaction ran. This timestamp
132+
* is never returned.
133+
* @param snapshotTimestamp snapshotTimestamp or {@code null} for none
134+
*/
135+
public CommitResponse setSnapshotTimestamp(String snapshotTimestamp) {
136+
this.snapshotTimestamp = snapshotTimestamp;
137+
return this;
138+
}
139+
110140
@Override
111141
public CommitResponse set(String fieldName, Object value) {
112142
return (CommitResponse) super.set(fieldName, value);

0 commit comments

Comments
 (0)