All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.datalabeling.v1beta1.stub.GrpcDataLabelingServiceStub Maven / Gradle / Ivy

There is a newer version: 0.174.0
Show newest version
/*
 * Copyright 2024 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.google.cloud.datalabeling.v1beta1.stub;

import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListAnnotatedDatasetsPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListAnnotationSpecSetsPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListDataItemsPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListDatasetsPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListEvaluationJobsPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListExamplesPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.ListInstructionsPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.SearchEvaluationsPagedResponse;
import static com.google.cloud.datalabeling.v1beta1.DataLabelingServiceClient.SearchExampleComparisonsPagedResponse;

import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.core.BackgroundResourceAggregation;
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.OperationCallable;
import com.google.api.gax.rpc.RequestParamsBuilder;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.datalabeling.v1beta1.AnnotatedDataset;
import com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet;
import com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest;
import com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest;
import com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest;
import com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata;
import com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest;
import com.google.cloud.datalabeling.v1beta1.DataItem;
import com.google.cloud.datalabeling.v1beta1.Dataset;
import com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest;
import com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest;
import com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest;
import com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest;
import com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest;
import com.google.cloud.datalabeling.v1beta1.Evaluation;
import com.google.cloud.datalabeling.v1beta1.EvaluationJob;
import com.google.cloud.datalabeling.v1beta1.Example;
import com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata;
import com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse;
import com.google.cloud.datalabeling.v1beta1.ExportDataRequest;
import com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest;
import com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest;
import com.google.cloud.datalabeling.v1beta1.GetDataItemRequest;
import com.google.cloud.datalabeling.v1beta1.GetDatasetRequest;
import com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest;
import com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest;
import com.google.cloud.datalabeling.v1beta1.GetExampleRequest;
import com.google.cloud.datalabeling.v1beta1.GetInstructionRequest;
import com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata;
import com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse;
import com.google.cloud.datalabeling.v1beta1.ImportDataRequest;
import com.google.cloud.datalabeling.v1beta1.Instruction;
import com.google.cloud.datalabeling.v1beta1.LabelImageRequest;
import com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata;
import com.google.cloud.datalabeling.v1beta1.LabelTextRequest;
import com.google.cloud.datalabeling.v1beta1.LabelVideoRequest;
import com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest;
import com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse;
import com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest;
import com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse;
import com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest;
import com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse;
import com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest;
import com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse;
import com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest;
import com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse;
import com.google.cloud.datalabeling.v1beta1.ListExamplesRequest;
import com.google.cloud.datalabeling.v1beta1.ListExamplesResponse;
import com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest;
import com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse;
import com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest;
import com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest;
import com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest;
import com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse;
import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest;
import com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse;
import com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest;
import com.google.longrunning.Operation;
import com.google.longrunning.stub.GrpcOperationsStub;
import com.google.protobuf.Empty;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
 * gRPC stub implementation for the DataLabelingService service API.
 *
 * 

This class is for advanced usage and reflects the underlying API directly. */ @BetaApi @Generated("by gapic-generator-java") public class GrpcDataLabelingServiceStub extends DataLabelingServiceStub { private static final MethodDescriptor createDatasetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/CreateDataset") .setRequestMarshaller( ProtoUtils.marshaller(CreateDatasetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Dataset.getDefaultInstance())) .build(); private static final MethodDescriptor getDatasetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.datalabeling.v1beta1.DataLabelingService/GetDataset") .setRequestMarshaller(ProtoUtils.marshaller(GetDatasetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Dataset.getDefaultInstance())) .build(); private static final MethodDescriptor listDatasetsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/ListDatasets") .setRequestMarshaller(ProtoUtils.marshaller(ListDatasetsRequest.getDefaultInstance())) .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) .setFullMethodName("google.cloud.datalabeling.v1beta1.DataLabelingService/ImportData") .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) .setFullMethodName("google.cloud.datalabeling.v1beta1.DataLabelingService/GetDataItem") .setRequestMarshaller(ProtoUtils.marshaller(GetDataItemRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(DataItem.getDefaultInstance())) .build(); private static final MethodDescriptor listDataItemsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/ListDataItems") .setRequestMarshaller( ProtoUtils.marshaller(ListDataItemsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListDataItemsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor getAnnotatedDatasetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/GetAnnotatedDataset") .setRequestMarshaller( ProtoUtils.marshaller(GetAnnotatedDatasetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(AnnotatedDataset.getDefaultInstance())) .build(); private static final MethodDescriptor listAnnotatedDatasetsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/ListAnnotatedDatasets") .setRequestMarshaller( ProtoUtils.marshaller(ListAnnotatedDatasetsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListAnnotatedDatasetsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor deleteAnnotatedDatasetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/DeleteAnnotatedDataset") .setRequestMarshaller( ProtoUtils.marshaller(DeleteAnnotatedDatasetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); private static final MethodDescriptor labelImageMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.datalabeling.v1beta1.DataLabelingService/LabelImage") .setRequestMarshaller(ProtoUtils.marshaller(LabelImageRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor labelVideoMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.datalabeling.v1beta1.DataLabelingService/LabelVideo") .setRequestMarshaller(ProtoUtils.marshaller(LabelVideoRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor labelTextMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.datalabeling.v1beta1.DataLabelingService/LabelText") .setRequestMarshaller(ProtoUtils.marshaller(LabelTextRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getExampleMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName("google.cloud.datalabeling.v1beta1.DataLabelingService/GetExample") .setRequestMarshaller(ProtoUtils.marshaller(GetExampleRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Example.getDefaultInstance())) .build(); private static final MethodDescriptor listExamplesMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/ListExamples") .setRequestMarshaller(ProtoUtils.marshaller(ListExamplesRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListExamplesResponse.getDefaultInstance())) .build(); private static final MethodDescriptor createAnnotationSpecSetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/CreateAnnotationSpecSet") .setRequestMarshaller( ProtoUtils.marshaller(CreateAnnotationSpecSetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(AnnotationSpecSet.getDefaultInstance())) .build(); private static final MethodDescriptor getAnnotationSpecSetMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/GetAnnotationSpecSet") .setRequestMarshaller( ProtoUtils.marshaller(GetAnnotationSpecSetRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(AnnotationSpecSet.getDefaultInstance())) .build(); private static final MethodDescriptor< ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse> listAnnotationSpecSetsMethodDescriptor = MethodDescriptor .newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/ListAnnotationSpecSets") .setRequestMarshaller( ProtoUtils.marshaller(ListAnnotationSpecSetsRequest.getDefaultInstance())) .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() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/CreateInstruction") .setRequestMarshaller( ProtoUtils.marshaller(CreateInstructionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); private static final MethodDescriptor getInstructionMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/GetInstruction") .setRequestMarshaller( ProtoUtils.marshaller(GetInstructionRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Instruction.getDefaultInstance())) .build(); private static final MethodDescriptor listInstructionsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/ListInstructions") .setRequestMarshaller( ProtoUtils.marshaller(ListInstructionsRequest.getDefaultInstance())) .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() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/GetEvaluation") .setRequestMarshaller( ProtoUtils.marshaller(GetEvaluationRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Evaluation.getDefaultInstance())) .build(); private static final MethodDescriptor searchEvaluationsMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/SearchEvaluations") .setRequestMarshaller( ProtoUtils.marshaller(SearchEvaluationsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(SearchEvaluationsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor< SearchExampleComparisonsRequest, SearchExampleComparisonsResponse> searchExampleComparisonsMethodDescriptor = MethodDescriptor .newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/SearchExampleComparisons") .setRequestMarshaller( ProtoUtils.marshaller(SearchExampleComparisonsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(SearchExampleComparisonsResponse.getDefaultInstance())) .build(); private static final MethodDescriptor createEvaluationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/CreateEvaluationJob") .setRequestMarshaller( ProtoUtils.marshaller(CreateEvaluationJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(EvaluationJob.getDefaultInstance())) .build(); private static final MethodDescriptor updateEvaluationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/UpdateEvaluationJob") .setRequestMarshaller( ProtoUtils.marshaller(UpdateEvaluationJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(EvaluationJob.getDefaultInstance())) .build(); private static final MethodDescriptor getEvaluationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/GetEvaluationJob") .setRequestMarshaller( ProtoUtils.marshaller(GetEvaluationJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(EvaluationJob.getDefaultInstance())) .build(); private static final MethodDescriptor pauseEvaluationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/PauseEvaluationJob") .setRequestMarshaller( ProtoUtils.marshaller(PauseEvaluationJobRequest.getDefaultInstance())) .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); private static final MethodDescriptor resumeEvaluationJobMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/ResumeEvaluationJob") .setRequestMarshaller( 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() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.cloud.datalabeling.v1beta1.DataLabelingService/ListEvaluationJobs") .setRequestMarshaller( ProtoUtils.marshaller(ListEvaluationJobsRequest.getDefaultInstance())) .setResponseMarshaller( ProtoUtils.marshaller(ListEvaluationJobsResponse.getDefaultInstance())) .build(); 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 listDataItemsPagedCallable; private final UnaryCallable getAnnotatedDatasetCallable; private final UnaryCallable listAnnotatedDatasetsCallable; private final UnaryCallable listAnnotatedDatasetsPagedCallable; private final UnaryCallable deleteAnnotatedDatasetCallable; private final UnaryCallable labelImageCallable; private final OperationCallable labelImageOperationCallable; private final UnaryCallable labelVideoCallable; private final OperationCallable labelVideoOperationCallable; private final UnaryCallable labelTextCallable; private final OperationCallable labelTextOperationCallable; private final UnaryCallable getExampleCallable; private final UnaryCallable listExamplesCallable; private final UnaryCallable listExamplesPagedCallable; private final UnaryCallable createAnnotationSpecSetCallable; private final UnaryCallable getAnnotationSpecSetCallable; private final UnaryCallable listAnnotationSpecSetsCallable; private final UnaryCallable listAnnotationSpecSetsPagedCallable; private final UnaryCallable deleteAnnotationSpecSetCallable; private final UnaryCallable createInstructionCallable; private final OperationCallable createInstructionOperationCallable; private final UnaryCallable getInstructionCallable; private final UnaryCallable listInstructionsCallable; private final UnaryCallable listInstructionsPagedCallable; private final UnaryCallable deleteInstructionCallable; private final UnaryCallable getEvaluationCallable; private final UnaryCallable searchEvaluationsCallable; private final UnaryCallable searchEvaluationsPagedCallable; private final UnaryCallable searchExampleComparisonsCallable; private final UnaryCallable< SearchExampleComparisonsRequest, SearchExampleComparisonsPagedResponse> searchExampleComparisonsPagedCallable; private final UnaryCallable createEvaluationJobCallable; private final UnaryCallable updateEvaluationJobCallable; private final UnaryCallable getEvaluationJobCallable; private final UnaryCallable pauseEvaluationJobCallable; private final UnaryCallable resumeEvaluationJobCallable; private final UnaryCallable deleteEvaluationJobCallable; private final UnaryCallable listEvaluationJobsCallable; private final UnaryCallable listEvaluationJobsPagedCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; private final GrpcStubCallableFactory callableFactory; public static final GrpcDataLabelingServiceStub create(DataLabelingServiceStubSettings settings) throws IOException { return new GrpcDataLabelingServiceStub(settings, ClientContext.create(settings)); } public static final GrpcDataLabelingServiceStub create(ClientContext clientContext) throws IOException { return new GrpcDataLabelingServiceStub( DataLabelingServiceStubSettings.newBuilder().build(), clientContext); } public static final GrpcDataLabelingServiceStub create( ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { return new GrpcDataLabelingServiceStub( DataLabelingServiceStubSettings.newBuilder().build(), clientContext, callableFactory); } /** * Constructs an instance of GrpcDataLabelingServiceStub, using the given settings. This is * protected so that it is easy to make a subclass, but otherwise, the static factory methods * should be preferred. */ protected GrpcDataLabelingServiceStub( DataLabelingServiceStubSettings settings, ClientContext clientContext) throws IOException { this(settings, clientContext, new GrpcDataLabelingServiceCallableFactory()); } /** * Constructs an instance of GrpcDataLabelingServiceStub, using the given settings. This is * protected so that it is easy to make a subclass, but otherwise, the static factory methods * should be preferred. */ protected GrpcDataLabelingServiceStub( DataLabelingServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); GrpcCallSettings createDatasetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createDatasetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getDatasetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getDatasetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listDatasetsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listDatasetsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteDatasetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteDatasetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings importDataTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(importDataMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings exportDataTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(exportDataMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings getDataItemTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getDataItemMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listDataItemsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listDataItemsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getAnnotatedDatasetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAnnotatedDatasetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listAnnotatedDatasetsTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(listAnnotatedDatasetsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteAnnotatedDatasetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteAnnotatedDatasetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings labelImageTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(labelImageMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings labelVideoTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(labelVideoMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings labelTextTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(labelTextMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getExampleTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getExampleMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listExamplesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listExamplesMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings createAnnotationSpecSetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createAnnotationSpecSetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getAnnotationSpecSetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAnnotationSpecSetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listAnnotationSpecSetsTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(listAnnotationSpecSetsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteAnnotationSpecSetTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteAnnotationSpecSetMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings createInstructionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createInstructionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings getInstructionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getInstructionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listInstructionsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listInstructionsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings deleteInstructionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteInstructionMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings getEvaluationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getEvaluationMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings searchEvaluationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(searchEvaluationsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings searchExampleComparisonsTransportSettings = GrpcCallSettings .newBuilder() .setMethodDescriptor(searchExampleComparisonsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings createEvaluationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createEvaluationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); GrpcCallSettings updateEvaluationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateEvaluationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add( "evaluation_job.name", String.valueOf(request.getEvaluationJob().getName())); return builder.build(); }) .build(); GrpcCallSettings getEvaluationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getEvaluationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings pauseEvaluationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(pauseEvaluationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings resumeEvaluationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(resumeEvaluationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings deleteEvaluationJobTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteEvaluationJobMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("name", String.valueOf(request.getName())); return builder.build(); }) .build(); GrpcCallSettings listEvaluationJobsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listEvaluationJobsMethodDescriptor) .setParamsExtractor( request -> { RequestParamsBuilder builder = RequestParamsBuilder.create(); builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) .build(); this.createDatasetCallable = callableFactory.createUnaryCallable( createDatasetTransportSettings, settings.createDatasetSettings(), clientContext); this.getDatasetCallable = callableFactory.createUnaryCallable( getDatasetTransportSettings, settings.getDatasetSettings(), clientContext); this.listDatasetsCallable = callableFactory.createUnaryCallable( listDatasetsTransportSettings, settings.listDatasetsSettings(), clientContext); this.listDatasetsPagedCallable = callableFactory.createPagedCallable( listDatasetsTransportSettings, settings.listDatasetsSettings(), clientContext); this.deleteDatasetCallable = callableFactory.createUnaryCallable( deleteDatasetTransportSettings, settings.deleteDatasetSettings(), clientContext); this.importDataCallable = callableFactory.createUnaryCallable( importDataTransportSettings, settings.importDataSettings(), clientContext); this.importDataOperationCallable = callableFactory.createOperationCallable( importDataTransportSettings, settings.importDataOperationSettings(), clientContext, operationsStub); this.exportDataCallable = callableFactory.createUnaryCallable( exportDataTransportSettings, settings.exportDataSettings(), clientContext); this.exportDataOperationCallable = callableFactory.createOperationCallable( exportDataTransportSettings, settings.exportDataOperationSettings(), clientContext, operationsStub); this.getDataItemCallable = callableFactory.createUnaryCallable( getDataItemTransportSettings, settings.getDataItemSettings(), clientContext); this.listDataItemsCallable = callableFactory.createUnaryCallable( listDataItemsTransportSettings, settings.listDataItemsSettings(), clientContext); this.listDataItemsPagedCallable = callableFactory.createPagedCallable( listDataItemsTransportSettings, settings.listDataItemsSettings(), clientContext); this.getAnnotatedDatasetCallable = callableFactory.createUnaryCallable( getAnnotatedDatasetTransportSettings, settings.getAnnotatedDatasetSettings(), clientContext); this.listAnnotatedDatasetsCallable = callableFactory.createUnaryCallable( listAnnotatedDatasetsTransportSettings, settings.listAnnotatedDatasetsSettings(), clientContext); this.listAnnotatedDatasetsPagedCallable = callableFactory.createPagedCallable( listAnnotatedDatasetsTransportSettings, settings.listAnnotatedDatasetsSettings(), clientContext); this.deleteAnnotatedDatasetCallable = callableFactory.createUnaryCallable( deleteAnnotatedDatasetTransportSettings, settings.deleteAnnotatedDatasetSettings(), clientContext); this.labelImageCallable = callableFactory.createUnaryCallable( labelImageTransportSettings, settings.labelImageSettings(), clientContext); this.labelImageOperationCallable = callableFactory.createOperationCallable( labelImageTransportSettings, settings.labelImageOperationSettings(), clientContext, operationsStub); this.labelVideoCallable = callableFactory.createUnaryCallable( labelVideoTransportSettings, settings.labelVideoSettings(), clientContext); this.labelVideoOperationCallable = callableFactory.createOperationCallable( labelVideoTransportSettings, settings.labelVideoOperationSettings(), clientContext, operationsStub); this.labelTextCallable = callableFactory.createUnaryCallable( labelTextTransportSettings, settings.labelTextSettings(), clientContext); this.labelTextOperationCallable = callableFactory.createOperationCallable( labelTextTransportSettings, settings.labelTextOperationSettings(), clientContext, operationsStub); this.getExampleCallable = callableFactory.createUnaryCallable( getExampleTransportSettings, settings.getExampleSettings(), clientContext); this.listExamplesCallable = callableFactory.createUnaryCallable( listExamplesTransportSettings, settings.listExamplesSettings(), clientContext); this.listExamplesPagedCallable = callableFactory.createPagedCallable( listExamplesTransportSettings, settings.listExamplesSettings(), clientContext); this.createAnnotationSpecSetCallable = callableFactory.createUnaryCallable( createAnnotationSpecSetTransportSettings, settings.createAnnotationSpecSetSettings(), clientContext); this.getAnnotationSpecSetCallable = callableFactory.createUnaryCallable( getAnnotationSpecSetTransportSettings, settings.getAnnotationSpecSetSettings(), clientContext); this.listAnnotationSpecSetsCallable = callableFactory.createUnaryCallable( listAnnotationSpecSetsTransportSettings, settings.listAnnotationSpecSetsSettings(), clientContext); this.listAnnotationSpecSetsPagedCallable = callableFactory.createPagedCallable( listAnnotationSpecSetsTransportSettings, settings.listAnnotationSpecSetsSettings(), clientContext); this.deleteAnnotationSpecSetCallable = callableFactory.createUnaryCallable( deleteAnnotationSpecSetTransportSettings, settings.deleteAnnotationSpecSetSettings(), clientContext); this.createInstructionCallable = callableFactory.createUnaryCallable( createInstructionTransportSettings, settings.createInstructionSettings(), clientContext); this.createInstructionOperationCallable = callableFactory.createOperationCallable( createInstructionTransportSettings, settings.createInstructionOperationSettings(), clientContext, operationsStub); this.getInstructionCallable = callableFactory.createUnaryCallable( getInstructionTransportSettings, settings.getInstructionSettings(), clientContext); this.listInstructionsCallable = callableFactory.createUnaryCallable( listInstructionsTransportSettings, settings.listInstructionsSettings(), clientContext); this.listInstructionsPagedCallable = callableFactory.createPagedCallable( listInstructionsTransportSettings, settings.listInstructionsSettings(), clientContext); this.deleteInstructionCallable = callableFactory.createUnaryCallable( deleteInstructionTransportSettings, settings.deleteInstructionSettings(), clientContext); this.getEvaluationCallable = callableFactory.createUnaryCallable( getEvaluationTransportSettings, settings.getEvaluationSettings(), clientContext); this.searchEvaluationsCallable = callableFactory.createUnaryCallable( searchEvaluationsTransportSettings, settings.searchEvaluationsSettings(), clientContext); this.searchEvaluationsPagedCallable = callableFactory.createPagedCallable( searchEvaluationsTransportSettings, settings.searchEvaluationsSettings(), clientContext); this.searchExampleComparisonsCallable = callableFactory.createUnaryCallable( searchExampleComparisonsTransportSettings, settings.searchExampleComparisonsSettings(), clientContext); this.searchExampleComparisonsPagedCallable = callableFactory.createPagedCallable( searchExampleComparisonsTransportSettings, settings.searchExampleComparisonsSettings(), clientContext); this.createEvaluationJobCallable = callableFactory.createUnaryCallable( createEvaluationJobTransportSettings, settings.createEvaluationJobSettings(), clientContext); this.updateEvaluationJobCallable = callableFactory.createUnaryCallable( updateEvaluationJobTransportSettings, settings.updateEvaluationJobSettings(), clientContext); this.getEvaluationJobCallable = callableFactory.createUnaryCallable( getEvaluationJobTransportSettings, settings.getEvaluationJobSettings(), clientContext); this.pauseEvaluationJobCallable = callableFactory.createUnaryCallable( pauseEvaluationJobTransportSettings, settings.pauseEvaluationJobSettings(), clientContext); this.resumeEvaluationJobCallable = callableFactory.createUnaryCallable( resumeEvaluationJobTransportSettings, settings.resumeEvaluationJobSettings(), clientContext); this.deleteEvaluationJobCallable = callableFactory.createUnaryCallable( deleteEvaluationJobTransportSettings, settings.deleteEvaluationJobSettings(), clientContext); this.listEvaluationJobsCallable = callableFactory.createUnaryCallable( listEvaluationJobsTransportSettings, settings.listEvaluationJobsSettings(), clientContext); this.listEvaluationJobsPagedCallable = callableFactory.createPagedCallable( listEvaluationJobsTransportSettings, settings.listEvaluationJobsSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } public GrpcOperationsStub getOperationsStub() { return operationsStub; } @Override public UnaryCallable createDatasetCallable() { return createDatasetCallable; } @Override public UnaryCallable getDatasetCallable() { return getDatasetCallable; } @Override public UnaryCallable listDatasetsCallable() { return listDatasetsCallable; } @Override public UnaryCallable listDatasetsPagedCallable() { return listDatasetsPagedCallable; } @Override public UnaryCallable deleteDatasetCallable() { return deleteDatasetCallable; } @Override public UnaryCallable importDataCallable() { return importDataCallable; } @Override public OperationCallable< ImportDataRequest, ImportDataOperationResponse, ImportDataOperationMetadata> importDataOperationCallable() { return importDataOperationCallable; } @Override public UnaryCallable exportDataCallable() { return exportDataCallable; } @Override public OperationCallable< ExportDataRequest, ExportDataOperationResponse, ExportDataOperationMetadata> exportDataOperationCallable() { return exportDataOperationCallable; } @Override public UnaryCallable getDataItemCallable() { return getDataItemCallable; } @Override public UnaryCallable listDataItemsCallable() { return listDataItemsCallable; } @Override public UnaryCallable listDataItemsPagedCallable() { return listDataItemsPagedCallable; } @Override public UnaryCallable getAnnotatedDatasetCallable() { return getAnnotatedDatasetCallable; } @Override public UnaryCallable listAnnotatedDatasetsCallable() { return listAnnotatedDatasetsCallable; } @Override public UnaryCallable listAnnotatedDatasetsPagedCallable() { return listAnnotatedDatasetsPagedCallable; } @Override public UnaryCallable deleteAnnotatedDatasetCallable() { return deleteAnnotatedDatasetCallable; } @Override public UnaryCallable labelImageCallable() { return labelImageCallable; } @Override public OperationCallable labelImageOperationCallable() { return labelImageOperationCallable; } @Override public UnaryCallable labelVideoCallable() { return labelVideoCallable; } @Override public OperationCallable labelVideoOperationCallable() { return labelVideoOperationCallable; } @Override public UnaryCallable labelTextCallable() { return labelTextCallable; } @Override public OperationCallable labelTextOperationCallable() { return labelTextOperationCallable; } @Override public UnaryCallable getExampleCallable() { return getExampleCallable; } @Override public UnaryCallable listExamplesCallable() { return listExamplesCallable; } @Override public UnaryCallable listExamplesPagedCallable() { return listExamplesPagedCallable; } @Override public UnaryCallable createAnnotationSpecSetCallable() { return createAnnotationSpecSetCallable; } @Override public UnaryCallable getAnnotationSpecSetCallable() { return getAnnotationSpecSetCallable; } @Override public UnaryCallable listAnnotationSpecSetsCallable() { return listAnnotationSpecSetsCallable; } @Override public UnaryCallable listAnnotationSpecSetsPagedCallable() { return listAnnotationSpecSetsPagedCallable; } @Override public UnaryCallable deleteAnnotationSpecSetCallable() { return deleteAnnotationSpecSetCallable; } @Override public UnaryCallable createInstructionCallable() { return createInstructionCallable; } @Override public OperationCallable createInstructionOperationCallable() { return createInstructionOperationCallable; } @Override public UnaryCallable getInstructionCallable() { return getInstructionCallable; } @Override public UnaryCallable listInstructionsCallable() { return listInstructionsCallable; } @Override public UnaryCallable listInstructionsPagedCallable() { return listInstructionsPagedCallable; } @Override public UnaryCallable deleteInstructionCallable() { return deleteInstructionCallable; } @Override public UnaryCallable getEvaluationCallable() { return getEvaluationCallable; } @Override public UnaryCallable searchEvaluationsCallable() { return searchEvaluationsCallable; } @Override public UnaryCallable searchEvaluationsPagedCallable() { return searchEvaluationsPagedCallable; } @Override public UnaryCallable searchExampleComparisonsCallable() { return searchExampleComparisonsCallable; } @Override public UnaryCallable searchExampleComparisonsPagedCallable() { return searchExampleComparisonsPagedCallable; } @Override public UnaryCallable createEvaluationJobCallable() { return createEvaluationJobCallable; } @Override public UnaryCallable updateEvaluationJobCallable() { return updateEvaluationJobCallable; } @Override public UnaryCallable getEvaluationJobCallable() { return getEvaluationJobCallable; } @Override public UnaryCallable pauseEvaluationJobCallable() { return pauseEvaluationJobCallable; } @Override public UnaryCallable resumeEvaluationJobCallable() { return resumeEvaluationJobCallable; } @Override public UnaryCallable deleteEvaluationJobCallable() { return deleteEvaluationJobCallable; } @Override public UnaryCallable listEvaluationJobsCallable() { return listEvaluationJobsCallable; } @Override public UnaryCallable listEvaluationJobsPagedCallable() { return listEvaluationJobsPagedCallable; } @Override public final void close() { try { backgroundResources.close(); } catch (RuntimeException e) { throw e; } catch (Exception e) { throw new IllegalStateException("Failed to close resource", e); } } @Override public void shutdown() { backgroundResources.shutdown(); } @Override public boolean isShutdown() { return backgroundResources.isShutdown(); } @Override public boolean isTerminated() { return backgroundResources.isTerminated(); } @Override public void shutdownNow() { backgroundResources.shutdownNow(); } @Override public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return backgroundResources.awaitTermination(duration, unit); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy