Skip to content

Commit 60dd9fb

Browse files
chore: re-generated to pick up changes from googleapis (#330)
* chore: changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore: set Ruby namespace in proto options PiperOrigin-RevId: 316144276 Source-Author: Google APIs <noreply@google.com> Source-Date: Fri Jun 12 11:38:22 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: b5653ef55579186841dee924592248d821902a12 Source-Link: googleapis/googleapis@b5653ef * chore: fully qualify response type in longrunning_operation.info for CreateBackup in the same fashion as all other longrunning operations PiperOrigin-RevId: 320022685 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue Jul 7 11:19:52 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 4d8706453bf6016ebf1bb241d78b4dc58c92064d Source-Link: googleapis/googleapis@4d87064 * fix: migrate spanner/database/v1 to grpc_service_config PiperOrigin-RevId: 320114022 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue Jul 7 20:27:27 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: d8354750a5fe21173832ab9a1f2ce6348cd27d83 Source-Link: googleapis/googleapis@d835475 * fix: migrate spanner/instance/v1 to grpc_service_config PiperOrigin-RevId: 320114042 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue Jul 7 20:27:36 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 8bbefeffb4c91fd34e1729bbc51dfc136557d88d Source-Link: googleapis/googleapis@8bbefef * fix: migrate spanner/v1 to grpc_service_config PiperOrigin-RevId: 320114059 Source-Author: Google APIs <noreply@google.com> Source-Date: Tue Jul 7 20:27:48 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: c29c4c519667a51c0e2cfddda9c3a66be77bdf38 Source-Link: googleapis/googleapis@c29c4c5 * fix: apply SpannerOptionsTest patch (#332) Co-authored-by: Noah Dietz <noahdietz@users.noreply.github.com>
1 parent 8aa591e commit 60dd9fb

File tree

37 files changed

+2702
-2509
lines changed

37 files changed

+2702
-2509
lines changed

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

+695-695
Large diffs are not rendered by default.

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

+75-75
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,6 @@
103103
@Generated("by gapic-generator")
104104
@BetaApi
105105
public class DatabaseAdminSettings extends ClientSettings<DatabaseAdminSettings> {
106-
/** Returns the object with the settings used for calls to listDatabases. */
107-
public PagedCallSettings<ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>
108-
listDatabasesSettings() {
109-
return ((DatabaseAdminStubSettings) getStubSettings()).listDatabasesSettings();
110-
}
111-
112106
/** Returns the object with the settings used for calls to createDatabase. */
113107
public UnaryCallSettings<CreateDatabaseRequest, Operation> createDatabaseSettings() {
114108
return ((DatabaseAdminStubSettings) getStubSettings()).createDatabaseSettings();
@@ -122,11 +116,6 @@ public UnaryCallSettings<CreateDatabaseRequest, Operation> createDatabaseSetting
122116
return ((DatabaseAdminStubSettings) getStubSettings()).createDatabaseOperationSettings();
123117
}
124118

125-
/** Returns the object with the settings used for calls to getDatabase. */
126-
public UnaryCallSettings<GetDatabaseRequest, Database> getDatabaseSettings() {
127-
return ((DatabaseAdminStubSettings) getStubSettings()).getDatabaseSettings();
128-
}
129-
130119
/** Returns the object with the settings used for calls to updateDatabaseDdl. */
131120
public UnaryCallSettings<UpdateDatabaseDdlRequest, Operation> updateDatabaseDdlSettings() {
132121
return ((DatabaseAdminStubSettings) getStubSettings()).updateDatabaseDdlSettings();
@@ -140,6 +129,43 @@ public UnaryCallSettings<UpdateDatabaseDdlRequest, Operation> updateDatabaseDdlS
140129
return ((DatabaseAdminStubSettings) getStubSettings()).updateDatabaseDdlOperationSettings();
141130
}
142131

132+
/** Returns the object with the settings used for calls to createBackup. */
133+
public UnaryCallSettings<CreateBackupRequest, Operation> createBackupSettings() {
134+
return ((DatabaseAdminStubSettings) getStubSettings()).createBackupSettings();
135+
}
136+
137+
/** Returns the object with the settings used for calls to createBackup. */
138+
@BetaApi(
139+
"The surface for long-running operations is not stable yet and may change in the future.")
140+
public OperationCallSettings<CreateBackupRequest, Backup, CreateBackupMetadata>
141+
createBackupOperationSettings() {
142+
return ((DatabaseAdminStubSettings) getStubSettings()).createBackupOperationSettings();
143+
}
144+
145+
/** Returns the object with the settings used for calls to restoreDatabase. */
146+
public UnaryCallSettings<RestoreDatabaseRequest, Operation> restoreDatabaseSettings() {
147+
return ((DatabaseAdminStubSettings) getStubSettings()).restoreDatabaseSettings();
148+
}
149+
150+
/** Returns the object with the settings used for calls to restoreDatabase. */
151+
@BetaApi(
152+
"The surface for long-running operations is not stable yet and may change in the future.")
153+
public OperationCallSettings<RestoreDatabaseRequest, Database, RestoreDatabaseMetadata>
154+
restoreDatabaseOperationSettings() {
155+
return ((DatabaseAdminStubSettings) getStubSettings()).restoreDatabaseOperationSettings();
156+
}
157+
158+
/** Returns the object with the settings used for calls to listDatabases. */
159+
public PagedCallSettings<ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>
160+
listDatabasesSettings() {
161+
return ((DatabaseAdminStubSettings) getStubSettings()).listDatabasesSettings();
162+
}
163+
164+
/** Returns the object with the settings used for calls to getDatabase. */
165+
public UnaryCallSettings<GetDatabaseRequest, Database> getDatabaseSettings() {
166+
return ((DatabaseAdminStubSettings) getStubSettings()).getDatabaseSettings();
167+
}
168+
143169
/** Returns the object with the settings used for calls to dropDatabase. */
144170
public UnaryCallSettings<DropDatabaseRequest, Empty> dropDatabaseSettings() {
145171
return ((DatabaseAdminStubSettings) getStubSettings()).dropDatabaseSettings();
@@ -166,19 +192,6 @@ public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() {
166192
return ((DatabaseAdminStubSettings) getStubSettings()).testIamPermissionsSettings();
167193
}
168194

169-
/** Returns the object with the settings used for calls to createBackup. */
170-
public UnaryCallSettings<CreateBackupRequest, Operation> createBackupSettings() {
171-
return ((DatabaseAdminStubSettings) getStubSettings()).createBackupSettings();
172-
}
173-
174-
/** Returns the object with the settings used for calls to createBackup. */
175-
@BetaApi(
176-
"The surface for long-running operations is not stable yet and may change in the future.")
177-
public OperationCallSettings<CreateBackupRequest, Backup, CreateBackupMetadata>
178-
createBackupOperationSettings() {
179-
return ((DatabaseAdminStubSettings) getStubSettings()).createBackupOperationSettings();
180-
}
181-
182195
/** Returns the object with the settings used for calls to getBackup. */
183196
public UnaryCallSettings<GetBackupRequest, Backup> getBackupSettings() {
184197
return ((DatabaseAdminStubSettings) getStubSettings()).getBackupSettings();
@@ -200,19 +213,6 @@ public UnaryCallSettings<DeleteBackupRequest, Empty> deleteBackupSettings() {
200213
return ((DatabaseAdminStubSettings) getStubSettings()).listBackupsSettings();
201214
}
202215

203-
/** Returns the object with the settings used for calls to restoreDatabase. */
204-
public UnaryCallSettings<RestoreDatabaseRequest, Operation> restoreDatabaseSettings() {
205-
return ((DatabaseAdminStubSettings) getStubSettings()).restoreDatabaseSettings();
206-
}
207-
208-
/** Returns the object with the settings used for calls to restoreDatabase. */
209-
@BetaApi(
210-
"The surface for long-running operations is not stable yet and may change in the future.")
211-
public OperationCallSettings<RestoreDatabaseRequest, Database, RestoreDatabaseMetadata>
212-
restoreDatabaseOperationSettings() {
213-
return ((DatabaseAdminStubSettings) getStubSettings()).restoreDatabaseOperationSettings();
214-
}
215-
216216
/** Returns the object with the settings used for calls to listDatabaseOperations. */
217217
public PagedCallSettings<
218218
ListDatabaseOperationsRequest,
@@ -328,13 +328,6 @@ public Builder applyToAllUnaryMethods(
328328
return this;
329329
}
330330

331-
/** Returns the builder for the settings used for calls to listDatabases. */
332-
public PagedCallSettings.Builder<
333-
ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>
334-
listDatabasesSettings() {
335-
return getStubSettingsBuilder().listDatabasesSettings();
336-
}
337-
338331
/** Returns the builder for the settings used for calls to createDatabase. */
339332
public UnaryCallSettings.Builder<CreateDatabaseRequest, Operation> createDatabaseSettings() {
340333
return getStubSettingsBuilder().createDatabaseSettings();
@@ -348,11 +341,6 @@ public UnaryCallSettings.Builder<CreateDatabaseRequest, Operation> createDatabas
348341
return getStubSettingsBuilder().createDatabaseOperationSettings();
349342
}
350343

351-
/** Returns the builder for the settings used for calls to getDatabase. */
352-
public UnaryCallSettings.Builder<GetDatabaseRequest, Database> getDatabaseSettings() {
353-
return getStubSettingsBuilder().getDatabaseSettings();
354-
}
355-
356344
/** Returns the builder for the settings used for calls to updateDatabaseDdl. */
357345
public UnaryCallSettings.Builder<UpdateDatabaseDdlRequest, Operation>
358346
updateDatabaseDdlSettings() {
@@ -367,6 +355,44 @@ public UnaryCallSettings.Builder<GetDatabaseRequest, Database> getDatabaseSettin
367355
return getStubSettingsBuilder().updateDatabaseDdlOperationSettings();
368356
}
369357

358+
/** Returns the builder for the settings used for calls to createBackup. */
359+
public UnaryCallSettings.Builder<CreateBackupRequest, Operation> createBackupSettings() {
360+
return getStubSettingsBuilder().createBackupSettings();
361+
}
362+
363+
/** Returns the builder for the settings used for calls to createBackup. */
364+
@BetaApi(
365+
"The surface for long-running operations is not stable yet and may change in the future.")
366+
public OperationCallSettings.Builder<CreateBackupRequest, Backup, CreateBackupMetadata>
367+
createBackupOperationSettings() {
368+
return getStubSettingsBuilder().createBackupOperationSettings();
369+
}
370+
371+
/** Returns the builder for the settings used for calls to restoreDatabase. */
372+
public UnaryCallSettings.Builder<RestoreDatabaseRequest, Operation> restoreDatabaseSettings() {
373+
return getStubSettingsBuilder().restoreDatabaseSettings();
374+
}
375+
376+
/** Returns the builder for the settings used for calls to restoreDatabase. */
377+
@BetaApi(
378+
"The surface for long-running operations is not stable yet and may change in the future.")
379+
public OperationCallSettings.Builder<RestoreDatabaseRequest, Database, RestoreDatabaseMetadata>
380+
restoreDatabaseOperationSettings() {
381+
return getStubSettingsBuilder().restoreDatabaseOperationSettings();
382+
}
383+
384+
/** Returns the builder for the settings used for calls to listDatabases. */
385+
public PagedCallSettings.Builder<
386+
ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>
387+
listDatabasesSettings() {
388+
return getStubSettingsBuilder().listDatabasesSettings();
389+
}
390+
391+
/** Returns the builder for the settings used for calls to getDatabase. */
392+
public UnaryCallSettings.Builder<GetDatabaseRequest, Database> getDatabaseSettings() {
393+
return getStubSettingsBuilder().getDatabaseSettings();
394+
}
395+
370396
/** Returns the builder for the settings used for calls to dropDatabase. */
371397
public UnaryCallSettings.Builder<DropDatabaseRequest, Empty> dropDatabaseSettings() {
372398
return getStubSettingsBuilder().dropDatabaseSettings();
@@ -394,19 +420,6 @@ public UnaryCallSettings.Builder<GetIamPolicyRequest, Policy> getIamPolicySettin
394420
return getStubSettingsBuilder().testIamPermissionsSettings();
395421
}
396422

397-
/** Returns the builder for the settings used for calls to createBackup. */
398-
public UnaryCallSettings.Builder<CreateBackupRequest, Operation> createBackupSettings() {
399-
return getStubSettingsBuilder().createBackupSettings();
400-
}
401-
402-
/** Returns the builder for the settings used for calls to createBackup. */
403-
@BetaApi(
404-
"The surface for long-running operations is not stable yet and may change in the future.")
405-
public OperationCallSettings.Builder<CreateBackupRequest, Backup, CreateBackupMetadata>
406-
createBackupOperationSettings() {
407-
return getStubSettingsBuilder().createBackupOperationSettings();
408-
}
409-
410423
/** Returns the builder for the settings used for calls to getBackup. */
411424
public UnaryCallSettings.Builder<GetBackupRequest, Backup> getBackupSettings() {
412425
return getStubSettingsBuilder().getBackupSettings();
@@ -429,19 +442,6 @@ public UnaryCallSettings.Builder<DeleteBackupRequest, Empty> deleteBackupSetting
429442
return getStubSettingsBuilder().listBackupsSettings();
430443
}
431444

432-
/** Returns the builder for the settings used for calls to restoreDatabase. */
433-
public UnaryCallSettings.Builder<RestoreDatabaseRequest, Operation> restoreDatabaseSettings() {
434-
return getStubSettingsBuilder().restoreDatabaseSettings();
435-
}
436-
437-
/** Returns the builder for the settings used for calls to restoreDatabase. */
438-
@BetaApi(
439-
"The surface for long-running operations is not stable yet and may change in the future.")
440-
public OperationCallSettings.Builder<RestoreDatabaseRequest, Database, RestoreDatabaseMetadata>
441-
restoreDatabaseOperationSettings() {
442-
return getStubSettingsBuilder().restoreDatabaseOperationSettings();
443-
}
444-
445445
/** Returns the builder for the settings used for calls to listDatabaseOperations. */
446446
public PagedCallSettings.Builder<
447447
ListDatabaseOperationsRequest,

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

+33-33
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,6 @@ public OperationsStub getOperationsStub() {
7474
throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
7575
}
7676

77-
public UnaryCallable<ListDatabasesRequest, ListDatabasesPagedResponse>
78-
listDatabasesPagedCallable() {
79-
throw new UnsupportedOperationException("Not implemented: listDatabasesPagedCallable()");
80-
}
81-
82-
public UnaryCallable<ListDatabasesRequest, ListDatabasesResponse> listDatabasesCallable() {
83-
throw new UnsupportedOperationException("Not implemented: listDatabasesCallable()");
84-
}
85-
8677
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
8778
public OperationCallable<CreateDatabaseRequest, Database, CreateDatabaseMetadata>
8879
createDatabaseOperationCallable() {
@@ -93,10 +84,6 @@ public UnaryCallable<CreateDatabaseRequest, Operation> createDatabaseCallable()
9384
throw new UnsupportedOperationException("Not implemented: createDatabaseCallable()");
9485
}
9586

96-
public UnaryCallable<GetDatabaseRequest, Database> getDatabaseCallable() {
97-
throw new UnsupportedOperationException("Not implemented: getDatabaseCallable()");
98-
}
99-
10087
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
10188
public OperationCallable<UpdateDatabaseDdlRequest, Empty, UpdateDatabaseDdlMetadata>
10289
updateDatabaseDdlOperationCallable() {
@@ -108,6 +95,39 @@ public UnaryCallable<UpdateDatabaseDdlRequest, Operation> updateDatabaseDdlCalla
10895
throw new UnsupportedOperationException("Not implemented: updateDatabaseDdlCallable()");
10996
}
11097

98+
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
99+
public OperationCallable<CreateBackupRequest, Backup, CreateBackupMetadata>
100+
createBackupOperationCallable() {
101+
throw new UnsupportedOperationException("Not implemented: createBackupOperationCallable()");
102+
}
103+
104+
public UnaryCallable<CreateBackupRequest, Operation> createBackupCallable() {
105+
throw new UnsupportedOperationException("Not implemented: createBackupCallable()");
106+
}
107+
108+
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
109+
public OperationCallable<RestoreDatabaseRequest, Database, RestoreDatabaseMetadata>
110+
restoreDatabaseOperationCallable() {
111+
throw new UnsupportedOperationException("Not implemented: restoreDatabaseOperationCallable()");
112+
}
113+
114+
public UnaryCallable<RestoreDatabaseRequest, Operation> restoreDatabaseCallable() {
115+
throw new UnsupportedOperationException("Not implemented: restoreDatabaseCallable()");
116+
}
117+
118+
public UnaryCallable<ListDatabasesRequest, ListDatabasesPagedResponse>
119+
listDatabasesPagedCallable() {
120+
throw new UnsupportedOperationException("Not implemented: listDatabasesPagedCallable()");
121+
}
122+
123+
public UnaryCallable<ListDatabasesRequest, ListDatabasesResponse> listDatabasesCallable() {
124+
throw new UnsupportedOperationException("Not implemented: listDatabasesCallable()");
125+
}
126+
127+
public UnaryCallable<GetDatabaseRequest, Database> getDatabaseCallable() {
128+
throw new UnsupportedOperationException("Not implemented: getDatabaseCallable()");
129+
}
130+
111131
public UnaryCallable<DropDatabaseRequest, Empty> dropDatabaseCallable() {
112132
throw new UnsupportedOperationException("Not implemented: dropDatabaseCallable()");
113133
}
@@ -129,16 +149,6 @@ public UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
129149
throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()");
130150
}
131151

132-
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
133-
public OperationCallable<CreateBackupRequest, Backup, CreateBackupMetadata>
134-
createBackupOperationCallable() {
135-
throw new UnsupportedOperationException("Not implemented: createBackupOperationCallable()");
136-
}
137-
138-
public UnaryCallable<CreateBackupRequest, Operation> createBackupCallable() {
139-
throw new UnsupportedOperationException("Not implemented: createBackupCallable()");
140-
}
141-
142152
public UnaryCallable<GetBackupRequest, Backup> getBackupCallable() {
143153
throw new UnsupportedOperationException("Not implemented: getBackupCallable()");
144154
}
@@ -159,16 +169,6 @@ public UnaryCallable<ListBackupsRequest, ListBackupsResponse> listBackupsCallabl
159169
throw new UnsupportedOperationException("Not implemented: listBackupsCallable()");
160170
}
161171

162-
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
163-
public OperationCallable<RestoreDatabaseRequest, Database, RestoreDatabaseMetadata>
164-
restoreDatabaseOperationCallable() {
165-
throw new UnsupportedOperationException("Not implemented: restoreDatabaseOperationCallable()");
166-
}
167-
168-
public UnaryCallable<RestoreDatabaseRequest, Operation> restoreDatabaseCallable() {
169-
throw new UnsupportedOperationException("Not implemented: restoreDatabaseCallable()");
170-
}
171-
172172
public UnaryCallable<ListDatabaseOperationsRequest, ListDatabaseOperationsPagedResponse>
173173
listDatabaseOperationsPagedCallable() {
174174
throw new UnsupportedOperationException(

0 commit comments

Comments
 (0)