From d1a8536aacfd0d9088dfeda58452ad5685ed2d31 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Thu, 10 Dec 2020 01:24:35 -0800 Subject: [PATCH] chore: update gapic-generator-java to 0.0.9 Committer: @miraleung PiperOrigin-RevId: 346372957 Source-Author: Google APIs Source-Date: Tue Dec 8 11:37:30 2020 -0800 Source-Repo: googleapis/googleapis Source-Sha: 857f70daef9f4c38f042fb3dfb7b8423ae18fd19 Source-Link: https://github.com/googleapis/googleapis/commit/857f70daef9f4c38f042fb3dfb7b8423ae18fd19 --- .../database/v1/DatabaseAdminClient.java | 34 +++++++++---------- .../v1/stub/GrpcDatabaseAdminStub.java | 10 ++++++ .../instance/v1/InstanceAdminClient.java | 10 +++--- .../v1/stub/GrpcInstanceAdminStub.java | 10 ++++++ .../cloud/spanner/v1/SpannerClient.java | 16 ++++----- .../spanner/v1/stub/GrpcSpannerStub.java | 8 +++++ synth.metadata | 6 ++-- 7 files changed, 61 insertions(+), 33 deletions(-) diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java index cca9c5679c7..3921d2ef95f 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/DatabaseAdminClient.java @@ -269,7 +269,7 @@ public final UnaryCallable listData * * @param parent Required. The name of the instance that will serve the new database. Values are * of the form `projects/<project>/instances/<instance>`. - * @param create_statement Required. A `CREATE DATABASE` statement, which specifies the ID of the + * @param createStatement Required. A `CREATE DATABASE` statement, which specifies the ID of the * new database. The database ID must conform to the regular expression * `[a-z][a-z0-9_\\-]*[a-z0-9]` and be between 2 and 30 characters in length. If the * 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 createDatabaseAsy * * @param parent Required. The name of the instance that will serve the new database. Values are * of the form `projects/<project>/instances/<instance>`. - * @param create_statement Required. A `CREATE DATABASE` statement, which specifies the ID of the + * @param createStatement Required. A `CREATE DATABASE` statement, which specifies the ID of the * new database. The database ID must conform to the regular expression * `[a-z][a-z0-9_\\-]*[a-z0-9]` and be between 2 and 30 characters in length. If the * 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 * will be stored in the location(s) specified in the instance configuration of this instance. * Values are of the form `projects/<project>/instances/<instance>`. * @param backup Required. The backup to create. - * @param backup_id Required. The id of the backup to be created. The `backup_id` appended to + * @param backupId Required. The id of the backup to be created. The `backup_id` appended to * `parent` forms the full backup name of the form * `projects/<project>/instances/<instance>/backups/<backup_id>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -915,7 +915,7 @@ public final OperationFuture createBackupAsync( * will be stored in the location(s) specified in the instance configuration of this instance. * Values are of the form `projects/<project>/instances/<instance>`. * @param backup Required. The backup to create. - * @param backup_id Required. The id of the backup to be created. The `backup_id` appended to + * @param backupId Required. The id of the backup to be created. The `backup_id` appended to * `parent` forms the full backup name of the form * `projects/<project>/instances/<instance>/backups/<backup_id>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1046,7 +1046,7 @@ public final UnaryCallable getBackupCallable() { * @param backup Required. The backup to update. `backup.name`, and the fields to be updated as * specified by `update_mask` are required. Other fields are ignored. Update is only supported * for the following fields: * `backup.expire_time`. - * @param update_mask Required. A mask specifying which fields (e.g. `expire_time`) in the Backup + * @param updateMask Required. A mask specifying which fields (e.g. `expire_time`) in the Backup * resource should be updated. This mask is relative to the Backup resource, not to the * request message. The field mask must always be specified; this prevents any future fields * from being erased accidentally by clients that do not know about them. @@ -1214,9 +1214,9 @@ public final UnaryCallable listBackupsC * instance must be in the same project and have the same instance configuration as the * instance containing the source backup. Values are of the form * `projects/<project>/instances/<instance>`. - * @param database_id Required. The id of the database to create and restore to. This database - * must not already exist. The `database_id` appended to `parent` forms the full database name - * of the form + * @param databaseId Required. The id of the database to create and restore to. This database must + * not already exist. The `database_id` appended to `parent` forms the full database name of + * the form * `projects/<project>/instances/<instance>/databases/<database_id>`. * @param backup Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. @@ -1254,9 +1254,9 @@ public final OperationFuture restoreDatabaseA * instance must be in the same project and have the same instance configuration as the * instance containing the source backup. Values are of the form * `projects/<project>/instances/<instance>`. - * @param database_id Required. The id of the database to create and restore to. This database - * must not already exist. The `database_id` appended to `parent` forms the full database name - * of the form + * @param databaseId Required. The id of the database to create and restore to. This database must + * not already exist. The `database_id` appended to `parent` forms the full database name of + * the form * `projects/<project>/instances/<instance>/databases/<database_id>`. * @param backup Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. @@ -1294,9 +1294,9 @@ public final OperationFuture restoreDatabaseA * instance must be in the same project and have the same instance configuration as the * instance containing the source backup. Values are of the form * `projects/<project>/instances/<instance>`. - * @param database_id Required. The id of the database to create and restore to. This database - * must not already exist. The `database_id` appended to `parent` forms the full database name - * of the form + * @param databaseId Required. The id of the database to create and restore to. This database must + * not already exist. The `database_id` appended to `parent` forms the full database name of + * the form * `projects/<project>/instances/<instance>/databases/<database_id>`. * @param backup Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. @@ -1334,9 +1334,9 @@ public final OperationFuture restoreDatabaseA * instance must be in the same project and have the same instance configuration as the * instance containing the source backup. Values are of the form * `projects/<project>/instances/<instance>`. - * @param database_id Required. The id of the database to create and restore to. This database - * must not already exist. The `database_id` appended to `parent` forms the full database name - * of the form + * @param databaseId Required. The id of the database to create and restore to. This database must + * not already exist. The `database_id` appended to `parent` forms the full database name of + * the form * `projects/<project>/instances/<instance>/databases/<database_id>`. * @param backup Name of the backup from which to restore. Values are of the form * `projects/<project>/instances/<instance>/backups/<backup>`. diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java index 739d3a0a79d..1a8e2015f15 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/GrpcDatabaseAdminStub.java @@ -299,11 +299,21 @@ public static final GrpcDatabaseAdminStub create( DatabaseAdminStubSettings.newBuilder().build(), clientContext, callableFactory); } + /** + * Constructs an instance of GrpcDatabaseAdminStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ protected GrpcDatabaseAdminStub(DatabaseAdminStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcDatabaseAdminCallableFactory()); } + /** + * Constructs an instance of GrpcDatabaseAdminStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ protected GrpcDatabaseAdminStub( DatabaseAdminStubSettings settings, ClientContext clientContext, 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 aa26fec859a..13a52701a05 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 @@ -453,8 +453,8 @@ public final UnaryCallable getInstanceCallable() { * * @param parent Required. The name of the project in which to create the instance. Values are of * the form `projects/<project>`. - * @param instance_id Required. The ID of the instance to create. Valid identifiers are of the - * form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in length. + * @param instanceId Required. The ID of the instance to create. Valid identifiers are of the form + * `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in length. * @param instance Required. The instance to create. The name may be omitted, but if specified * must be `<parent>/instances/<instance_id>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -504,8 +504,8 @@ public final OperationFuture createInstanceAsy * * @param parent Required. The name of the project in which to create the instance. Values are of * the form `projects/<project>`. - * @param instance_id Required. The ID of the instance to create. Valid identifiers are of the - * form `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in length. + * @param instanceId Required. The ID of the instance to create. Valid identifiers are of the form + * `[a-z][-a-z0-9]*[a-z0-9]` and must be between 2 and 64 characters in length. * @param instance Required. The instance to create. The name may be omitted, but if specified * must be `<parent>/instances/<instance_id>`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -678,7 +678,7 @@ public final UnaryCallable createInstanceCalla * Otherwise, only fields mentioned in * [field_mask][google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask] need be * included. - * @param field_mask Required. A mask specifying which fields in + * @param fieldMask Required. A mask specifying which fields in * [Instance][google.spanner.admin.instance.v1.Instance] should be updated. The field mask * must always be specified; this prevents any future fields in * [Instance][google.spanner.admin.instance.v1.Instance] from being erased accidentally by diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java index f3c061f178f..b168e86594f 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/GrpcInstanceAdminStub.java @@ -203,11 +203,21 @@ public static final GrpcInstanceAdminStub create( InstanceAdminStubSettings.newBuilder().build(), clientContext, callableFactory); } + /** + * Constructs an instance of GrpcInstanceAdminStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ protected GrpcInstanceAdminStub(InstanceAdminStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcInstanceAdminCallableFactory()); } + /** + * Constructs an instance of GrpcInstanceAdminStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ protected GrpcInstanceAdminStub( InstanceAdminStubSettings settings, ClientContext clientContext, diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java index 36a4ebf081f..31352184208 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/SpannerClient.java @@ -282,7 +282,7 @@ public final UnaryCallable createSessionCallable( * for best practices on session cache management. * * @param database Required. The database in which the new sessions are created. - * @param session_count Required. The number of sessions to be created in this batch call. The API + * @param sessionCount Required. The number of sessions to be created in this batch call. The API * may return fewer than the requested number of sessions. If a specific number of sessions * are desired, the client can make additional calls to BatchCreateSessions (adjusting * [session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count] as necessary). @@ -306,7 +306,7 @@ public final BatchCreateSessionsResponse batchCreateSessions( * for best practices on session cache management. * * @param database Required. The database in which the new sessions are created. - * @param session_count Required. The number of sessions to be created in this batch call. The API + * @param sessionCount Required. The number of sessions to be created in this batch call. The API * may return fewer than the requested number of sessions. If a specific number of sessions * are desired, the client can make additional calls to BatchCreateSessions (adjusting * [session_count][google.spanner.v1.BatchCreateSessionsRequest.session_count] as necessary). @@ -726,7 +726,7 @@ public final UnaryCallable beginTransactio * beginning, re-using the same session. * * @param session Required. The session in which the transaction to be committed is running. - * @param transaction_id Commit a previously-started transaction. + * @param transactionId Commit a previously-started transaction. * @param mutations The mutations to be executed when this transaction commits. All mutations are * applied atomically, in the order they appear in this list. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -753,7 +753,7 @@ public final CommitResponse commit( * beginning, re-using the same session. * * @param session Required. The session in which the transaction to be committed is running. - * @param single_use_transaction Execute mutations in a temporary transaction. Note that unlike + * @param singleUseTransaction Execute mutations in a temporary transaction. Note that unlike * commit of a previously-started transaction, commit with a temporary transaction is * non-idempotent. That is, if the `CommitRequest` is sent to Cloud Spanner more than once * (for instance, due to retries in the application, or in the transport library), it is @@ -786,7 +786,7 @@ public final CommitResponse commit( * beginning, re-using the same session. * * @param session Required. The session in which the transaction to be committed is running. - * @param transaction_id Commit a previously-started transaction. + * @param transactionId Commit a previously-started transaction. * @param mutations The mutations to be executed when this transaction commits. All mutations are * applied atomically, in the order they appear in this list. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -813,7 +813,7 @@ public final CommitResponse commit( * beginning, re-using the same session. * * @param session Required. The session in which the transaction to be committed is running. - * @param single_use_transaction Execute mutations in a temporary transaction. Note that unlike + * @param singleUseTransaction Execute mutations in a temporary transaction. Note that unlike * commit of a previously-started transaction, commit with a temporary transaction is * non-idempotent. That is, if the `CommitRequest` is sent to Cloud Spanner more than once * (for instance, due to retries in the application, or in the transport library), it is @@ -879,7 +879,7 @@ public final UnaryCallable commitCallable() { * already aborted, or the transaction is not found. `Rollback` never returns `ABORTED`. * * @param session Required. The session in which the transaction to roll back is running. - * @param transaction_id Required. The transaction to roll back. + * @param transactionId Required. The transaction to roll back. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void rollback(SessionName session, ByteString transactionId) { @@ -902,7 +902,7 @@ public final void rollback(SessionName session, ByteString transactionId) { * already aborted, or the transaction is not found. `Rollback` never returns `ABORTED`. * * @param session Required. The session in which the transaction to roll back is running. - * @param transaction_id Required. The transaction to roll back. + * @param transactionId Required. The transaction to roll back. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void rollback(String session, ByteString transactionId) { diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java index 5bda72dbbed..17de6be8581 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/GrpcSpannerStub.java @@ -243,11 +243,19 @@ public static final GrpcSpannerStub create( SpannerStubSettings.newBuilder().build(), clientContext, callableFactory); } + /** + * Constructs an instance of GrpcSpannerStub, using the given settings. This is protected so that + * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ protected GrpcSpannerStub(SpannerStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcSpannerCallableFactory()); } + /** + * Constructs an instance of GrpcSpannerStub, using the given settings. This is protected so that + * it is easy to make a subclass, but otherwise, the static factory methods should be preferred. + */ protected GrpcSpannerStub( SpannerStubSettings settings, ClientContext clientContext, diff --git a/synth.metadata b/synth.metadata index 1e582879216..98bc1509bf0 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-spanner.git", - "sha": "d093089bbc37d02b5e66305fab04e02e6a9c3a67" + "sha": "3b42e9101bc7898be428c3046615df8868ca40c0" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "b8b2f8c288cec1f673bf10aa5008819c1576bf2e", - "internalRef": "346126713" + "sha": "857f70daef9f4c38f042fb3dfb7b8423ae18fd19", + "internalRef": "346372957" } }, {