Data Labeling v1beta1 API - Class DataLabelingService.DataLabelingServiceBase (2.0.0-beta02)

[BindServiceMethod(typeof(DataLabelingService), "BindService")]
public abstract class DataLabelingService.DataLabelingServiceBase

Reference documentation and code samples for the Data Labeling v1beta1 API class DataLabelingService.DataLabelingServiceBase.

Base class for server-side implementations of DataLabelingService

Inheritance

object > DataLabelingService.DataLabelingServiceBase

Namespace

Google.Cloud.DataLabeling.V1Beta1

Assembly

Google.Cloud.DataLabeling.V1Beta1.dll

Methods

CreateAnnotationSpecSet(CreateAnnotationSpecSetRequest, ServerCallContext)

public virtual Task<AnnotationSpecSet> CreateAnnotationSpecSet(CreateAnnotationSpecSetRequest request, ServerCallContext context)

Creates an annotation spec set by providing a set of labels.

Parameters
NameDescription
requestCreateAnnotationSpecSetRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskAnnotationSpecSet

The response to send back to the client (wrapped by a task).

CreateDataset(CreateDatasetRequest, ServerCallContext)

public virtual Task<Dataset> CreateDataset(CreateDatasetRequest request, ServerCallContext context)

Creates dataset. If success return a Dataset resource.

Parameters
NameDescription
requestCreateDatasetRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskDataset

The response to send back to the client (wrapped by a task).

CreateEvaluationJob(CreateEvaluationJobRequest, ServerCallContext)

public virtual Task<EvaluationJob> CreateEvaluationJob(CreateEvaluationJobRequest request, ServerCallContext context)

Creates an evaluation job.

Parameters
NameDescription
requestCreateEvaluationJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEvaluationJob

The response to send back to the client (wrapped by a task).

CreateInstruction(CreateInstructionRequest, ServerCallContext)

public virtual Task<Operation> CreateInstruction(CreateInstructionRequest request, ServerCallContext context)

Creates an instruction for how data should be labeled.

Parameters
NameDescription
requestCreateInstructionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

DeleteAnnotatedDataset(DeleteAnnotatedDatasetRequest, ServerCallContext)

public virtual Task<Empty> DeleteAnnotatedDataset(DeleteAnnotatedDatasetRequest request, ServerCallContext context)

Deletes an annotated dataset by resource name.

Parameters
NameDescription
requestDeleteAnnotatedDatasetRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

DeleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest, ServerCallContext)

public virtual Task<Empty> DeleteAnnotationSpecSet(DeleteAnnotationSpecSetRequest request, ServerCallContext context)

Deletes an annotation spec set by resource name.

Parameters
NameDescription
requestDeleteAnnotationSpecSetRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

DeleteDataset(DeleteDatasetRequest, ServerCallContext)

public virtual Task<Empty> DeleteDataset(DeleteDatasetRequest request, ServerCallContext context)

Deletes a dataset by resource name.

Parameters
NameDescription
requestDeleteDatasetRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

DeleteEvaluationJob(DeleteEvaluationJobRequest, ServerCallContext)

public virtual Task<Empty> DeleteEvaluationJob(DeleteEvaluationJobRequest request, ServerCallContext context)

Stops and deletes an evaluation job.

Parameters
NameDescription
requestDeleteEvaluationJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

DeleteInstruction(DeleteInstructionRequest, ServerCallContext)

public virtual Task<Empty> DeleteInstruction(DeleteInstructionRequest request, ServerCallContext context)

Deletes an instruction object by resource name.

Parameters
NameDescription
requestDeleteInstructionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

ExportData(ExportDataRequest, ServerCallContext)

public virtual Task<Operation> ExportData(ExportDataRequest request, ServerCallContext context)

Exports data and annotations from dataset.

Parameters
NameDescription
requestExportDataRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

GetAnnotatedDataset(GetAnnotatedDatasetRequest, ServerCallContext)

public virtual Task<AnnotatedDataset> GetAnnotatedDataset(GetAnnotatedDatasetRequest request, ServerCallContext context)

Gets an annotated dataset by resource name.

Parameters
NameDescription
requestGetAnnotatedDatasetRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskAnnotatedDataset

The response to send back to the client (wrapped by a task).

GetAnnotationSpecSet(GetAnnotationSpecSetRequest, ServerCallContext)

public virtual Task<AnnotationSpecSet> GetAnnotationSpecSet(GetAnnotationSpecSetRequest request, ServerCallContext context)

Gets an annotation spec set by resource name.

Parameters
NameDescription
requestGetAnnotationSpecSetRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskAnnotationSpecSet

The response to send back to the client (wrapped by a task).

GetDataItem(GetDataItemRequest, ServerCallContext)

public virtual Task<DataItem> GetDataItem(GetDataItemRequest request, ServerCallContext context)

Gets a data item in a dataset by resource name. This API can be called after data are imported into dataset.

Parameters
NameDescription
requestGetDataItemRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskDataItem

The response to send back to the client (wrapped by a task).

GetDataset(GetDatasetRequest, ServerCallContext)

public virtual Task<Dataset> GetDataset(GetDatasetRequest request, ServerCallContext context)

Gets dataset by resource name.

Parameters
NameDescription
requestGetDatasetRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskDataset

The response to send back to the client (wrapped by a task).

GetEvaluation(GetEvaluationRequest, ServerCallContext)

public virtual Task<Evaluation> GetEvaluation(GetEvaluationRequest request, ServerCallContext context)

Gets an evaluation by resource name (to search, use [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).

Parameters
NameDescription
requestGetEvaluationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEvaluation

The response to send back to the client (wrapped by a task).

GetEvaluationJob(GetEvaluationJobRequest, ServerCallContext)

public virtual Task<EvaluationJob> GetEvaluationJob(GetEvaluationJobRequest request, ServerCallContext context)

Gets an evaluation job by resource name.

Parameters
NameDescription
requestGetEvaluationJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEvaluationJob

The response to send back to the client (wrapped by a task).

GetExample(GetExampleRequest, ServerCallContext)

public virtual Task<Example> GetExample(GetExampleRequest request, ServerCallContext context)

Gets an example by resource name, including both data and annotation.

Parameters
NameDescription
requestGetExampleRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskExample

The response to send back to the client (wrapped by a task).

GetInstruction(GetInstructionRequest, ServerCallContext)

public virtual Task<Instruction> GetInstruction(GetInstructionRequest request, ServerCallContext context)

Gets an instruction by resource name.

Parameters
NameDescription
requestGetInstructionRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskInstruction

The response to send back to the client (wrapped by a task).

ImportData(ImportDataRequest, ServerCallContext)

public virtual Task<Operation> ImportData(ImportDataRequest request, ServerCallContext context)

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.

Parameters
NameDescription
requestImportDataRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

LabelImage(LabelImageRequest, ServerCallContext)

public virtual Task<Operation> LabelImage(LabelImageRequest request, ServerCallContext context)

Starts a labeling task for image. The type of image labeling task is configured by feature in the request.

Parameters
NameDescription
requestLabelImageRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

LabelText(LabelTextRequest, ServerCallContext)

public virtual Task<Operation> LabelText(LabelTextRequest request, ServerCallContext context)

Starts a labeling task for text. The type of text labeling task is configured by feature in the request.

Parameters
NameDescription
requestLabelTextRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

LabelVideo(LabelVideoRequest, ServerCallContext)

public virtual Task<Operation> LabelVideo(LabelVideoRequest request, ServerCallContext context)

Starts a labeling task for video. The type of video labeling task is configured by feature in the request.

Parameters
NameDescription
requestLabelVideoRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskOperation

The response to send back to the client (wrapped by a task).

ListAnnotatedDatasets(ListAnnotatedDatasetsRequest, ServerCallContext)

public virtual Task<ListAnnotatedDatasetsResponse> ListAnnotatedDatasets(ListAnnotatedDatasetsRequest request, ServerCallContext context)

Lists annotated datasets for a dataset. Pagination is supported.

Parameters
NameDescription
requestListAnnotatedDatasetsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListAnnotatedDatasetsResponse

The response to send back to the client (wrapped by a task).

ListAnnotationSpecSets(ListAnnotationSpecSetsRequest, ServerCallContext)

public virtual Task<ListAnnotationSpecSetsResponse> ListAnnotationSpecSets(ListAnnotationSpecSetsRequest request, ServerCallContext context)

Lists annotation spec sets for a project. Pagination is supported.

Parameters
NameDescription
requestListAnnotationSpecSetsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListAnnotationSpecSetsResponse

The response to send back to the client (wrapped by a task).

ListDataItems(ListDataItemsRequest, ServerCallContext)

public virtual Task<ListDataItemsResponse> ListDataItems(ListDataItemsRequest request, ServerCallContext context)

Lists data items in a dataset. This API can be called after data are imported into dataset. Pagination is supported.

Parameters
NameDescription
requestListDataItemsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListDataItemsResponse

The response to send back to the client (wrapped by a task).

ListDatasets(ListDatasetsRequest, ServerCallContext)

public virtual Task<ListDatasetsResponse> ListDatasets(ListDatasetsRequest request, ServerCallContext context)

Lists datasets under a project. Pagination is supported.

Parameters
NameDescription
requestListDatasetsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListDatasetsResponse

The response to send back to the client (wrapped by a task).

ListEvaluationJobs(ListEvaluationJobsRequest, ServerCallContext)

public virtual Task<ListEvaluationJobsResponse> ListEvaluationJobs(ListEvaluationJobsRequest request, ServerCallContext context)

Lists all evaluation jobs within a project with possible filters. Pagination is supported.

Parameters
NameDescription
requestListEvaluationJobsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListEvaluationJobsResponse

The response to send back to the client (wrapped by a task).

ListExamples(ListExamplesRequest, ServerCallContext)

public virtual Task<ListExamplesResponse> ListExamples(ListExamplesRequest request, ServerCallContext context)

Lists examples in an annotated dataset. Pagination is supported.

Parameters
NameDescription
requestListExamplesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListExamplesResponse

The response to send back to the client (wrapped by a task).

ListInstructions(ListInstructionsRequest, ServerCallContext)

public virtual Task<ListInstructionsResponse> ListInstructions(ListInstructionsRequest request, ServerCallContext context)

Lists instructions for a project. Pagination is supported.

Parameters
NameDescription
requestListInstructionsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskListInstructionsResponse

The response to send back to the client (wrapped by a task).

PauseEvaluationJob(PauseEvaluationJobRequest, ServerCallContext)

public virtual Task<Empty> PauseEvaluationJob(PauseEvaluationJobRequest request, ServerCallContext context)

Pauses an evaluation job. Pausing an evaluation job that is already in a PAUSED state is a no-op.

Parameters
NameDescription
requestPauseEvaluationJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

ResumeEvaluationJob(ResumeEvaluationJobRequest, ServerCallContext)

public virtual Task<Empty> ResumeEvaluationJob(ResumeEvaluationJobRequest request, ServerCallContext context)

Resumes a paused evaluation job. A deleted evaluation job can't be resumed. Resuming a running or scheduled evaluation job is a no-op.

Parameters
NameDescription
requestResumeEvaluationJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEmpty

The response to send back to the client (wrapped by a task).

SearchEvaluations(SearchEvaluationsRequest, ServerCallContext)

public virtual Task<SearchEvaluationsResponse> SearchEvaluations(SearchEvaluationsRequest request, ServerCallContext context)

Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.

Parameters
NameDescription
requestSearchEvaluationsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSearchEvaluationsResponse

The response to send back to the client (wrapped by a task).

SearchExampleComparisons(SearchExampleComparisonsRequest, ServerCallContext)

public virtual Task<SearchExampleComparisonsResponse> SearchExampleComparisons(SearchExampleComparisonsRequest request, ServerCallContext context)

Searches example comparisons from an evaluation. The return format is a list of example comparisons that show ground truth and prediction(s) for a single input. Search by providing an evaluation ID.

Parameters
NameDescription
requestSearchExampleComparisonsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskSearchExampleComparisonsResponse

The response to send back to the client (wrapped by a task).

UpdateEvaluationJob(UpdateEvaluationJobRequest, ServerCallContext)

public virtual Task<EvaluationJob> UpdateEvaluationJob(UpdateEvaluationJobRequest request, ServerCallContext context)

Updates an evaluation job. You can only update certain fields of the job's [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: humanAnnotationConfig.instruction, exampleCount, and exampleSamplePercentage.

If you want to change any other aspect of the evaluation job, you must delete the job and create a new one.

Parameters
NameDescription
requestUpdateEvaluationJobRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
TaskEvaluationJob

The response to send back to the client (wrapped by a task).