diff --git a/README.md b/README.md
index 8f53db4a..742a6042 100644
--- a/README.md
+++ b/README.md
@@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
*
* try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * dataLabelingServiceClient.deleteDataset(name);
+ * ProjectName parent = ProjectName.of("[PROJECT]");
+ * Dataset dataset = Dataset.newBuilder().build();
+ * Dataset response = dataLabelingServiceClient.createDataset(parent, dataset);
* }
*
*
@@ -173,543 +174,6 @@ public final OperationsClient getOperationsClient() {
return operationsClient;
}
- // AUTO-GENERATED DOCUMENTATION AND METHOD
- /**
- * Deletes a dataset by resource name.
- *
- * Sample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * dataLabelingServiceClient.deleteDataset(name);
- * }
- *
- *
- * @param name Required. Dataset resource name, format:
- * projects/{project_id}/datasets/{dataset_id}
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final void deleteDataset(DatasetName name) {
- DeleteDatasetRequest request =
- DeleteDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build();
- deleteDataset(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD
- /**
- * Deletes a dataset by resource name.
- *
- * Sample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * dataLabelingServiceClient.deleteDataset(name.toString());
- * }
- *
- *
- * @param name Required. Dataset resource name, format:
- * projects/{project_id}/datasets/{dataset_id}
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final void deleteDataset(String name) {
- DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder().setName(name).build();
- deleteDataset(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD
- /**
- * Deletes a dataset by resource name.
- *
- * Sample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * dataLabelingServiceClient.deleteDataset(request);
- * }
- *
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final void deleteDataset(DeleteDatasetRequest request) {
- deleteDatasetCallable().call(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD
- /**
- * Deletes a dataset by resource name.
- *
- * Sample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * ApiFuture<Void> future = dataLabelingServiceClient.deleteDatasetCallable().futureCall(request);
- * // Do something
- * future.get();
- * }
- *
- */
- public final UnaryCallableSample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
- * String filter = "";
- * OutputConfig outputConfig = OutputConfig.newBuilder().build();
- * ExportDataOperationResponse response = dataLabelingServiceClient.exportDataAsync(name, annotatedDataset, filter, outputConfig).get();
- * }
- *
- *
- * @param name Required. Dataset resource name, format:
- * projects/{project_id}/datasets/{dataset_id}
- * @param annotatedDataset Required. Annotated dataset resource name. DataItem in Dataset and
- * their annotations in specified annotated dataset will be exported. It's in format of
- * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}
- * @param filter Optional. Filter is not supported at this moment.
- * @param outputConfig Required. Specify the output destination.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
- public final OperationFutureSample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
- * String filter = "";
- * OutputConfig outputConfig = OutputConfig.newBuilder().build();
- * ExportDataOperationResponse response = dataLabelingServiceClient.exportDataAsync(name.toString(), annotatedDataset.toString(), filter, outputConfig).get();
- * }
- *
- *
- * @param name Required. Dataset resource name, format:
- * projects/{project_id}/datasets/{dataset_id}
- * @param annotatedDataset Required. Annotated dataset resource name. DataItem in Dataset and
- * their annotations in specified annotated dataset will be exported. It's in format of
- * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}
- * @param filter Optional. Filter is not supported at this moment.
- * @param outputConfig Required. Specify the output destination.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
- public final OperationFutureSample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
- * OutputConfig outputConfig = OutputConfig.newBuilder().build();
- * ExportDataRequest request = ExportDataRequest.newBuilder()
- * .setName(name.toString())
- * .setAnnotatedDataset(annotatedDataset.toString())
- * .setOutputConfig(outputConfig)
- * .build();
- * ExportDataOperationResponse response = dataLabelingServiceClient.exportDataAsync(request).get();
- * }
- *
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
- public final OperationFutureSample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
- * OutputConfig outputConfig = OutputConfig.newBuilder().build();
- * ExportDataRequest request = ExportDataRequest.newBuilder()
- * .setName(name.toString())
- * .setAnnotatedDataset(annotatedDataset.toString())
- * .setOutputConfig(outputConfig)
- * .build();
- * OperationFuture<ExportDataOperationResponse, ExportDataOperationMetadata> future = dataLabelingServiceClient.exportDataOperationCallable().futureCall(request);
- * // Do something
- * ExportDataOperationResponse response = future.get();
- * }
- *
- */
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
- public final OperationCallable<
- ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
- exportDataOperationCallable() {
- return stub.exportDataOperationCallable();
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD
- /**
- * Exports data and annotations from dataset.
- *
- * Sample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
- * OutputConfig outputConfig = OutputConfig.newBuilder().build();
- * ExportDataRequest request = ExportDataRequest.newBuilder()
- * .setName(name.toString())
- * .setAnnotatedDataset(annotatedDataset.toString())
- * .setOutputConfig(outputConfig)
- * .build();
- * ApiFuture<Operation> future = dataLabelingServiceClient.exportDataCallable().futureCall(request);
- * // Do something
- * Operation response = future.get();
- * }
- *
- */
- public final UnaryCallableSample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
- * dataLabelingServiceClient.deleteAnnotationSpecSet(name);
- * }
- *
- *
- * @param name Required. AnnotationSpec resource name, format:
- * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final void deleteAnnotationSpecSet(AnnotationSpecSetName name) {
- DeleteAnnotationSpecSetRequest request =
- DeleteAnnotationSpecSetRequest.newBuilder()
- .setName(name == null ? null : name.toString())
- .build();
- deleteAnnotationSpecSet(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD
- /**
- * Deletes an annotation spec set by resource name.
- *
- * Sample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
- * dataLabelingServiceClient.deleteAnnotationSpecSet(name.toString());
- * }
- *
- *
- * @param name Required. AnnotationSpec resource name, format:
- * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final void deleteAnnotationSpecSet(String name) {
- DeleteAnnotationSpecSetRequest request =
- DeleteAnnotationSpecSetRequest.newBuilder().setName(name).build();
- deleteAnnotationSpecSet(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD
- /**
- * Deletes an annotation spec set by resource name.
- *
- * Sample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
- * DeleteAnnotationSpecSetRequest request = DeleteAnnotationSpecSetRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * dataLabelingServiceClient.deleteAnnotationSpecSet(request);
- * }
- *
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final void deleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest request) {
- deleteAnnotationSpecSetCallable().call(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD
- /**
- * Deletes an annotation spec set by resource name.
- *
- * Sample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
- * DeleteAnnotationSpecSetRequest request = DeleteAnnotationSpecSetRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * ApiFuture<Void> future = dataLabelingServiceClient.deleteAnnotationSpecSetCallable().futureCall(request);
- * // Do something
- * future.get();
- * }
- *
- */
- public final UnaryCallableSample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
- * dataLabelingServiceClient.deleteInstruction(name);
- * }
- *
- *
- * @param name Required. Instruction resource name, format:
- * projects/{project_id}/instructions/{instruction_id}
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final void deleteInstruction(InstructionName name) {
- DeleteInstructionRequest request =
- DeleteInstructionRequest.newBuilder()
- .setName(name == null ? null : name.toString())
- .build();
- deleteInstruction(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD
- /**
- * Deletes an instruction object by resource name.
- *
- * Sample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
- * dataLabelingServiceClient.deleteInstruction(name.toString());
- * }
- *
- *
- * @param name Required. Instruction resource name, format:
- * projects/{project_id}/instructions/{instruction_id}
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final void deleteInstruction(String name) {
- DeleteInstructionRequest request = DeleteInstructionRequest.newBuilder().setName(name).build();
- deleteInstruction(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD
- /**
- * Deletes an instruction object by resource name.
- *
- * Sample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
- * DeleteInstructionRequest request = DeleteInstructionRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * dataLabelingServiceClient.deleteInstruction(request);
- * }
- *
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final void deleteInstruction(DeleteInstructionRequest request) {
- deleteInstructionCallable().call(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD
- /**
- * Deletes an instruction object by resource name.
- *
- * Sample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
- * DeleteInstructionRequest request = DeleteInstructionRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * ApiFuture<Void> future = dataLabelingServiceClient.deleteInstructionCallable().futureCall(request);
- * // Do something
- * future.get();
- * }
- *
- */
- public final UnaryCallableSample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
- * dataLabelingServiceClient.deleteEvaluationJob(name);
- * }
- *
- *
- * @param name Required. Name of the evaluation job that is going to be deleted. Format:
- * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteEvaluationJob(EvaluationJobName name) { - DeleteEvaluationJobRequest request = - DeleteEvaluationJobRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteEvaluationJob(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Stops and deletes an evaluation job. - * - *
Sample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
- * dataLabelingServiceClient.deleteEvaluationJob(name.toString());
- * }
- *
- *
- * @param name Required. Name of the evaluation job that is going to be deleted. Format:
- * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>" - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteEvaluationJob(String name) { - DeleteEvaluationJobRequest request = - DeleteEvaluationJobRequest.newBuilder().setName(name).build(); - deleteEvaluationJob(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD - /** - * Stops and deletes an evaluation job. - * - *
Sample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
- * DeleteEvaluationJobRequest request = DeleteEvaluationJobRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * dataLabelingServiceClient.deleteEvaluationJob(request);
- * }
- *
- *
- * @param request The request object containing all of the parameters for the API call.
- * @throws com.google.api.gax.rpc.ApiException if the remote call fails
- */
- public final void deleteEvaluationJob(DeleteEvaluationJobRequest request) {
- deleteEvaluationJobCallable().call(request);
- }
-
- // AUTO-GENERATED DOCUMENTATION AND METHOD
- /**
- * Stops and deletes an evaluation job.
- *
- * Sample code: - * - *
- * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
- * DeleteEvaluationJobRequest request = DeleteEvaluationJobRequest.newBuilder()
- * .setName(name.toString())
- * .build();
- * ApiFuture<Void> future = dataLabelingServiceClient.deleteEvaluationJobCallable().futureCall(request);
- * // Do something
- * future.get();
- * }
- *
- */
- public final UnaryCallableSample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+ * dataLabelingServiceClient.deleteDataset(name);
+ * }
+ *
+ *
+ * @param name Required. Dataset resource name, format:
+ * projects/{project_id}/datasets/{dataset_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteDataset(DatasetName name) {
+ DeleteDatasetRequest request =
+ DeleteDatasetRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ deleteDataset(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes a dataset by resource name.
+ *
+ * Sample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+ * dataLabelingServiceClient.deleteDataset(name.toString());
+ * }
+ *
+ *
+ * @param name Required. Dataset resource name, format:
+ * projects/{project_id}/datasets/{dataset_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteDataset(String name) {
+ DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder().setName(name).build();
+ deleteDataset(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes a dataset by resource name.
+ *
+ * Sample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+ * DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * dataLabelingServiceClient.deleteDataset(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteDataset(DeleteDatasetRequest request) {
+ deleteDatasetCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes a dataset by resource name.
+ *
+ * Sample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+ * DeleteDatasetRequest request = DeleteDatasetRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * ApiFuture<Void> future = dataLabelingServiceClient.deleteDatasetCallable().futureCall(request);
+ * // Do something
+ * future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+ * InputConfig inputConfig = InputConfig.newBuilder().build();
+ * ImportDataOperationResponse response = dataLabelingServiceClient.importDataAsync(name, inputConfig).get();
+ * }
+ *
+ *
+ * @param name Required. Dataset resource name, format:
+ * projects/{project_id}/datasets/{dataset_id}
+ * @param inputConfig Required. Specify the input source of the data.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public final OperationFutureSample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+ * InputConfig inputConfig = InputConfig.newBuilder().build();
+ * ImportDataOperationResponse response = dataLabelingServiceClient.importDataAsync(name.toString(), inputConfig).get();
+ * }
+ *
+ *
+ * @param name Required. Dataset resource name, format:
+ * projects/{project_id}/datasets/{dataset_id}
+ * @param inputConfig Required. Specify the input source of the data.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public final OperationFutureSample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+ * InputConfig inputConfig = InputConfig.newBuilder().build();
+ * ImportDataRequest request = ImportDataRequest.newBuilder()
+ * .setName(name.toString())
+ * .setInputConfig(inputConfig)
+ * .build();
+ * ImportDataOperationResponse response = dataLabelingServiceClient.importDataAsync(request).get();
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public final OperationFutureSample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+ * InputConfig inputConfig = InputConfig.newBuilder().build();
+ * ImportDataRequest request = ImportDataRequest.newBuilder()
+ * .setName(name.toString())
+ * .setInputConfig(inputConfig)
+ * .build();
+ * OperationFuture<ImportDataOperationResponse, ImportDataOperationMetadata> future = dataLabelingServiceClient.importDataOperationCallable().futureCall(request);
+ * // Do something
+ * ImportDataOperationResponse response = future.get();
+ * }
+ *
+ */
+ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+ public final OperationCallable<
+ ImportDataRequest, ImportDataOperationResponse, ImportDataOperationMetadata>
+ importDataOperationCallable() {
+ return stub.importDataOperationCallable();
+ }
+
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
* Imports data into dataset based on source locations defined in request. It can be called
@@ -1049,76 +729,120 @@ public final UnaryCallableSample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
+ * AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+ * String filter = "";
+ * OutputConfig outputConfig = OutputConfig.newBuilder().build();
+ * ExportDataOperationResponse response = dataLabelingServiceClient.exportDataAsync(name, annotatedDataset, filter, outputConfig).get();
* }
*
*
* @param name Required. Dataset resource name, format:
* projects/{project_id}/datasets/{dataset_id}
- * @param inputConfig Required. Specify the input source of the data.
+ * @param annotatedDataset Required. Annotated dataset resource name. DataItem in Dataset and
+ * their annotations in specified annotated dataset will be exported. It's in format of
+ * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}
+ * @param filter Optional. Filter is not supported at this moment.
+ * @param outputConfig Required. Specify the output destination.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
- public final OperationFutureSample code: * *
* try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
* DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * InputConfig inputConfig = InputConfig.newBuilder().build();
- * ImportDataOperationResponse response = dataLabelingServiceClient.importDataAsync(name.toString(), inputConfig).get();
+ * AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+ * String filter = "";
+ * OutputConfig outputConfig = OutputConfig.newBuilder().build();
+ * ExportDataOperationResponse response = dataLabelingServiceClient.exportDataAsync(name.toString(), annotatedDataset.toString(), filter, outputConfig).get();
* }
*
*
* @param name Required. Dataset resource name, format:
* projects/{project_id}/datasets/{dataset_id}
- * @param inputConfig Required. Specify the input source of the data.
+ * @param annotatedDataset Required. Annotated dataset resource name. DataItem in Dataset and
+ * their annotations in specified annotated dataset will be exported. It's in format of
+ * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/ {annotated_dataset_id}
+ * @param filter Optional. Filter is not supported at this moment.
+ * @param outputConfig Required. Specify the output destination.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@BetaApi(
"The surface for long-running operations is not stable yet and may change in the future.")
- public final OperationFutureSample code: * *
* try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
* DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * InputConfig inputConfig = InputConfig.newBuilder().build();
- * ImportDataRequest request = ImportDataRequest.newBuilder()
+ * AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+ * OutputConfig outputConfig = OutputConfig.newBuilder().build();
+ * ExportDataRequest request = ExportDataRequest.newBuilder()
* .setName(name.toString())
- * .setInputConfig(inputConfig)
+ * .setAnnotatedDataset(annotatedDataset.toString())
+ * .setOutputConfig(outputConfig)
* .build();
- * ImportDataOperationResponse response = dataLabelingServiceClient.importDataAsync(request).get();
+ * ExportDataOperationResponse response = dataLabelingServiceClient.exportDataAsync(request).get();
* }
*
*
@@ -1127,66 +851,64 @@ public final UnaryCallableSample code: * *
* try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
* DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * InputConfig inputConfig = InputConfig.newBuilder().build();
- * ImportDataRequest request = ImportDataRequest.newBuilder()
+ * AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+ * OutputConfig outputConfig = OutputConfig.newBuilder().build();
+ * ExportDataRequest request = ExportDataRequest.newBuilder()
* .setName(name.toString())
- * .setInputConfig(inputConfig)
+ * .setAnnotatedDataset(annotatedDataset.toString())
+ * .setOutputConfig(outputConfig)
* .build();
- * OperationFuture<ImportDataOperationResponse, ImportDataOperationMetadata> future = dataLabelingServiceClient.importDataOperationCallable().futureCall(request);
+ * OperationFuture<ExportDataOperationResponse, ExportDataOperationMetadata> future = dataLabelingServiceClient.exportDataOperationCallable().futureCall(request);
* // Do something
- * ImportDataOperationResponse response = future.get();
+ * ExportDataOperationResponse response = future.get();
* }
*
*/
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public final OperationCallable<
- ImportDataRequest, ImportDataOperationResponse, ImportDataOperationMetadata>
- importDataOperationCallable() {
- return stub.importDataOperationCallable();
+ ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
+ exportDataOperationCallable() {
+ return stub.exportDataOperationCallable();
}
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
- * Imports data into dataset based on source locations defined in request. It can be called
- * multiple times for the same dataset. Each dataset can only have one long running operation
- * running on it. For example, no labeling task (also long running operation) can be started while
- * importing is still ongoing. Vice versa.
+ * Exports data and annotations from dataset.
*
* Sample code: * *
* try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
* DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * InputConfig inputConfig = InputConfig.newBuilder().build();
- * ImportDataRequest request = ImportDataRequest.newBuilder()
+ * AnnotatedDatasetName annotatedDataset = AnnotatedDatasetName.of("[PROJECT]", "[DATASET]", "[ANNOTATED_DATASET]");
+ * OutputConfig outputConfig = OutputConfig.newBuilder().build();
+ * ExportDataRequest request = ExportDataRequest.newBuilder()
* .setName(name.toString())
- * .setInputConfig(inputConfig)
+ * .setAnnotatedDataset(annotatedDataset.toString())
+ * .setOutputConfig(outputConfig)
* .build();
- * ApiFuture<Operation> future = dataLabelingServiceClient.importDataCallable().futureCall(request);
+ * ApiFuture<Operation> future = dataLabelingServiceClient.exportDataCallable().futureCall(request);
* // Do something
* Operation response = future.get();
* }
*
*/
- public final UnaryCallable
* try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * ProjectName parent = ProjectName.of("[PROJECT]");
- * ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder()
- * .setParent(parent.toString())
- * .build();
- * for (AnnotationSpecSet element : dataLabelingServiceClient.listAnnotationSpecSets(request).iterateAll()) {
- * // doThingsWith(element);
- * }
+ * ProjectName parent = ProjectName.of("[PROJECT]");
+ * ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder()
+ * .setParent(parent.toString())
+ * .build();
+ * for (AnnotationSpecSet element : dataLabelingServiceClient.listAnnotationSpecSets(request).iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets(
+ ListAnnotationSpecSetsRequest request) {
+ return listAnnotationSpecSetsPagedCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists annotation spec sets for a project. Pagination is supported.
+ *
+ * Sample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * ProjectName parent = ProjectName.of("[PROJECT]");
+ * ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder()
+ * .setParent(parent.toString())
+ * .build();
+ * ApiFuture<ListAnnotationSpecSetsPagedResponse> future = dataLabelingServiceClient.listAnnotationSpecSetsPagedCallable().futureCall(request);
+ * // Do something
+ * for (AnnotationSpecSet element : future.get().iterateAll()) {
+ * // doThingsWith(element);
+ * }
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * ProjectName parent = ProjectName.of("[PROJECT]");
+ * ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder()
+ * .setParent(parent.toString())
+ * .build();
+ * while (true) {
+ * ListAnnotationSpecSetsResponse response = dataLabelingServiceClient.listAnnotationSpecSetsCallable().call(request);
+ * for (AnnotationSpecSet element : response.getAnnotationSpecSetsList()) {
+ * // doThingsWith(element);
+ * }
+ * String nextPageToken = response.getNextPageToken();
+ * if (!Strings.isNullOrEmpty(nextPageToken)) {
+ * request = request.toBuilder().setPageToken(nextPageToken).build();
+ * } else {
+ * break;
+ * }
+ * }
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
+ * dataLabelingServiceClient.deleteAnnotationSpecSet(name);
+ * }
+ *
+ *
+ * @param name Required. AnnotationSpec resource name, format:
+ * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteAnnotationSpecSet(AnnotationSpecSetName name) {
+ DeleteAnnotationSpecSetRequest request =
+ DeleteAnnotationSpecSetRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteAnnotationSpecSet(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes an annotation spec set by resource name.
+ *
+ * Sample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
+ * dataLabelingServiceClient.deleteAnnotationSpecSet(name.toString());
* }
*
*
- * @param request The request object containing all of the parameters for the API call.
+ * @param name Required. AnnotationSpec resource name, format:
+ * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets(
- ListAnnotationSpecSetsRequest request) {
- return listAnnotationSpecSetsPagedCallable().call(request);
+ public final void deleteAnnotationSpecSet(String name) {
+ DeleteAnnotationSpecSetRequest request =
+ DeleteAnnotationSpecSetRequest.newBuilder().setName(name).build();
+ deleteAnnotationSpecSet(request);
}
// AUTO-GENERATED DOCUMENTATION AND METHOD
/**
- * Lists annotation spec sets for a project. Pagination is supported.
+ * Deletes an annotation spec set by resource name.
*
* Sample code: * *
* try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * ProjectName parent = ProjectName.of("[PROJECT]");
- * ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder()
- * .setParent(parent.toString())
+ * AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
+ * DeleteAnnotationSpecSetRequest request = DeleteAnnotationSpecSetRequest.newBuilder()
+ * .setName(name.toString())
* .build();
- * ApiFuture<ListAnnotationSpecSetsPagedResponse> future = dataLabelingServiceClient.listAnnotationSpecSetsPagedCallable().futureCall(request);
- * // Do something
- * for (AnnotationSpecSet element : future.get().iterateAll()) {
- * // doThingsWith(element);
- * }
+ * dataLabelingServiceClient.deleteAnnotationSpecSet(request);
* }
*
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
- public final UnaryCallableSample code: * *
* try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * ProjectName parent = ProjectName.of("[PROJECT]");
- * ListAnnotationSpecSetsRequest request = ListAnnotationSpecSetsRequest.newBuilder()
- * .setParent(parent.toString())
+ * AnnotationSpecSetName name = AnnotationSpecSetName.of("[PROJECT]", "[ANNOTATION_SPEC_SET]");
+ * DeleteAnnotationSpecSetRequest request = DeleteAnnotationSpecSetRequest.newBuilder()
+ * .setName(name.toString())
* .build();
- * while (true) {
- * ListAnnotationSpecSetsResponse response = dataLabelingServiceClient.listAnnotationSpecSetsCallable().call(request);
- * for (AnnotationSpecSet element : response.getAnnotationSpecSetsList()) {
- * // doThingsWith(element);
- * }
- * String nextPageToken = response.getNextPageToken();
- * if (!Strings.isNullOrEmpty(nextPageToken)) {
- * request = request.toBuilder().setPageToken(nextPageToken).build();
- * } else {
- * break;
- * }
- * }
+ * ApiFuture<Void> future = dataLabelingServiceClient.deleteAnnotationSpecSetCallable().futureCall(request);
+ * // Do something
+ * future.get();
* }
*
*/
- public final UnaryCallableSample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
+ * dataLabelingServiceClient.deleteInstruction(name);
+ * }
+ *
+ *
+ * @param name Required. Instruction resource name, format:
+ * projects/{project_id}/instructions/{instruction_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteInstruction(InstructionName name) {
+ DeleteInstructionRequest request =
+ DeleteInstructionRequest.newBuilder()
+ .setName(name == null ? null : name.toString())
+ .build();
+ deleteInstruction(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes an instruction object by resource name.
+ *
+ * Sample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
+ * dataLabelingServiceClient.deleteInstruction(name.toString());
+ * }
+ *
+ *
+ * @param name Required. Instruction resource name, format:
+ * projects/{project_id}/instructions/{instruction_id}
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteInstruction(String name) {
+ DeleteInstructionRequest request = DeleteInstructionRequest.newBuilder().setName(name).build();
+ deleteInstruction(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes an instruction object by resource name.
+ *
+ * Sample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
+ * DeleteInstructionRequest request = DeleteInstructionRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * dataLabelingServiceClient.deleteInstruction(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteInstruction(DeleteInstructionRequest request) {
+ deleteInstructionCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes an instruction object by resource name.
+ *
+ * Sample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * InstructionName name = InstructionName.of("[PROJECT]", "[INSTRUCTION]");
+ * DeleteInstructionRequest request = DeleteInstructionRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * ApiFuture<Void> future = dataLabelingServiceClient.deleteInstructionCallable().futureCall(request);
+ * // Do something
+ * future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
+ * dataLabelingServiceClient.deleteEvaluationJob(name);
+ * }
+ *
+ *
+ * @param name Required. Name of the evaluation job that is going to be deleted. Format:
+ * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteEvaluationJob(EvaluationJobName name) { + DeleteEvaluationJobRequest request = + DeleteEvaluationJobRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteEvaluationJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Stops and deletes an evaluation job. + * + *
Sample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
+ * dataLabelingServiceClient.deleteEvaluationJob(name.toString());
+ * }
+ *
+ *
+ * @param name Required. Name of the evaluation job that is going to be deleted. Format:
+ * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteEvaluationJob(String name) { + DeleteEvaluationJobRequest request = + DeleteEvaluationJobRequest.newBuilder().setName(name).build(); + deleteEvaluationJob(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Stops and deletes an evaluation job. + * + *
Sample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
+ * DeleteEvaluationJobRequest request = DeleteEvaluationJobRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * dataLabelingServiceClient.deleteEvaluationJob(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteEvaluationJob(DeleteEvaluationJobRequest request) {
+ deleteEvaluationJobCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Stops and deletes an evaluation job.
+ *
+ * Sample code: + * + *
+ * try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
+ * EvaluationJobName name = EvaluationJobName.of("[PROJECT]", "[EVALUATION_JOB]");
+ * DeleteEvaluationJobRequest request = DeleteEvaluationJobRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * ApiFuture<Void> future = dataLabelingServiceClient.deleteEvaluationJobCallable().futureCall(request);
+ * // Do something
+ * future.get();
+ * }
+ *
+ */
+ public final UnaryCallableThe builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *
For example, to set the total timeout of deleteDataset to 30 seconds: + *
For example, to set the total timeout of createDataset to 30 seconds: * *
*
* DataLabelingServiceSettings.Builder dataLabelingServiceSettingsBuilder =
* DataLabelingServiceSettings.newBuilder();
* dataLabelingServiceSettingsBuilder
- * .deleteDatasetSettings()
+ * .createDatasetSettings()
* .setRetrySettings(
- * dataLabelingServiceSettingsBuilder.deleteDatasetSettings().getRetrySettings().toBuilder()
+ * dataLabelingServiceSettingsBuilder.createDatasetSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* DataLabelingServiceSettings dataLabelingServiceSettings = dataLabelingServiceSettingsBuilder.build();
@@ -78,41 +78,6 @@
@Generated("by gapic-generator")
@BetaApi
public class DataLabelingServiceSettings extends ClientSettings {
- /** Returns the object with the settings used for calls to deleteDataset. */
- public UnaryCallSettings deleteDatasetSettings() {
- return ((DataLabelingServiceStubSettings) getStubSettings()).deleteDatasetSettings();
- }
-
- /** Returns the object with the settings used for calls to exportData. */
- public UnaryCallSettings exportDataSettings() {
- return ((DataLabelingServiceStubSettings) getStubSettings()).exportDataSettings();
- }
-
- /** Returns the object with the settings used for calls to exportData. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
- public OperationCallSettings<
- ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
- exportDataOperationSettings() {
- return ((DataLabelingServiceStubSettings) getStubSettings()).exportDataOperationSettings();
- }
-
- /** Returns the object with the settings used for calls to deleteAnnotationSpecSet. */
- public UnaryCallSettings
- deleteAnnotationSpecSetSettings() {
- return ((DataLabelingServiceStubSettings) getStubSettings()).deleteAnnotationSpecSetSettings();
- }
-
- /** Returns the object with the settings used for calls to deleteInstruction. */
- public UnaryCallSettings deleteInstructionSettings() {
- return ((DataLabelingServiceStubSettings) getStubSettings()).deleteInstructionSettings();
- }
-
- /** Returns the object with the settings used for calls to deleteEvaluationJob. */
- public UnaryCallSettings deleteEvaluationJobSettings() {
- return ((DataLabelingServiceStubSettings) getStubSettings()).deleteEvaluationJobSettings();
- }
-
/** Returns the object with the settings used for calls to createDataset. */
public UnaryCallSettings createDatasetSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).createDatasetSettings();
@@ -129,6 +94,11 @@ public UnaryCallSettings getDatasetSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).listDatasetsSettings();
}
+ /** Returns the object with the settings used for calls to deleteDataset. */
+ public UnaryCallSettings deleteDatasetSettings() {
+ return ((DataLabelingServiceStubSettings) getStubSettings()).deleteDatasetSettings();
+ }
+
/** Returns the object with the settings used for calls to importData. */
public UnaryCallSettings importDataSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).importDataSettings();
@@ -143,6 +113,20 @@ public UnaryCallSettings importDataSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).importDataOperationSettings();
}
+ /** Returns the object with the settings used for calls to exportData. */
+ public UnaryCallSettings exportDataSettings() {
+ return ((DataLabelingServiceStubSettings) getStubSettings()).exportDataSettings();
+ }
+
+ /** Returns the object with the settings used for calls to exportData. */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public OperationCallSettings<
+ ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
+ exportDataOperationSettings() {
+ return ((DataLabelingServiceStubSettings) getStubSettings()).exportDataOperationSettings();
+ }
+
/** Returns the object with the settings used for calls to getDataItem. */
public UnaryCallSettings getDataItemSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).getDataItemSettings();
@@ -245,6 +229,12 @@ public UnaryCallSettings getExampleSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).listAnnotationSpecSetsSettings();
}
+ /** Returns the object with the settings used for calls to deleteAnnotationSpecSet. */
+ public UnaryCallSettings
+ deleteAnnotationSpecSetSettings() {
+ return ((DataLabelingServiceStubSettings) getStubSettings()).deleteAnnotationSpecSetSettings();
+ }
+
/** Returns the object with the settings used for calls to createInstruction. */
public UnaryCallSettings createInstructionSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).createInstructionSettings();
@@ -271,6 +261,11 @@ public UnaryCallSettings getInstructionSetti
return ((DataLabelingServiceStubSettings) getStubSettings()).listInstructionsSettings();
}
+ /** Returns the object with the settings used for calls to deleteInstruction. */
+ public UnaryCallSettings deleteInstructionSettings() {
+ return ((DataLabelingServiceStubSettings) getStubSettings()).deleteInstructionSettings();
+ }
+
/** Returns the object with the settings used for calls to getEvaluation. */
public UnaryCallSettings getEvaluationSettings() {
return ((DataLabelingServiceStubSettings) getStubSettings()).getEvaluationSettings();
@@ -319,6 +314,11 @@ public UnaryCallSettings resumeEvaluationJobS
return ((DataLabelingServiceStubSettings) getStubSettings()).resumeEvaluationJobSettings();
}
+ /** Returns the object with the settings used for calls to deleteEvaluationJob. */
+ public UnaryCallSettings deleteEvaluationJobSettings() {
+ return ((DataLabelingServiceStubSettings) getStubSettings()).deleteEvaluationJobSettings();
+ }
+
/** Returns the object with the settings used for calls to listEvaluationJobs. */
public PagedCallSettings<
ListEvaluationJobsRequest, ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse>
@@ -423,42 +423,6 @@ public Builder applyToAllUnaryMethods(
return this;
}
- /** Returns the builder for the settings used for calls to deleteDataset. */
- public UnaryCallSettings.Builder deleteDatasetSettings() {
- return getStubSettingsBuilder().deleteDatasetSettings();
- }
-
- /** Returns the builder for the settings used for calls to exportData. */
- public UnaryCallSettings.Builder exportDataSettings() {
- return getStubSettingsBuilder().exportDataSettings();
- }
-
- /** Returns the builder for the settings used for calls to exportData. */
- @BetaApi(
- "The surface for long-running operations is not stable yet and may change in the future.")
- public OperationCallSettings.Builder<
- ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
- exportDataOperationSettings() {
- return getStubSettingsBuilder().exportDataOperationSettings();
- }
-
- /** Returns the builder for the settings used for calls to deleteAnnotationSpecSet. */
- public UnaryCallSettings.Builder
- deleteAnnotationSpecSetSettings() {
- return getStubSettingsBuilder().deleteAnnotationSpecSetSettings();
- }
-
- /** Returns the builder for the settings used for calls to deleteInstruction. */
- public UnaryCallSettings.Builder deleteInstructionSettings() {
- return getStubSettingsBuilder().deleteInstructionSettings();
- }
-
- /** Returns the builder for the settings used for calls to deleteEvaluationJob. */
- public UnaryCallSettings.Builder
- deleteEvaluationJobSettings() {
- return getStubSettingsBuilder().deleteEvaluationJobSettings();
- }
-
/** Returns the builder for the settings used for calls to createDataset. */
public UnaryCallSettings.Builder createDatasetSettings() {
return getStubSettingsBuilder().createDatasetSettings();
@@ -476,6 +440,11 @@ public UnaryCallSettings.Builder getDatasetSettings(
return getStubSettingsBuilder().listDatasetsSettings();
}
+ /** Returns the builder for the settings used for calls to deleteDataset. */
+ public UnaryCallSettings.Builder deleteDatasetSettings() {
+ return getStubSettingsBuilder().deleteDatasetSettings();
+ }
+
/** Returns the builder for the settings used for calls to importData. */
public UnaryCallSettings.Builder importDataSettings() {
return getStubSettingsBuilder().importDataSettings();
@@ -490,6 +459,20 @@ public UnaryCallSettings.Builder importDataSetting
return getStubSettingsBuilder().importDataOperationSettings();
}
+ /** Returns the builder for the settings used for calls to exportData. */
+ public UnaryCallSettings.Builder exportDataSettings() {
+ return getStubSettingsBuilder().exportDataSettings();
+ }
+
+ /** Returns the builder for the settings used for calls to exportData. */
+ @BetaApi(
+ "The surface for long-running operations is not stable yet and may change in the future.")
+ public OperationCallSettings.Builder<
+ ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
+ exportDataOperationSettings() {
+ return getStubSettingsBuilder().exportDataOperationSettings();
+ }
+
/** Returns the builder for the settings used for calls to getDataItem. */
public UnaryCallSettings.Builder getDataItemSettings() {
return getStubSettingsBuilder().getDataItemSettings();
@@ -597,6 +580,12 @@ public UnaryCallSettings.Builder getExampleSettings(
return getStubSettingsBuilder().listAnnotationSpecSetsSettings();
}
+ /** Returns the builder for the settings used for calls to deleteAnnotationSpecSet. */
+ public UnaryCallSettings.Builder
+ deleteAnnotationSpecSetSettings() {
+ return getStubSettingsBuilder().deleteAnnotationSpecSetSettings();
+ }
+
/** Returns the builder for the settings used for calls to createInstruction. */
public UnaryCallSettings.Builder
createInstructionSettings() {
@@ -624,6 +613,11 @@ public UnaryCallSettings.Builder getInstruct
return getStubSettingsBuilder().listInstructionsSettings();
}
+ /** Returns the builder for the settings used for calls to deleteInstruction. */
+ public UnaryCallSettings.Builder deleteInstructionSettings() {
+ return getStubSettingsBuilder().deleteInstructionSettings();
+ }
+
/** Returns the builder for the settings used for calls to getEvaluation. */
public UnaryCallSettings.Builder getEvaluationSettings() {
return getStubSettingsBuilder().getEvaluationSettings();
@@ -675,6 +669,12 @@ public UnaryCallSettings.Builder getEvaluation
return getStubSettingsBuilder().resumeEvaluationJobSettings();
}
+ /** Returns the builder for the settings used for calls to deleteEvaluationJob. */
+ public UnaryCallSettings.Builder
+ deleteEvaluationJobSettings() {
+ return getStubSettingsBuilder().deleteEvaluationJobSettings();
+ }
+
/** Returns the builder for the settings used for calls to listEvaluationJobs. */
public PagedCallSettings.Builder<
ListEvaluationJobsRequest, ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse>
diff --git a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java
index c1d07e7c..425d5498 100644
--- a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java
+++ b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java
@@ -28,8 +28,9 @@
*
*
* try (DataLabelingServiceClient dataLabelingServiceClient = DataLabelingServiceClient.create()) {
- * DatasetName name = DatasetName.of("[PROJECT]", "[DATASET]");
- * dataLabelingServiceClient.deleteDataset(name);
+ * ProjectName parent = ProjectName.of("[PROJECT]");
+ * Dataset dataset = Dataset.newBuilder().build();
+ * Dataset response = dataLabelingServiceClient.createDataset(parent, dataset);
* }
*
*
diff --git a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java
index a8c162d4..0f3ef17b 100644
--- a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java
+++ b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java
@@ -106,33 +106,6 @@ public OperationsStub getOperationsStub() {
throw new UnsupportedOperationException("Not implemented: getOperationsStub()");
}
- public UnaryCallable deleteDatasetCallable() {
- throw new UnsupportedOperationException("Not implemented: deleteDatasetCallable()");
- }
-
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
- public OperationCallable<
- ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
- exportDataOperationCallable() {
- throw new UnsupportedOperationException("Not implemented: exportDataOperationCallable()");
- }
-
- public UnaryCallable exportDataCallable() {
- throw new UnsupportedOperationException("Not implemented: exportDataCallable()");
- }
-
- public UnaryCallable deleteAnnotationSpecSetCallable() {
- throw new UnsupportedOperationException("Not implemented: deleteAnnotationSpecSetCallable()");
- }
-
- public UnaryCallable deleteInstructionCallable() {
- throw new UnsupportedOperationException("Not implemented: deleteInstructionCallable()");
- }
-
- public UnaryCallable deleteEvaluationJobCallable() {
- throw new UnsupportedOperationException("Not implemented: deleteEvaluationJobCallable()");
- }
-
public UnaryCallable createDatasetCallable() {
throw new UnsupportedOperationException("Not implemented: createDatasetCallable()");
}
@@ -149,6 +122,10 @@ public UnaryCallable listDatasetsCall
throw new UnsupportedOperationException("Not implemented: listDatasetsCallable()");
}
+ public UnaryCallable deleteDatasetCallable() {
+ throw new UnsupportedOperationException("Not implemented: deleteDatasetCallable()");
+ }
+
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable<
ImportDataRequest, ImportDataOperationResponse, ImportDataOperationMetadata>
@@ -160,6 +137,17 @@ public UnaryCallable importDataCallable() {
throw new UnsupportedOperationException("Not implemented: importDataCallable()");
}
+ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+ public OperationCallable<
+ ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
+ exportDataOperationCallable() {
+ throw new UnsupportedOperationException("Not implemented: exportDataOperationCallable()");
+ }
+
+ public UnaryCallable exportDataCallable() {
+ throw new UnsupportedOperationException("Not implemented: exportDataCallable()");
+ }
+
public UnaryCallable getDataItemCallable() {
throw new UnsupportedOperationException("Not implemented: getDataItemCallable()");
}
@@ -255,6 +243,10 @@ public UnaryCallable listExamplesCall
throw new UnsupportedOperationException("Not implemented: listAnnotationSpecSetsCallable()");
}
+ public UnaryCallable deleteAnnotationSpecSetCallable() {
+ throw new UnsupportedOperationException("Not implemented: deleteAnnotationSpecSetCallable()");
+ }
+
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
public OperationCallable
createInstructionOperationCallable() {
@@ -280,6 +272,10 @@ public UnaryCallable getInstructionCallable(
throw new UnsupportedOperationException("Not implemented: listInstructionsCallable()");
}
+ public UnaryCallable deleteInstructionCallable() {
+ throw new UnsupportedOperationException("Not implemented: deleteInstructionCallable()");
+ }
+
public UnaryCallable getEvaluationCallable() {
throw new UnsupportedOperationException("Not implemented: getEvaluationCallable()");
}
@@ -325,6 +321,10 @@ public UnaryCallable resumeEvaluationJobCalla
throw new UnsupportedOperationException("Not implemented: resumeEvaluationJobCallable()");
}
+ public UnaryCallable deleteEvaluationJobCallable() {
+ throw new UnsupportedOperationException("Not implemented: deleteEvaluationJobCallable()");
+ }
+
public UnaryCallable
listEvaluationJobsPagedCallable() {
throw new UnsupportedOperationException("Not implemented: listEvaluationJobsPagedCallable()");
diff --git a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java
index faf925b8..051fa525 100644
--- a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java
+++ b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java
@@ -134,16 +134,16 @@
* The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
- *
For example, to set the total timeout of deleteDataset to 30 seconds:
+ *
For example, to set the total timeout of createDataset to 30 seconds:
*
*
*
* DataLabelingServiceStubSettings.Builder dataLabelingServiceSettingsBuilder =
* DataLabelingServiceStubSettings.newBuilder();
* dataLabelingServiceSettingsBuilder
- * .deleteDatasetSettings()
+ * .createDatasetSettings()
* .setRetrySettings(
- * dataLabelingServiceSettingsBuilder.deleteDatasetSettings().getRetrySettings().toBuilder()
+ * dataLabelingServiceSettingsBuilder.createDatasetSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* DataLabelingServiceStubSettings dataLabelingServiceSettings = dataLabelingServiceSettingsBuilder.build();
@@ -157,24 +157,20 @@ public class DataLabelingServiceStubSettings extends StubSettings DEFAULT_SERVICE_SCOPES =
ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
- private final UnaryCallSettings deleteDatasetSettings;
- private final UnaryCallSettings exportDataSettings;
- private final OperationCallSettings<
- ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
- exportDataOperationSettings;
- private final UnaryCallSettings
- deleteAnnotationSpecSetSettings;
- private final UnaryCallSettings deleteInstructionSettings;
- private final UnaryCallSettings deleteEvaluationJobSettings;
private final UnaryCallSettings createDatasetSettings;
private final UnaryCallSettings getDatasetSettings;
private final PagedCallSettings<
ListDatasetsRequest, ListDatasetsResponse, ListDatasetsPagedResponse>
listDatasetsSettings;
+ private final UnaryCallSettings deleteDatasetSettings;
private final UnaryCallSettings importDataSettings;
private final OperationCallSettings<
ImportDataRequest, ImportDataOperationResponse, ImportDataOperationMetadata>
importDataOperationSettings;
+ private final UnaryCallSettings exportDataSettings;
+ private final OperationCallSettings<
+ ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
+ exportDataOperationSettings;
private final UnaryCallSettings getDataItemSettings;
private final PagedCallSettings<
ListDataItemsRequest, ListDataItemsResponse, ListDataItemsPagedResponse>
@@ -210,6 +206,8 @@ public class DataLabelingServiceStubSettings extends StubSettings
listAnnotationSpecSetsSettings;
+ private final UnaryCallSettings
+ deleteAnnotationSpecSetSettings;
private final UnaryCallSettings createInstructionSettings;
private final OperationCallSettings<
CreateInstructionRequest, Instruction, CreateInstructionMetadata>
@@ -218,6 +216,7 @@ public class DataLabelingServiceStubSettings extends StubSettings
listInstructionsSettings;
+ private final UnaryCallSettings deleteInstructionSettings;
private final UnaryCallSettings getEvaluationSettings;
private final PagedCallSettings<
SearchEvaluationsRequest, SearchEvaluationsResponse, SearchEvaluationsPagedResponse>
@@ -234,44 +233,11 @@ public class DataLabelingServiceStubSettings extends StubSettings getEvaluationJobSettings;
private final UnaryCallSettings pauseEvaluationJobSettings;
private final UnaryCallSettings resumeEvaluationJobSettings;
+ private final UnaryCallSettings deleteEvaluationJobSettings;
private final PagedCallSettings<
ListEvaluationJobsRequest, ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse>
listEvaluationJobsSettings;
- /** Returns the object with the settings used for calls to deleteDataset. */
- public UnaryCallSettings deleteDatasetSettings() {
- return deleteDatasetSettings;
- }
-
- /** Returns the object with the settings used for calls to exportData. */
- public UnaryCallSettings exportDataSettings() {
- return exportDataSettings;
- }
-
- /** Returns the object with the settings used for calls to exportData. */
- @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
- public OperationCallSettings<
- ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
- exportDataOperationSettings() {
- return exportDataOperationSettings;
- }
-
- /** Returns the object with the settings used for calls to deleteAnnotationSpecSet. */
- public UnaryCallSettings
- deleteAnnotationSpecSetSettings() {
- return deleteAnnotationSpecSetSettings;
- }
-
- /** Returns the object with the settings used for calls to deleteInstruction. */
- public UnaryCallSettings deleteInstructionSettings() {
- return deleteInstructionSettings;
- }
-
- /** Returns the object with the settings used for calls to deleteEvaluationJob. */
- public UnaryCallSettings deleteEvaluationJobSettings() {
- return deleteEvaluationJobSettings;
- }
-
/** Returns the object with the settings used for calls to createDataset. */
public UnaryCallSettings createDatasetSettings() {
return createDatasetSettings;
@@ -288,6 +254,11 @@ public UnaryCallSettings getDatasetSettings() {
return listDatasetsSettings;
}
+ /** Returns the object with the settings used for calls to deleteDataset. */
+ public UnaryCallSettings deleteDatasetSettings() {
+ return deleteDatasetSettings;
+ }
+
/** Returns the object with the settings used for calls to importData. */
public UnaryCallSettings importDataSettings() {
return importDataSettings;
@@ -301,6 +272,19 @@ public UnaryCallSettings importDataSettings() {
return importDataOperationSettings;
}
+ /** Returns the object with the settings used for calls to exportData. */
+ public UnaryCallSettings exportDataSettings() {
+ return exportDataSettings;
+ }
+
+ /** Returns the object with the settings used for calls to exportData. */
+ @BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+ public OperationCallSettings<
+ ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
+ exportDataOperationSettings() {
+ return exportDataOperationSettings;
+ }
+
/** Returns the object with the settings used for calls to getDataItem. */
public UnaryCallSettings getDataItemSettings() {
return getDataItemSettings;
@@ -400,6 +384,12 @@ public UnaryCallSettings getExampleSettings() {
return listAnnotationSpecSetsSettings;
}
+ /** Returns the object with the settings used for calls to deleteAnnotationSpecSet. */
+ public UnaryCallSettings
+ deleteAnnotationSpecSetSettings() {
+ return deleteAnnotationSpecSetSettings;
+ }
+
/** Returns the object with the settings used for calls to createInstruction. */
public UnaryCallSettings createInstructionSettings() {
return createInstructionSettings;
@@ -424,6 +414,11 @@ public UnaryCallSettings getInstructionSetti
return listInstructionsSettings;
}
+ /** Returns the object with the settings used for calls to deleteInstruction. */
+ public UnaryCallSettings deleteInstructionSettings() {
+ return deleteInstructionSettings;
+ }
+
/** Returns the object with the settings used for calls to getEvaluation. */
public UnaryCallSettings getEvaluationSettings() {
return getEvaluationSettings;
@@ -472,6 +467,11 @@ public UnaryCallSettings resumeEvaluationJobS
return resumeEvaluationJobSettings;
}
+ /** Returns the object with the settings used for calls to deleteEvaluationJob. */
+ public UnaryCallSettings deleteEvaluationJobSettings() {
+ return deleteEvaluationJobSettings;
+ }
+
/** Returns the object with the settings used for calls to listEvaluationJobs. */
public PagedCallSettings<
ListEvaluationJobsRequest, ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse>
@@ -548,17 +548,14 @@ public Builder toBuilder() {
protected DataLabelingServiceStubSettings(Builder settingsBuilder) throws IOException {
super(settingsBuilder);
- deleteDatasetSettings = settingsBuilder.deleteDatasetSettings().build();
- exportDataSettings = settingsBuilder.exportDataSettings().build();
- exportDataOperationSettings = settingsBuilder.exportDataOperationSettings().build();
- deleteAnnotationSpecSetSettings = settingsBuilder.deleteAnnotationSpecSetSettings().build();
- deleteInstructionSettings = settingsBuilder.deleteInstructionSettings().build();
- deleteEvaluationJobSettings = settingsBuilder.deleteEvaluationJobSettings().build();
createDatasetSettings = settingsBuilder.createDatasetSettings().build();
getDatasetSettings = settingsBuilder.getDatasetSettings().build();
listDatasetsSettings = settingsBuilder.listDatasetsSettings().build();
+ deleteDatasetSettings = settingsBuilder.deleteDatasetSettings().build();
importDataSettings = settingsBuilder.importDataSettings().build();
importDataOperationSettings = settingsBuilder.importDataOperationSettings().build();
+ exportDataSettings = settingsBuilder.exportDataSettings().build();
+ exportDataOperationSettings = settingsBuilder.exportDataOperationSettings().build();
getDataItemSettings = settingsBuilder.getDataItemSettings().build();
listDataItemsSettings = settingsBuilder.listDataItemsSettings().build();
getAnnotatedDatasetSettings = settingsBuilder.getAnnotatedDatasetSettings().build();
@@ -575,11 +572,13 @@ protected DataLabelingServiceStubSettings(Builder settingsBuilder) throws IOExce
createAnnotationSpecSetSettings = settingsBuilder.createAnnotationSpecSetSettings().build();
getAnnotationSpecSetSettings = settingsBuilder.getAnnotationSpecSetSettings().build();
listAnnotationSpecSetsSettings = settingsBuilder.listAnnotationSpecSetsSettings().build();
+ deleteAnnotationSpecSetSettings = settingsBuilder.deleteAnnotationSpecSetSettings().build();
createInstructionSettings = settingsBuilder.createInstructionSettings().build();
createInstructionOperationSettings =
settingsBuilder.createInstructionOperationSettings().build();
getInstructionSettings = settingsBuilder.getInstructionSettings().build();
listInstructionsSettings = settingsBuilder.listInstructionsSettings().build();
+ deleteInstructionSettings = settingsBuilder.deleteInstructionSettings().build();
getEvaluationSettings = settingsBuilder.getEvaluationSettings().build();
searchEvaluationsSettings = settingsBuilder.searchEvaluationsSettings().build();
searchExampleComparisonsSettings = settingsBuilder.searchExampleComparisonsSettings().build();
@@ -588,6 +587,7 @@ protected DataLabelingServiceStubSettings(Builder settingsBuilder) throws IOExce
getEvaluationJobSettings = settingsBuilder.getEvaluationJobSettings().build();
pauseEvaluationJobSettings = settingsBuilder.pauseEvaluationJobSettings().build();
resumeEvaluationJobSettings = settingsBuilder.resumeEvaluationJobSettings().build();
+ deleteEvaluationJobSettings = settingsBuilder.deleteEvaluationJobSettings().build();
listEvaluationJobsSettings = settingsBuilder.listEvaluationJobsSettings().build();
}
@@ -1147,26 +1147,20 @@ public static class Builder
extends StubSettings.Builder {
private final ImmutableList> unaryMethodSettingsBuilders;
- private final UnaryCallSettings.Builder deleteDatasetSettings;
- private final UnaryCallSettings.Builder exportDataSettings;
- private final OperationCallSettings.Builder<
- ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
- exportDataOperationSettings;
- private final UnaryCallSettings.Builder
- deleteAnnotationSpecSetSettings;
- private final UnaryCallSettings.Builder
- deleteInstructionSettings;
- private final UnaryCallSettings.Builder
- deleteEvaluationJobSettings;
private final UnaryCallSettings.Builder createDatasetSettings;
private final UnaryCallSettings.Builder getDatasetSettings;
private final PagedCallSettings.Builder<
ListDatasetsRequest, ListDatasetsResponse, ListDatasetsPagedResponse>
listDatasetsSettings;
+ private final UnaryCallSettings.Builder deleteDatasetSettings;
private final UnaryCallSettings.Builder importDataSettings;
private final OperationCallSettings.Builder<
ImportDataRequest, ImportDataOperationResponse, ImportDataOperationMetadata>
importDataOperationSettings;
+ private final UnaryCallSettings.Builder exportDataSettings;
+ private final OperationCallSettings.Builder<
+ ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
+ exportDataOperationSettings;
private final UnaryCallSettings.Builder getDataItemSettings;
private final PagedCallSettings.Builder<
ListDataItemsRequest, ListDataItemsResponse, ListDataItemsPagedResponse>
@@ -1205,6 +1199,8 @@ public static class Builder
ListAnnotationSpecSetsResponse,
ListAnnotationSpecSetsPagedResponse>
listAnnotationSpecSetsSettings;
+ private final UnaryCallSettings.Builder
+ deleteAnnotationSpecSetSettings;
private final UnaryCallSettings.Builder
createInstructionSettings;
private final OperationCallSettings.Builder<
@@ -1215,6 +1211,8 @@ public static class Builder
private final PagedCallSettings.Builder<
ListInstructionsRequest, ListInstructionsResponse, ListInstructionsPagedResponse>
listInstructionsSettings;
+ private final UnaryCallSettings.Builder
+ deleteInstructionSettings;
private final UnaryCallSettings.Builder getEvaluationSettings;
private final PagedCallSettings.Builder<
SearchEvaluationsRequest, SearchEvaluationsResponse, SearchEvaluationsPagedResponse>
@@ -1234,6 +1232,8 @@ public static class Builder
pauseEvaluationJobSettings;
private final UnaryCallSettings.Builder
resumeEvaluationJobSettings;
+ private final UnaryCallSettings.Builder
+ deleteEvaluationJobSettings;
private final PagedCallSettings.Builder<
ListEvaluationJobsRequest, ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse>
listEvaluationJobsSettings;
@@ -1245,11 +1245,13 @@ public static class Builder
ImmutableMap.Builder> definitions =
ImmutableMap.builder();
definitions.put(
- "idempotent",
+ "retry_policy_1_codes",
ImmutableSet.copyOf(
Lists.newArrayList(
StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE)));
- definitions.put("non_idempotent", ImmutableSet.copyOf(Lists.newArrayList()));
+ definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
+ definitions.put(
+ "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList()));
RETRYABLE_CODE_DEFINITIONS = definitions.build();
}
@@ -1263,12 +1265,22 @@ public static class Builder
.setInitialRetryDelay(Duration.ofMillis(100L))
.setRetryDelayMultiplier(1.3)
.setMaxRetryDelay(Duration.ofMillis(30000L))
- .setInitialRpcTimeout(Duration.ofMillis(20000L))
+ .setInitialRpcTimeout(Duration.ofMillis(30000L))
.setRpcTimeoutMultiplier(1.0)
- .setMaxRpcTimeout(Duration.ofMillis(20000L))
- .setTotalTimeout(Duration.ofMillis(300000L))
+ .setMaxRpcTimeout(Duration.ofMillis(30000L))
+ .setTotalTimeout(Duration.ofMillis(30000L))
.build();
- definitions.put("default", settings);
+ definitions.put("retry_policy_1_params", settings);
+ settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build();
+ definitions.put("no_retry_params", settings);
+ settings =
+ RetrySettings.newBuilder()
+ .setInitialRpcTimeout(Duration.ofMillis(30000L))
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeout(Duration.ofMillis(30000L))
+ .setTotalTimeout(Duration.ofMillis(30000L))
+ .build();
+ definitions.put("no_retry_1_params", settings);
RETRY_PARAM_DEFINITIONS = definitions.build();
}
@@ -1279,28 +1291,22 @@ protected Builder() {
protected Builder(ClientContext clientContext) {
super(clientContext);
- deleteDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
-
- exportDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
-
- exportDataOperationSettings = OperationCallSettings.newBuilder();
-
- deleteAnnotationSpecSetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
-
- deleteInstructionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
-
- deleteEvaluationJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
-
createDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
getDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
listDatasetsSettings = PagedCallSettings.newBuilder(LIST_DATASETS_PAGE_STR_FACT);
+ deleteDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
importDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
importDataOperationSettings = OperationCallSettings.newBuilder();
+ exportDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
+ exportDataOperationSettings = OperationCallSettings.newBuilder();
+
getDataItemSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
listDataItemsSettings = PagedCallSettings.newBuilder(LIST_DATA_ITEMS_PAGE_STR_FACT);
@@ -1335,6 +1341,8 @@ protected Builder(ClientContext clientContext) {
listAnnotationSpecSetsSettings =
PagedCallSettings.newBuilder(LIST_ANNOTATION_SPEC_SETS_PAGE_STR_FACT);
+ deleteAnnotationSpecSetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
createInstructionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
createInstructionOperationSettings = OperationCallSettings.newBuilder();
@@ -1343,6 +1351,8 @@ protected Builder(ClientContext clientContext) {
listInstructionsSettings = PagedCallSettings.newBuilder(LIST_INSTRUCTIONS_PAGE_STR_FACT);
+ deleteInstructionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
getEvaluationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
searchEvaluationsSettings = PagedCallSettings.newBuilder(SEARCH_EVALUATIONS_PAGE_STR_FACT);
@@ -1360,19 +1370,18 @@ protected Builder(ClientContext clientContext) {
resumeEvaluationJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ deleteEvaluationJobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
listEvaluationJobsSettings = PagedCallSettings.newBuilder(LIST_EVALUATION_JOBS_PAGE_STR_FACT);
unaryMethodSettingsBuilders =
ImmutableList.>of(
- deleteDatasetSettings,
- exportDataSettings,
- deleteAnnotationSpecSetSettings,
- deleteInstructionSettings,
- deleteEvaluationJobSettings,
createDatasetSettings,
getDatasetSettings,
listDatasetsSettings,
+ deleteDatasetSettings,
importDataSettings,
+ exportDataSettings,
getDataItemSettings,
listDataItemsSettings,
getAnnotatedDatasetSettings,
@@ -1386,9 +1395,11 @@ protected Builder(ClientContext clientContext) {
createAnnotationSpecSetSettings,
getAnnotationSpecSetSettings,
listAnnotationSpecSetsSettings,
+ deleteAnnotationSpecSetSettings,
createInstructionSettings,
getInstructionSettings,
listInstructionsSettings,
+ deleteInstructionSettings,
getEvaluationSettings,
searchEvaluationsSettings,
searchExampleComparisonsSettings,
@@ -1397,6 +1408,7 @@ protected Builder(ClientContext clientContext) {
getEvaluationJobSettings,
pauseEvaluationJobSettings,
resumeEvaluationJobSettings,
+ deleteEvaluationJobSettings,
listEvaluationJobsSettings);
initDefaults(this);
@@ -1413,188 +1425,188 @@ private static Builder createDefault() {
private static Builder initDefaults(Builder builder) {
- builder
- .deleteDatasetSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
-
- builder
- .exportDataSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
-
- builder
- .deleteAnnotationSpecSetSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
-
- builder
- .deleteInstructionSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
-
- builder
- .deleteEvaluationJobSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
-
builder
.createDatasetSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
builder
.getDatasetSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.listDatasetsSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
+
+ builder
+ .deleteDatasetSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.importDataSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+
+ builder
+ .exportDataSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.getDataItemSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.listDataItemsSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.getAnnotatedDatasetSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.listAnnotatedDatasetsSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.deleteAnnotatedDatasetSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
builder
.labelImageSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
builder
.labelVideoSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
builder
.labelTextSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
builder
.getExampleSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.listExamplesSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.createAnnotationSpecSetSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
builder
.getAnnotationSpecSetSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.listAnnotationSpecSetsSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
+
+ builder
+ .deleteAnnotationSpecSetSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.createInstructionSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
builder
.getInstructionSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.listInstructionsSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
+
+ builder
+ .deleteInstructionSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.getEvaluationSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.searchEvaluationsSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.searchExampleComparisonsSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
builder
.createEvaluationJobSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
builder
.updateEvaluationJobSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
builder
.getEvaluationJobSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.pauseEvaluationJobSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
builder
.resumeEvaluationJobSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+
+ builder
+ .deleteEvaluationJobSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
.listEvaluationJobsSettings()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"));
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
builder
- .exportDataOperationSettings()
+ .importDataOperationSettings()
.setInitialCallSettings(
- UnaryCallSettings.newUnaryCallSettingsBuilder()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+ UnaryCallSettings.newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
.build())
.setResponseTransformer(
ProtoOperationTransformers.ResponseTransformer.create(
- ExportDataOperationResponse.class))
+ ImportDataOperationResponse.class))
.setMetadataTransformer(
ProtoOperationTransformers.MetadataTransformer.create(
- ExportDataOperationMetadata.class))
+ ImportDataOperationMetadata.class))
.setPollingAlgorithm(
OperationTimedPollAlgorithm.create(
RetrySettings.newBuilder()
@@ -1607,18 +1619,18 @@ private static Builder initDefaults(Builder builder) {
.setTotalTimeout(Duration.ofMillis(300000L))
.build()));
builder
- .importDataOperationSettings()
+ .exportDataOperationSettings()
.setInitialCallSettings(
- UnaryCallSettings.newUnaryCallSettingsBuilder()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+ UnaryCallSettings.newUnaryCallSettingsBuilder()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"))
.build())
.setResponseTransformer(
ProtoOperationTransformers.ResponseTransformer.create(
- ImportDataOperationResponse.class))
+ ExportDataOperationResponse.class))
.setMetadataTransformer(
ProtoOperationTransformers.MetadataTransformer.create(
- ImportDataOperationMetadata.class))
+ ExportDataOperationMetadata.class))
.setPollingAlgorithm(
OperationTimedPollAlgorithm.create(
RetrySettings.newBuilder()
@@ -1634,8 +1646,8 @@ private static Builder initDefaults(Builder builder) {
.labelImageOperationSettings()
.setInitialCallSettings(
UnaryCallSettings.newUnaryCallSettingsBuilder()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
.build())
.setResponseTransformer(
ProtoOperationTransformers.ResponseTransformer.create(AnnotatedDataset.class))
@@ -1656,8 +1668,8 @@ private static Builder initDefaults(Builder builder) {
.labelVideoOperationSettings()
.setInitialCallSettings(
UnaryCallSettings.newUnaryCallSettingsBuilder()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
.build())
.setResponseTransformer(
ProtoOperationTransformers.ResponseTransformer.create(AnnotatedDataset.class))
@@ -1678,8 +1690,8 @@ private static Builder initDefaults(Builder builder) {
.labelTextOperationSettings()
.setInitialCallSettings(
UnaryCallSettings.newUnaryCallSettingsBuilder()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
.build())
.setResponseTransformer(
ProtoOperationTransformers.ResponseTransformer.create(AnnotatedDataset.class))
@@ -1701,8 +1713,8 @@ private static Builder initDefaults(Builder builder) {
.setInitialCallSettings(
UnaryCallSettings
.newUnaryCallSettingsBuilder()
- .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent"))
- .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default"))
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
.build())
.setResponseTransformer(
ProtoOperationTransformers.ResponseTransformer.create(Instruction.class))
@@ -1727,17 +1739,14 @@ private static Builder initDefaults(Builder builder) {
protected Builder(DataLabelingServiceStubSettings settings) {
super(settings);
- deleteDatasetSettings = settings.deleteDatasetSettings.toBuilder();
- exportDataSettings = settings.exportDataSettings.toBuilder();
- exportDataOperationSettings = settings.exportDataOperationSettings.toBuilder();
- deleteAnnotationSpecSetSettings = settings.deleteAnnotationSpecSetSettings.toBuilder();
- deleteInstructionSettings = settings.deleteInstructionSettings.toBuilder();
- deleteEvaluationJobSettings = settings.deleteEvaluationJobSettings.toBuilder();
createDatasetSettings = settings.createDatasetSettings.toBuilder();
getDatasetSettings = settings.getDatasetSettings.toBuilder();
listDatasetsSettings = settings.listDatasetsSettings.toBuilder();
+ deleteDatasetSettings = settings.deleteDatasetSettings.toBuilder();
importDataSettings = settings.importDataSettings.toBuilder();
importDataOperationSettings = settings.importDataOperationSettings.toBuilder();
+ exportDataSettings = settings.exportDataSettings.toBuilder();
+ exportDataOperationSettings = settings.exportDataOperationSettings.toBuilder();
getDataItemSettings = settings.getDataItemSettings.toBuilder();
listDataItemsSettings = settings.listDataItemsSettings.toBuilder();
getAnnotatedDatasetSettings = settings.getAnnotatedDatasetSettings.toBuilder();
@@ -1754,10 +1763,12 @@ protected Builder(DataLabelingServiceStubSettings settings) {
createAnnotationSpecSetSettings = settings.createAnnotationSpecSetSettings.toBuilder();
getAnnotationSpecSetSettings = settings.getAnnotationSpecSetSettings.toBuilder();
listAnnotationSpecSetsSettings = settings.listAnnotationSpecSetsSettings.toBuilder();
+ deleteAnnotationSpecSetSettings = settings.deleteAnnotationSpecSetSettings.toBuilder();
createInstructionSettings = settings.createInstructionSettings.toBuilder();
createInstructionOperationSettings = settings.createInstructionOperationSettings.toBuilder();
getInstructionSettings = settings.getInstructionSettings.toBuilder();
listInstructionsSettings = settings.listInstructionsSettings.toBuilder();
+ deleteInstructionSettings = settings.deleteInstructionSettings.toBuilder();
getEvaluationSettings = settings.getEvaluationSettings.toBuilder();
searchEvaluationsSettings = settings.searchEvaluationsSettings.toBuilder();
searchExampleComparisonsSettings = settings.searchExampleComparisonsSettings.toBuilder();
@@ -1766,19 +1777,17 @@ protected Builder(DataLabelingServiceStubSettings settings) {
getEvaluationJobSettings = settings.getEvaluationJobSettings.toBuilder();
pauseEvaluationJobSettings = settings.pauseEvaluationJobSettings.toBuilder();
resumeEvaluationJobSettings = settings.resumeEvaluationJobSettings.toBuilder();
+ deleteEvaluationJobSettings = settings.deleteEvaluationJobSettings.toBuilder();
listEvaluationJobsSettings = settings.listEvaluationJobsSettings.toBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
- deleteDatasetSettings,
- exportDataSettings,
- deleteAnnotationSpecSetSettings,
- deleteInstructionSettings,
- deleteEvaluationJobSettings,
createDatasetSettings,
getDatasetSettings,
listDatasetsSettings,
+ deleteDatasetSettings,
importDataSettings,
+ exportDataSettings,
getDataItemSettings,
listDataItemsSettings,
getAnnotatedDatasetSettings,
@@ -1792,9 +1801,11 @@ protected Builder(DataLabelingServiceStubSettings settings) {
createAnnotationSpecSetSettings,
getAnnotationSpecSetSettings,
listAnnotationSpecSetsSettings,
+ deleteAnnotationSpecSetSettings,
createInstructionSettings,
getInstructionSettings,
listInstructionsSettings,
+ deleteInstructionSettings,
getEvaluationSettings,
searchEvaluationsSettings,
searchExampleComparisonsSettings,
@@ -1803,6 +1814,7 @@ protected Builder(DataLabelingServiceStubSettings settings) {
getEvaluationJobSettings,
pauseEvaluationJobSettings,
resumeEvaluationJobSettings,
+ deleteEvaluationJobSettings,
listEvaluationJobsSettings);
}
@@ -1822,42 +1834,6 @@ public Builder applyToAllUnaryMethods(
return unaryMethodSettingsBuilders;
}
- /** Returns the builder for the settings used for calls to deleteDataset. */
- public UnaryCallSettings.Builder deleteDatasetSettings() {
- return deleteDatasetSettings;
- }
-
- /** Returns the builder for the settings used for calls to exportData. */
- public UnaryCallSettings.Builder exportDataSettings() {
- return exportDataSettings;
- }
-
- /** Returns the builder for the settings used for calls to exportData. */
- @BetaApi(
- "The surface for use by generated code is not stable yet and may change in the future.")
- public OperationCallSettings.Builder<
- ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
- exportDataOperationSettings() {
- return exportDataOperationSettings;
- }
-
- /** Returns the builder for the settings used for calls to deleteAnnotationSpecSet. */
- public UnaryCallSettings.Builder
- deleteAnnotationSpecSetSettings() {
- return deleteAnnotationSpecSetSettings;
- }
-
- /** Returns the builder for the settings used for calls to deleteInstruction. */
- public UnaryCallSettings.Builder deleteInstructionSettings() {
- return deleteInstructionSettings;
- }
-
- /** Returns the builder for the settings used for calls to deleteEvaluationJob. */
- public UnaryCallSettings.Builder
- deleteEvaluationJobSettings() {
- return deleteEvaluationJobSettings;
- }
-
/** Returns the builder for the settings used for calls to createDataset. */
public UnaryCallSettings.Builder createDatasetSettings() {
return createDatasetSettings;
@@ -1875,6 +1851,11 @@ public UnaryCallSettings.Builder getDatasetSettings(
return listDatasetsSettings;
}
+ /** Returns the builder for the settings used for calls to deleteDataset. */
+ public UnaryCallSettings.Builder deleteDatasetSettings() {
+ return deleteDatasetSettings;
+ }
+
/** Returns the builder for the settings used for calls to importData. */
public UnaryCallSettings.Builder importDataSettings() {
return importDataSettings;
@@ -1889,6 +1870,20 @@ public UnaryCallSettings.Builder importDataSetting
return importDataOperationSettings;
}
+ /** Returns the builder for the settings used for calls to exportData. */
+ public UnaryCallSettings.Builder exportDataSettings() {
+ return exportDataSettings;
+ }
+
+ /** Returns the builder for the settings used for calls to exportData. */
+ @BetaApi(
+ "The surface for use by generated code is not stable yet and may change in the future.")
+ public OperationCallSettings.Builder<
+ ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
+ exportDataOperationSettings() {
+ return exportDataOperationSettings;
+ }
+
/** Returns the builder for the settings used for calls to getDataItem. */
public UnaryCallSettings.Builder getDataItemSettings() {
return getDataItemSettings;
@@ -1996,6 +1991,12 @@ public UnaryCallSettings.Builder getExampleSettings(
return listAnnotationSpecSetsSettings;
}
+ /** Returns the builder for the settings used for calls to deleteAnnotationSpecSet. */
+ public UnaryCallSettings.Builder
+ deleteAnnotationSpecSetSettings() {
+ return deleteAnnotationSpecSetSettings;
+ }
+
/** Returns the builder for the settings used for calls to createInstruction. */
public UnaryCallSettings.Builder
createInstructionSettings() {
@@ -2023,6 +2024,11 @@ public UnaryCallSettings.Builder getInstruct
return listInstructionsSettings;
}
+ /** Returns the builder for the settings used for calls to deleteInstruction. */
+ public UnaryCallSettings.Builder deleteInstructionSettings() {
+ return deleteInstructionSettings;
+ }
+
/** Returns the builder for the settings used for calls to getEvaluation. */
public UnaryCallSettings.Builder getEvaluationSettings() {
return getEvaluationSettings;
@@ -2074,6 +2080,12 @@ public UnaryCallSettings.Builder getEvaluation
return resumeEvaluationJobSettings;
}
+ /** Returns the builder for the settings used for calls to deleteEvaluationJob. */
+ public UnaryCallSettings.Builder
+ deleteEvaluationJobSettings() {
+ return deleteEvaluationJobSettings;
+ }
+
/** Returns the builder for the settings used for calls to listEvaluationJobs. */
public PagedCallSettings.Builder<
ListEvaluationJobsRequest, ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse>
diff --git a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java
index 13f98b94..b24b8fb2 100644
--- a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java
+++ b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java
@@ -112,50 +112,6 @@
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub {
- private static final MethodDescriptor deleteDatasetMethodDescriptor =
- MethodDescriptor.newBuilder()
- .setType(MethodDescriptor.MethodType.UNARY)
- .setFullMethodName("google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteDataset")
- .setRequestMarshaller(ProtoUtils.marshaller(DeleteDatasetRequest.getDefaultInstance()))
- .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
- .build();
- private static final MethodDescriptor exportDataMethodDescriptor =
- MethodDescriptor.newBuilder()
- .setType(MethodDescriptor.MethodType.UNARY)
- .setFullMethodName("google.cloud.datalabeling.v1beta1.DataLabelingService/ExportData")
- .setRequestMarshaller(ProtoUtils.marshaller(ExportDataRequest.getDefaultInstance()))
- .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
- .build();
- private static final MethodDescriptor
- deleteAnnotationSpecSetMethodDescriptor =
- MethodDescriptor.newBuilder()
- .setType(MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(
- "google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteAnnotationSpecSet")
- .setRequestMarshaller(
- ProtoUtils.marshaller(DeleteAnnotationSpecSetRequest.getDefaultInstance()))
- .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
- .build();
- private static final MethodDescriptor
- deleteInstructionMethodDescriptor =
- MethodDescriptor.newBuilder()
- .setType(MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(
- "google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteInstruction")
- .setRequestMarshaller(
- ProtoUtils.marshaller(DeleteInstructionRequest.getDefaultInstance()))
- .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
- .build();
- private static final MethodDescriptor
- deleteEvaluationJobMethodDescriptor =
- MethodDescriptor.newBuilder()
- .setType(MethodDescriptor.MethodType.UNARY)
- .setFullMethodName(
- "google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteEvaluationJob")
- .setRequestMarshaller(
- ProtoUtils.marshaller(DeleteEvaluationJobRequest.getDefaultInstance()))
- .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
- .build();
private static final MethodDescriptor
createDatasetMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -183,6 +139,13 @@ public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub {
.setResponseMarshaller(
ProtoUtils.marshaller(ListDatasetsResponse.getDefaultInstance()))
.build();
+ private static final MethodDescriptor deleteDatasetMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteDataset")
+ .setRequestMarshaller(ProtoUtils.marshaller(DeleteDatasetRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+ .build();
private static final MethodDescriptor importDataMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
@@ -190,6 +153,13 @@ public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub {
.setRequestMarshaller(ProtoUtils.marshaller(ImportDataRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
.build();
+ private static final MethodDescriptor exportDataMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.cloud.datalabeling.v1beta1.DataLabelingService/ExportData")
+ .setRequestMarshaller(ProtoUtils.marshaller(ExportDataRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
+ .build();
private static final MethodDescriptor getDataItemMethodDescriptor =
MethodDescriptor.newBuilder()
.setType(MethodDescriptor.MethodType.UNARY)
@@ -310,6 +280,16 @@ public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub {
.setResponseMarshaller(
ProtoUtils.marshaller(ListAnnotationSpecSetsResponse.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ deleteAnnotationSpecSetMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteAnnotationSpecSet")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeleteAnnotationSpecSetRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+ .build();
private static final MethodDescriptor
createInstructionMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -341,6 +321,16 @@ public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub {
.setResponseMarshaller(
ProtoUtils.marshaller(ListInstructionsResponse.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ deleteInstructionMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteInstruction")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeleteInstructionRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+ .build();
private static final MethodDescriptor
getEvaluationMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -425,6 +415,16 @@ public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub {
ProtoUtils.marshaller(ResumeEvaluationJobRequest.getDefaultInstance()))
.setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
.build();
+ private static final MethodDescriptor
+ deleteEvaluationJobMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(
+ "google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteEvaluationJob")
+ .setRequestMarshaller(
+ ProtoUtils.marshaller(DeleteEvaluationJobRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
+ .build();
private static final MethodDescriptor
listEvaluationJobsMethodDescriptor =
MethodDescriptor.newBuilder()
@@ -440,24 +440,20 @@ public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub {
private final BackgroundResource backgroundResources;
private final GrpcOperationsStub operationsStub;
- private final UnaryCallable deleteDatasetCallable;
- private final UnaryCallable exportDataCallable;
- private final OperationCallable<
- ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
- exportDataOperationCallable;
- private final UnaryCallable
- deleteAnnotationSpecSetCallable;
- private final UnaryCallable deleteInstructionCallable;
- private final UnaryCallable deleteEvaluationJobCallable;
private final UnaryCallable createDatasetCallable;
private final UnaryCallable getDatasetCallable;
private final UnaryCallable listDatasetsCallable;
private final UnaryCallable
listDatasetsPagedCallable;
+ private final UnaryCallable deleteDatasetCallable;
private final UnaryCallable importDataCallable;
private final OperationCallable<
ImportDataRequest, ImportDataOperationResponse, ImportDataOperationMetadata>
importDataOperationCallable;
+ private final UnaryCallable exportDataCallable;
+ private final OperationCallable<
+ ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata>
+ exportDataOperationCallable;
private final UnaryCallable getDataItemCallable;
private final UnaryCallable listDataItemsCallable;
private final UnaryCallable
@@ -490,6 +486,8 @@ public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub {
listAnnotationSpecSetsCallable;
private final UnaryCallable
listAnnotationSpecSetsPagedCallable;
+ private final UnaryCallable
+ deleteAnnotationSpecSetCallable;
private final UnaryCallable createInstructionCallable;
private final OperationCallable
createInstructionOperationCallable;
@@ -498,6 +496,7 @@ public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub {
listInstructionsCallable;
private final UnaryCallable
listInstructionsPagedCallable;
+ private final UnaryCallable deleteInstructionCallable;
private final UnaryCallable getEvaluationCallable;
private final UnaryCallable
searchEvaluationsCallable;
@@ -515,6 +514,7 @@ public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub {
private final UnaryCallable getEvaluationJobCallable;
private final UnaryCallable pauseEvaluationJobCallable;
private final UnaryCallable resumeEvaluationJobCallable;
+ private final UnaryCallable deleteEvaluationJobCallable;
private final UnaryCallable
listEvaluationJobsCallable;
private final UnaryCallable
@@ -562,72 +562,6 @@ protected GrpcDataLabelingServiceStub(
this.callableFactory = callableFactory;
this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory);
- GrpcCallSettings