Skip to content

Commit e5a6ece

Browse files
chore: update gapic-generator-java to 0.0.9 (#705)
Committer: @miraleung PiperOrigin-RevId: 346372957 Source-Author: Google APIs <[email protected]> Source-Date: Tue Dec 8 11:37:30 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: 857f70daef9f4c38f042fb3dfb7b8423ae18fd19 Source-Link: googleapis/googleapis@857f70d
1 parent e3257e8 commit e5a6ece

File tree

7 files changed

+61
-33
lines changed

7 files changed

+61
-33
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ public final UnaryCallable<ListDatabasesRequest, ListDatabasesResponse> listData
269269
*
270270
* @param parent Required. The name of the instance that will serve the new database. Values are
271271
* of the form `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
272-
* @param create_statement Required. A `CREATE DATABASE` statement, which specifies the ID of the
272+
* @param createStatement Required. A `CREATE DATABASE` statement, which specifies the ID of the
273273
* new database. The database ID must conform to the regular expression
274274
* `[a-z][a-z0-9_\\-]&#42;[a-z0-9]` and be between 2 and 30 characters in length. If the
275275
* database ID is a reserved word or if it contains a hyphen, the database ID must be enclosed
@@ -298,7 +298,7 @@ public final OperationFuture<Database, CreateDatabaseMetadata> createDatabaseAsy
298298
*
299299
* @param parent Required. The name of the instance that will serve the new database. Values are
300300
* of the form `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
301-
* @param create_statement Required. A `CREATE DATABASE` statement, which specifies the ID of the
301+
* @param createStatement Required. A `CREATE DATABASE` statement, which specifies the ID of the
302302
* new database. The database ID must conform to the regular expression
303303
* `[a-z][a-z0-9_\\-]&#42;[a-z0-9]` and be between 2 and 30 characters in length. If the
304304
* database ID is a reserved word or if it contains a hyphen, the database ID must be enclosed
@@ -881,7 +881,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
881881
* will be stored in the location(s) specified in the instance configuration of this instance.
882882
* Values are of the form `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
883883
* @param backup Required. The backup to create.
884-
* @param backup_id Required. The id of the backup to be created. The `backup_id` appended to
884+
* @param backupId Required. The id of the backup to be created. The `backup_id` appended to
885885
* `parent` forms the full backup name of the form
886886
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup_id&gt;`.
887887
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -915,7 +915,7 @@ public final OperationFuture<Backup, CreateBackupMetadata> createBackupAsync(
915915
* will be stored in the location(s) specified in the instance configuration of this instance.
916916
* Values are of the form `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
917917
* @param backup Required. The backup to create.
918-
* @param backup_id Required. The id of the backup to be created. The `backup_id` appended to
918+
* @param backupId Required. The id of the backup to be created. The `backup_id` appended to
919919
* `parent` forms the full backup name of the form
920920
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup_id&gt;`.
921921
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -1046,7 +1046,7 @@ public final UnaryCallable<GetBackupRequest, Backup> getBackupCallable() {
10461046
* @param backup Required. The backup to update. `backup.name`, and the fields to be updated as
10471047
* specified by `update_mask` are required. Other fields are ignored. Update is only supported
10481048
* for the following fields: &#42; `backup.expire_time`.
1049-
* @param update_mask Required. A mask specifying which fields (e.g. `expire_time`) in the Backup
1049+
* @param updateMask Required. A mask specifying which fields (e.g. `expire_time`) in the Backup
10501050
* resource should be updated. This mask is relative to the Backup resource, not to the
10511051
* request message. The field mask must always be specified; this prevents any future fields
10521052
* from being erased accidentally by clients that do not know about them.
@@ -1214,9 +1214,9 @@ public final UnaryCallable<ListBackupsRequest, ListBackupsResponse> listBackupsC
12141214
* instance must be in the same project and have the same instance configuration as the
12151215
* instance containing the source backup. Values are of the form
12161216
* `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
1217-
* @param database_id Required. The id of the database to create and restore to. This database
1218-
* must not already exist. The `database_id` appended to `parent` forms the full database name
1219-
* of the form
1217+
* @param databaseId Required. The id of the database to create and restore to. This database must
1218+
* not already exist. The `database_id` appended to `parent` forms the full database name of
1219+
* the form
12201220
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database_id&gt;`.
12211221
* @param backup Name of the backup from which to restore. Values are of the form
12221222
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup&gt;`.
@@ -1254,9 +1254,9 @@ public final OperationFuture<Database, RestoreDatabaseMetadata> restoreDatabaseA
12541254
* instance must be in the same project and have the same instance configuration as the
12551255
* instance containing the source backup. Values are of the form
12561256
* `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
1257-
* @param database_id Required. The id of the database to create and restore to. This database
1258-
* must not already exist. The `database_id` appended to `parent` forms the full database name
1259-
* of the form
1257+
* @param databaseId Required. The id of the database to create and restore to. This database must
1258+
* not already exist. The `database_id` appended to `parent` forms the full database name of
1259+
* the form
12601260
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database_id&gt;`.
12611261
* @param backup Name of the backup from which to restore. Values are of the form
12621262
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup&gt;`.
@@ -1294,9 +1294,9 @@ public final OperationFuture<Database, RestoreDatabaseMetadata> restoreDatabaseA
12941294
* instance must be in the same project and have the same instance configuration as the
12951295
* instance containing the source backup. Values are of the form
12961296
* `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
1297-
* @param database_id Required. The id of the database to create and restore to. This database
1298-
* must not already exist. The `database_id` appended to `parent` forms the full database name
1299-
* of the form
1297+
* @param databaseId Required. The id of the database to create and restore to. This database must
1298+
* not already exist. The `database_id` appended to `parent` forms the full database name of
1299+
* the form
13001300
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database_id&gt;`.
13011301
* @param backup Name of the backup from which to restore. Values are of the form
13021302
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup&gt;`.
@@ -1334,9 +1334,9 @@ public final OperationFuture<Database, RestoreDatabaseMetadata> restoreDatabaseA
13341334
* instance must be in the same project and have the same instance configuration as the
13351335
* instance containing the source backup. Values are of the form
13361336
* `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
1337-
* @param database_id Required. The id of the database to create and restore to. This database
1338-
* must not already exist. The `database_id` appended to `parent` forms the full database name
1339-
* of the form
1337+
* @param databaseId Required. The id of the database to create and restore to. This database must
1338+
* not already exist. The `database_id` appended to `parent` forms the full database name of
1339+
* the form
13401340
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database_id&gt;`.
13411341
* @param backup Name of the backup from which to restore. Values are of the form
13421342
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup&gt;`.

google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,21 @@ public static final GrpcDatabaseAdminStub create(
299299
DatabaseAdminStubSettings.newBuilder().build(), clientContext, callableFactory);
300300
}
301301

302+
/**
303+
* Constructs an instance of GrpcDatabaseAdminStub, using the given settings. This is protected so
304+
* that it is easy to make a subclass, but otherwise, the static factory methods should be
305+
* preferred.
306+
*/
302307
protected GrpcDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext)
303308
throws IOException {
304309
this(settings, clientContext, new GrpcDatabaseAdminCallableFactory());
305310
}
306311

312+
/**
313+
* Constructs an instance of GrpcDatabaseAdminStub, using the given settings. This is protected so
314+
* that it is easy to make a subclass, but otherwise, the static factory methods should be
315+
* preferred.
316+
*/
307317
protected GrpcDatabaseAdminStub(
308318
DatabaseAdminStubSettings settings,
309319
ClientContext clientContext,

google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/InstanceAdminClient.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,8 @@ public final UnaryCallable<GetInstanceRequest, Instance> getInstanceCallable() {
453453
*
454454
* @param parent Required. The name of the project in which to create the instance. Values are of
455455
* the form `projects/&lt;project&gt;`.
456-
* @param instance_id Required. The ID of the instance to create. Valid identifiers are of the
457-
* form `[a-z][-a-z0-9]&#42;[a-z0-9]` and must be between 2 and 64 characters in length.
456+
* @param instanceId Required. The ID of the instance to create. Valid identifiers are of the form
457+
* `[a-z][-a-z0-9]&#42;[a-z0-9]` and must be between 2 and 64 characters in length.
458458
* @param instance Required. The instance to create. The name may be omitted, but if specified
459459
* must be `&lt;parent&gt;/instances/&lt;instance_id&gt;`.
460460
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -504,8 +504,8 @@ public final OperationFuture<Instance, CreateInstanceMetadata> createInstanceAsy
504504
*
505505
* @param parent Required. The name of the project in which to create the instance. Values are of
506506
* the form `projects/&lt;project&gt;`.
507-
* @param instance_id Required. The ID of the instance to create. Valid identifiers are of the
508-
* form `[a-z][-a-z0-9]&#42;[a-z0-9]` and must be between 2 and 64 characters in length.
507+
* @param instanceId Required. The ID of the instance to create. Valid identifiers are of the form
508+
* `[a-z][-a-z0-9]&#42;[a-z0-9]` and must be between 2 and 64 characters in length.
509509
* @param instance Required. The instance to create. The name may be omitted, but if specified
510510
* must be `&lt;parent&gt;/instances/&lt;instance_id&gt;`.
511511
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -678,7 +678,7 @@ public final UnaryCallable<CreateInstanceRequest, Operation> createInstanceCalla
678678
* Otherwise, only fields mentioned in
679679
* [field_mask][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask] need be
680680
* included.
681-
* @param field_mask Required. A mask specifying which fields in
681+
* @param fieldMask Required. A mask specifying which fields in
682682
* [Instance][google.spanner.admin.instance.v1.Instance] should be updated. The field mask
683683
* must always be specified; this prevents any future fields in
684684
* [Instance][google.spanner.admin.instance.v1.Instance] from being erased accidentally by

google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,21 @@ public static final GrpcInstanceAdminStub create(
203203
InstanceAdminStubSettings.newBuilder().build(), clientContext, callableFactory);
204204
}
205205

206+
/**
207+
* Constructs an instance of GrpcInstanceAdminStub, using the given settings. This is protected so
208+
* that it is easy to make a subclass, but otherwise, the static factory methods should be
209+
* preferred.
210+
*/
206211
protected GrpcInstanceAdminStub(InstanceAdminStubSettings settings, ClientContext clientContext)
207212
throws IOException {
208213
this(settings, clientContext, new GrpcInstanceAdminCallableFactory());
209214
}
210215

216+
/**
217+
* Constructs an instance of GrpcInstanceAdminStub, using the given settings. This is protected so
218+
* that it is easy to make a subclass, but otherwise, the static factory methods should be
219+
* preferred.
220+
*/
211221
protected GrpcInstanceAdminStub(
212222
InstanceAdminStubSettings settings,
213223
ClientContext clientContext,

google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public final UnaryCallable<CreateSessionRequest, Session> createSessionCallable(
282282
* for best practices on session cache management.
283283
*
284284
* @param database Required. The database in which the new sessions are created.
285-
* @param session_count Required. The number of sessions to be created in this batch call. The API
285+
* @param sessionCount Required. The number of sessions to be created in this batch call. The API
286286
* may return fewer than the requested number of sessions. If a specific number of sessions
287287
* are desired, the client can make additional calls to BatchCreateSessions (adjusting
288288
* [session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count] as necessary).
@@ -306,7 +306,7 @@ public final BatchCreateSessionsResponse batchCreateSessions(
306306
* for best practices on session cache management.
307307
*
308308
* @param database Required. The database in which the new sessions are created.
309-
* @param session_count Required. The number of sessions to be created in this batch call. The API
309+
* @param sessionCount Required. The number of sessions to be created in this batch call. The API
310310
* may return fewer than the requested number of sessions. If a specific number of sessions
311311
* are desired, the client can make additional calls to BatchCreateSessions (adjusting
312312
* [session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count] as necessary).
@@ -726,7 +726,7 @@ public final UnaryCallable<BeginTransactionRequest, Transaction> beginTransactio
726726
* beginning, re-using the same session.
727727
*
728728
* @param session Required. The session in which the transaction to be committed is running.
729-
* @param transaction_id Commit a previously-started transaction.
729+
* @param transactionId Commit a previously-started transaction.
730730
* @param mutations The mutations to be executed when this transaction commits. All mutations are
731731
* applied atomically, in the order they appear in this list.
732732
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -753,7 +753,7 @@ public final CommitResponse commit(
753753
* beginning, re-using the same session.
754754
*
755755
* @param session Required. The session in which the transaction to be committed is running.
756-
* @param single_use_transaction Execute mutations in a temporary transaction. Note that unlike
756+
* @param singleUseTransaction Execute mutations in a temporary transaction. Note that unlike
757757
* commit of a previously-started transaction, commit with a temporary transaction is
758758
* non-idempotent. That is, if the `CommitRequest` is sent to Cloud Spanner more than once
759759
* (for instance, due to retries in the application, or in the transport library), it is
@@ -786,7 +786,7 @@ public final CommitResponse commit(
786786
* beginning, re-using the same session.
787787
*
788788
* @param session Required. The session in which the transaction to be committed is running.
789-
* @param transaction_id Commit a previously-started transaction.
789+
* @param transactionId Commit a previously-started transaction.
790790
* @param mutations The mutations to be executed when this transaction commits. All mutations are
791791
* applied atomically, in the order they appear in this list.
792792
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -813,7 +813,7 @@ public final CommitResponse commit(
813813
* beginning, re-using the same session.
814814
*
815815
* @param session Required. The session in which the transaction to be committed is running.
816-
* @param single_use_transaction Execute mutations in a temporary transaction. Note that unlike
816+
* @param singleUseTransaction Execute mutations in a temporary transaction. Note that unlike
817817
* commit of a previously-started transaction, commit with a temporary transaction is
818818
* non-idempotent. That is, if the `CommitRequest` is sent to Cloud Spanner more than once
819819
* (for instance, due to retries in the application, or in the transport library), it is
@@ -879,7 +879,7 @@ public final UnaryCallable<CommitRequest, CommitResponse> commitCallable() {
879879
* already aborted, or the transaction is not found. `Rollback` never returns `ABORTED`.
880880
*
881881
* @param session Required. The session in which the transaction to roll back is running.
882-
* @param transaction_id Required. The transaction to roll back.
882+
* @param transactionId Required. The transaction to roll back.
883883
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
884884
*/
885885
public final void rollback(SessionName session, ByteString transactionId) {
@@ -902,7 +902,7 @@ public final void rollback(SessionName session, ByteString transactionId) {
902902
* already aborted, or the transaction is not found. `Rollback` never returns `ABORTED`.
903903
*
904904
* @param session Required. The session in which the transaction to roll back is running.
905-
* @param transaction_id Required. The transaction to roll back.
905+
* @param transactionId Required. The transaction to roll back.
906906
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
907907
*/
908908
public final void rollback(String session, ByteString transactionId) {

google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,19 @@ public static final GrpcSpannerStub create(
243243
SpannerStubSettings.newBuilder().build(), clientContext, callableFactory);
244244
}
245245

246+
/**
247+
* Constructs an instance of GrpcSpannerStub, using the given settings. This is protected so that
248+
* it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
249+
*/
246250
protected GrpcSpannerStub(SpannerStubSettings settings, ClientContext clientContext)
247251
throws IOException {
248252
this(settings, clientContext, new GrpcSpannerCallableFactory());
249253
}
250254

255+
/**
256+
* Constructs an instance of GrpcSpannerStub, using the given settings. This is protected so that
257+
* it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
258+
*/
251259
protected GrpcSpannerStub(
252260
SpannerStubSettings settings,
253261
ClientContext clientContext,

synth.metadata

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-spanner.git",
7-
"sha": "d093089bbc37d02b5e66305fab04e02e6a9c3a67"
7+
"sha": "3b42e9101bc7898be428c3046615df8868ca40c0"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "b8b2f8c288cec1f673bf10aa5008819c1576bf2e",
15-
"internalRef": "346126713"
14+
"sha": "857f70daef9f4c38f042fb3dfb7b8423ae18fd19",
15+
"internalRef": "346372957"
1616
}
1717
},
1818
{

0 commit comments

Comments
 (0)