Class JobService.JobServiceBase (2.2.0)

[BindServiceMethod(typeof(JobService), "BindService")]
public abstract class JobServiceBase

Base class for server-side implementations of JobService

Inheritance

Object > JobService.JobServiceBase

Namespace

Google.Cloud.AIPlatform.V1

Assembly

Google.Cloud.AIPlatform.V1.dll

Methods

CancelBatchPredictionJob(CancelBatchPredictionJobRequest, ServerCallContext)

public virtual Task<Empty> CancelBatchPredictionJob(CancelBatchPredictionJobRequest request, ServerCallContext context)

Cancels a BatchPredictionJob.

Starts asynchronous cancellation on the BatchPredictionJob. The server makes the best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetBatchPredictionJob][google.cloud.aiplatform.v1.JobService.GetBatchPredictionJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On a successful cancellation, the BatchPredictionJob is not deleted;instead its [BatchPredictionJob.state][google.cloud.aiplatform.v1.BatchPredictionJob.state] is set to CANCELLED. Any files already outputted by the job are not deleted.

Parameters
Name Description
request CancelBatchPredictionJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<Empty>

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

CancelCustomJob(CancelCustomJobRequest, ServerCallContext)

public virtual Task<Empty> CancelCustomJob(CancelCustomJobRequest request, ServerCallContext context)

Cancels a CustomJob. Starts asynchronous cancellation on the CustomJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetCustomJob][google.cloud.aiplatform.v1.JobService.GetCustomJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the CustomJob is not deleted; instead it becomes a job with a [CustomJob.error][google.cloud.aiplatform.v1.CustomJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to Code.CANCELLED, and [CustomJob.state][google.cloud.aiplatform.v1.CustomJob.state] is set to CANCELLED.

Parameters
Name Description
request CancelCustomJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<Empty>

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

CancelDataLabelingJob(CancelDataLabelingJobRequest, ServerCallContext)

public virtual Task<Empty> CancelDataLabelingJob(CancelDataLabelingJobRequest request, ServerCallContext context)

Cancels a DataLabelingJob. Success of cancellation is not guaranteed.

Parameters
Name Description
request CancelDataLabelingJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<Empty>

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

CancelHyperparameterTuningJob(CancelHyperparameterTuningJobRequest, ServerCallContext)

public virtual Task<Empty> CancelHyperparameterTuningJob(CancelHyperparameterTuningJobRequest request, ServerCallContext context)

Cancels a HyperparameterTuningJob. Starts asynchronous cancellation on the HyperparameterTuningJob. The server makes a best effort to cancel the job, but success is not guaranteed. Clients can use [JobService.GetHyperparameterTuningJob][google.cloud.aiplatform.v1.JobService.GetHyperparameterTuningJob] or other methods to check whether the cancellation succeeded or whether the job completed despite cancellation. On successful cancellation, the HyperparameterTuningJob is not deleted; instead it becomes a job with a [HyperparameterTuningJob.error][google.cloud.aiplatform.v1.HyperparameterTuningJob.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to Code.CANCELLED, and [HyperparameterTuningJob.state][google.cloud.aiplatform.v1.HyperparameterTuningJob.state] is set to CANCELLED.

Parameters
Name Description
request CancelHyperparameterTuningJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<Empty>

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

CreateBatchPredictionJob(CreateBatchPredictionJobRequest, ServerCallContext)

public virtual Task<BatchPredictionJob> CreateBatchPredictionJob(CreateBatchPredictionJobRequest request, ServerCallContext context)

Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to start.

Parameters
Name Description
request CreateBatchPredictionJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<BatchPredictionJob>

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

CreateCustomJob(CreateCustomJobRequest, ServerCallContext)

public virtual Task<CustomJob> CreateCustomJob(CreateCustomJobRequest request, ServerCallContext context)

Creates a CustomJob. A created CustomJob right away will be attempted to be run.

Parameters
Name Description
request CreateCustomJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<CustomJob>

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

CreateDataLabelingJob(CreateDataLabelingJobRequest, ServerCallContext)

public virtual Task<DataLabelingJob> CreateDataLabelingJob(CreateDataLabelingJobRequest request, ServerCallContext context)

Creates a DataLabelingJob.

Parameters
Name Description
request CreateDataLabelingJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<DataLabelingJob>

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

CreateHyperparameterTuningJob(CreateHyperparameterTuningJobRequest, ServerCallContext)

public virtual Task<HyperparameterTuningJob> CreateHyperparameterTuningJob(CreateHyperparameterTuningJobRequest request, ServerCallContext context)

Creates a HyperparameterTuningJob

Parameters
Name Description
request CreateHyperparameterTuningJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<HyperparameterTuningJob>

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

CreateModelDeploymentMonitoringJob(CreateModelDeploymentMonitoringJobRequest, ServerCallContext)

public virtual Task<ModelDeploymentMonitoringJob> CreateModelDeploymentMonitoringJob(CreateModelDeploymentMonitoringJobRequest request, ServerCallContext context)

Creates a ModelDeploymentMonitoringJob. It will run periodically on a configured interval.

Parameters
Name Description
request CreateModelDeploymentMonitoringJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<ModelDeploymentMonitoringJob>

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

DeleteBatchPredictionJob(DeleteBatchPredictionJobRequest, ServerCallContext)

public virtual Task<Operation> DeleteBatchPredictionJob(DeleteBatchPredictionJobRequest request, ServerCallContext context)

Deletes a BatchPredictionJob. Can only be called on jobs that already finished.

Parameters
Name Description
request DeleteBatchPredictionJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<Operation>

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

DeleteCustomJob(DeleteCustomJobRequest, ServerCallContext)

public virtual Task<Operation> DeleteCustomJob(DeleteCustomJobRequest request, ServerCallContext context)

Deletes a CustomJob.

Parameters
Name Description
request DeleteCustomJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<Operation>

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

DeleteDataLabelingJob(DeleteDataLabelingJobRequest, ServerCallContext)

public virtual Task<Operation> DeleteDataLabelingJob(DeleteDataLabelingJobRequest request, ServerCallContext context)

Deletes a DataLabelingJob.

Parameters
Name Description
request DeleteDataLabelingJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<Operation>

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

DeleteHyperparameterTuningJob(DeleteHyperparameterTuningJobRequest, ServerCallContext)

public virtual Task<Operation> DeleteHyperparameterTuningJob(DeleteHyperparameterTuningJobRequest request, ServerCallContext context)

Deletes a HyperparameterTuningJob.

Parameters
Name Description
request DeleteHyperparameterTuningJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<Operation>

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

DeleteModelDeploymentMonitoringJob(DeleteModelDeploymentMonitoringJobRequest, ServerCallContext)

public virtual Task<Operation> DeleteModelDeploymentMonitoringJob(DeleteModelDeploymentMonitoringJobRequest request, ServerCallContext context)

Deletes a ModelDeploymentMonitoringJob.

Parameters
Name Description
request DeleteModelDeploymentMonitoringJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<Operation>

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

GetBatchPredictionJob(GetBatchPredictionJobRequest, ServerCallContext)

public virtual Task<BatchPredictionJob> GetBatchPredictionJob(GetBatchPredictionJobRequest request, ServerCallContext context)

Gets a BatchPredictionJob

Parameters
Name Description
request GetBatchPredictionJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<BatchPredictionJob>

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

GetCustomJob(GetCustomJobRequest, ServerCallContext)

public virtual Task<CustomJob> GetCustomJob(GetCustomJobRequest request, ServerCallContext context)

Gets a CustomJob.

Parameters
Name Description
request GetCustomJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<CustomJob>

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

GetDataLabelingJob(GetDataLabelingJobRequest, ServerCallContext)

public virtual Task<DataLabelingJob> GetDataLabelingJob(GetDataLabelingJobRequest request, ServerCallContext context)

Gets a DataLabelingJob.

Parameters
Name Description
request GetDataLabelingJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<DataLabelingJob>

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

GetHyperparameterTuningJob(GetHyperparameterTuningJobRequest, ServerCallContext)

public virtual Task<HyperparameterTuningJob> GetHyperparameterTuningJob(GetHyperparameterTuningJobRequest request, ServerCallContext context)

Gets a HyperparameterTuningJob

Parameters
Name Description
request GetHyperparameterTuningJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<HyperparameterTuningJob>

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

GetModelDeploymentMonitoringJob(GetModelDeploymentMonitoringJobRequest, ServerCallContext)

public virtual Task<ModelDeploymentMonitoringJob> GetModelDeploymentMonitoringJob(GetModelDeploymentMonitoringJobRequest request, ServerCallContext context)

Gets a ModelDeploymentMonitoringJob.

Parameters
Name Description
request GetModelDeploymentMonitoringJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<ModelDeploymentMonitoringJob>

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

ListBatchPredictionJobs(ListBatchPredictionJobsRequest, ServerCallContext)

public virtual Task<ListBatchPredictionJobsResponse> ListBatchPredictionJobs(ListBatchPredictionJobsRequest request, ServerCallContext context)

Lists BatchPredictionJobs in a Location.

Parameters
Name Description
request ListBatchPredictionJobsRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<ListBatchPredictionJobsResponse>

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

ListCustomJobs(ListCustomJobsRequest, ServerCallContext)

public virtual Task<ListCustomJobsResponse> ListCustomJobs(ListCustomJobsRequest request, ServerCallContext context)

Lists CustomJobs in a Location.

Parameters
Name Description
request ListCustomJobsRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<ListCustomJobsResponse>

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

ListDataLabelingJobs(ListDataLabelingJobsRequest, ServerCallContext)

public virtual Task<ListDataLabelingJobsResponse> ListDataLabelingJobs(ListDataLabelingJobsRequest request, ServerCallContext context)

Lists DataLabelingJobs in a Location.

Parameters
Name Description
request ListDataLabelingJobsRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<ListDataLabelingJobsResponse>

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

ListHyperparameterTuningJobs(ListHyperparameterTuningJobsRequest, ServerCallContext)

public virtual Task<ListHyperparameterTuningJobsResponse> ListHyperparameterTuningJobs(ListHyperparameterTuningJobsRequest request, ServerCallContext context)

Lists HyperparameterTuningJobs in a Location.

Parameters
Name Description
request ListHyperparameterTuningJobsRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<ListHyperparameterTuningJobsResponse>

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

ListModelDeploymentMonitoringJobs(ListModelDeploymentMonitoringJobsRequest, ServerCallContext)

public virtual Task<ListModelDeploymentMonitoringJobsResponse> ListModelDeploymentMonitoringJobs(ListModelDeploymentMonitoringJobsRequest request, ServerCallContext context)

Lists ModelDeploymentMonitoringJobs in a Location.

Parameters
Name Description
request ListModelDeploymentMonitoringJobsRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<ListModelDeploymentMonitoringJobsResponse>

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

PauseModelDeploymentMonitoringJob(PauseModelDeploymentMonitoringJobRequest, ServerCallContext)

public virtual Task<Empty> PauseModelDeploymentMonitoringJob(PauseModelDeploymentMonitoringJobRequest request, ServerCallContext context)

Pauses a ModelDeploymentMonitoringJob. If the job is running, the server makes a best effort to cancel the job. Will mark [ModelDeploymentMonitoringJob.state][google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob.state] to 'PAUSED'.

Parameters
Name Description
request PauseModelDeploymentMonitoringJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<Empty>

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

ResumeModelDeploymentMonitoringJob(ResumeModelDeploymentMonitoringJobRequest, ServerCallContext)

public virtual Task<Empty> ResumeModelDeploymentMonitoringJob(ResumeModelDeploymentMonitoringJobRequest request, ServerCallContext context)

Resumes a paused ModelDeploymentMonitoringJob. It will start to run from next scheduled time. A deleted ModelDeploymentMonitoringJob can't be resumed.

Parameters
Name Description
request ResumeModelDeploymentMonitoringJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<Empty>

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

SearchModelDeploymentMonitoringStatsAnomalies(SearchModelDeploymentMonitoringStatsAnomaliesRequest, ServerCallContext)

public virtual Task<SearchModelDeploymentMonitoringStatsAnomaliesResponse> SearchModelDeploymentMonitoringStatsAnomalies(SearchModelDeploymentMonitoringStatsAnomaliesRequest request, ServerCallContext context)

Searches Model Monitoring Statistics generated within a given time window.

Parameters
Name Description
request SearchModelDeploymentMonitoringStatsAnomaliesRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<SearchModelDeploymentMonitoringStatsAnomaliesResponse>

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

UpdateModelDeploymentMonitoringJob(UpdateModelDeploymentMonitoringJobRequest, ServerCallContext)

public virtual Task<Operation> UpdateModelDeploymentMonitoringJob(UpdateModelDeploymentMonitoringJobRequest request, ServerCallContext context)

Updates a ModelDeploymentMonitoringJob.

Parameters
Name Description
request UpdateModelDeploymentMonitoringJobRequest

The request received from the client.

context ServerCallContext

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

Returns
Type Description
Task<Operation>

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