Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit a64b484

Browse files
fix: migrate to grpc_service_config (#207)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/9c18038c-d1ba-45ab-9ded-a79e3b7a4d1b/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 317872957 Source-Link: googleapis/googleapis@d989593
1 parent 43e72d9 commit a64b484

File tree

9 files changed

+1380
-1366
lines changed

9 files changed

+1380
-1366
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
2020
<dependency>
2121
<groupId>com.google.cloud</groupId>
2222
<artifactId>libraries-bom</artifactId>
23-
<version>7.0.0</version>
23+
<version>7.0.1</version>
2424
<type>pom</type>
2525
<scope>import</scope>
2626
</dependency>

google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java

+635-634
Large diffs are not rendered by default.

google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java

+74-74
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@
5959
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
6060
* build() is called, the tree of builders is called to create the complete settings object.
6161
*
62-
* <p>For example, to set the total timeout of deleteDataset to 30 seconds:
62+
* <p>For example, to set the total timeout of createDataset to 30 seconds:
6363
*
6464
* <pre>
6565
* <code>
6666
* DataLabelingServiceSettings.Builder dataLabelingServiceSettingsBuilder =
6767
* DataLabelingServiceSettings.newBuilder();
6868
* dataLabelingServiceSettingsBuilder
69-
* .deleteDatasetSettings()
69+
* .createDatasetSettings()
7070
* .setRetrySettings(
71-
* dataLabelingServiceSettingsBuilder.deleteDatasetSettings().getRetrySettings().toBuilder()
71+
* dataLabelingServiceSettingsBuilder.createDatasetSettings().getRetrySettings().toBuilder()
7272
* .setTotalTimeout(Duration.ofSeconds(30))
7373
* .build());
7474
* DataLabelingServiceSettings dataLabelingServiceSettings = dataLabelingServiceSettingsBuilder.build();
@@ -78,41 +78,6 @@
7878
@Generated("by gapic-generator")
7979
@BetaApi
8080
public class DataLabelingServiceSettings extends ClientSettings<DataLabelingServiceSettings> {
81-
/** Returns the object with the settings used for calls to deleteDataset. */
82-
public UnaryCallSettings<DeleteDatasetRequest, Empty> deleteDatasetSettings() {
83-
return ((DataLabelingServiceStubSettings) getStubSettings()).deleteDatasetSettings();
84-
}
85-
86-
/** Returns the object with the settings used for calls to exportData. */
87-
public UnaryCallSettings<ExportDataRequest, Operation> exportDataSettings() {
88-
return ((DataLabelingServiceStubSettings) getStubSettings()).exportDataSettings();
89-
}
90-
91-
/** Returns the object with the settings used for calls to exportData. */
92-
@BetaApi(
93-
"The surface for long-running operations is not stable yet and may change in the future.")
94-
public OperationCallSettings<
95-
ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
96-
exportDataOperationSettings() {
97-
return ((DataLabelingServiceStubSettings) getStubSettings()).exportDataOperationSettings();
98-
}
99-
100-
/** Returns the object with the settings used for calls to deleteAnnotationSpecSet. */
101-
public UnaryCallSettings<DeleteAnnotationSpecSetRequest, Empty>
102-
deleteAnnotationSpecSetSettings() {
103-
return ((DataLabelingServiceStubSettings) getStubSettings()).deleteAnnotationSpecSetSettings();
104-
}
105-
106-
/** Returns the object with the settings used for calls to deleteInstruction. */
107-
public UnaryCallSettings<DeleteInstructionRequest, Empty> deleteInstructionSettings() {
108-
return ((DataLabelingServiceStubSettings) getStubSettings()).deleteInstructionSettings();
109-
}
110-
111-
/** Returns the object with the settings used for calls to deleteEvaluationJob. */
112-
public UnaryCallSettings<DeleteEvaluationJobRequest, Empty> deleteEvaluationJobSettings() {
113-
return ((DataLabelingServiceStubSettings) getStubSettings()).deleteEvaluationJobSettings();
114-
}
115-
11681
/** Returns the object with the settings used for calls to createDataset. */
11782
public UnaryCallSettings<CreateDatasetRequest, Dataset> createDatasetSettings() {
11883
return ((DataLabelingServiceStubSettings) getStubSettings()).createDatasetSettings();
@@ -129,6 +94,11 @@ public UnaryCallSettings<GetDatasetRequest, Dataset> getDatasetSettings() {
12994
return ((DataLabelingServiceStubSettings) getStubSettings()).listDatasetsSettings();
13095
}
13196

97+
/** Returns the object with the settings used for calls to deleteDataset. */
98+
public UnaryCallSettings<DeleteDatasetRequest, Empty> deleteDatasetSettings() {
99+
return ((DataLabelingServiceStubSettings) getStubSettings()).deleteDatasetSettings();
100+
}
101+
132102
/** Returns the object with the settings used for calls to importData. */
133103
public UnaryCallSettings<ImportDataRequest, Operation> importDataSettings() {
134104
return ((DataLabelingServiceStubSettings) getStubSettings()).importDataSettings();
@@ -143,6 +113,20 @@ public UnaryCallSettings<ImportDataRequest, Operation> importDataSettings() {
143113
return ((DataLabelingServiceStubSettings) getStubSettings()).importDataOperationSettings();
144114
}
145115

116+
/** Returns the object with the settings used for calls to exportData. */
117+
public UnaryCallSettings<ExportDataRequest, Operation> exportDataSettings() {
118+
return ((DataLabelingServiceStubSettings) getStubSettings()).exportDataSettings();
119+
}
120+
121+
/** Returns the object with the settings used for calls to exportData. */
122+
@BetaApi(
123+
"The surface for long-running operations is not stable yet and may change in the future.")
124+
public OperationCallSettings<
125+
ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
126+
exportDataOperationSettings() {
127+
return ((DataLabelingServiceStubSettings) getStubSettings()).exportDataOperationSettings();
128+
}
129+
146130
/** Returns the object with the settings used for calls to getDataItem. */
147131
public UnaryCallSettings<GetDataItemRequest, DataItem> getDataItemSettings() {
148132
return ((DataLabelingServiceStubSettings) getStubSettings()).getDataItemSettings();
@@ -245,6 +229,12 @@ public UnaryCallSettings<GetExampleRequest, Example> getExampleSettings() {
245229
return ((DataLabelingServiceStubSettings) getStubSettings()).listAnnotationSpecSetsSettings();
246230
}
247231

232+
/** Returns the object with the settings used for calls to deleteAnnotationSpecSet. */
233+
public UnaryCallSettings<DeleteAnnotationSpecSetRequest, Empty>
234+
deleteAnnotationSpecSetSettings() {
235+
return ((DataLabelingServiceStubSettings) getStubSettings()).deleteAnnotationSpecSetSettings();
236+
}
237+
248238
/** Returns the object with the settings used for calls to createInstruction. */
249239
public UnaryCallSettings<CreateInstructionRequest, Operation> createInstructionSettings() {
250240
return ((DataLabelingServiceStubSettings) getStubSettings()).createInstructionSettings();
@@ -271,6 +261,11 @@ public UnaryCallSettings<GetInstructionRequest, Instruction> getInstructionSetti
271261
return ((DataLabelingServiceStubSettings) getStubSettings()).listInstructionsSettings();
272262
}
273263

264+
/** Returns the object with the settings used for calls to deleteInstruction. */
265+
public UnaryCallSettings<DeleteInstructionRequest, Empty> deleteInstructionSettings() {
266+
return ((DataLabelingServiceStubSettings) getStubSettings()).deleteInstructionSettings();
267+
}
268+
274269
/** Returns the object with the settings used for calls to getEvaluation. */
275270
public UnaryCallSettings<GetEvaluationRequest, Evaluation> getEvaluationSettings() {
276271
return ((DataLabelingServiceStubSettings) getStubSettings()).getEvaluationSettings();
@@ -319,6 +314,11 @@ public UnaryCallSettings<ResumeEvaluationJobRequest, Empty> resumeEvaluationJobS
319314
return ((DataLabelingServiceStubSettings) getStubSettings()).resumeEvaluationJobSettings();
320315
}
321316

317+
/** Returns the object with the settings used for calls to deleteEvaluationJob. */
318+
public UnaryCallSettings<DeleteEvaluationJobRequest, Empty> deleteEvaluationJobSettings() {
319+
return ((DataLabelingServiceStubSettings) getStubSettings()).deleteEvaluationJobSettings();
320+
}
321+
322322
/** Returns the object with the settings used for calls to listEvaluationJobs. */
323323
public PagedCallSettings<
324324
ListEvaluationJobsRequest, ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse>
@@ -423,42 +423,6 @@ public Builder applyToAllUnaryMethods(
423423
return this;
424424
}
425425

426-
/** Returns the builder for the settings used for calls to deleteDataset. */
427-
public UnaryCallSettings.Builder<DeleteDatasetRequest, Empty> deleteDatasetSettings() {
428-
return getStubSettingsBuilder().deleteDatasetSettings();
429-
}
430-
431-
/** Returns the builder for the settings used for calls to exportData. */
432-
public UnaryCallSettings.Builder<ExportDataRequest, Operation> exportDataSettings() {
433-
return getStubSettingsBuilder().exportDataSettings();
434-
}
435-
436-
/** Returns the builder for the settings used for calls to exportData. */
437-
@BetaApi(
438-
"The surface for long-running operations is not stable yet and may change in the future.")
439-
public OperationCallSettings.Builder<
440-
ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
441-
exportDataOperationSettings() {
442-
return getStubSettingsBuilder().exportDataOperationSettings();
443-
}
444-
445-
/** Returns the builder for the settings used for calls to deleteAnnotationSpecSet. */
446-
public UnaryCallSettings.Builder<DeleteAnnotationSpecSetRequest, Empty>
447-
deleteAnnotationSpecSetSettings() {
448-
return getStubSettingsBuilder().deleteAnnotationSpecSetSettings();
449-
}
450-
451-
/** Returns the builder for the settings used for calls to deleteInstruction. */
452-
public UnaryCallSettings.Builder<DeleteInstructionRequest, Empty> deleteInstructionSettings() {
453-
return getStubSettingsBuilder().deleteInstructionSettings();
454-
}
455-
456-
/** Returns the builder for the settings used for calls to deleteEvaluationJob. */
457-
public UnaryCallSettings.Builder<DeleteEvaluationJobRequest, Empty>
458-
deleteEvaluationJobSettings() {
459-
return getStubSettingsBuilder().deleteEvaluationJobSettings();
460-
}
461-
462426
/** Returns the builder for the settings used for calls to createDataset. */
463427
public UnaryCallSettings.Builder<CreateDatasetRequest, Dataset> createDatasetSettings() {
464428
return getStubSettingsBuilder().createDatasetSettings();
@@ -476,6 +440,11 @@ public UnaryCallSettings.Builder<GetDatasetRequest, Dataset> getDatasetSettings(
476440
return getStubSettingsBuilder().listDatasetsSettings();
477441
}
478442

443+
/** Returns the builder for the settings used for calls to deleteDataset. */
444+
public UnaryCallSettings.Builder<DeleteDatasetRequest, Empty> deleteDatasetSettings() {
445+
return getStubSettingsBuilder().deleteDatasetSettings();
446+
}
447+
479448
/** Returns the builder for the settings used for calls to importData. */
480449
public UnaryCallSettings.Builder<ImportDataRequest, Operation> importDataSettings() {
481450
return getStubSettingsBuilder().importDataSettings();
@@ -490,6 +459,20 @@ public UnaryCallSettings.Builder<ImportDataRequest, Operation> importDataSetting
490459
return getStubSettingsBuilder().importDataOperationSettings();
491460
}
492461

462+
/** Returns the builder for the settings used for calls to exportData. */
463+
public UnaryCallSettings.Builder<ExportDataRequest, Operation> exportDataSettings() {
464+
return getStubSettingsBuilder().exportDataSettings();
465+
}
466+
467+
/** Returns the builder for the settings used for calls to exportData. */
468+
@BetaApi(
469+
"The surface for long-running operations is not stable yet and may change in the future.")
470+
public OperationCallSettings.Builder<
471+
ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
472+
exportDataOperationSettings() {
473+
return getStubSettingsBuilder().exportDataOperationSettings();
474+
}
475+
493476
/** Returns the builder for the settings used for calls to getDataItem. */
494477
public UnaryCallSettings.Builder<GetDataItemRequest, DataItem> getDataItemSettings() {
495478
return getStubSettingsBuilder().getDataItemSettings();
@@ -597,6 +580,12 @@ public UnaryCallSettings.Builder<GetExampleRequest, Example> getExampleSettings(
597580
return getStubSettingsBuilder().listAnnotationSpecSetsSettings();
598581
}
599582

583+
/** Returns the builder for the settings used for calls to deleteAnnotationSpecSet. */
584+
public UnaryCallSettings.Builder<DeleteAnnotationSpecSetRequest, Empty>
585+
deleteAnnotationSpecSetSettings() {
586+
return getStubSettingsBuilder().deleteAnnotationSpecSetSettings();
587+
}
588+
600589
/** Returns the builder for the settings used for calls to createInstruction. */
601590
public UnaryCallSettings.Builder<CreateInstructionRequest, Operation>
602591
createInstructionSettings() {
@@ -624,6 +613,11 @@ public UnaryCallSettings.Builder<GetInstructionRequest, Instruction> getInstruct
624613
return getStubSettingsBuilder().listInstructionsSettings();
625614
}
626615

616+
/** Returns the builder for the settings used for calls to deleteInstruction. */
617+
public UnaryCallSettings.Builder<DeleteInstructionRequest, Empty> deleteInstructionSettings() {
618+
return getStubSettingsBuilder().deleteInstructionSettings();
619+
}
620+
627621
/** Returns the builder for the settings used for calls to getEvaluation. */
628622
public UnaryCallSettings.Builder<GetEvaluationRequest, Evaluation> getEvaluationSettings() {
629623
return getStubSettingsBuilder().getEvaluationSettings();
@@ -675,6 +669,12 @@ public UnaryCallSettings.Builder<GetEvaluationRequest, Evaluation> getEvaluation
675669
return getStubSettingsBuilder().resumeEvaluationJobSettings();
676670
}
677671

672+
/** Returns the builder for the settings used for calls to deleteEvaluationJob. */
673+
public UnaryCallSettings.Builder<DeleteEvaluationJobRequest, Empty>
674+
deleteEvaluationJobSettings() {
675+
return getStubSettingsBuilder().deleteEvaluationJobSettings();
676+
}
677+
678678
/** Returns the builder for the settings used for calls to listEvaluationJobs. */
679679
public PagedCallSettings.Builder<
680680
ListEvaluationJobsRequest, ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse>

google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
* <pre>
2929
* <code>
3030
* try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
31-
* DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
32-
* dataLabelingServiceClient.deleteDataset(name);
31+
* ProjectName parent = ProjectName.of("[PROJECT]");
32+
* Dataset dataset = Dataset.newBuilder().build();
33+
* Dataset response = dataLabelingServiceClient.createDataset(parent, dataset);
3334
* }
3435
* </code>
3536
* </pre>

google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java

+27-27
Original file line numberDiff line numberDiff line change
@@ -106,33 +106,6 @@ public OperationsStub getOperationsStub() {
106106
throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
107107
}
108108

109-
public UnaryCallable<DeleteDatasetRequest, Empty> deleteDatasetCallable() {
110-
throw new UnsupportedOperationException("Not implemented: deleteDatasetCallable()");
111-
}
112-
113-
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
114-
public OperationCallable<
115-
ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
116-
exportDataOperationCallable() {
117-
throw new UnsupportedOperationException("Not implemented: exportDataOperationCallable()");
118-
}
119-
120-
public UnaryCallable<ExportDataRequest, Operation> exportDataCallable() {
121-
throw new UnsupportedOperationException("Not implemented: exportDataCallable()");
122-
}
123-
124-
public UnaryCallable<DeleteAnnotationSpecSetRequest, Empty> deleteAnnotationSpecSetCallable() {
125-
throw new UnsupportedOperationException("Not implemented: deleteAnnotationSpecSetCallable()");
126-
}
127-
128-
public UnaryCallable<DeleteInstructionRequest, Empty> deleteInstructionCallable() {
129-
throw new UnsupportedOperationException("Not implemented: deleteInstructionCallable()");
130-
}
131-
132-
public UnaryCallable<DeleteEvaluationJobRequest, Empty> deleteEvaluationJobCallable() {
133-
throw new UnsupportedOperationException("Not implemented: deleteEvaluationJobCallable()");
134-
}
135-
136109
public UnaryCallable<CreateDatasetRequest, Dataset> createDatasetCallable() {
137110
throw new UnsupportedOperationException("Not implemented: createDatasetCallable()");
138111
}
@@ -149,6 +122,10 @@ public UnaryCallable<ListDatasetsRequest, ListDatasetsResponse> listDatasetsCall
149122
throw new UnsupportedOperationException("Not implemented: listDatasetsCallable()");
150123
}
151124

125+
public UnaryCallable<DeleteDatasetRequest, Empty> deleteDatasetCallable() {
126+
throw new UnsupportedOperationException("Not implemented: deleteDatasetCallable()");
127+
}
128+
152129
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
153130
public OperationCallable<
154131
ImportDataRequest, ImportDataOperationResponse, ImportDataOperationMetadata>
@@ -160,6 +137,17 @@ public UnaryCallable<ImportDataRequest, Operation> importDataCallable() {
160137
throw new UnsupportedOperationException("Not implemented: importDataCallable()");
161138
}
162139

140+
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
141+
public OperationCallable<
142+
ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
143+
exportDataOperationCallable() {
144+
throw new UnsupportedOperationException("Not implemented: exportDataOperationCallable()");
145+
}
146+
147+
public UnaryCallable<ExportDataRequest, Operation> exportDataCallable() {
148+
throw new UnsupportedOperationException("Not implemented: exportDataCallable()");
149+
}
150+
163151
public UnaryCallable<GetDataItemRequest, DataItem> getDataItemCallable() {
164152
throw new UnsupportedOperationException("Not implemented: getDataItemCallable()");
165153
}
@@ -255,6 +243,10 @@ public UnaryCallable<ListExamplesRequest, ListExamplesResponse> listExamplesCall
255243
throw new UnsupportedOperationException("Not implemented: listAnnotationSpecSetsCallable()");
256244
}
257245

246+
public UnaryCallable<DeleteAnnotationSpecSetRequest, Empty> deleteAnnotationSpecSetCallable() {
247+
throw new UnsupportedOperationException("Not implemented: deleteAnnotationSpecSetCallable()");
248+
}
249+
258250
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
259251
public OperationCallable<CreateInstructionRequest, Instruction, CreateInstructionMetadata>
260252
createInstructionOperationCallable() {
@@ -280,6 +272,10 @@ public UnaryCallable<GetInstructionRequest, Instruction> getInstructionCallable(
280272
throw new UnsupportedOperationException("Not implemented: listInstructionsCallable()");
281273
}
282274

275+
public UnaryCallable<DeleteInstructionRequest, Empty> deleteInstructionCallable() {
276+
throw new UnsupportedOperationException("Not implemented: deleteInstructionCallable()");
277+
}
278+
283279
public UnaryCallable<GetEvaluationRequest, Evaluation> getEvaluationCallable() {
284280
throw new UnsupportedOperationException("Not implemented: getEvaluationCallable()");
285281
}
@@ -325,6 +321,10 @@ public UnaryCallable<ResumeEvaluationJobRequest, Empty> resumeEvaluationJobCalla
325321
throw new UnsupportedOperationException("Not implemented: resumeEvaluationJobCallable()");
326322
}
327323

324+
public UnaryCallable<DeleteEvaluationJobRequest, Empty> deleteEvaluationJobCallable() {
325+
throw new UnsupportedOperationException("Not implemented: deleteEvaluationJobCallable()");
326+
}
327+
328328
public UnaryCallable<ListEvaluationJobsRequest, ListEvaluationJobsPagedResponse>
329329
listEvaluationJobsPagedCallable() {
330330
throw new UnsupportedOperationException("Not implemented: listEvaluationJobsPagedCallable()");

0 commit comments

Comments
 (0)