Class DataLabelingService.DataLabelingServiceBase

[BindServiceMethod(typeof(DataLabelingService), "BindService")]
public abstract class 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
TypeNameDescription
CreateAnnotationSpecSetRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<AnnotationSpecSet>

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
TypeNameDescription
CreateDatasetRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Dataset>

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
TypeNameDescription
CreateEvaluationJobRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<EvaluationJob>

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
TypeNameDescription
CreateInstructionRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Operation>

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
TypeNameDescription
DeleteAnnotatedDatasetRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Empty>

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
TypeNameDescription
DeleteAnnotationSpecSetRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Empty>

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
TypeNameDescription
DeleteDatasetRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Empty>

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
TypeNameDescription
DeleteEvaluationJobRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Empty>

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
TypeNameDescription
DeleteInstructionRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Empty>

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
TypeNameDescription
ExportDataRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Operation>

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
TypeNameDescription
GetAnnotatedDatasetRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<AnnotatedDataset>

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
TypeNameDescription
GetAnnotationSpecSetRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<AnnotationSpecSet>

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
TypeNameDescription
GetDataItemRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<DataItem>

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
TypeNameDescription
GetDatasetRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Dataset>

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
TypeNameDescription
GetEvaluationRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Evaluation>

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
TypeNameDescription
GetEvaluationJobRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<EvaluationJob>

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
TypeNameDescription
GetExampleRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Example>

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
TypeNameDescription
GetInstructionRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Instruction>

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
TypeNameDescription
ImportDataRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Operation>

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
TypeNameDescription
LabelImageRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Operation>

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
TypeNameDescription
LabelTextRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Operation>

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
TypeNameDescription
LabelVideoRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Operation>

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
TypeNameDescription
ListAnnotatedDatasetsRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<ListAnnotatedDatasetsResponse>

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
TypeNameDescription
ListAnnotationSpecSetsRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<ListAnnotationSpecSetsResponse>

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
TypeNameDescription
ListDataItemsRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<ListDataItemsResponse>

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
TypeNameDescription
ListDatasetsRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<ListDatasetsResponse>

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
TypeNameDescription
ListEvaluationJobsRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<ListEvaluationJobsResponse>

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
TypeNameDescription
ListExamplesRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<ListExamplesResponse>

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
TypeNameDescription
ListInstructionsRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<ListInstructionsResponse>

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
TypeNameDescription
PauseEvaluationJobRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Empty>

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
TypeNameDescription
ResumeEvaluationJobRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<Empty>

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
TypeNameDescription
SearchEvaluationsRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<SearchEvaluationsResponse>

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
TypeNameDescription
SearchExampleComparisonsRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<SearchExampleComparisonsResponse>

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
TypeNameDescription
UpdateEvaluationJobRequestrequest

The request received from the client.

ServerCallContextcontext

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

Returns
TypeDescription
Task<EvaluationJob>

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