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
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public final UnaryCallable<ListDatabasesRequest, ListDatabasesResponse> listData
*
* @param parent Required. The name of the instance that will serve the new database. Values are
* of the form `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
* @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_\\-]&#42;[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
Expand Down Expand Up @@ -298,7 +298,7 @@ public final OperationFuture<Database, CreateDatabaseMetadata> createDatabaseAsy
*
* @param parent Required. The name of the instance that will serve the new database. Values are
* of the form `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
* @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_\\-]&#42;[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
Expand Down Expand Up @@ -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/&lt;project&gt;/instances/&lt;instance&gt;`.
* @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/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup_id&gt;`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
Expand Down Expand Up @@ -915,7 +915,7 @@ public final OperationFuture<Backup, CreateBackupMetadata> createBackupAsync(
* will be stored in the location(s) specified in the instance configuration of this instance.
* Values are of the form `projects/&lt;project&gt;/instances/&lt;instance&gt;`.
* @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/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup_id&gt;`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
Expand Down Expand Up @@ -1046,7 +1046,7 @@ public final UnaryCallable<GetBackupRequest, Backup> 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: &#42; `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.
Expand Down Expand Up @@ -1214,9 +1214,9 @@ public final UnaryCallable<ListBackupsRequest, ListBackupsResponse> 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/&lt;project&gt;/instances/&lt;instance&gt;`.
* @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/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database_id&gt;`.
* @param backup Name of the backup from which to restore. Values are of the form
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup&gt;`.
Expand Down Expand Up @@ -1254,9 +1254,9 @@ public final OperationFuture<Database, RestoreDatabaseMetadata> 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/&lt;project&gt;/instances/&lt;instance&gt;`.
* @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/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database_id&gt;`.
* @param backup Name of the backup from which to restore. Values are of the form
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup&gt;`.
Expand Down Expand Up @@ -1294,9 +1294,9 @@ public final OperationFuture<Database, RestoreDatabaseMetadata> 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/&lt;project&gt;/instances/&lt;instance&gt;`.
* @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/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database_id&gt;`.
* @param backup Name of the backup from which to restore. Values are of the form
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup&gt;`.
Expand Down Expand Up @@ -1334,9 +1334,9 @@ public final OperationFuture<Database, RestoreDatabaseMetadata> 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/&lt;project&gt;/instances/&lt;instance&gt;`.
* @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/&lt;project&gt;/instances/&lt;instance&gt;/databases/&lt;database_id&gt;`.
* @param backup Name of the backup from which to restore. Values are of the form
* `projects/&lt;project&gt;/instances/&lt;instance&gt;/backups/&lt;backup&gt;`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ public final UnaryCallable<GetInstanceRequest, Instance> getInstanceCallable() {
*
* @param parent Required. The name of the project in which to create the instance. Values are of
* the form `projects/&lt;project&gt;`.
* @param instance_id Required. The ID of the instance to create. Valid identifiers are of the
* form `[a-z][-a-z0-9]&#42;[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]&#42;[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 `&lt;parent&gt;/instances/&lt;instance_id&gt;`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
Expand Down Expand Up @@ -504,8 +504,8 @@ public final OperationFuture<Instance, CreateInstanceMetadata> createInstanceAsy
*
* @param parent Required. The name of the project in which to create the instance. Values are of
* the form `projects/&lt;project&gt;`.
* @param instance_id Required. The ID of the instance to create. Valid identifiers are of the
* form `[a-z][-a-z0-9]&#42;[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]&#42;[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 `&lt;parent&gt;/instances/&lt;instance_id&gt;`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
Expand Down Expand Up @@ -678,7 +678,7 @@ public final UnaryCallable<CreateInstanceRequest, Operation> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public final UnaryCallable<CreateSessionRequest, Session> 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).
Expand All @@ -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).
Expand Down Expand Up @@ -726,7 +726,7 @@ public final UnaryCallable<BeginTransactionRequest, Transaction> 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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -879,7 +879,7 @@ public final UnaryCallable<CommitRequest, CommitResponse> 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) {
Expand All @@ -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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down